]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_controls_wrap.cpp
wxRect2DDouble --> wxRect2D
[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]
5172800e
RD
2496#define SWIGTYPE_p_wxCollapsiblePane swig_types[30]
2497#define SWIGTYPE_p_wxCollapsiblePaneEvent swig_types[31]
2498#define SWIGTYPE_p_wxColour swig_types[32]
2499#define SWIGTYPE_p_wxColourPickerCtrl swig_types[33]
2500#define SWIGTYPE_p_wxColourPickerEvent swig_types[34]
2501#define SWIGTYPE_p_wxComboBox swig_types[35]
2502#define SWIGTYPE_p_wxCommandEvent swig_types[36]
2503#define SWIGTYPE_p_wxContextHelp swig_types[37]
2504#define SWIGTYPE_p_wxContextHelpButton swig_types[38]
2505#define SWIGTYPE_p_wxContextMenuEvent swig_types[39]
2506#define SWIGTYPE_p_wxControl swig_types[40]
2507#define SWIGTYPE_p_wxControlWithItems swig_types[41]
2508#define SWIGTYPE_p_wxCursor swig_types[42]
2509#define SWIGTYPE_p_wxDC swig_types[43]
2510#define SWIGTYPE_p_wxDateEvent swig_types[44]
2511#define SWIGTYPE_p_wxDatePickerCtrl swig_types[45]
2512#define SWIGTYPE_p_wxDateTime swig_types[46]
2513#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[47]
2514#define SWIGTYPE_p_wxDirPickerCtrl swig_types[48]
2515#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[49]
2516#define SWIGTYPE_p_wxDropFilesEvent swig_types[50]
2517#define SWIGTYPE_p_wxDuplexMode swig_types[51]
2518#define SWIGTYPE_p_wxEraseEvent swig_types[52]
2519#define SWIGTYPE_p_wxEvent swig_types[53]
2520#define SWIGTYPE_p_wxEvtHandler swig_types[54]
2521#define SWIGTYPE_p_wxFSFile swig_types[55]
2522#define SWIGTYPE_p_wxFileDirPickerEvent swig_types[56]
2523#define SWIGTYPE_p_wxFilePickerCtrl swig_types[57]
2524#define SWIGTYPE_p_wxFileSystem swig_types[58]
2525#define SWIGTYPE_p_wxFlexGridSizer swig_types[59]
2526#define SWIGTYPE_p_wxFocusEvent swig_types[60]
2527#define SWIGTYPE_p_wxFont swig_types[61]
2528#define SWIGTYPE_p_wxFontPickerCtrl swig_types[62]
2529#define SWIGTYPE_p_wxFontPickerEvent swig_types[63]
2530#define SWIGTYPE_p_wxGBSizerItem swig_types[64]
2531#define SWIGTYPE_p_wxGIFHandler swig_types[65]
2532#define SWIGTYPE_p_wxGauge swig_types[66]
2533#define SWIGTYPE_p_wxGenericDirCtrl swig_types[67]
2534#define SWIGTYPE_p_wxGenericDragImage swig_types[68]
2535#define SWIGTYPE_p_wxGridBagSizer swig_types[69]
2536#define SWIGTYPE_p_wxGridSizer swig_types[70]
2537#define SWIGTYPE_p_wxHelpEvent swig_types[71]
2538#define SWIGTYPE_p_wxHelpProvider swig_types[72]
2539#define SWIGTYPE_p_wxHyperlinkCtrl swig_types[73]
2540#define SWIGTYPE_p_wxHyperlinkEvent swig_types[74]
2541#define SWIGTYPE_p_wxICOHandler swig_types[75]
2542#define SWIGTYPE_p_wxIcon swig_types[76]
2543#define SWIGTYPE_p_wxIconizeEvent swig_types[77]
2544#define SWIGTYPE_p_wxIdleEvent swig_types[78]
2545#define SWIGTYPE_p_wxImage swig_types[79]
2546#define SWIGTYPE_p_wxImageHandler swig_types[80]
2547#define SWIGTYPE_p_wxImageList swig_types[81]
2548#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[82]
2549#define SWIGTYPE_p_wxInitDialogEvent swig_types[83]
2550#define SWIGTYPE_p_wxItemContainer swig_types[84]
2551#define SWIGTYPE_p_wxJPEGHandler swig_types[85]
2552#define SWIGTYPE_p_wxKeyEvent swig_types[86]
2553#define SWIGTYPE_p_wxLayoutConstraints swig_types[87]
2554#define SWIGTYPE_p_wxListBox swig_types[88]
2555#define SWIGTYPE_p_wxListEvent swig_types[89]
2556#define SWIGTYPE_p_wxListItem swig_types[90]
2557#define SWIGTYPE_p_wxListItemAttr swig_types[91]
2558#define SWIGTYPE_p_wxListView swig_types[92]
2559#define SWIGTYPE_p_wxListbook swig_types[93]
2560#define SWIGTYPE_p_wxListbookEvent swig_types[94]
2561#define SWIGTYPE_p_wxMaximizeEvent swig_types[95]
2562#define SWIGTYPE_p_wxMemoryDC swig_types[96]
2563#define SWIGTYPE_p_wxMenu swig_types[97]
2564#define SWIGTYPE_p_wxMenuBar swig_types[98]
2565#define SWIGTYPE_p_wxMenuEvent swig_types[99]
2566#define SWIGTYPE_p_wxMenuItem swig_types[100]
2567#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569#define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570#define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[105]
2572#define SWIGTYPE_p_wxNcPaintEvent swig_types[106]
2573#define SWIGTYPE_p_wxNotebook swig_types[107]
2574#define SWIGTYPE_p_wxNotebookEvent swig_types[108]
2575#define SWIGTYPE_p_wxNotifyEvent swig_types[109]
2576#define SWIGTYPE_p_wxObject swig_types[110]
2577#define SWIGTYPE_p_wxPCXHandler swig_types[111]
2578#define SWIGTYPE_p_wxPNGHandler swig_types[112]
2579#define SWIGTYPE_p_wxPNMHandler swig_types[113]
2580#define SWIGTYPE_p_wxPaintEvent swig_types[114]
2581#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[115]
2582#define SWIGTYPE_p_wxPaperSize swig_types[116]
2583#define SWIGTYPE_p_wxPickerBase swig_types[117]
2584#define SWIGTYPE_p_wxPoint swig_types[118]
2585#define SWIGTYPE_p_wxPyApp swig_types[119]
2586#define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587#define SWIGTYPE_p_wxPyControl swig_types[121]
2588#define SWIGTYPE_p_wxPyEvent swig_types[122]
2589#define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590#define SWIGTYPE_p_wxPyListCtrl swig_types[124]
2591#define SWIGTYPE_p_wxPySizer swig_types[125]
2592#define SWIGTYPE_p_wxPyTreeCtrl swig_types[126]
2593#define SWIGTYPE_p_wxPyTreeItemData swig_types[127]
2594#define SWIGTYPE_p_wxPyValidator swig_types[128]
2595#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596#define SWIGTYPE_p_wxRadioBox swig_types[130]
2597#define SWIGTYPE_p_wxRadioButton swig_types[131]
2598#define SWIGTYPE_p_wxRect swig_types[132]
2599#define SWIGTYPE_p_wxScrollBar swig_types[133]
2600#define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601#define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
2602#define SWIGTYPE_p_wxSetCursorEvent swig_types[136]
2603#define SWIGTYPE_p_wxShowEvent swig_types[137]
2604#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[138]
2605#define SWIGTYPE_p_wxSize swig_types[139]
2606#define SWIGTYPE_p_wxSizeEvent swig_types[140]
2607#define SWIGTYPE_p_wxSizer swig_types[141]
2608#define SWIGTYPE_p_wxSizerItem swig_types[142]
2609#define SWIGTYPE_p_wxSlider swig_types[143]
2610#define SWIGTYPE_p_wxSpinButton swig_types[144]
2611#define SWIGTYPE_p_wxSpinCtrl swig_types[145]
2612#define SWIGTYPE_p_wxSpinEvent swig_types[146]
2613#define SWIGTYPE_p_wxStaticBitmap swig_types[147]
2614#define SWIGTYPE_p_wxStaticBox swig_types[148]
2615#define SWIGTYPE_p_wxStaticBoxSizer swig_types[149]
2616#define SWIGTYPE_p_wxStaticLine swig_types[150]
2617#define SWIGTYPE_p_wxStaticText swig_types[151]
2618#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[152]
2619#define SWIGTYPE_p_wxString swig_types[153]
2620#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[154]
2621#define SWIGTYPE_p_wxTGAHandler swig_types[155]
2622#define SWIGTYPE_p_wxTIFFHandler swig_types[156]
2623#define SWIGTYPE_p_wxTextAttr swig_types[157]
2624#define SWIGTYPE_p_wxTextCtrl swig_types[158]
2625#define SWIGTYPE_p_wxTextUrlEvent swig_types[159]
2626#define SWIGTYPE_p_wxToggleButton swig_types[160]
2627#define SWIGTYPE_p_wxToolBar swig_types[161]
2628#define SWIGTYPE_p_wxToolBarBase swig_types[162]
2629#define SWIGTYPE_p_wxToolBarToolBase swig_types[163]
2630#define SWIGTYPE_p_wxToolbook swig_types[164]
2631#define SWIGTYPE_p_wxToolbookEvent swig_types[165]
2632#define SWIGTYPE_p_wxTreeEvent swig_types[166]
2633#define SWIGTYPE_p_wxTreeItemId swig_types[167]
2634#define SWIGTYPE_p_wxTreebook swig_types[168]
2635#define SWIGTYPE_p_wxTreebookEvent swig_types[169]
2636#define SWIGTYPE_p_wxUpdateUIEvent swig_types[170]
2637#define SWIGTYPE_p_wxValidator swig_types[171]
2638#define SWIGTYPE_p_wxVisualAttributes swig_types[172]
2639#define SWIGTYPE_p_wxWindow swig_types[173]
2640#define SWIGTYPE_p_wxWindowBase swig_types[174]
2641#define SWIGTYPE_p_wxWindowCreateEvent swig_types[175]
2642#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[176]
2643#define SWIGTYPE_p_wxXPMHandler swig_types[177]
2644static swig_type_info *swig_types[179];
2645static swig_module_info swig_module = {swig_types, 178, 0, 0, 0, 0};
32fe5131
RD
2646#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2647#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
36ed4f51
RD
2648
2649/* -------- TYPES TABLE (END) -------- */
2650
1bd55598
RD
2651#if (PY_VERSION_HEX <= 0x02000000)
2652# if !defined(SWIG_PYTHON_CLASSIC)
2653# error "This python version requires to use swig with the '-classic' option"
2654# endif
2655#endif
2656#if (PY_VERSION_HEX <= 0x02020000)
2657# error "This python version requires to use swig with the '-nomodern' option"
2658#endif
2659#if (PY_VERSION_HEX <= 0x02020000)
2660# error "This python version requires to use swig with the '-nomodernargs' option"
2661#endif
2662#ifndef METH_O
2663# error "This python version requires to use swig with the '-nofastunpack' option"
2664#endif
36ed4f51
RD
2665
2666/*-----------------------------------------------
2667 @(target):= _controls_.so
2668 ------------------------------------------------*/
2669#define SWIG_init init_controls_
2670
2671#define SWIG_name "_controls_"
2672
1bd55598
RD
2673#define SWIGVERSION 0x010329
2674
2675
2676#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2677#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2678
2679
2680#include <stdexcept>
2681
2682
2683namespace swig {
2684 class PyObject_ptr {
2685 protected:
2686 PyObject *_obj;
2687
2688 public:
2689 PyObject_ptr() :_obj(0)
2690 {
2691 }
2692
2693 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2694 {
2695 Py_XINCREF(_obj);
2696 }
2697
2698 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2699 {
2700 if (initial_ref) Py_XINCREF(_obj);
2701 }
2702
2703 PyObject_ptr & operator=(const PyObject_ptr& item)
2704 {
2705 Py_XINCREF(item._obj);
2706 Py_XDECREF(_obj);
2707 _obj = item._obj;
2708 return *this;
2709 }
2710
2711 ~PyObject_ptr()
2712 {
2713 Py_XDECREF(_obj);
2714 }
2715
2716 operator PyObject *() const
2717 {
2718 return _obj;
2719 }
2720
2721 PyObject *operator->() const
2722 {
2723 return _obj;
2724 }
2725 };
2726}
2727
2728
2729namespace swig {
2730 struct PyObject_var : PyObject_ptr {
2731 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2732
2733 PyObject_var & operator = (PyObject* obj)
2734 {
2735 Py_XDECREF(_obj);
2736 _obj = obj;
2737 return *this;
2738 }
2739 };
2740}
2741
2742
36ed4f51
RD
2743#include "wx/wxPython/wxPython.h"
2744#include "wx/wxPython/pyclasses.h"
2745
2746 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2747 static const wxString wxPyEmptyString(wxEmptyString);
2748 static const wxString wxPyControlNameStr(wxControlNameStr);
2749
2750 const wxArrayString wxPyEmptyStringArray;
2751
2752 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2753
1bd55598 2754 #define SWIG_From_long PyInt_FromLong
36ed4f51
RD
2755
2756
1bd55598
RD
2757SWIGINTERNINLINE PyObject *
2758SWIG_From_int (int value)
2759{
2760 return SWIG_From_long (value);
2761}
36ed4f51
RD
2762
2763
1bd55598
RD
2764#include <limits.h>
2765#ifndef LLONG_MIN
2766# define LLONG_MIN LONG_LONG_MIN
2767#endif
2768#ifndef LLONG_MAX
2769# define LLONG_MAX LONG_LONG_MAX
2770#endif
2771#ifndef ULLONG_MAX
2772# define ULLONG_MAX ULONG_LONG_MAX
2773#endif
36ed4f51
RD
2774
2775
2776SWIGINTERN int
1bd55598 2777SWIG_AsVal_long (PyObject* obj, long* val)
36ed4f51
RD
2778{
2779 if (PyNumber_Check(obj)) {
2780 if (val) *val = PyInt_AsLong(obj);
1bd55598 2781 return SWIG_OK;
36ed4f51 2782 }
1bd55598 2783 return SWIG_TypeError;
36ed4f51
RD
2784}
2785
2786
36ed4f51 2787SWIGINTERN int
1bd55598
RD
2788SWIG_AsVal_int (PyObject * obj, int *val)
2789{
36ed4f51 2790 long v;
1bd55598
RD
2791 int res = SWIG_AsVal_long (obj, &v);
2792 if (SWIG_IsOK(res)) {
2793 if ((v < INT_MIN || v > INT_MAX)) {
2794 return SWIG_OverflowError;
36ed4f51 2795 } else {
1bd55598 2796 if (val) *val = static_cast< int >(v);
36ed4f51 2797 }
1bd55598
RD
2798 }
2799 return res;
d55e5bfc
RD
2800}
2801
c370783e 2802 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
d55e5bfc 2803
36ed4f51 2804SWIGINTERN int
1bd55598 2805SWIG_AsVal_bool (PyObject *obj, bool *val)
d55e5bfc 2806{
c370783e
RD
2807 if (obj == Py_True) {
2808 if (val) *val = true;
1bd55598
RD
2809 return SWIG_OK;
2810 } else if (obj == Py_False) {
c370783e 2811 if (val) *val = false;
1bd55598 2812 return SWIG_OK;
36ed4f51 2813 } else {
1bd55598
RD
2814 long v = 0;
2815 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2816 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2817 return res;
c370783e 2818 }
d55e5bfc
RD
2819}
2820
2821 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2822 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2823 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2824 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2825 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2826 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2827
2828#include <wx/checklst.h>
d55e5bfc
RD
2829
2830 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
1bd55598 2831SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2832 if (clientData)
2833 {
d55e5bfc
RD
2834 wxPyClientData* data = new wxPyClientData(clientData);
2835 self->Insert(item, pos, data);
e9d6f3a4
RD
2836 }
2837 else
d55e5bfc
RD
2838 self->Insert(item, pos);
2839 }
50f151d7
RD
2840
2841SWIGINTERN int
2842SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2843{
2844 long v = 0;
2845 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2846 return SWIG_TypeError;
2847 }
2848 else if (val)
2849 *val = (unsigned long)v;
2850 return SWIG_OK;
2851}
2852
2853
2854SWIGINTERN int
2855SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2856{
2857 unsigned long v;
2858 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2859 if (SWIG_IsOK(res)) {
2860 if ((v > UINT_MAX)) {
2861 return SWIG_OverflowError;
2862 } else {
2863 if (val) *val = static_cast< unsigned int >(v);
2864 }
2865 }
2866 return res;
2867}
2868
1bd55598 2869SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2870 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2871 wxArrayInt lst;
2872 self->GetSelections(lst);
2873 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2874 for (size_t i=0; i<lst.GetCount(); i++)
2875 {
7e08d4ef
RD
2876 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2877 }
e9d6f3a4 2878 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2879 return tup;
2880 }
1bd55598 2881SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2882 #ifdef __WXMSW__
2883 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2884 self->GetItem(item)->SetTextColour(c);
2885 #endif
2886 }
1bd55598 2887SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2888 #ifdef __WXMSW__
2889 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2890 self->GetItem(item)->SetBackgroundColour(c);
2891 #endif
2892 }
1bd55598 2893SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
d55e5bfc
RD
2894 #ifdef __WXMSW__
2895 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2896 self->GetItem(item)->SetFont(f);
2897 #endif
2898 }
2899 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
1bd55598 2900SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d55e5bfc
RD
2901 self->AppendText(text);
2902 }
1bd55598 2903SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d55e5bfc
RD
2904 return self->GetValue().Mid(from, to - from);
2905 }
2906 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2907 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2908 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2909 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2910 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2911
1c71765a
RD
2912SWIGINTERNINLINE PyObject*
2913SWIG_From_unsigned_SS_long (unsigned long value)
2914{
2915 return (value > LONG_MAX) ?
2916 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2917}
2918
2919
2920SWIGINTERNINLINE PyObject *
2921SWIG_From_size_t (size_t value)
2922{
2923 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2924}
2925
2926
50f151d7
RD
2927SWIGINTERNINLINE PyObject *
2928SWIG_From_unsigned_SS_int (unsigned int value)
2929{
2930 return SWIG_From_unsigned_SS_long (value);
2931}
2932
2933
d55e5bfc
RD
2934#include <wx/slider.h>
2935
2936
2937 static const wxString wxPySliderNameStr(wxSliderNameStr);
2938 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2939
2940#if !wxUSE_TOGGLEBTN
2941// implement dummy items for platforms that don't have this class
2942
2943#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2944
2945class wxToggleButton : public wxControl
2946{
2947public:
2948 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2949 const wxPoint&, const wxSize&, long,
2950 const wxValidator&, const wxString&)
2951 { wxPyRaiseNotImplemented(); }
2952
2953 wxToggleButton()
2954 { wxPyRaiseNotImplemented(); }
2955};
2956#endif
2957
51b83b37 2958 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
d55e5bfc 2959
7e08d4ef 2960SWIGINTERNINLINE int
1bd55598 2961SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2962{
7e08d4ef 2963 unsigned long v;
1bd55598
RD
2964 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2965 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2966 return res;
7e08d4ef 2967}
7e08d4ef 2968
d55e5bfc 2969 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
1bd55598 2970SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d55e5bfc
RD
2971 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2972 if (udata) {
2973 Py_INCREF(udata->m_obj);
2974 return udata->m_obj;
2975 } else {
2976 Py_INCREF(Py_None);
2977 return Py_None;
2978 }
2979 }
1bd55598 2980SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d55e5bfc
RD
2981 self->SetClientData(new wxPyUserData(clientData));
2982 }
1bd55598 2983SWIGINTERN 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
2984 wxPyUserData* udata = NULL;
2985 if (clientData && clientData != Py_None)
2986 udata = new wxPyUserData(clientData);
2987 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2988 shortHelp, longHelp, udata);
2989 }
1bd55598 2990SWIGINTERN 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
2991 wxPyUserData* udata = NULL;
2992 if (clientData && clientData != Py_None)
2993 udata = new wxPyUserData(clientData);
2994 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2995 shortHelp, longHelp, udata);
2996 }
1bd55598 2997SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d55e5bfc
RD
2998 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2999 if (udata) {
3000 Py_INCREF(udata->m_obj);
3001 return udata->m_obj;
3002 } else {
3003 Py_INCREF(Py_None);
3004 return Py_None;
3005 }
3006 }
1bd55598 3007SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d55e5bfc
RD
3008 self->SetToolClientData(id, new wxPyUserData(clientData));
3009 }
3010
3011#include <wx/listctrl.h>
3012
fef4c27a 3013 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
1bd55598 3014SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d55e5bfc
RD
3015 // Python aware sorting function for wxPyListCtrl
3016 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3017 int retval = 0;
3018 PyObject* func = (PyObject*)funcPtr;
5a446332 3019 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3020
3021 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3022 PyObject* result = PyEval_CallObject(func, args);
3023 Py_DECREF(args);
3024 if (result) {
3025 retval = PyInt_AsLong(result);
3026 Py_DECREF(result);
3027 }
3028
3029 wxPyEndBlockThreads(blocked);
3030 return retval;
3031 }
3032
3033 // C++ Version of a Python aware class
3034class wxPyListCtrl : public wxListCtrl {
32fe5131 3035 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d55e5bfc
RD
3036public:
3037 wxPyListCtrl() : wxListCtrl() {}
3038 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3039 const wxPoint& pos,
3040 const wxSize& size,
3041 long style,
3042 const wxValidator& validator,
3043 const wxString& name) :
3044 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3045
3046 bool Create(wxWindow* parent, wxWindowID id,
3047 const wxPoint& pos,
3048 const wxSize& size,
3049 long style,
3050 const wxValidator& validator,
3051 const wxString& name) {
3052 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3053 }
3054
3055 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d55e5bfc
RD
3056 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3057
84f85550
RD
3058 // use the virtual version to avoid a confusing assert in the base class
3059 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3060 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3061
d55e5bfc
RD
3062 PYPRIVATE;
3063};
3064
3065IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3066
3067IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d55e5bfc 3068IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3069IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
c25f90f6 3070IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
7e08d4ef 3071
d55e5bfc 3072
1bd55598 3073SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d55e5bfc
RD
3074 wxListItem item;
3075 item.SetMask( wxLIST_MASK_STATE |
3076 wxLIST_MASK_TEXT |
3077 wxLIST_MASK_IMAGE |
3078 wxLIST_MASK_DATA |
3079 wxLIST_SET_ITEM |
3080 wxLIST_MASK_WIDTH |
3081 wxLIST_MASK_FORMAT
3082 );
3083 if (self->GetColumn(col, item))
3084 return new wxListItem(item);
3085 else
3086 return NULL;
3087 }
1bd55598 3088SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d55e5bfc
RD
3089 wxListItem* info = new wxListItem;
3090 info->m_itemId = itemId;
3091 info->m_col = col;
3092 info->m_mask = 0xFFFF;
3093 self->GetItem(*info);
3094 return info;
3095 }
1bd55598 3096SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d55e5bfc
RD
3097 wxPoint pos;
3098 self->GetItemPosition(item, pos);
3099 return pos;
3100 }
1bd55598 3101SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d55e5bfc
RD
3102 wxRect rect;
3103 self->GetItemRect(item, rect, code);
3104 return rect;
3105 }
1bd55598 3106SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d55e5bfc 3107 if (!PyCallable_Check(func))
b411df4a 3108 return false;
d55e5bfc
RD
3109 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3110 }
1bd55598 3111SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d55e5bfc 3112
6a223074
RD
3113 return self;
3114
d55e5bfc
RD
3115
3116
d55e5bfc
RD
3117 }
3118
3119#include <wx/treectrl.h>
3120#include "wx/wxPython/pytree.h"
3121
3122 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
1bd55598
RD
3123SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3124SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3125SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
b02396e8
RD
3126
3127 static wxTreeItemId wxNullTreeItemId;
3128
d55e5bfc
RD
3129 // C++ version of Python aware wxTreeCtrl
3130class wxPyTreeCtrl : public wxTreeCtrl {
32fe5131 3131 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d55e5bfc
RD
3132public:
3133 wxPyTreeCtrl() : wxTreeCtrl() {}
3134 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3135 const wxPoint& pos,
3136 const wxSize& size,
3137 long style,
3138 const wxValidator& validator,
3139 const wxString& name) :
3140 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3141
3142 bool Create(wxWindow *parent, wxWindowID id,
3143 const wxPoint& pos,
3144 const wxSize& size,
3145 long style,
3146 const wxValidator& validator,
3147 const wxString& name) {
3148 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3149 }
3150
3151
3152 int OnCompareItems(const wxTreeItemId& item1,
3153 const wxTreeItemId& item2) {
3154 int rval = 0;
3155 bool found;
5a446332 3156 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3157 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
b411df4a
RD
3158 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3159 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d55e5bfc
RD
3160 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3161 Py_DECREF(o1);
3162 Py_DECREF(o2);
3163 }
3164 wxPyEndBlockThreads(blocked);
3165 if (! found)
3166 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3167 return rval;
3168 }
3169 PYPRIVATE;
3170};
3171
3172IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3173
3174
1bd55598 3175SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3176 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3177 if (data == NULL) {
3178 data = new wxPyTreeItemData();
3179 data->SetId(item); // set the id
3180 self->SetItemData(item, data);
3181 }
3182 return data;
3183 }
1bd55598 3184SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3185 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3186 if (data == NULL) {
3187 data = new wxPyTreeItemData();
3188 data->SetId(item); // set the id
3189 self->SetItemData(item, data);
3190 }
3191 return data->GetData();
3192 }
1bd55598 3193SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d55e5bfc
RD
3194 data->SetId(item); // set the id
3195 self->SetItemData(item, data);
3196 }
1bd55598 3197SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d55e5bfc
RD
3198 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3199 if (data == NULL) {
3200 data = new wxPyTreeItemData(obj);
3201 data->SetId(item); // set the id
3202 self->SetItemData(item, data);
3203 } else
3204 data->SetData(obj);
3205 }
1bd55598 3206SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3207 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3208 PyObject* rval = PyList_New(0);
3209 wxArrayTreeItemIds array;
3210 size_t num, x;
3211 num = self->GetSelections(array);
3212 for (x=0; x < num; x++) {
3213 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
b411df4a 3214 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d55e5bfc 3215 PyList_Append(rval, item);
68e533f8 3216 Py_DECREF(item);
d55e5bfc
RD
3217 }
3218 wxPyEndBlockThreads(blocked);
3219 return rval;
3220 }
1bd55598 3221SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3222 void* cookie = 0;
3223 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3224 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3225 PyObject* tup = PyTuple_New(2);
b411df4a 3226 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3227 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3228 wxPyEndBlockThreads(blocked);
3229 return tup;
3230 }
1bd55598 3231SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
d55e5bfc 3232 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3233 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3234 PyObject* tup = PyTuple_New(2);
b411df4a 3235 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3236 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3237 wxPyEndBlockThreads(blocked);
3238 return tup;
3239 }
1bd55598 3240SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d55e5bfc
RD
3241 wxRect rect;
3242 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3243 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3244 wxRect* r = new wxRect(rect);
b411df4a 3245 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
d55e5bfc
RD
3246 wxPyEndBlockThreads(blocked);
3247 return val;
3248 }
3249 else
3250 RETURN_NONE();
3251 }
3252 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c370783e 3253
32fe5131 3254SWIGINTERNINLINE PyObject*
1bd55598 3255 SWIG_From_bool (bool value)
c370783e 3256{
1bd55598 3257 return PyBool_FromLong(value ? 1 : 0);
c370783e
RD
3258}
3259
d55e5bfc
RD
3260 // C++ version of Python aware wxControl
3261class wxPyControl : public wxControl
3262{
3263 DECLARE_DYNAMIC_CLASS(wxPyControl)
3264public:
3265 wxPyControl() : wxControl() {}
3266 wxPyControl(wxWindow* parent, const wxWindowID id,
3267 const wxPoint& pos = wxDefaultPosition,
3268 const wxSize& size = wxDefaultSize,
3269 long style = 0,
3270 const wxValidator& validator=wxDefaultValidator,
3271 const wxString& name = wxPyControlNameStr)
3272 : wxControl(parent, id, pos, size, style, validator, name) {}
3273
3274
976dbff5
RD
3275 bool DoEraseBackground(wxDC* dc) {
3276#ifdef __WXMSW__
3277 return wxWindow::DoEraseBackground(dc->GetHDC());
3278#else
3279 dc->SetBackground(wxBrush(GetBackgroundColour()));
3280 dc->Clear();
3281 return true;
3282#endif
3283 }
3284
d55e5bfc
RD
3285 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3286 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3287 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3288 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3289
3290 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3291 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3292 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3293
3294 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3295 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3296
3297 DEC_PYCALLBACK__(InitDialog);
3298 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3299 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3300 DEC_PYCALLBACK_BOOL_(Validate);
3301
3302 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3303 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3304 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3305
3306 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3307 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3308
a5ee0656 3309 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
a5ee0656 3310 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
d55e5bfc 3311
51b83b37
RD
3312 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3313
8d38bd1d
RD
3314 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3315
d55e5bfc
RD
3316 PYPRIVATE;
3317};
3318
3319IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3320
3321IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3322IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3323IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3324IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3325
3326IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3327IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3328IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3329
3330IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3331IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3332
3333IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3334IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3335IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3336IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3337
3338IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3339IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3340IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3341
3342IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3343IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3344
a5ee0656 3345IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
a5ee0656 3346IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d55e5bfc 3347
51b83b37 3348IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3349
3350IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3351
d55e5bfc
RD
3352
3353
1bd55598 3354SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
d55e5bfc
RD
3355
3356#include <wx/generic/dragimgg.h>
3357
53aa7709 3358 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
1bd55598 3359SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3360 wxDateTime rv;
3361 self->GetRange(&rv, NULL);
3362 return rv;
3363 }
1bd55598 3364SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3365 wxDateTime rv;
3366 self->GetRange(NULL, &rv);
3367 return rv;
3368 }
704eda0c 3369 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
b850e7f3
RD
3370 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3371 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3372 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3373 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3374 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3375 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3376 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
5172800e 3377 static const wxString wxPyCollapsiblePaneNameStr(wxCollapsiblePaneNameStr);
d55e5bfc
RD
3378#ifdef __cplusplus
3379extern "C" {
3380#endif
1bd55598
RD
3381SWIGINTERN int ButtonNameStr_set(PyObject *) {
3382 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3383 return 1;
d55e5bfc
RD
3384}
3385
3386
1bd55598
RD
3387SWIGINTERN PyObject *ButtonNameStr_get(void) {
3388 PyObject *pyobj = 0;
3389
3390 {
d55e5bfc 3391#if wxUSE_UNICODE
1bd55598 3392 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3393#else
1bd55598 3394 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3395#endif
1bd55598
RD
3396 }
3397 return pyobj;
3398}
3399
3400
3401SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3402 PyObject *resultobj = 0;
3403 wxWindow *arg1 = (wxWindow *) 0 ;
3404 int arg2 = (int) -1 ;
3405 wxString const &arg3_defvalue = wxPyEmptyString ;
3406 wxString *arg3 = (wxString *) &arg3_defvalue ;
3407 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3408 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3409 wxSize const &arg5_defvalue = wxDefaultSize ;
3410 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3411 long arg6 = (long) 0 ;
3412 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3413 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3414 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3415 wxString *arg8 = (wxString *) &arg8_defvalue ;
3416 wxButton *result = 0 ;
3417 void *argp1 = 0 ;
3418 int res1 = 0 ;
3419 int val2 ;
3420 int ecode2 = 0 ;
3421 bool temp3 = false ;
3422 wxPoint temp4 ;
3423 wxSize temp5 ;
3424 long val6 ;
3425 int ecode6 = 0 ;
3426 void *argp7 = 0 ;
3427 int res7 = 0 ;
3428 bool temp8 = false ;
3429 PyObject * obj0 = 0 ;
3430 PyObject * obj1 = 0 ;
3431 PyObject * obj2 = 0 ;
3432 PyObject * obj3 = 0 ;
3433 PyObject * obj4 = 0 ;
3434 PyObject * obj5 = 0 ;
3435 PyObject * obj6 = 0 ;
3436 PyObject * obj7 = 0 ;
3437 char * kwnames[] = {
3438 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3439 };
3440
3441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3443 if (!SWIG_IsOK(res1)) {
3444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3445 }
3446 arg1 = reinterpret_cast< wxWindow * >(argp1);
3447 if (obj1) {
3448 ecode2 = SWIG_AsVal_int(obj1, &val2);
3449 if (!SWIG_IsOK(ecode2)) {
3450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3451 }
3452 arg2 = static_cast< int >(val2);
3453 }
3454 if (obj2) {
d55e5bfc 3455 {
1bd55598
RD
3456 arg3 = wxString_in_helper(obj2);
3457 if (arg3 == NULL) SWIG_fail;
3458 temp3 = true;
d55e5bfc 3459 }
1bd55598
RD
3460 }
3461 if (obj3) {
d55e5bfc 3462 {
1bd55598
RD
3463 arg4 = &temp4;
3464 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3465 }
1bd55598
RD
3466 }
3467 if (obj4) {
d55e5bfc 3468 {
1bd55598
RD
3469 arg5 = &temp5;
3470 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3471 }
1bd55598
RD
3472 }
3473 if (obj5) {
3474 ecode6 = SWIG_AsVal_long(obj5, &val6);
3475 if (!SWIG_IsOK(ecode6)) {
3476 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3477 }
3478 arg6 = static_cast< long >(val6);
3479 }
3480 if (obj6) {
3481 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3482 if (!SWIG_IsOK(res7)) {
3483 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3484 }
1bd55598
RD
3485 if (!argp7) {
3486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3487 }
1bd55598
RD
3488 arg7 = reinterpret_cast< wxValidator * >(argp7);
3489 }
3490 if (obj7) {
d55e5bfc 3491 {
1bd55598
RD
3492 arg8 = wxString_in_helper(obj7);
3493 if (arg8 == NULL) SWIG_fail;
3494 temp8 = true;
d55e5bfc 3495 }
1bd55598
RD
3496 }
3497 {
3498 if (!wxPyCheckForApp()) SWIG_fail;
3499 PyThreadState* __tstate = wxPyBeginAllowThreads();
3500 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3501 wxPyEndAllowThreads(__tstate);
3502 if (PyErr_Occurred()) SWIG_fail;
3503 }
3504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3505 {
3506 if (temp3)
3507 delete arg3;
3508 }
3509 {
3510 if (temp8)
3511 delete arg8;
3512 }
3513 return resultobj;
3514fail:
3515 {
3516 if (temp3)
3517 delete arg3;
3518 }
3519 {
3520 if (temp8)
3521 delete arg8;
3522 }
3523 return NULL;
d55e5bfc
RD
3524}
3525
3526
1bd55598
RD
3527SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3528 PyObject *resultobj = 0;
3529 wxButton *result = 0 ;
3530
3531 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3532 {
3533 if (!wxPyCheckForApp()) SWIG_fail;
3534 PyThreadState* __tstate = wxPyBeginAllowThreads();
3535 result = (wxButton *)new wxButton();
3536 wxPyEndAllowThreads(__tstate);
3537 if (PyErr_Occurred()) SWIG_fail;
3538 }
3539 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3540 return resultobj;
3541fail:
3542 return NULL;
3543}
3544
3545
3546SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3547 PyObject *resultobj = 0;
3548 wxButton *arg1 = (wxButton *) 0 ;
3549 wxWindow *arg2 = (wxWindow *) 0 ;
3550 int arg3 = (int) -1 ;
3551 wxString const &arg4_defvalue = wxPyEmptyString ;
3552 wxString *arg4 = (wxString *) &arg4_defvalue ;
3553 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3554 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3555 wxSize const &arg6_defvalue = wxDefaultSize ;
3556 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3557 long arg7 = (long) 0 ;
3558 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3559 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3560 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3561 wxString *arg9 = (wxString *) &arg9_defvalue ;
3562 bool result;
3563 void *argp1 = 0 ;
3564 int res1 = 0 ;
3565 void *argp2 = 0 ;
3566 int res2 = 0 ;
3567 int val3 ;
3568 int ecode3 = 0 ;
3569 bool temp4 = false ;
3570 wxPoint temp5 ;
3571 wxSize temp6 ;
3572 long val7 ;
3573 int ecode7 = 0 ;
3574 void *argp8 = 0 ;
3575 int res8 = 0 ;
3576 bool temp9 = false ;
3577 PyObject * obj0 = 0 ;
3578 PyObject * obj1 = 0 ;
3579 PyObject * obj2 = 0 ;
3580 PyObject * obj3 = 0 ;
3581 PyObject * obj4 = 0 ;
3582 PyObject * obj5 = 0 ;
3583 PyObject * obj6 = 0 ;
3584 PyObject * obj7 = 0 ;
3585 PyObject * obj8 = 0 ;
3586 char * kwnames[] = {
3587 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3588 };
3589
3590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3592 if (!SWIG_IsOK(res1)) {
3593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3594 }
3595 arg1 = reinterpret_cast< wxButton * >(argp1);
3596 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3597 if (!SWIG_IsOK(res2)) {
3598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3599 }
3600 arg2 = reinterpret_cast< wxWindow * >(argp2);
3601 if (obj2) {
3602 ecode3 = SWIG_AsVal_int(obj2, &val3);
3603 if (!SWIG_IsOK(ecode3)) {
3604 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3605 }
3606 arg3 = static_cast< int >(val3);
3607 }
3608 if (obj3) {
d55e5bfc 3609 {
1bd55598
RD
3610 arg4 = wxString_in_helper(obj3);
3611 if (arg4 == NULL) SWIG_fail;
3612 temp4 = true;
d55e5bfc 3613 }
1bd55598
RD
3614 }
3615 if (obj4) {
d55e5bfc 3616 {
1bd55598
RD
3617 arg5 = &temp5;
3618 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3619 }
1bd55598
RD
3620 }
3621 if (obj5) {
d55e5bfc 3622 {
1bd55598
RD
3623 arg6 = &temp6;
3624 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 3625 }
1bd55598
RD
3626 }
3627 if (obj6) {
3628 ecode7 = SWIG_AsVal_long(obj6, &val7);
3629 if (!SWIG_IsOK(ecode7)) {
3630 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3631 }
3632 arg7 = static_cast< long >(val7);
3633 }
3634 if (obj7) {
3635 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3636 if (!SWIG_IsOK(res8)) {
3637 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3638 }
1bd55598
RD
3639 if (!argp8) {
3640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3641 }
1bd55598
RD
3642 arg8 = reinterpret_cast< wxValidator * >(argp8);
3643 }
3644 if (obj8) {
d55e5bfc 3645 {
1bd55598
RD
3646 arg9 = wxString_in_helper(obj8);
3647 if (arg9 == NULL) SWIG_fail;
3648 temp9 = true;
d55e5bfc 3649 }
1bd55598
RD
3650 }
3651 {
3652 PyThreadState* __tstate = wxPyBeginAllowThreads();
3653 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3654 wxPyEndAllowThreads(__tstate);
3655 if (PyErr_Occurred()) SWIG_fail;
3656 }
3657 {
3658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3659 }
3660 {
3661 if (temp4)
3662 delete arg4;
3663 }
3664 {
3665 if (temp9)
3666 delete arg9;
3667 }
3668 return resultobj;
3669fail:
3670 {
3671 if (temp4)
3672 delete arg4;
3673 }
3674 {
3675 if (temp9)
3676 delete arg9;
3677 }
3678 return NULL;
d55e5bfc
RD
3679}
3680
3681
1bd55598
RD
3682SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3683 PyObject *resultobj = 0;
3684 wxButton *arg1 = (wxButton *) 0 ;
3685 void *argp1 = 0 ;
3686 int res1 = 0 ;
3687 PyObject *swig_obj[1] ;
3688
3689 if (!args) SWIG_fail;
3690 swig_obj[0] = args;
3691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3692 if (!SWIG_IsOK(res1)) {
3693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3694 }
3695 arg1 = reinterpret_cast< wxButton * >(argp1);
3696 {
3697 PyThreadState* __tstate = wxPyBeginAllowThreads();
3698 (arg1)->SetDefault();
3699 wxPyEndAllowThreads(__tstate);
3700 if (PyErr_Occurred()) SWIG_fail;
3701 }
3702 resultobj = SWIG_Py_Void();
3703 return resultobj;
3704fail:
3705 return NULL;
d55e5bfc
RD
3706}
3707
3708
1bd55598
RD
3709SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3710 PyObject *resultobj = 0;
3711 wxSize result;
3712
3713 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3714 {
3715 PyThreadState* __tstate = wxPyBeginAllowThreads();
3716 result = wxButton::GetDefaultSize();
3717 wxPyEndAllowThreads(__tstate);
3718 if (PyErr_Occurred()) SWIG_fail;
3719 }
3720 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3721 return resultobj;
3722fail:
3723 return NULL;
3724}
3725
3726
3727SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3728 PyObject *resultobj = 0;
3729 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3730 SwigValueWrapper<wxVisualAttributes > result;
3731 int val1 ;
3732 int ecode1 = 0 ;
3733 PyObject * obj0 = 0 ;
3734 char * kwnames[] = {
3735 (char *) "variant", NULL
3736 };
3737
3738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3739 if (obj0) {
3740 ecode1 = SWIG_AsVal_int(obj0, &val1);
3741 if (!SWIG_IsOK(ecode1)) {
3742 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3743 }
3744 arg1 = static_cast< wxWindowVariant >(val1);
3745 }
3746 {
3747 if (!wxPyCheckForApp()) SWIG_fail;
3748 PyThreadState* __tstate = wxPyBeginAllowThreads();
3749 result = wxButton::GetClassDefaultAttributes(arg1);
3750 wxPyEndAllowThreads(__tstate);
3751 if (PyErr_Occurred()) SWIG_fail;
3752 }
3753 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3754 return resultobj;
3755fail:
3756 return NULL;
3757}
3758
3759
3760SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3761 PyObject *obj;
3762 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3763 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3764 return SWIG_Py_Void();
3765}
3766
3767SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3768 return SWIG_Python_InitShadowInstance(args);
3769}
3770
3771SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3772 PyObject *resultobj = 0;
3773 wxWindow *arg1 = (wxWindow *) 0 ;
3774 int arg2 = (int) -1 ;
3775 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3776 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3777 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3778 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3779 wxSize const &arg5_defvalue = wxDefaultSize ;
3780 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3781 long arg6 = (long) wxBU_AUTODRAW ;
3782 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3783 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3784 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3785 wxString *arg8 = (wxString *) &arg8_defvalue ;
3786 wxBitmapButton *result = 0 ;
3787 void *argp1 = 0 ;
3788 int res1 = 0 ;
3789 int val2 ;
3790 int ecode2 = 0 ;
3791 void *argp3 = 0 ;
3792 int res3 = 0 ;
3793 wxPoint temp4 ;
3794 wxSize temp5 ;
3795 long val6 ;
3796 int ecode6 = 0 ;
3797 void *argp7 = 0 ;
3798 int res7 = 0 ;
3799 bool temp8 = false ;
3800 PyObject * obj0 = 0 ;
3801 PyObject * obj1 = 0 ;
3802 PyObject * obj2 = 0 ;
3803 PyObject * obj3 = 0 ;
3804 PyObject * obj4 = 0 ;
3805 PyObject * obj5 = 0 ;
3806 PyObject * obj6 = 0 ;
3807 PyObject * obj7 = 0 ;
3808 char * kwnames[] = {
3809 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3810 };
3811
3812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3814 if (!SWIG_IsOK(res1)) {
3815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3816 }
3817 arg1 = reinterpret_cast< wxWindow * >(argp1);
3818 if (obj1) {
3819 ecode2 = SWIG_AsVal_int(obj1, &val2);
3820 if (!SWIG_IsOK(ecode2)) {
3821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3822 }
3823 arg2 = static_cast< int >(val2);
3824 }
3825 if (obj2) {
3826 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3827 if (!SWIG_IsOK(res3)) {
3828 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3829 }
3830 if (!argp3) {
3831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3832 }
3833 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3834 }
3835 if (obj3) {
d55e5bfc 3836 {
1bd55598
RD
3837 arg4 = &temp4;
3838 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3839 }
1bd55598
RD
3840 }
3841 if (obj4) {
d55e5bfc 3842 {
1bd55598
RD
3843 arg5 = &temp5;
3844 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3845 }
1bd55598
RD
3846 }
3847 if (obj5) {
3848 ecode6 = SWIG_AsVal_long(obj5, &val6);
3849 if (!SWIG_IsOK(ecode6)) {
3850 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3851 }
3852 arg6 = static_cast< long >(val6);
3853 }
3854 if (obj6) {
3855 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3856 if (!SWIG_IsOK(res7)) {
3857 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3858 }
1bd55598
RD
3859 if (!argp7) {
3860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3861 }
1bd55598
RD
3862 arg7 = reinterpret_cast< wxValidator * >(argp7);
3863 }
3864 if (obj7) {
f20a2e1f 3865 {
1bd55598
RD
3866 arg8 = wxString_in_helper(obj7);
3867 if (arg8 == NULL) SWIG_fail;
3868 temp8 = true;
f20a2e1f 3869 }
1bd55598
RD
3870 }
3871 {
3872 if (!wxPyCheckForApp()) SWIG_fail;
3873 PyThreadState* __tstate = wxPyBeginAllowThreads();
3874 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3875 wxPyEndAllowThreads(__tstate);
3876 if (PyErr_Occurred()) SWIG_fail;
3877 }
3878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3879 {
3880 if (temp8)
3881 delete arg8;
3882 }
3883 return resultobj;
3884fail:
3885 {
3886 if (temp8)
3887 delete arg8;
3888 }
3889 return NULL;
f20a2e1f
RD
3890}
3891
3892
1bd55598
RD
3893SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3894 PyObject *resultobj = 0;
3895 wxBitmapButton *result = 0 ;
3896
3897 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3898 {
3899 if (!wxPyCheckForApp()) SWIG_fail;
3900 PyThreadState* __tstate = wxPyBeginAllowThreads();
3901 result = (wxBitmapButton *)new wxBitmapButton();
3902 wxPyEndAllowThreads(__tstate);
3903 if (PyErr_Occurred()) SWIG_fail;
3904 }
3905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3906 return resultobj;
3907fail:
3908 return NULL;
3909}
3910
3911
3912SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3913 PyObject *resultobj = 0;
3914 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3915 wxWindow *arg2 = (wxWindow *) 0 ;
3916 int arg3 = (int) -1 ;
3917 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3918 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3919 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3920 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3921 wxSize const &arg6_defvalue = wxDefaultSize ;
3922 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3923 long arg7 = (long) wxBU_AUTODRAW ;
3924 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3925 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3926 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3927 wxString *arg9 = (wxString *) &arg9_defvalue ;
3928 bool result;
3929 void *argp1 = 0 ;
3930 int res1 = 0 ;
3931 void *argp2 = 0 ;
3932 int res2 = 0 ;
3933 int val3 ;
3934 int ecode3 = 0 ;
3935 void *argp4 = 0 ;
3936 int res4 = 0 ;
3937 wxPoint temp5 ;
3938 wxSize temp6 ;
3939 long val7 ;
3940 int ecode7 = 0 ;
3941 void *argp8 = 0 ;
3942 int res8 = 0 ;
3943 bool temp9 = false ;
3944 PyObject * obj0 = 0 ;
3945 PyObject * obj1 = 0 ;
3946 PyObject * obj2 = 0 ;
3947 PyObject * obj3 = 0 ;
3948 PyObject * obj4 = 0 ;
3949 PyObject * obj5 = 0 ;
3950 PyObject * obj6 = 0 ;
3951 PyObject * obj7 = 0 ;
3952 PyObject * obj8 = 0 ;
3953 char * kwnames[] = {
3954 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3955 };
3956
3957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3959 if (!SWIG_IsOK(res1)) {
3960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3961 }
3962 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3963 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3964 if (!SWIG_IsOK(res2)) {
3965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3966 }
3967 arg2 = reinterpret_cast< wxWindow * >(argp2);
3968 if (obj2) {
3969 ecode3 = SWIG_AsVal_int(obj2, &val3);
3970 if (!SWIG_IsOK(ecode3)) {
3971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3972 }
3973 arg3 = static_cast< int >(val3);
3974 }
3975 if (obj3) {
3976 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3977 if (!SWIG_IsOK(res4)) {
3978 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3979 }
1bd55598
RD
3980 if (!argp4) {
3981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3982 }
1bd55598
RD
3983 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3984 }
3985 if (obj4) {
d55e5bfc 3986 {
1bd55598
RD
3987 arg5 = &temp5;
3988 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3989 }
1bd55598
RD
3990 }
3991 if (obj5) {
d55e5bfc 3992 {
1bd55598
RD
3993 arg6 = &temp6;
3994 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3995 }
3996 }
3997 if (obj6) {
3998 ecode7 = SWIG_AsVal_long(obj6, &val7);
3999 if (!SWIG_IsOK(ecode7)) {
4000 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
4001 }
4002 arg7 = static_cast< long >(val7);
4003 }
4004 if (obj7) {
4005 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4006 if (!SWIG_IsOK(res8)) {
4007 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4008 }
4009 if (!argp8) {
4010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4011 }
1bd55598
RD
4012 arg8 = reinterpret_cast< wxValidator * >(argp8);
4013 }
4014 if (obj8) {
d55e5bfc 4015 {
1bd55598
RD
4016 arg9 = wxString_in_helper(obj8);
4017 if (arg9 == NULL) SWIG_fail;
4018 temp9 = true;
d55e5bfc 4019 }
1bd55598
RD
4020 }
4021 {
4022 PyThreadState* __tstate = wxPyBeginAllowThreads();
4023 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4024 wxPyEndAllowThreads(__tstate);
4025 if (PyErr_Occurred()) SWIG_fail;
4026 }
4027 {
4028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4029 }
4030 {
4031 if (temp9)
4032 delete arg9;
4033 }
4034 return resultobj;
4035fail:
4036 {
4037 if (temp9)
4038 delete arg9;
4039 }
4040 return NULL;
d55e5bfc
RD
4041}
4042
4043
1bd55598
RD
4044SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4045 PyObject *resultobj = 0;
4046 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4047 wxBitmap result;
4048 void *argp1 = 0 ;
4049 int res1 = 0 ;
4050 PyObject *swig_obj[1] ;
4051
4052 if (!args) SWIG_fail;
4053 swig_obj[0] = args;
4054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4055 if (!SWIG_IsOK(res1)) {
4056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4057 }
4058 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4059 {
4060 PyThreadState* __tstate = wxPyBeginAllowThreads();
4061 result = (arg1)->GetBitmapLabel();
4062 wxPyEndAllowThreads(__tstate);
4063 if (PyErr_Occurred()) SWIG_fail;
4064 }
4065 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4066 return resultobj;
4067fail:
4068 return NULL;
d55e5bfc
RD
4069}
4070
4071
1bd55598
RD
4072SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4073 PyObject *resultobj = 0;
4074 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4075 wxBitmap result;
4076 void *argp1 = 0 ;
4077 int res1 = 0 ;
4078 PyObject *swig_obj[1] ;
4079
4080 if (!args) SWIG_fail;
4081 swig_obj[0] = args;
4082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4083 if (!SWIG_IsOK(res1)) {
4084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4085 }
4086 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4087 {
4088 PyThreadState* __tstate = wxPyBeginAllowThreads();
4089 result = (arg1)->GetBitmapDisabled();
4090 wxPyEndAllowThreads(__tstate);
4091 if (PyErr_Occurred()) SWIG_fail;
4092 }
4093 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4094 return resultobj;
4095fail:
4096 return NULL;
d55e5bfc
RD
4097}
4098
4099
1bd55598
RD
4100SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4101 PyObject *resultobj = 0;
4102 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4103 wxBitmap result;
4104 void *argp1 = 0 ;
4105 int res1 = 0 ;
4106 PyObject *swig_obj[1] ;
4107
4108 if (!args) SWIG_fail;
4109 swig_obj[0] = args;
4110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4111 if (!SWIG_IsOK(res1)) {
4112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4113 }
4114 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4115 {
4116 PyThreadState* __tstate = wxPyBeginAllowThreads();
4117 result = (arg1)->GetBitmapFocus();
4118 wxPyEndAllowThreads(__tstate);
4119 if (PyErr_Occurred()) SWIG_fail;
4120 }
4121 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4122 return resultobj;
4123fail:
4124 return NULL;
d55e5bfc
RD
4125}
4126
4127
1bd55598
RD
4128SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4129 PyObject *resultobj = 0;
4130 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4131 wxBitmap result;
4132 void *argp1 = 0 ;
4133 int res1 = 0 ;
4134 PyObject *swig_obj[1] ;
4135
4136 if (!args) SWIG_fail;
4137 swig_obj[0] = args;
4138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4139 if (!SWIG_IsOK(res1)) {
4140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4141 }
4142 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4143 {
4144 PyThreadState* __tstate = wxPyBeginAllowThreads();
4145 result = (arg1)->GetBitmapSelected();
4146 wxPyEndAllowThreads(__tstate);
4147 if (PyErr_Occurred()) SWIG_fail;
4148 }
4149 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4150 return resultobj;
4151fail:
4152 return NULL;
d55e5bfc
RD
4153}
4154
4155
1bd55598
RD
4156SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4157 PyObject *resultobj = 0;
4158 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4159 wxBitmap result;
4160 void *argp1 = 0 ;
4161 int res1 = 0 ;
4162 PyObject *swig_obj[1] ;
4163
4164 if (!args) SWIG_fail;
4165 swig_obj[0] = args;
4166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4167 if (!SWIG_IsOK(res1)) {
4168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4169 }
4170 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4171 {
4172 PyThreadState* __tstate = wxPyBeginAllowThreads();
4173 result = (arg1)->GetBitmapHover();
4174 wxPyEndAllowThreads(__tstate);
4175 if (PyErr_Occurred()) SWIG_fail;
4176 }
4177 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4178 return resultobj;
4179fail:
4180 return NULL;
4181}
4182
4183
4184SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4185 PyObject *resultobj = 0;
4186 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4187 wxBitmap *arg2 = 0 ;
4188 void *argp1 = 0 ;
4189 int res1 = 0 ;
4190 void *argp2 = 0 ;
4191 int res2 = 0 ;
4192 PyObject * obj0 = 0 ;
4193 PyObject * obj1 = 0 ;
4194 char * kwnames[] = {
4195 (char *) "self",(char *) "bitmap", NULL
4196 };
4197
4198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4200 if (!SWIG_IsOK(res1)) {
4201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4202 }
4203 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4204 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4205 if (!SWIG_IsOK(res2)) {
4206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4207 }
4208 if (!argp2) {
4209 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4210 }
4211 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4212 {
4213 PyThreadState* __tstate = wxPyBeginAllowThreads();
4214 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4215 wxPyEndAllowThreads(__tstate);
4216 if (PyErr_Occurred()) SWIG_fail;
4217 }
4218 resultobj = SWIG_Py_Void();
4219 return resultobj;
4220fail:
4221 return NULL;
4222}
4223
4224
4225SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4226 PyObject *resultobj = 0;
4227 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4228 wxBitmap *arg2 = 0 ;
4229 void *argp1 = 0 ;
4230 int res1 = 0 ;
4231 void *argp2 = 0 ;
4232 int res2 = 0 ;
4233 PyObject * obj0 = 0 ;
4234 PyObject * obj1 = 0 ;
4235 char * kwnames[] = {
4236 (char *) "self",(char *) "bitmap", NULL
4237 };
4238
4239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4241 if (!SWIG_IsOK(res1)) {
4242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4243 }
4244 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4245 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4246 if (!SWIG_IsOK(res2)) {
4247 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4248 }
4249 if (!argp2) {
4250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4251 }
4252 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4253 {
4254 PyThreadState* __tstate = wxPyBeginAllowThreads();
4255 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4256 wxPyEndAllowThreads(__tstate);
4257 if (PyErr_Occurred()) SWIG_fail;
4258 }
4259 resultobj = SWIG_Py_Void();
4260 return resultobj;
4261fail:
4262 return NULL;
4263}
4264
4265
4266SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4267 PyObject *resultobj = 0;
4268 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4269 wxBitmap *arg2 = 0 ;
4270 void *argp1 = 0 ;
4271 int res1 = 0 ;
4272 void *argp2 = 0 ;
4273 int res2 = 0 ;
4274 PyObject * obj0 = 0 ;
4275 PyObject * obj1 = 0 ;
4276 char * kwnames[] = {
4277 (char *) "self",(char *) "bitmap", NULL
4278 };
4279
4280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4282 if (!SWIG_IsOK(res1)) {
4283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4284 }
4285 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4286 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4287 if (!SWIG_IsOK(res2)) {
4288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4289 }
4290 if (!argp2) {
4291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4292 }
4293 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4294 {
4295 PyThreadState* __tstate = wxPyBeginAllowThreads();
4296 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4297 wxPyEndAllowThreads(__tstate);
4298 if (PyErr_Occurred()) SWIG_fail;
4299 }
4300 resultobj = SWIG_Py_Void();
4301 return resultobj;
4302fail:
4303 return NULL;
4304}
4305
4306
4307SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4308 PyObject *resultobj = 0;
4309 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4310 wxBitmap *arg2 = 0 ;
4311 void *argp1 = 0 ;
4312 int res1 = 0 ;
4313 void *argp2 = 0 ;
4314 int res2 = 0 ;
4315 PyObject * obj0 = 0 ;
4316 PyObject * obj1 = 0 ;
4317 char * kwnames[] = {
4318 (char *) "self",(char *) "bitmap", NULL
4319 };
4320
4321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4323 if (!SWIG_IsOK(res1)) {
4324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4325 }
4326 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4327 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4328 if (!SWIG_IsOK(res2)) {
4329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4330 }
4331 if (!argp2) {
4332 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4333 }
4334 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4335 {
4336 PyThreadState* __tstate = wxPyBeginAllowThreads();
4337 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4338 wxPyEndAllowThreads(__tstate);
4339 if (PyErr_Occurred()) SWIG_fail;
4340 }
4341 resultobj = SWIG_Py_Void();
4342 return resultobj;
4343fail:
4344 return NULL;
4345}
4346
4347
4348SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4349 PyObject *resultobj = 0;
4350 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4351 wxBitmap *arg2 = 0 ;
4352 void *argp1 = 0 ;
4353 int res1 = 0 ;
4354 void *argp2 = 0 ;
4355 int res2 = 0 ;
4356 PyObject * obj0 = 0 ;
4357 PyObject * obj1 = 0 ;
4358 char * kwnames[] = {
4359 (char *) "self",(char *) "hover", NULL
4360 };
4361
4362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4364 if (!SWIG_IsOK(res1)) {
4365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4366 }
4367 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4368 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4369 if (!SWIG_IsOK(res2)) {
4370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4371 }
4372 if (!argp2) {
4373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4374 }
4375 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4376 {
4377 PyThreadState* __tstate = wxPyBeginAllowThreads();
4378 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4379 wxPyEndAllowThreads(__tstate);
4380 if (PyErr_Occurred()) SWIG_fail;
4381 }
4382 resultobj = SWIG_Py_Void();
4383 return resultobj;
4384fail:
4385 return NULL;
4386}
4387
4388
4389SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4390 PyObject *resultobj = 0;
4391 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4392 int arg2 ;
4393 int arg3 ;
4394 void *argp1 = 0 ;
4395 int res1 = 0 ;
4396 int val2 ;
4397 int ecode2 = 0 ;
4398 int val3 ;
4399 int ecode3 = 0 ;
4400 PyObject * obj0 = 0 ;
4401 PyObject * obj1 = 0 ;
4402 PyObject * obj2 = 0 ;
4403 char * kwnames[] = {
4404 (char *) "self",(char *) "x",(char *) "y", NULL
4405 };
4406
4407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4409 if (!SWIG_IsOK(res1)) {
4410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4411 }
4412 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4413 ecode2 = SWIG_AsVal_int(obj1, &val2);
4414 if (!SWIG_IsOK(ecode2)) {
4415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4416 }
4417 arg2 = static_cast< int >(val2);
4418 ecode3 = SWIG_AsVal_int(obj2, &val3);
4419 if (!SWIG_IsOK(ecode3)) {
4420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4421 }
4422 arg3 = static_cast< int >(val3);
4423 {
4424 PyThreadState* __tstate = wxPyBeginAllowThreads();
4425 (arg1)->SetMargins(arg2,arg3);
4426 wxPyEndAllowThreads(__tstate);
4427 if (PyErr_Occurred()) SWIG_fail;
4428 }
4429 resultobj = SWIG_Py_Void();
4430 return resultobj;
4431fail:
4432 return NULL;
d55e5bfc
RD
4433}
4434
4435
1bd55598
RD
4436SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4437 PyObject *resultobj = 0;
4438 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4439 int result;
4440 void *argp1 = 0 ;
4441 int res1 = 0 ;
4442 PyObject *swig_obj[1] ;
4443
4444 if (!args) SWIG_fail;
4445 swig_obj[0] = args;
4446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4447 if (!SWIG_IsOK(res1)) {
4448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4449 }
4450 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4451 {
4452 PyThreadState* __tstate = wxPyBeginAllowThreads();
4453 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4454 wxPyEndAllowThreads(__tstate);
4455 if (PyErr_Occurred()) SWIG_fail;
4456 }
4457 resultobj = SWIG_From_int(static_cast< int >(result));
4458 return resultobj;
4459fail:
4460 return NULL;
d55e5bfc
RD
4461}
4462
4463
1bd55598
RD
4464SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4465 PyObject *resultobj = 0;
4466 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4467 int result;
4468 void *argp1 = 0 ;
4469 int res1 = 0 ;
4470 PyObject *swig_obj[1] ;
4471
4472 if (!args) SWIG_fail;
4473 swig_obj[0] = args;
4474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4475 if (!SWIG_IsOK(res1)) {
4476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4477 }
4478 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4479 {
4480 PyThreadState* __tstate = wxPyBeginAllowThreads();
4481 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4482 wxPyEndAllowThreads(__tstate);
4483 if (PyErr_Occurred()) SWIG_fail;
4484 }
4485 resultobj = SWIG_From_int(static_cast< int >(result));
4486 return resultobj;
4487fail:
4488 return NULL;
b1fcee84
RD
4489}
4490
4491
1bd55598
RD
4492SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4493 PyObject *obj;
4494 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4495 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4496 return SWIG_Py_Void();
d55e5bfc
RD
4497}
4498
1bd55598
RD
4499SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4500 return SWIG_Python_InitShadowInstance(args);
4501}
d55e5bfc 4502
1bd55598
RD
4503SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4504 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4505 return 1;
d55e5bfc
RD
4506}
4507
4508
1bd55598
RD
4509SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4510 PyObject *pyobj = 0;
4511
4512 {
4513#if wxUSE_UNICODE
4514 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4515#else
4516 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4517#endif
4518 }
4519 return pyobj;
4520}
4521
4522
4523SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4524 PyObject *resultobj = 0;
4525 wxWindow *arg1 = (wxWindow *) 0 ;
4526 int arg2 = (int) -1 ;
4527 wxString const &arg3_defvalue = wxPyEmptyString ;
4528 wxString *arg3 = (wxString *) &arg3_defvalue ;
4529 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4530 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4531 wxSize const &arg5_defvalue = wxDefaultSize ;
4532 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4533 long arg6 = (long) 0 ;
4534 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4535 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4536 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4537 wxString *arg8 = (wxString *) &arg8_defvalue ;
4538 wxCheckBox *result = 0 ;
4539 void *argp1 = 0 ;
4540 int res1 = 0 ;
4541 int val2 ;
4542 int ecode2 = 0 ;
4543 bool temp3 = false ;
4544 wxPoint temp4 ;
4545 wxSize temp5 ;
4546 long val6 ;
4547 int ecode6 = 0 ;
4548 void *argp7 = 0 ;
4549 int res7 = 0 ;
4550 bool temp8 = false ;
4551 PyObject * obj0 = 0 ;
4552 PyObject * obj1 = 0 ;
4553 PyObject * obj2 = 0 ;
4554 PyObject * obj3 = 0 ;
4555 PyObject * obj4 = 0 ;
4556 PyObject * obj5 = 0 ;
4557 PyObject * obj6 = 0 ;
4558 PyObject * obj7 = 0 ;
4559 char * kwnames[] = {
4560 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4561 };
4562
4563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4565 if (!SWIG_IsOK(res1)) {
4566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4567 }
4568 arg1 = reinterpret_cast< wxWindow * >(argp1);
4569 if (obj1) {
4570 ecode2 = SWIG_AsVal_int(obj1, &val2);
4571 if (!SWIG_IsOK(ecode2)) {
4572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4573 }
4574 arg2 = static_cast< int >(val2);
4575 }
4576 if (obj2) {
d55e5bfc 4577 {
1bd55598
RD
4578 arg3 = wxString_in_helper(obj2);
4579 if (arg3 == NULL) SWIG_fail;
4580 temp3 = true;
d55e5bfc 4581 }
1bd55598
RD
4582 }
4583 if (obj3) {
4584 {
4585 arg4 = &temp4;
4586 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 4587 }
1bd55598
RD
4588 }
4589 if (obj4) {
d55e5bfc 4590 {
1bd55598
RD
4591 arg5 = &temp5;
4592 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 4593 }
1bd55598
RD
4594 }
4595 if (obj5) {
4596 ecode6 = SWIG_AsVal_long(obj5, &val6);
4597 if (!SWIG_IsOK(ecode6)) {
4598 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4599 }
4600 arg6 = static_cast< long >(val6);
4601 }
4602 if (obj6) {
4603 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4604 if (!SWIG_IsOK(res7)) {
4605 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4606 }
1bd55598
RD
4607 if (!argp7) {
4608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4609 }
4610 arg7 = reinterpret_cast< wxValidator * >(argp7);
4611 }
4612 if (obj7) {
b1fcee84 4613 {
1bd55598
RD
4614 arg8 = wxString_in_helper(obj7);
4615 if (arg8 == NULL) SWIG_fail;
4616 temp8 = true;
b1fcee84 4617 }
1bd55598
RD
4618 }
4619 {
4620 if (!wxPyCheckForApp()) SWIG_fail;
4621 PyThreadState* __tstate = wxPyBeginAllowThreads();
4622 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4623 wxPyEndAllowThreads(__tstate);
4624 if (PyErr_Occurred()) SWIG_fail;
4625 }
4626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4627 {
4628 if (temp3)
4629 delete arg3;
4630 }
4631 {
4632 if (temp8)
4633 delete arg8;
4634 }
4635 return resultobj;
4636fail:
4637 {
4638 if (temp3)
4639 delete arg3;
4640 }
4641 {
4642 if (temp8)
4643 delete arg8;
4644 }
4645 return NULL;
b1fcee84
RD
4646}
4647
4648
1bd55598
RD
4649SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4650 PyObject *resultobj = 0;
4651 wxCheckBox *result = 0 ;
4652
4653 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4654 {
4655 if (!wxPyCheckForApp()) SWIG_fail;
4656 PyThreadState* __tstate = wxPyBeginAllowThreads();
4657 result = (wxCheckBox *)new wxCheckBox();
4658 wxPyEndAllowThreads(__tstate);
4659 if (PyErr_Occurred()) SWIG_fail;
4660 }
4661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4662 return resultobj;
4663fail:
4664 return NULL;
4665}
4666
4667
4668SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4669 PyObject *resultobj = 0;
4670 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4671 wxWindow *arg2 = (wxWindow *) 0 ;
4672 int arg3 = (int) -1 ;
4673 wxString const &arg4_defvalue = wxPyEmptyString ;
4674 wxString *arg4 = (wxString *) &arg4_defvalue ;
4675 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4676 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4677 wxSize const &arg6_defvalue = wxDefaultSize ;
4678 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4679 long arg7 = (long) 0 ;
4680 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4681 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4682 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4683 wxString *arg9 = (wxString *) &arg9_defvalue ;
4684 bool result;
4685 void *argp1 = 0 ;
4686 int res1 = 0 ;
4687 void *argp2 = 0 ;
4688 int res2 = 0 ;
4689 int val3 ;
4690 int ecode3 = 0 ;
4691 bool temp4 = false ;
4692 wxPoint temp5 ;
4693 wxSize temp6 ;
4694 long val7 ;
4695 int ecode7 = 0 ;
4696 void *argp8 = 0 ;
4697 int res8 = 0 ;
4698 bool temp9 = false ;
4699 PyObject * obj0 = 0 ;
4700 PyObject * obj1 = 0 ;
4701 PyObject * obj2 = 0 ;
4702 PyObject * obj3 = 0 ;
4703 PyObject * obj4 = 0 ;
4704 PyObject * obj5 = 0 ;
4705 PyObject * obj6 = 0 ;
4706 PyObject * obj7 = 0 ;
4707 PyObject * obj8 = 0 ;
4708 char * kwnames[] = {
4709 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4710 };
4711
4712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4714 if (!SWIG_IsOK(res1)) {
4715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4716 }
4717 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4718 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4719 if (!SWIG_IsOK(res2)) {
4720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4721 }
4722 arg2 = reinterpret_cast< wxWindow * >(argp2);
4723 if (obj2) {
4724 ecode3 = SWIG_AsVal_int(obj2, &val3);
4725 if (!SWIG_IsOK(ecode3)) {
4726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4727 }
4728 arg3 = static_cast< int >(val3);
4729 }
4730 if (obj3) {
36ed4f51 4731 {
1bd55598
RD
4732 arg4 = wxString_in_helper(obj3);
4733 if (arg4 == NULL) SWIG_fail;
4734 temp4 = true;
36ed4f51 4735 }
1bd55598
RD
4736 }
4737 if (obj4) {
36ed4f51 4738 {
1bd55598
RD
4739 arg5 = &temp5;
4740 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 4741 }
1bd55598
RD
4742 }
4743 if (obj5) {
d55e5bfc 4744 {
1bd55598
RD
4745 arg6 = &temp6;
4746 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 4747 }
1bd55598
RD
4748 }
4749 if (obj6) {
4750 ecode7 = SWIG_AsVal_long(obj6, &val7);
4751 if (!SWIG_IsOK(ecode7)) {
4752 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4753 }
4754 arg7 = static_cast< long >(val7);
4755 }
4756 if (obj7) {
4757 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4758 if (!SWIG_IsOK(res8)) {
4759 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4760 }
1bd55598
RD
4761 if (!argp8) {
4762 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4763 }
4764 arg8 = reinterpret_cast< wxValidator * >(argp8);
4765 }
4766 if (obj8) {
36ed4f51 4767 {
1bd55598
RD
4768 arg9 = wxString_in_helper(obj8);
4769 if (arg9 == NULL) SWIG_fail;
4770 temp9 = true;
36ed4f51 4771 }
1bd55598
RD
4772 }
4773 {
4774 PyThreadState* __tstate = wxPyBeginAllowThreads();
4775 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4776 wxPyEndAllowThreads(__tstate);
4777 if (PyErr_Occurred()) SWIG_fail;
4778 }
4779 {
4780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4781 }
4782 {
4783 if (temp4)
4784 delete arg4;
4785 }
4786 {
4787 if (temp9)
4788 delete arg9;
4789 }
4790 return resultobj;
4791fail:
4792 {
4793 if (temp4)
4794 delete arg4;
4795 }
4796 {
4797 if (temp9)
4798 delete arg9;
4799 }
4800 return NULL;
d55e5bfc
RD
4801}
4802
4803
1bd55598
RD
4804SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4805 PyObject *resultobj = 0;
4806 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4807 bool result;
4808 void *argp1 = 0 ;
4809 int res1 = 0 ;
4810 PyObject *swig_obj[1] ;
4811
4812 if (!args) SWIG_fail;
4813 swig_obj[0] = args;
4814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4815 if (!SWIG_IsOK(res1)) {
4816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4817 }
4818 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4819 {
4820 PyThreadState* __tstate = wxPyBeginAllowThreads();
4821 result = (bool)(arg1)->GetValue();
4822 wxPyEndAllowThreads(__tstate);
4823 if (PyErr_Occurred()) SWIG_fail;
4824 }
4825 {
4826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4827 }
4828 return resultobj;
4829fail:
4830 return NULL;
d55e5bfc
RD
4831}
4832
4833
1bd55598
RD
4834SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4835 PyObject *resultobj = 0;
4836 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4837 bool result;
4838 void *argp1 = 0 ;
4839 int res1 = 0 ;
4840 PyObject *swig_obj[1] ;
4841
4842 if (!args) SWIG_fail;
4843 swig_obj[0] = args;
4844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4845 if (!SWIG_IsOK(res1)) {
4846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4847 }
4848 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4849 {
4850 PyThreadState* __tstate = wxPyBeginAllowThreads();
4851 result = (bool)(arg1)->IsChecked();
4852 wxPyEndAllowThreads(__tstate);
4853 if (PyErr_Occurred()) SWIG_fail;
4854 }
4855 {
4856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4857 }
4858 return resultobj;
4859fail:
4860 return NULL;
4861}
4862
4863
4864SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4865 PyObject *resultobj = 0;
4866 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4867 bool arg2 ;
4868 void *argp1 = 0 ;
4869 int res1 = 0 ;
4870 bool val2 ;
4871 int ecode2 = 0 ;
4872 PyObject * obj0 = 0 ;
4873 PyObject * obj1 = 0 ;
4874 char * kwnames[] = {
4875 (char *) "self",(char *) "state", NULL
4876 };
4877
4878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4880 if (!SWIG_IsOK(res1)) {
4881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4882 }
4883 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4884 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4885 if (!SWIG_IsOK(ecode2)) {
4886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4887 }
4888 arg2 = static_cast< bool >(val2);
4889 {
4890 PyThreadState* __tstate = wxPyBeginAllowThreads();
4891 (arg1)->SetValue(arg2);
4892 wxPyEndAllowThreads(__tstate);
4893 if (PyErr_Occurred()) SWIG_fail;
4894 }
4895 resultobj = SWIG_Py_Void();
4896 return resultobj;
4897fail:
4898 return NULL;
d55e5bfc 4899}
1bd55598
RD
4900
4901
4902SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4903 PyObject *resultobj = 0;
4904 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4905 wxCheckBoxState result;
4906 void *argp1 = 0 ;
4907 int res1 = 0 ;
4908 PyObject *swig_obj[1] ;
4909
4910 if (!args) SWIG_fail;
4911 swig_obj[0] = args;
4912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4913 if (!SWIG_IsOK(res1)) {
4914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4915 }
4916 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4917 {
4918 PyThreadState* __tstate = wxPyBeginAllowThreads();
4919 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4920 wxPyEndAllowThreads(__tstate);
4921 if (PyErr_Occurred()) SWIG_fail;
4922 }
4923 resultobj = SWIG_From_int(static_cast< int >(result));
4924 return resultobj;
4925fail:
4926 return NULL;
4927}
4928
4929
4930SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4931 PyObject *resultobj = 0;
4932 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4933 wxCheckBoxState arg2 ;
4934 void *argp1 = 0 ;
4935 int res1 = 0 ;
4936 int val2 ;
4937 int ecode2 = 0 ;
4938 PyObject * obj0 = 0 ;
4939 PyObject * obj1 = 0 ;
4940 char * kwnames[] = {
4941 (char *) "self",(char *) "state", NULL
4942 };
4943
4944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4946 if (!SWIG_IsOK(res1)) {
4947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4948 }
4949 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4950 ecode2 = SWIG_AsVal_int(obj1, &val2);
4951 if (!SWIG_IsOK(ecode2)) {
4952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4953 }
4954 arg2 = static_cast< wxCheckBoxState >(val2);
4955 {
4956 PyThreadState* __tstate = wxPyBeginAllowThreads();
4957 (arg1)->Set3StateValue(arg2);
4958 wxPyEndAllowThreads(__tstate);
4959 if (PyErr_Occurred()) SWIG_fail;
4960 }
4961 resultobj = SWIG_Py_Void();
4962 return resultobj;
4963fail:
4964 return NULL;
d55e5bfc
RD
4965}
4966
4967
1bd55598
RD
4968SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4969 PyObject *resultobj = 0;
4970 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4971 bool result;
4972 void *argp1 = 0 ;
4973 int res1 = 0 ;
4974 PyObject *swig_obj[1] ;
4975
4976 if (!args) SWIG_fail;
4977 swig_obj[0] = args;
4978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4979 if (!SWIG_IsOK(res1)) {
4980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4981 }
4982 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4983 {
4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
4985 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4986 wxPyEndAllowThreads(__tstate);
4987 if (PyErr_Occurred()) SWIG_fail;
4988 }
4989 {
4990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4991 }
4992 return resultobj;
4993fail:
4994 return NULL;
d55e5bfc
RD
4995}
4996
4997
1bd55598
RD
4998SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4999 PyObject *resultobj = 0;
5000 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
5001 bool result;
5002 void *argp1 = 0 ;
5003 int res1 = 0 ;
5004 PyObject *swig_obj[1] ;
5005
5006 if (!args) SWIG_fail;
5007 swig_obj[0] = args;
5008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5009 if (!SWIG_IsOK(res1)) {
5010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5011 }
5012 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5013 {
5014 PyThreadState* __tstate = wxPyBeginAllowThreads();
5015 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5016 wxPyEndAllowThreads(__tstate);
5017 if (PyErr_Occurred()) SWIG_fail;
5018 }
5019 {
5020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5021 }
5022 return resultobj;
5023fail:
5024 return NULL;
d55e5bfc
RD
5025}
5026
5027
1bd55598
RD
5028SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5029 PyObject *resultobj = 0;
5030 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5031 SwigValueWrapper<wxVisualAttributes > result;
5032 int val1 ;
5033 int ecode1 = 0 ;
5034 PyObject * obj0 = 0 ;
5035 char * kwnames[] = {
5036 (char *) "variant", NULL
5037 };
5038
5039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5040 if (obj0) {
5041 ecode1 = SWIG_AsVal_int(obj0, &val1);
5042 if (!SWIG_IsOK(ecode1)) {
5043 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5044 }
5045 arg1 = static_cast< wxWindowVariant >(val1);
5046 }
5047 {
5048 if (!wxPyCheckForApp()) SWIG_fail;
5049 PyThreadState* __tstate = wxPyBeginAllowThreads();
5050 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5051 wxPyEndAllowThreads(__tstate);
5052 if (PyErr_Occurred()) SWIG_fail;
5053 }
5054 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5055 return resultobj;
5056fail:
5057 return NULL;
d55e5bfc
RD
5058}
5059
5060
1bd55598
RD
5061SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5062 PyObject *obj;
5063 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5064 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5065 return SWIG_Py_Void();
d55e5bfc
RD
5066}
5067
1bd55598
RD
5068SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5069 return SWIG_Python_InitShadowInstance(args);
5070}
d55e5bfc 5071
1bd55598
RD
5072SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5073 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5074 return 1;
d55e5bfc
RD
5075}
5076
5077
1bd55598
RD
5078SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5079 PyObject *pyobj = 0;
5080
5081 {
5082#if wxUSE_UNICODE
5083 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5084#else
5085 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5086#endif
5087 }
5088 return pyobj;
5089}
5090
5091
5092SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5093 PyObject *resultobj = 0;
5094 wxWindow *arg1 = (wxWindow *) 0 ;
5095 int arg2 = (int) -1 ;
5096 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5097 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5098 wxSize const &arg4_defvalue = wxDefaultSize ;
5099 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5100 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5101 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5102 long arg6 = (long) 0 ;
5103 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5104 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5105 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5106 wxString *arg8 = (wxString *) &arg8_defvalue ;
5107 wxChoice *result = 0 ;
5108 void *argp1 = 0 ;
5109 int res1 = 0 ;
5110 int val2 ;
5111 int ecode2 = 0 ;
5112 wxPoint temp3 ;
5113 wxSize temp4 ;
5114 bool temp5 = false ;
5115 long val6 ;
5116 int ecode6 = 0 ;
5117 void *argp7 = 0 ;
5118 int res7 = 0 ;
5119 bool temp8 = false ;
5120 PyObject * obj0 = 0 ;
5121 PyObject * obj1 = 0 ;
5122 PyObject * obj2 = 0 ;
5123 PyObject * obj3 = 0 ;
5124 PyObject * obj4 = 0 ;
5125 PyObject * obj5 = 0 ;
5126 PyObject * obj6 = 0 ;
5127 PyObject * obj7 = 0 ;
5128 char * kwnames[] = {
5129 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5130 };
5131
5132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5134 if (!SWIG_IsOK(res1)) {
5135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5136 }
5137 arg1 = reinterpret_cast< wxWindow * >(argp1);
5138 if (obj1) {
5139 ecode2 = SWIG_AsVal_int(obj1, &val2);
5140 if (!SWIG_IsOK(ecode2)) {
5141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5142 }
5143 arg2 = static_cast< int >(val2);
5144 }
5145 if (obj2) {
36ed4f51 5146 {
1bd55598
RD
5147 arg3 = &temp3;
5148 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 5149 }
1bd55598
RD
5150 }
5151 if (obj3) {
d55e5bfc 5152 {
1bd55598
RD
5153 arg4 = &temp4;
5154 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5155 }
1bd55598
RD
5156 }
5157 if (obj4) {
d55e5bfc 5158 {
1bd55598
RD
5159 if (! PySequence_Check(obj4)) {
5160 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5161 SWIG_fail;
5162 }
5163 arg5 = new wxArrayString;
5164 temp5 = true;
5165 int i, len=PySequence_Length(obj4);
5166 for (i=0; i<len; i++) {
5167 PyObject* item = PySequence_GetItem(obj4, i);
5168 wxString* s = wxString_in_helper(item);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 arg5->Add(*s);
5171 delete s;
5172 Py_DECREF(item);
5173 }
d55e5bfc 5174 }
1bd55598
RD
5175 }
5176 if (obj5) {
5177 ecode6 = SWIG_AsVal_long(obj5, &val6);
5178 if (!SWIG_IsOK(ecode6)) {
5179 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5180 }
5181 arg6 = static_cast< long >(val6);
5182 }
5183 if (obj6) {
5184 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5185 if (!SWIG_IsOK(res7)) {
5186 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 5187 }
1bd55598
RD
5188 if (!argp7) {
5189 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5190 }
5191 arg7 = reinterpret_cast< wxValidator * >(argp7);
5192 }
5193 if (obj7) {
d55e5bfc 5194 {
1bd55598
RD
5195 arg8 = wxString_in_helper(obj7);
5196 if (arg8 == NULL) SWIG_fail;
5197 temp8 = true;
d55e5bfc 5198 }
1bd55598
RD
5199 }
5200 {
5201 if (!wxPyCheckForApp()) SWIG_fail;
5202 PyThreadState* __tstate = wxPyBeginAllowThreads();
5203 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5204 wxPyEndAllowThreads(__tstate);
5205 if (PyErr_Occurred()) SWIG_fail;
5206 }
5207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5208 {
5209 if (temp5) delete arg5;
5210 }
5211 {
5212 if (temp8)
5213 delete arg8;
5214 }
5215 return resultobj;
5216fail:
5217 {
5218 if (temp5) delete arg5;
5219 }
5220 {
5221 if (temp8)
5222 delete arg8;
5223 }
5224 return NULL;
d55e5bfc
RD
5225}
5226
5227
1bd55598
RD
5228SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5229 PyObject *resultobj = 0;
5230 wxChoice *result = 0 ;
5231
5232 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5233 {
5234 if (!wxPyCheckForApp()) SWIG_fail;
5235 PyThreadState* __tstate = wxPyBeginAllowThreads();
5236 result = (wxChoice *)new wxChoice();
5237 wxPyEndAllowThreads(__tstate);
5238 if (PyErr_Occurred()) SWIG_fail;
5239 }
5240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5241 return resultobj;
5242fail:
5243 return NULL;
5244}
5245
5246
5247SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5248 PyObject *resultobj = 0;
5249 wxChoice *arg1 = (wxChoice *) 0 ;
5250 wxWindow *arg2 = (wxWindow *) 0 ;
5251 int arg3 = (int) -1 ;
5252 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5253 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5254 wxSize const &arg5_defvalue = wxDefaultSize ;
5255 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5256 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5257 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5258 long arg7 = (long) 0 ;
5259 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5260 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5261 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5262 wxString *arg9 = (wxString *) &arg9_defvalue ;
5263 bool result;
5264 void *argp1 = 0 ;
5265 int res1 = 0 ;
5266 void *argp2 = 0 ;
5267 int res2 = 0 ;
5268 int val3 ;
5269 int ecode3 = 0 ;
5270 wxPoint temp4 ;
5271 wxSize temp5 ;
5272 bool temp6 = false ;
5273 long val7 ;
5274 int ecode7 = 0 ;
5275 void *argp8 = 0 ;
5276 int res8 = 0 ;
5277 bool temp9 = false ;
5278 PyObject * obj0 = 0 ;
5279 PyObject * obj1 = 0 ;
5280 PyObject * obj2 = 0 ;
5281 PyObject * obj3 = 0 ;
5282 PyObject * obj4 = 0 ;
5283 PyObject * obj5 = 0 ;
5284 PyObject * obj6 = 0 ;
5285 PyObject * obj7 = 0 ;
5286 PyObject * obj8 = 0 ;
5287 char * kwnames[] = {
5288 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5289 };
5290
5291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5293 if (!SWIG_IsOK(res1)) {
5294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5295 }
5296 arg1 = reinterpret_cast< wxChoice * >(argp1);
5297 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5298 if (!SWIG_IsOK(res2)) {
5299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5300 }
5301 arg2 = reinterpret_cast< wxWindow * >(argp2);
5302 if (obj2) {
5303 ecode3 = SWIG_AsVal_int(obj2, &val3);
5304 if (!SWIG_IsOK(ecode3)) {
5305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5306 }
5307 arg3 = static_cast< int >(val3);
5308 }
5309 if (obj3) {
d55e5bfc 5310 {
1bd55598
RD
5311 arg4 = &temp4;
5312 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5313 }
1bd55598
RD
5314 }
5315 if (obj4) {
d55e5bfc 5316 {
1bd55598
RD
5317 arg5 = &temp5;
5318 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5319 }
1bd55598
RD
5320 }
5321 if (obj5) {
d55e5bfc 5322 {
1bd55598
RD
5323 if (! PySequence_Check(obj5)) {
5324 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5325 SWIG_fail;
5326 }
5327 arg6 = new wxArrayString;
5328 temp6 = true;
5329 int i, len=PySequence_Length(obj5);
5330 for (i=0; i<len; i++) {
5331 PyObject* item = PySequence_GetItem(obj5, i);
5332 wxString* s = wxString_in_helper(item);
5333 if (PyErr_Occurred()) SWIG_fail;
5334 arg6->Add(*s);
5335 delete s;
5336 Py_DECREF(item);
5337 }
5338 }
5339 }
5340 if (obj6) {
5341 ecode7 = SWIG_AsVal_long(obj6, &val7);
5342 if (!SWIG_IsOK(ecode7)) {
5343 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5344 }
5345 arg7 = static_cast< long >(val7);
5346 }
5347 if (obj7) {
5348 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5349 if (!SWIG_IsOK(res8)) {
5350 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 5351 }
1bd55598
RD
5352 if (!argp8) {
5353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5354 }
5355 arg8 = reinterpret_cast< wxValidator * >(argp8);
5356 }
5357 if (obj8) {
d55e5bfc 5358 {
1bd55598
RD
5359 arg9 = wxString_in_helper(obj8);
5360 if (arg9 == NULL) SWIG_fail;
5361 temp9 = true;
d55e5bfc 5362 }
1bd55598
RD
5363 }
5364 {
5365 PyThreadState* __tstate = wxPyBeginAllowThreads();
5366 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5367 wxPyEndAllowThreads(__tstate);
5368 if (PyErr_Occurred()) SWIG_fail;
5369 }
5370 {
5371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5372 }
5373 {
5374 if (temp6) delete arg6;
5375 }
5376 {
5377 if (temp9)
5378 delete arg9;
5379 }
5380 return resultobj;
5381fail:
5382 {
5383 if (temp6) delete arg6;
5384 }
5385 {
5386 if (temp9)
5387 delete arg9;
5388 }
5389 return NULL;
d55e5bfc
RD
5390}
5391
5392
1bd55598
RD
5393SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5394 PyObject *resultobj = 0;
5395 wxChoice *arg1 = (wxChoice *) 0 ;
5396 int result;
5397 void *argp1 = 0 ;
5398 int res1 = 0 ;
5399 PyObject *swig_obj[1] ;
5400
5401 if (!args) SWIG_fail;
5402 swig_obj[0] = args;
5403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5404 if (!SWIG_IsOK(res1)) {
5405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5406 }
5407 arg1 = reinterpret_cast< wxChoice * >(argp1);
5408 {
5409 PyThreadState* __tstate = wxPyBeginAllowThreads();
5410 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5411 wxPyEndAllowThreads(__tstate);
5412 if (PyErr_Occurred()) SWIG_fail;
5413 }
5414 resultobj = SWIG_From_int(static_cast< int >(result));
5415 return resultobj;
5416fail:
5417 return NULL;
5418}
5419
5420
5421SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5422 PyObject *resultobj = 0;
5423 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5424 SwigValueWrapper<wxVisualAttributes > result;
5425 int val1 ;
5426 int ecode1 = 0 ;
5427 PyObject * obj0 = 0 ;
5428 char * kwnames[] = {
5429 (char *) "variant", NULL
5430 };
5431
5432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5433 if (obj0) {
5434 ecode1 = SWIG_AsVal_int(obj0, &val1);
5435 if (!SWIG_IsOK(ecode1)) {
5436 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5437 }
5438 arg1 = static_cast< wxWindowVariant >(val1);
5439 }
5440 {
5441 if (!wxPyCheckForApp()) SWIG_fail;
5442 PyThreadState* __tstate = wxPyBeginAllowThreads();
5443 result = wxChoice::GetClassDefaultAttributes(arg1);
5444 wxPyEndAllowThreads(__tstate);
5445 if (PyErr_Occurred()) SWIG_fail;
5446 }
5447 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5448 return resultobj;
5449fail:
5450 return NULL;
f20a2e1f
RD
5451}
5452
5453
1bd55598
RD
5454SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5455 PyObject *obj;
5456 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5457 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5458 return SWIG_Py_Void();
d55e5bfc 5459}
1bd55598
RD
5460
5461SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5462 return SWIG_Python_InitShadowInstance(args);
5463}
5464
5465SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5466 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5467 return 1;
d55e5bfc
RD
5468}
5469
5470
1bd55598
RD
5471SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5472 PyObject *pyobj = 0;
5473
5474 {
d55e5bfc 5475#if wxUSE_UNICODE
1bd55598 5476 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5477#else
1bd55598 5478 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5479#endif
1bd55598
RD
5480 }
5481 return pyobj;
5482}
5483
5484
5485SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5486 PyObject *resultobj = 0;
5487 wxWindow *arg1 = (wxWindow *) 0 ;
5488 int arg2 = (int) -1 ;
5489 wxString const &arg3_defvalue = wxPyEmptyString ;
5490 wxString *arg3 = (wxString *) &arg3_defvalue ;
5491 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5492 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5493 wxSize const &arg5_defvalue = wxDefaultSize ;
5494 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5495 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5496 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5497 long arg7 = (long) 0 ;
5498 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5499 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5500 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5501 wxString *arg9 = (wxString *) &arg9_defvalue ;
5502 wxComboBox *result = 0 ;
5503 void *argp1 = 0 ;
5504 int res1 = 0 ;
5505 int val2 ;
5506 int ecode2 = 0 ;
5507 bool temp3 = false ;
5508 wxPoint temp4 ;
5509 wxSize temp5 ;
5510 bool temp6 = false ;
5511 long val7 ;
5512 int ecode7 = 0 ;
5513 void *argp8 = 0 ;
5514 int res8 = 0 ;
5515 bool temp9 = false ;
5516 PyObject * obj0 = 0 ;
5517 PyObject * obj1 = 0 ;
5518 PyObject * obj2 = 0 ;
5519 PyObject * obj3 = 0 ;
5520 PyObject * obj4 = 0 ;
5521 PyObject * obj5 = 0 ;
5522 PyObject * obj6 = 0 ;
5523 PyObject * obj7 = 0 ;
5524 PyObject * obj8 = 0 ;
5525 char * kwnames[] = {
5526 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5527 };
5528
5529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5531 if (!SWIG_IsOK(res1)) {
5532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5533 }
5534 arg1 = reinterpret_cast< wxWindow * >(argp1);
5535 if (obj1) {
5536 ecode2 = SWIG_AsVal_int(obj1, &val2);
5537 if (!SWIG_IsOK(ecode2)) {
5538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5539 }
5540 arg2 = static_cast< int >(val2);
5541 }
5542 if (obj2) {
d55e5bfc 5543 {
1bd55598
RD
5544 arg3 = wxString_in_helper(obj2);
5545 if (arg3 == NULL) SWIG_fail;
5546 temp3 = true;
d55e5bfc 5547 }
1bd55598
RD
5548 }
5549 if (obj3) {
d55e5bfc 5550 {
1bd55598
RD
5551 arg4 = &temp4;
5552 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5553 }
1bd55598
RD
5554 }
5555 if (obj4) {
d55e5bfc 5556 {
1bd55598
RD
5557 arg5 = &temp5;
5558 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5559 }
1bd55598
RD
5560 }
5561 if (obj5) {
d55e5bfc 5562 {
1bd55598
RD
5563 if (! PySequence_Check(obj5)) {
5564 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5565 SWIG_fail;
5566 }
5567 arg6 = new wxArrayString;
5568 temp6 = true;
5569 int i, len=PySequence_Length(obj5);
5570 for (i=0; i<len; i++) {
5571 PyObject* item = PySequence_GetItem(obj5, i);
5572 wxString* s = wxString_in_helper(item);
5573 if (PyErr_Occurred()) SWIG_fail;
5574 arg6->Add(*s);
5575 delete s;
5576 Py_DECREF(item);
5577 }
d55e5bfc 5578 }
1bd55598
RD
5579 }
5580 if (obj6) {
5581 ecode7 = SWIG_AsVal_long(obj6, &val7);
5582 if (!SWIG_IsOK(ecode7)) {
5583 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5584 }
5585 arg7 = static_cast< long >(val7);
5586 }
5587 if (obj7) {
5588 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5589 if (!SWIG_IsOK(res8)) {
5590 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5591 }
5592 if (!argp8) {
5593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5594 }
5595 arg8 = reinterpret_cast< wxValidator * >(argp8);
5596 }
5597 if (obj8) {
d55e5bfc 5598 {
1bd55598
RD
5599 arg9 = wxString_in_helper(obj8);
5600 if (arg9 == NULL) SWIG_fail;
5601 temp9 = true;
d55e5bfc 5602 }
1bd55598
RD
5603 }
5604 {
5605 if (!wxPyCheckForApp()) SWIG_fail;
5606 PyThreadState* __tstate = wxPyBeginAllowThreads();
5607 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);
5608 wxPyEndAllowThreads(__tstate);
5609 if (PyErr_Occurred()) SWIG_fail;
5610 }
5611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5612 {
5613 if (temp3)
5614 delete arg3;
5615 }
5616 {
5617 if (temp6) delete arg6;
5618 }
5619 {
5620 if (temp9)
5621 delete arg9;
5622 }
5623 return resultobj;
5624fail:
5625 {
5626 if (temp3)
5627 delete arg3;
5628 }
5629 {
5630 if (temp6) delete arg6;
5631 }
5632 {
5633 if (temp9)
5634 delete arg9;
5635 }
5636 return NULL;
d55e5bfc
RD
5637}
5638
5639
1bd55598
RD
5640SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5641 PyObject *resultobj = 0;
5642 wxComboBox *result = 0 ;
5643
5644 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5645 {
5646 if (!wxPyCheckForApp()) SWIG_fail;
5647 PyThreadState* __tstate = wxPyBeginAllowThreads();
5648 result = (wxComboBox *)new wxComboBox();
5649 wxPyEndAllowThreads(__tstate);
5650 if (PyErr_Occurred()) SWIG_fail;
5651 }
5652 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5653 return resultobj;
5654fail:
5655 return NULL;
5656}
5657
5658
5659SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5660 PyObject *resultobj = 0;
5661 wxComboBox *arg1 = (wxComboBox *) 0 ;
5662 wxWindow *arg2 = (wxWindow *) 0 ;
5663 int arg3 = (int) -1 ;
5664 wxString const &arg4_defvalue = wxPyEmptyString ;
5665 wxString *arg4 = (wxString *) &arg4_defvalue ;
5666 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5667 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5668 wxSize const &arg6_defvalue = wxDefaultSize ;
5669 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5670 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5671 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5672 long arg8 = (long) 0 ;
5673 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5674 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5675 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5676 wxString *arg10 = (wxString *) &arg10_defvalue ;
5677 bool result;
5678 void *argp1 = 0 ;
5679 int res1 = 0 ;
5680 void *argp2 = 0 ;
5681 int res2 = 0 ;
5682 int val3 ;
5683 int ecode3 = 0 ;
5684 bool temp4 = false ;
5685 wxPoint temp5 ;
5686 wxSize temp6 ;
5687 bool temp7 = false ;
5688 long val8 ;
5689 int ecode8 = 0 ;
5690 void *argp9 = 0 ;
5691 int res9 = 0 ;
5692 bool temp10 = false ;
5693 PyObject * obj0 = 0 ;
5694 PyObject * obj1 = 0 ;
5695 PyObject * obj2 = 0 ;
5696 PyObject * obj3 = 0 ;
5697 PyObject * obj4 = 0 ;
5698 PyObject * obj5 = 0 ;
5699 PyObject * obj6 = 0 ;
5700 PyObject * obj7 = 0 ;
5701 PyObject * obj8 = 0 ;
5702 PyObject * obj9 = 0 ;
5703 char * kwnames[] = {
5704 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5705 };
5706
5707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5709 if (!SWIG_IsOK(res1)) {
5710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5711 }
5712 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5713 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5714 if (!SWIG_IsOK(res2)) {
5715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5716 }
5717 arg2 = reinterpret_cast< wxWindow * >(argp2);
5718 if (obj2) {
5719 ecode3 = SWIG_AsVal_int(obj2, &val3);
5720 if (!SWIG_IsOK(ecode3)) {
5721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5722 }
5723 arg3 = static_cast< int >(val3);
5724 }
5725 if (obj3) {
d55e5bfc 5726 {
1bd55598
RD
5727 arg4 = wxString_in_helper(obj3);
5728 if (arg4 == NULL) SWIG_fail;
5729 temp4 = true;
d55e5bfc 5730 }
1bd55598
RD
5731 }
5732 if (obj4) {
d55e5bfc 5733 {
1bd55598
RD
5734 arg5 = &temp5;
5735 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5736 }
1bd55598
RD
5737 }
5738 if (obj5) {
d55e5bfc 5739 {
1bd55598
RD
5740 arg6 = &temp6;
5741 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 5742 }
1bd55598
RD
5743 }
5744 if (obj6) {
d55e5bfc 5745 {
1bd55598
RD
5746 if (! PySequence_Check(obj6)) {
5747 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5748 SWIG_fail;
5749 }
5750 arg7 = new wxArrayString;
5751 temp7 = true;
5752 int i, len=PySequence_Length(obj6);
5753 for (i=0; i<len; i++) {
5754 PyObject* item = PySequence_GetItem(obj6, i);
5755 wxString* s = wxString_in_helper(item);
5756 if (PyErr_Occurred()) SWIG_fail;
5757 arg7->Add(*s);
5758 delete s;
5759 Py_DECREF(item);
5760 }
d55e5bfc 5761 }
1bd55598
RD
5762 }
5763 if (obj7) {
5764 ecode8 = SWIG_AsVal_long(obj7, &val8);
5765 if (!SWIG_IsOK(ecode8)) {
5766 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5767 }
5768 arg8 = static_cast< long >(val8);
5769 }
5770 if (obj8) {
5771 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5772 if (!SWIG_IsOK(res9)) {
5773 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5774 }
1bd55598
RD
5775 if (!argp9) {
5776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5777 }
1bd55598
RD
5778 arg9 = reinterpret_cast< wxValidator * >(argp9);
5779 }
5780 if (obj9) {
d55e5bfc 5781 {
1bd55598
RD
5782 arg10 = wxString_in_helper(obj9);
5783 if (arg10 == NULL) SWIG_fail;
5784 temp10 = true;
d55e5bfc 5785 }
1bd55598
RD
5786 }
5787 {
5788 PyThreadState* __tstate = wxPyBeginAllowThreads();
5789 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);
5790 wxPyEndAllowThreads(__tstate);
5791 if (PyErr_Occurred()) SWIG_fail;
5792 }
5793 {
5794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5795 }
5796 {
5797 if (temp4)
5798 delete arg4;
5799 }
5800 {
5801 if (temp7) delete arg7;
5802 }
5803 {
5804 if (temp10)
5805 delete arg10;
5806 }
5807 return resultobj;
5808fail:
5809 {
5810 if (temp4)
5811 delete arg4;
5812 }
5813 {
5814 if (temp7) delete arg7;
5815 }
5816 {
5817 if (temp10)
5818 delete arg10;
5819 }
5820 return NULL;
d55e5bfc
RD
5821}
5822
5823
1bd55598
RD
5824SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5825 PyObject *resultobj = 0;
5826 wxComboBox *arg1 = (wxComboBox *) 0 ;
5827 wxString result;
5828 void *argp1 = 0 ;
5829 int res1 = 0 ;
5830 PyObject *swig_obj[1] ;
5831
5832 if (!args) SWIG_fail;
5833 swig_obj[0] = args;
5834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5835 if (!SWIG_IsOK(res1)) {
5836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5837 }
5838 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5839 {
5840 PyThreadState* __tstate = wxPyBeginAllowThreads();
5841 result = ((wxComboBox const *)arg1)->GetValue();
5842 wxPyEndAllowThreads(__tstate);
5843 if (PyErr_Occurred()) SWIG_fail;
5844 }
5845 {
d55e5bfc 5846#if wxUSE_UNICODE
1bd55598 5847 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 5848#else
1bd55598 5849 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 5850#endif
1bd55598
RD
5851 }
5852 return resultobj;
5853fail:
5854 return NULL;
5855}
5856
5857
5858SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5859 PyObject *resultobj = 0;
5860 wxComboBox *arg1 = (wxComboBox *) 0 ;
5861 wxString *arg2 = 0 ;
5862 void *argp1 = 0 ;
5863 int res1 = 0 ;
5864 bool temp2 = false ;
5865 PyObject * obj0 = 0 ;
5866 PyObject * obj1 = 0 ;
5867 char * kwnames[] = {
5868 (char *) "self",(char *) "value", NULL
5869 };
5870
5871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5873 if (!SWIG_IsOK(res1)) {
5874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5875 }
5876 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5877 {
5878 arg2 = wxString_in_helper(obj1);
5879 if (arg2 == NULL) SWIG_fail;
5880 temp2 = true;
5881 }
5882 {
5883 PyThreadState* __tstate = wxPyBeginAllowThreads();
5884 (arg1)->SetValue((wxString const &)*arg2);
5885 wxPyEndAllowThreads(__tstate);
5886 if (PyErr_Occurred()) SWIG_fail;
5887 }
5888 resultobj = SWIG_Py_Void();
5889 {
5890 if (temp2)
5891 delete arg2;
5892 }
5893 return resultobj;
5894fail:
5895 {
5896 if (temp2)
5897 delete arg2;
5898 }
5899 return NULL;
d55e5bfc
RD
5900}
5901
5902
1bd55598
RD
5903SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5904 PyObject *resultobj = 0;
5905 wxComboBox *arg1 = (wxComboBox *) 0 ;
5906 void *argp1 = 0 ;
5907 int res1 = 0 ;
5908 PyObject *swig_obj[1] ;
5909
5910 if (!args) SWIG_fail;
5911 swig_obj[0] = args;
5912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5913 if (!SWIG_IsOK(res1)) {
5914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5915 }
5916 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5917 {
5918 PyThreadState* __tstate = wxPyBeginAllowThreads();
5919 (arg1)->Copy();
5920 wxPyEndAllowThreads(__tstate);
5921 if (PyErr_Occurred()) SWIG_fail;
5922 }
5923 resultobj = SWIG_Py_Void();
5924 return resultobj;
5925fail:
5926 return NULL;
d55e5bfc
RD
5927}
5928
5929
1bd55598
RD
5930SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5931 PyObject *resultobj = 0;
5932 wxComboBox *arg1 = (wxComboBox *) 0 ;
5933 void *argp1 = 0 ;
5934 int res1 = 0 ;
5935 PyObject *swig_obj[1] ;
5936
5937 if (!args) SWIG_fail;
5938 swig_obj[0] = args;
5939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5940 if (!SWIG_IsOK(res1)) {
5941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5942 }
5943 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5944 {
5945 PyThreadState* __tstate = wxPyBeginAllowThreads();
5946 (arg1)->Cut();
5947 wxPyEndAllowThreads(__tstate);
5948 if (PyErr_Occurred()) SWIG_fail;
5949 }
5950 resultobj = SWIG_Py_Void();
5951 return resultobj;
5952fail:
5953 return NULL;
d55e5bfc
RD
5954}
5955
5956
1bd55598
RD
5957SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5958 PyObject *resultobj = 0;
5959 wxComboBox *arg1 = (wxComboBox *) 0 ;
5960 void *argp1 = 0 ;
5961 int res1 = 0 ;
5962 PyObject *swig_obj[1] ;
5963
5964 if (!args) SWIG_fail;
5965 swig_obj[0] = args;
5966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5967 if (!SWIG_IsOK(res1)) {
5968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5969 }
5970 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5971 {
5972 PyThreadState* __tstate = wxPyBeginAllowThreads();
5973 (arg1)->Paste();
5974 wxPyEndAllowThreads(__tstate);
5975 if (PyErr_Occurred()) SWIG_fail;
5976 }
5977 resultobj = SWIG_Py_Void();
5978 return resultobj;
5979fail:
5980 return NULL;
5981}
5982
5983
5984SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5985 PyObject *resultobj = 0;
5986 wxComboBox *arg1 = (wxComboBox *) 0 ;
5987 long arg2 ;
5988 void *argp1 = 0 ;
5989 int res1 = 0 ;
5990 long val2 ;
5991 int ecode2 = 0 ;
5992 PyObject * obj0 = 0 ;
5993 PyObject * obj1 = 0 ;
5994 char * kwnames[] = {
5995 (char *) "self",(char *) "pos", NULL
5996 };
5997
5998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6000 if (!SWIG_IsOK(res1)) {
6001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
6002 }
6003 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6004 ecode2 = SWIG_AsVal_long(obj1, &val2);
6005 if (!SWIG_IsOK(ecode2)) {
6006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6007 }
6008 arg2 = static_cast< long >(val2);
6009 {
6010 PyThreadState* __tstate = wxPyBeginAllowThreads();
6011 (arg1)->SetInsertionPoint(arg2);
6012 wxPyEndAllowThreads(__tstate);
6013 if (PyErr_Occurred()) SWIG_fail;
6014 }
6015 resultobj = SWIG_Py_Void();
6016 return resultobj;
6017fail:
6018 return NULL;
d55e5bfc
RD
6019}
6020
6021
1bd55598
RD
6022SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6023 PyObject *resultobj = 0;
6024 wxComboBox *arg1 = (wxComboBox *) 0 ;
6025 long result;
6026 void *argp1 = 0 ;
6027 int res1 = 0 ;
6028 PyObject *swig_obj[1] ;
6029
6030 if (!args) SWIG_fail;
6031 swig_obj[0] = args;
6032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6033 if (!SWIG_IsOK(res1)) {
6034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6035 }
6036 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6037 {
6038 PyThreadState* __tstate = wxPyBeginAllowThreads();
6039 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6040 wxPyEndAllowThreads(__tstate);
6041 if (PyErr_Occurred()) SWIG_fail;
6042 }
6043 resultobj = SWIG_From_long(static_cast< long >(result));
6044 return resultobj;
6045fail:
6046 return NULL;
d55e5bfc
RD
6047}
6048
6049
1bd55598
RD
6050SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6051 PyObject *resultobj = 0;
6052 wxComboBox *arg1 = (wxComboBox *) 0 ;
6053 long result;
6054 void *argp1 = 0 ;
6055 int res1 = 0 ;
6056 PyObject *swig_obj[1] ;
6057
6058 if (!args) SWIG_fail;
6059 swig_obj[0] = args;
6060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6061 if (!SWIG_IsOK(res1)) {
6062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6063 }
6064 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6065 {
6066 PyThreadState* __tstate = wxPyBeginAllowThreads();
6067 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6068 wxPyEndAllowThreads(__tstate);
6069 if (PyErr_Occurred()) SWIG_fail;
6070 }
6071 resultobj = SWIG_From_long(static_cast< long >(result));
6072 return resultobj;
6073fail:
6074 return NULL;
6075}
6076
6077
6078SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6079 PyObject *resultobj = 0;
6080 wxComboBox *arg1 = (wxComboBox *) 0 ;
6081 long arg2 ;
6082 long arg3 ;
6083 wxString *arg4 = 0 ;
6084 void *argp1 = 0 ;
6085 int res1 = 0 ;
6086 long val2 ;
6087 int ecode2 = 0 ;
6088 long val3 ;
6089 int ecode3 = 0 ;
6090 bool temp4 = false ;
6091 PyObject * obj0 = 0 ;
6092 PyObject * obj1 = 0 ;
6093 PyObject * obj2 = 0 ;
6094 PyObject * obj3 = 0 ;
6095 char * kwnames[] = {
2131d850 6096 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
1bd55598
RD
6097 };
6098
6099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6101 if (!SWIG_IsOK(res1)) {
6102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6103 }
6104 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6105 ecode2 = SWIG_AsVal_long(obj1, &val2);
6106 if (!SWIG_IsOK(ecode2)) {
6107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6108 }
6109 arg2 = static_cast< long >(val2);
6110 ecode3 = SWIG_AsVal_long(obj2, &val3);
6111 if (!SWIG_IsOK(ecode3)) {
6112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6113 }
6114 arg3 = static_cast< long >(val3);
6115 {
6116 arg4 = wxString_in_helper(obj3);
6117 if (arg4 == NULL) SWIG_fail;
6118 temp4 = true;
6119 }
6120 {
6121 PyThreadState* __tstate = wxPyBeginAllowThreads();
6122 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6123 wxPyEndAllowThreads(__tstate);
6124 if (PyErr_Occurred()) SWIG_fail;
6125 }
6126 resultobj = SWIG_Py_Void();
6127 {
6128 if (temp4)
6129 delete arg4;
6130 }
6131 return resultobj;
6132fail:
6133 {
6134 if (temp4)
6135 delete arg4;
6136 }
6137 return NULL;
6138}
6139
6140
6141SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6142 PyObject *resultobj = 0;
6143 wxComboBox *arg1 = (wxComboBox *) 0 ;
6144 long arg2 ;
6145 long arg3 ;
6146 void *argp1 = 0 ;
6147 int res1 = 0 ;
6148 long val2 ;
6149 int ecode2 = 0 ;
6150 long val3 ;
6151 int ecode3 = 0 ;
6152 PyObject * obj0 = 0 ;
6153 PyObject * obj1 = 0 ;
6154 PyObject * obj2 = 0 ;
6155 char * kwnames[] = {
2131d850 6156 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
6157 };
6158
6159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6161 if (!SWIG_IsOK(res1)) {
6162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6163 }
6164 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6165 ecode2 = SWIG_AsVal_long(obj1, &val2);
6166 if (!SWIG_IsOK(ecode2)) {
6167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6168 }
6169 arg2 = static_cast< long >(val2);
6170 ecode3 = SWIG_AsVal_long(obj2, &val3);
6171 if (!SWIG_IsOK(ecode3)) {
6172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6173 }
6174 arg3 = static_cast< long >(val3);
6175 {
6176 PyThreadState* __tstate = wxPyBeginAllowThreads();
6177 (arg1)->SetSelection(arg2,arg3);
6178 wxPyEndAllowThreads(__tstate);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
6181 resultobj = SWIG_Py_Void();
6182 return resultobj;
6183fail:
6184 return NULL;
d55e5bfc
RD
6185}
6186
6187
1bd55598
RD
6188SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6189 PyObject *resultobj = 0;
6190 wxComboBox *arg1 = (wxComboBox *) 0 ;
6191 int result;
6192 void *argp1 = 0 ;
6193 int res1 = 0 ;
6194 PyObject *swig_obj[1] ;
6195
6196 if (!args) SWIG_fail;
6197 swig_obj[0] = args;
6198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6199 if (!SWIG_IsOK(res1)) {
6200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6201 }
6202 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6203 {
6204 PyThreadState* __tstate = wxPyBeginAllowThreads();
6205 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6206 wxPyEndAllowThreads(__tstate);
6207 if (PyErr_Occurred()) SWIG_fail;
6208 }
6209 resultobj = SWIG_From_int(static_cast< int >(result));
6210 return resultobj;
6211fail:
6212 return NULL;
6213}
6214
6215
6216SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6217 PyObject *resultobj = 0;
6218 wxComboBox *arg1 = (wxComboBox *) 0 ;
6219 wxString *arg2 = 0 ;
6220 bool result;
6221 void *argp1 = 0 ;
6222 int res1 = 0 ;
6223 bool temp2 = false ;
6224 PyObject * obj0 = 0 ;
6225 PyObject * obj1 = 0 ;
6226 char * kwnames[] = {
6227 (char *) "self",(char *) "string", NULL
6228 };
6229
6230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6232 if (!SWIG_IsOK(res1)) {
6233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6234 }
6235 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6236 {
6237 arg2 = wxString_in_helper(obj1);
6238 if (arg2 == NULL) SWIG_fail;
6239 temp2 = true;
6240 }
6241 {
6242 PyThreadState* __tstate = wxPyBeginAllowThreads();
6243 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6244 wxPyEndAllowThreads(__tstate);
6245 if (PyErr_Occurred()) SWIG_fail;
6246 }
6247 {
6248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6249 }
6250 {
6251 if (temp2)
6252 delete arg2;
6253 }
6254 return resultobj;
6255fail:
6256 {
6257 if (temp2)
6258 delete arg2;
6259 }
6260 return NULL;
6261}
6262
6263
6264SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6265 PyObject *resultobj = 0;
6266 wxComboBox *arg1 = (wxComboBox *) 0 ;
6267 bool arg2 ;
6268 void *argp1 = 0 ;
6269 int res1 = 0 ;
6270 bool val2 ;
6271 int ecode2 = 0 ;
6272 PyObject * obj0 = 0 ;
6273 PyObject * obj1 = 0 ;
6274 char * kwnames[] = {
6275 (char *) "self",(char *) "editable", NULL
6276 };
6277
6278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) 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_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6282 }
6283 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6284 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6285 if (!SWIG_IsOK(ecode2)) {
6286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6287 }
6288 arg2 = static_cast< bool >(val2);
6289 {
6290 PyThreadState* __tstate = wxPyBeginAllowThreads();
6291 (arg1)->SetEditable(arg2);
6292 wxPyEndAllowThreads(__tstate);
6293 if (PyErr_Occurred()) SWIG_fail;
6294 }
6295 resultobj = SWIG_Py_Void();
6296 return resultobj;
6297fail:
6298 return NULL;
d55e5bfc
RD
6299}
6300
6301
1bd55598
RD
6302SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6303 PyObject *resultobj = 0;
6304 wxComboBox *arg1 = (wxComboBox *) 0 ;
6305 void *argp1 = 0 ;
6306 int res1 = 0 ;
6307 PyObject *swig_obj[1] ;
6308
6309 if (!args) SWIG_fail;
6310 swig_obj[0] = args;
6311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6312 if (!SWIG_IsOK(res1)) {
6313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6314 }
6315 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6316 {
6317 PyThreadState* __tstate = wxPyBeginAllowThreads();
6318 (arg1)->SetInsertionPointEnd();
6319 wxPyEndAllowThreads(__tstate);
6320 if (PyErr_Occurred()) SWIG_fail;
6321 }
6322 resultobj = SWIG_Py_Void();
6323 return resultobj;
6324fail:
6325 return NULL;
6326}
6327
6328
6329SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6330 PyObject *resultobj = 0;
6331 wxComboBox *arg1 = (wxComboBox *) 0 ;
6332 long arg2 ;
6333 long arg3 ;
6334 void *argp1 = 0 ;
6335 int res1 = 0 ;
6336 long val2 ;
6337 int ecode2 = 0 ;
6338 long val3 ;
6339 int ecode3 = 0 ;
6340 PyObject * obj0 = 0 ;
6341 PyObject * obj1 = 0 ;
6342 PyObject * obj2 = 0 ;
6343 char * kwnames[] = {
2131d850 6344 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
6345 };
6346
6347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6349 if (!SWIG_IsOK(res1)) {
6350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6351 }
6352 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6353 ecode2 = SWIG_AsVal_long(obj1, &val2);
6354 if (!SWIG_IsOK(ecode2)) {
6355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6356 }
6357 arg2 = static_cast< long >(val2);
6358 ecode3 = SWIG_AsVal_long(obj2, &val3);
6359 if (!SWIG_IsOK(ecode3)) {
6360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6361 }
6362 arg3 = static_cast< long >(val3);
6363 {
6364 PyThreadState* __tstate = wxPyBeginAllowThreads();
6365 (arg1)->Remove(arg2,arg3);
6366 wxPyEndAllowThreads(__tstate);
6367 if (PyErr_Occurred()) SWIG_fail;
6368 }
6369 resultobj = SWIG_Py_Void();
6370 return resultobj;
6371fail:
6372 return NULL;
d55e5bfc
RD
6373}
6374
6375
1bd55598
RD
6376SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6377 PyObject *resultobj = 0;
6378 wxComboBox *arg1 = (wxComboBox *) 0 ;
6379 bool result;
6380 void *argp1 = 0 ;
6381 int res1 = 0 ;
6382 PyObject *swig_obj[1] ;
6383
6384 if (!args) SWIG_fail;
6385 swig_obj[0] = args;
6386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6387 if (!SWIG_IsOK(res1)) {
6388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6389 }
6390 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6391 {
6392 PyThreadState* __tstate = wxPyBeginAllowThreads();
6393 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6394 wxPyEndAllowThreads(__tstate);
6395 if (PyErr_Occurred()) SWIG_fail;
6396 }
6397 {
6398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6399 }
6400 return resultobj;
6401fail:
6402 return NULL;
d55e5bfc
RD
6403}
6404
6405
1bd55598
RD
6406SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6407 PyObject *resultobj = 0;
6408 wxComboBox *arg1 = (wxComboBox *) 0 ;
6409 void *argp1 = 0 ;
6410 int res1 = 0 ;
6411 PyObject *swig_obj[1] ;
6412
6413 if (!args) SWIG_fail;
6414 swig_obj[0] = args;
6415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6416 if (!SWIG_IsOK(res1)) {
6417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6418 }
6419 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6420 {
6421 PyThreadState* __tstate = wxPyBeginAllowThreads();
6422 (arg1)->Undo();
6423 wxPyEndAllowThreads(__tstate);
6424 if (PyErr_Occurred()) SWIG_fail;
6425 }
6426 resultobj = SWIG_Py_Void();
6427 return resultobj;
6428fail:
6429 return NULL;
d55e5bfc
RD
6430}
6431
6432
1bd55598
RD
6433SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6434 PyObject *resultobj = 0;
6435 wxComboBox *arg1 = (wxComboBox *) 0 ;
6436 void *argp1 = 0 ;
6437 int res1 = 0 ;
6438 PyObject *swig_obj[1] ;
6439
6440 if (!args) SWIG_fail;
6441 swig_obj[0] = args;
6442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6443 if (!SWIG_IsOK(res1)) {
6444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6445 }
6446 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6447 {
6448 PyThreadState* __tstate = wxPyBeginAllowThreads();
6449 (arg1)->Redo();
6450 wxPyEndAllowThreads(__tstate);
6451 if (PyErr_Occurred()) SWIG_fail;
6452 }
6453 resultobj = SWIG_Py_Void();
6454 return resultobj;
6455fail:
6456 return NULL;
d55e5bfc
RD
6457}
6458
6459
1bd55598
RD
6460SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6461 PyObject *resultobj = 0;
6462 wxComboBox *arg1 = (wxComboBox *) 0 ;
6463 void *argp1 = 0 ;
6464 int res1 = 0 ;
6465 PyObject *swig_obj[1] ;
6466
6467 if (!args) SWIG_fail;
6468 swig_obj[0] = args;
6469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6470 if (!SWIG_IsOK(res1)) {
6471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6472 }
6473 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6474 {
6475 PyThreadState* __tstate = wxPyBeginAllowThreads();
6476 (arg1)->SelectAll();
6477 wxPyEndAllowThreads(__tstate);
6478 if (PyErr_Occurred()) SWIG_fail;
6479 }
6480 resultobj = SWIG_Py_Void();
6481 return resultobj;
6482fail:
6483 return NULL;
943e8dfd
RD
6484}
6485
6486
1bd55598
RD
6487SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6488 PyObject *resultobj = 0;
6489 wxComboBox *arg1 = (wxComboBox *) 0 ;
6490 bool result;
6491 void *argp1 = 0 ;
6492 int res1 = 0 ;
6493 PyObject *swig_obj[1] ;
6494
6495 if (!args) SWIG_fail;
6496 swig_obj[0] = args;
6497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6498 if (!SWIG_IsOK(res1)) {
6499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6500 }
6501 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6502 {
6503 PyThreadState* __tstate = wxPyBeginAllowThreads();
6504 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6505 wxPyEndAllowThreads(__tstate);
6506 if (PyErr_Occurred()) SWIG_fail;
6507 }
6508 {
6509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6510 }
6511 return resultobj;
6512fail:
6513 return NULL;
121b9a67
RD
6514}
6515
6516
1bd55598
RD
6517SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6518 PyObject *resultobj = 0;
6519 wxComboBox *arg1 = (wxComboBox *) 0 ;
6520 bool result;
6521 void *argp1 = 0 ;
6522 int res1 = 0 ;
6523 PyObject *swig_obj[1] ;
6524
6525 if (!args) SWIG_fail;
6526 swig_obj[0] = args;
6527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6528 if (!SWIG_IsOK(res1)) {
6529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6530 }
6531 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6532 {
6533 PyThreadState* __tstate = wxPyBeginAllowThreads();
6534 result = (bool)((wxComboBox const *)arg1)->CanCut();
6535 wxPyEndAllowThreads(__tstate);
6536 if (PyErr_Occurred()) SWIG_fail;
6537 }
6538 {
6539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6540 }
6541 return resultobj;
6542fail:
6543 return NULL;
121b9a67
RD
6544}
6545
6546
1bd55598
RD
6547SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6548 PyObject *resultobj = 0;
6549 wxComboBox *arg1 = (wxComboBox *) 0 ;
6550 bool result;
6551 void *argp1 = 0 ;
6552 int res1 = 0 ;
6553 PyObject *swig_obj[1] ;
6554
6555 if (!args) SWIG_fail;
6556 swig_obj[0] = args;
6557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6558 if (!SWIG_IsOK(res1)) {
6559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6560 }
6561 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6562 {
6563 PyThreadState* __tstate = wxPyBeginAllowThreads();
6564 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6565 wxPyEndAllowThreads(__tstate);
6566 if (PyErr_Occurred()) SWIG_fail;
6567 }
6568 {
6569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6570 }
6571 return resultobj;
6572fail:
6573 return NULL;
d55e5bfc
RD
6574}
6575
6576
1bd55598
RD
6577SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6578 PyObject *resultobj = 0;
6579 wxComboBox *arg1 = (wxComboBox *) 0 ;
6580 bool result;
6581 void *argp1 = 0 ;
6582 int res1 = 0 ;
6583 PyObject *swig_obj[1] ;
6584
6585 if (!args) SWIG_fail;
6586 swig_obj[0] = args;
6587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6588 if (!SWIG_IsOK(res1)) {
6589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6590 }
6591 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6592 {
6593 PyThreadState* __tstate = wxPyBeginAllowThreads();
6594 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6595 wxPyEndAllowThreads(__tstate);
6596 if (PyErr_Occurred()) SWIG_fail;
6597 }
6598 {
6599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6600 }
6601 return resultobj;
6602fail:
6603 return NULL;
d55e5bfc
RD
6604}
6605
6606
1bd55598
RD
6607SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6608 PyObject *resultobj = 0;
6609 wxComboBox *arg1 = (wxComboBox *) 0 ;
6610 bool result;
6611 void *argp1 = 0 ;
6612 int res1 = 0 ;
6613 PyObject *swig_obj[1] ;
6614
6615 if (!args) SWIG_fail;
6616 swig_obj[0] = args;
6617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6618 if (!SWIG_IsOK(res1)) {
6619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6620 }
6621 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6622 {
6623 PyThreadState* __tstate = wxPyBeginAllowThreads();
6624 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6625 wxPyEndAllowThreads(__tstate);
6626 if (PyErr_Occurred()) SWIG_fail;
6627 }
6628 {
6629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6630 }
6631 return resultobj;
6632fail:
6633 return NULL;
d55e5bfc
RD
6634}
6635
6636
1bd55598
RD
6637SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6638 PyObject *resultobj = 0;
6639 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6640 SwigValueWrapper<wxVisualAttributes > result;
6641 int val1 ;
6642 int ecode1 = 0 ;
6643 PyObject * obj0 = 0 ;
6644 char * kwnames[] = {
6645 (char *) "variant", NULL
6646 };
6647
6648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6649 if (obj0) {
6650 ecode1 = SWIG_AsVal_int(obj0, &val1);
6651 if (!SWIG_IsOK(ecode1)) {
6652 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6653 }
6654 arg1 = static_cast< wxWindowVariant >(val1);
6655 }
6656 {
6657 if (!wxPyCheckForApp()) SWIG_fail;
6658 PyThreadState* __tstate = wxPyBeginAllowThreads();
6659 result = wxComboBox::GetClassDefaultAttributes(arg1);
6660 wxPyEndAllowThreads(__tstate);
6661 if (PyErr_Occurred()) SWIG_fail;
6662 }
6663 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6664 return resultobj;
6665fail:
6666 return NULL;
5cbf236d
RD
6667}
6668
6669
1bd55598
RD
6670SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6671 PyObject *obj;
6672 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6673 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6674 return SWIG_Py_Void();
5cbf236d
RD
6675}
6676
1bd55598
RD
6677SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6678 return SWIG_Python_InitShadowInstance(args);
5cbf236d
RD
6679}
6680
1bd55598
RD
6681SWIGINTERN int GaugeNameStr_set(PyObject *) {
6682 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6683 return 1;
5cbf236d
RD
6684}
6685
6686
1bd55598
RD
6687SWIGINTERN PyObject *GaugeNameStr_get(void) {
6688 PyObject *pyobj = 0;
6689
6690 {
6691#if wxUSE_UNICODE
6692 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6693#else
6694 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6695#endif
6696 }
6697 return pyobj;
6698}
6699
6700
6701SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6702 PyObject *resultobj = 0;
6703 wxWindow *arg1 = (wxWindow *) 0 ;
6704 int arg2 = (int) -1 ;
6705 int arg3 = (int) 100 ;
6706 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6707 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6708 wxSize const &arg5_defvalue = wxDefaultSize ;
6709 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6710 long arg6 = (long) wxGA_HORIZONTAL ;
6711 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6712 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6713 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6714 wxString *arg8 = (wxString *) &arg8_defvalue ;
6715 wxGauge *result = 0 ;
6716 void *argp1 = 0 ;
6717 int res1 = 0 ;
6718 int val2 ;
6719 int ecode2 = 0 ;
6720 int val3 ;
6721 int ecode3 = 0 ;
6722 wxPoint temp4 ;
6723 wxSize temp5 ;
6724 long val6 ;
6725 int ecode6 = 0 ;
6726 void *argp7 = 0 ;
6727 int res7 = 0 ;
6728 bool temp8 = false ;
6729 PyObject * obj0 = 0 ;
6730 PyObject * obj1 = 0 ;
6731 PyObject * obj2 = 0 ;
6732 PyObject * obj3 = 0 ;
6733 PyObject * obj4 = 0 ;
6734 PyObject * obj5 = 0 ;
6735 PyObject * obj6 = 0 ;
6736 PyObject * obj7 = 0 ;
6737 char * kwnames[] = {
6738 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6739 };
6740
6741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6743 if (!SWIG_IsOK(res1)) {
6744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6745 }
6746 arg1 = reinterpret_cast< wxWindow * >(argp1);
6747 if (obj1) {
6748 ecode2 = SWIG_AsVal_int(obj1, &val2);
6749 if (!SWIG_IsOK(ecode2)) {
6750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6751 }
6752 arg2 = static_cast< int >(val2);
6753 }
6754 if (obj2) {
6755 ecode3 = SWIG_AsVal_int(obj2, &val3);
6756 if (!SWIG_IsOK(ecode3)) {
6757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6758 }
6759 arg3 = static_cast< int >(val3);
6760 }
6761 if (obj3) {
5cbf236d 6762 {
1bd55598
RD
6763 arg4 = &temp4;
6764 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5cbf236d 6765 }
1bd55598
RD
6766 }
6767 if (obj4) {
5cbf236d 6768 {
1bd55598
RD
6769 arg5 = &temp5;
6770 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6771 }
1bd55598
RD
6772 }
6773 if (obj5) {
6774 ecode6 = SWIG_AsVal_long(obj5, &val6);
6775 if (!SWIG_IsOK(ecode6)) {
6776 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6777 }
6778 arg6 = static_cast< long >(val6);
6779 }
6780 if (obj6) {
6781 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6782 if (!SWIG_IsOK(res7)) {
6783 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6784 }
6785 if (!argp7) {
6786 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
5cbf236d 6787 }
1bd55598
RD
6788 arg7 = reinterpret_cast< wxValidator * >(argp7);
6789 }
6790 if (obj7) {
5cbf236d 6791 {
1bd55598
RD
6792 arg8 = wxString_in_helper(obj7);
6793 if (arg8 == NULL) SWIG_fail;
6794 temp8 = true;
5cbf236d 6795 }
1bd55598
RD
6796 }
6797 {
6798 if (!wxPyCheckForApp()) SWIG_fail;
6799 PyThreadState* __tstate = wxPyBeginAllowThreads();
6800 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6801 wxPyEndAllowThreads(__tstate);
6802 if (PyErr_Occurred()) SWIG_fail;
6803 }
6804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6805 {
6806 if (temp8)
6807 delete arg8;
6808 }
6809 return resultobj;
6810fail:
6811 {
6812 if (temp8)
6813 delete arg8;
6814 }
6815 return NULL;
5cbf236d
RD
6816}
6817
6818
1bd55598
RD
6819SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6820 PyObject *resultobj = 0;
6821 wxGauge *result = 0 ;
6822
6823 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6824 {
6825 if (!wxPyCheckForApp()) SWIG_fail;
6826 PyThreadState* __tstate = wxPyBeginAllowThreads();
6827 result = (wxGauge *)new wxGauge();
6828 wxPyEndAllowThreads(__tstate);
6829 if (PyErr_Occurred()) SWIG_fail;
6830 }
6831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6832 return resultobj;
6833fail:
6834 return NULL;
6835}
6836
6837
6838SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6839 PyObject *resultobj = 0;
6840 wxGauge *arg1 = (wxGauge *) 0 ;
6841 wxWindow *arg2 = (wxWindow *) 0 ;
6842 int arg3 = (int) -1 ;
6843 int arg4 = (int) 100 ;
6844 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6845 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6846 wxSize const &arg6_defvalue = wxDefaultSize ;
6847 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6848 long arg7 = (long) wxGA_HORIZONTAL ;
6849 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6850 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6851 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6852 wxString *arg9 = (wxString *) &arg9_defvalue ;
6853 bool result;
6854 void *argp1 = 0 ;
6855 int res1 = 0 ;
6856 void *argp2 = 0 ;
6857 int res2 = 0 ;
6858 int val3 ;
6859 int ecode3 = 0 ;
6860 int val4 ;
6861 int ecode4 = 0 ;
6862 wxPoint temp5 ;
6863 wxSize temp6 ;
6864 long val7 ;
6865 int ecode7 = 0 ;
6866 void *argp8 = 0 ;
6867 int res8 = 0 ;
6868 bool temp9 = false ;
6869 PyObject * obj0 = 0 ;
6870 PyObject * obj1 = 0 ;
6871 PyObject * obj2 = 0 ;
6872 PyObject * obj3 = 0 ;
6873 PyObject * obj4 = 0 ;
6874 PyObject * obj5 = 0 ;
6875 PyObject * obj6 = 0 ;
6876 PyObject * obj7 = 0 ;
6877 PyObject * obj8 = 0 ;
6878 char * kwnames[] = {
6879 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6880 };
6881
6882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6884 if (!SWIG_IsOK(res1)) {
6885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6886 }
6887 arg1 = reinterpret_cast< wxGauge * >(argp1);
6888 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6889 if (!SWIG_IsOK(res2)) {
6890 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6891 }
6892 arg2 = reinterpret_cast< wxWindow * >(argp2);
6893 if (obj2) {
6894 ecode3 = SWIG_AsVal_int(obj2, &val3);
6895 if (!SWIG_IsOK(ecode3)) {
6896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6897 }
6898 arg3 = static_cast< int >(val3);
6899 }
6900 if (obj3) {
6901 ecode4 = SWIG_AsVal_int(obj3, &val4);
6902 if (!SWIG_IsOK(ecode4)) {
6903 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6904 }
6905 arg4 = static_cast< int >(val4);
6906 }
6907 if (obj4) {
5cbf236d 6908 {
1bd55598
RD
6909 arg5 = &temp5;
6910 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6911 }
1bd55598
RD
6912 }
6913 if (obj5) {
5cbf236d 6914 {
1bd55598
RD
6915 arg6 = &temp6;
6916 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5cbf236d 6917 }
1bd55598
RD
6918 }
6919 if (obj6) {
6920 ecode7 = SWIG_AsVal_long(obj6, &val7);
6921 if (!SWIG_IsOK(ecode7)) {
6922 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6923 }
6924 arg7 = static_cast< long >(val7);
6925 }
6926 if (obj7) {
6927 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6928 if (!SWIG_IsOK(res8)) {
6929 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5cbf236d 6930 }
1bd55598
RD
6931 if (!argp8) {
6932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6933 }
6934 arg8 = reinterpret_cast< wxValidator * >(argp8);
6935 }
6936 if (obj8) {
5cbf236d 6937 {
1bd55598
RD
6938 arg9 = wxString_in_helper(obj8);
6939 if (arg9 == NULL) SWIG_fail;
6940 temp9 = true;
5cbf236d 6941 }
1bd55598
RD
6942 }
6943 {
6944 PyThreadState* __tstate = wxPyBeginAllowThreads();
6945 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6946 wxPyEndAllowThreads(__tstate);
6947 if (PyErr_Occurred()) SWIG_fail;
6948 }
6949 {
6950 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6951 }
6952 {
6953 if (temp9)
6954 delete arg9;
6955 }
6956 return resultobj;
6957fail:
6958 {
6959 if (temp9)
6960 delete arg9;
6961 }
6962 return NULL;
6963}
6964
6965
6966SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6967 PyObject *resultobj = 0;
6968 wxGauge *arg1 = (wxGauge *) 0 ;
6969 int arg2 ;
6970 void *argp1 = 0 ;
6971 int res1 = 0 ;
6972 int val2 ;
6973 int ecode2 = 0 ;
6974 PyObject * obj0 = 0 ;
6975 PyObject * obj1 = 0 ;
6976 char * kwnames[] = {
6977 (char *) "self",(char *) "range", NULL
6978 };
6979
6980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
6981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6982 if (!SWIG_IsOK(res1)) {
6983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
6984 }
6985 arg1 = reinterpret_cast< wxGauge * >(argp1);
6986 ecode2 = SWIG_AsVal_int(obj1, &val2);
6987 if (!SWIG_IsOK(ecode2)) {
6988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
6989 }
6990 arg2 = static_cast< int >(val2);
6991 {
6992 PyThreadState* __tstate = wxPyBeginAllowThreads();
6993 (arg1)->SetRange(arg2);
6994 wxPyEndAllowThreads(__tstate);
6995 if (PyErr_Occurred()) SWIG_fail;
6996 }
6997 resultobj = SWIG_Py_Void();
6998 return resultobj;
6999fail:
7000 return NULL;
5cbf236d
RD
7001}
7002
7003
1bd55598
RD
7004SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7005 PyObject *resultobj = 0;
7006 wxGauge *arg1 = (wxGauge *) 0 ;
7007 int result;
7008 void *argp1 = 0 ;
7009 int res1 = 0 ;
7010 PyObject *swig_obj[1] ;
7011
7012 if (!args) SWIG_fail;
7013 swig_obj[0] = args;
7014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7015 if (!SWIG_IsOK(res1)) {
7016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7017 }
7018 arg1 = reinterpret_cast< wxGauge * >(argp1);
7019 {
7020 PyThreadState* __tstate = wxPyBeginAllowThreads();
7021 result = (int)((wxGauge const *)arg1)->GetRange();
7022 wxPyEndAllowThreads(__tstate);
7023 if (PyErr_Occurred()) SWIG_fail;
7024 }
7025 resultobj = SWIG_From_int(static_cast< int >(result));
7026 return resultobj;
7027fail:
7028 return NULL;
7029}
7030
7031
7032SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7033 PyObject *resultobj = 0;
7034 wxGauge *arg1 = (wxGauge *) 0 ;
7035 int arg2 ;
7036 void *argp1 = 0 ;
7037 int res1 = 0 ;
7038 int val2 ;
7039 int ecode2 = 0 ;
7040 PyObject * obj0 = 0 ;
7041 PyObject * obj1 = 0 ;
7042 char * kwnames[] = {
7043 (char *) "self",(char *) "pos", NULL
7044 };
7045
7046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7048 if (!SWIG_IsOK(res1)) {
7049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7050 }
7051 arg1 = reinterpret_cast< wxGauge * >(argp1);
7052 ecode2 = SWIG_AsVal_int(obj1, &val2);
7053 if (!SWIG_IsOK(ecode2)) {
7054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7055 }
7056 arg2 = static_cast< int >(val2);
7057 {
7058 PyThreadState* __tstate = wxPyBeginAllowThreads();
7059 (arg1)->SetValue(arg2);
7060 wxPyEndAllowThreads(__tstate);
7061 if (PyErr_Occurred()) SWIG_fail;
7062 }
7063 resultobj = SWIG_Py_Void();
7064 return resultobj;
7065fail:
7066 return NULL;
5cbf236d
RD
7067}
7068
7069
1bd55598
RD
7070SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7071 PyObject *resultobj = 0;
7072 wxGauge *arg1 = (wxGauge *) 0 ;
7073 int result;
7074 void *argp1 = 0 ;
7075 int res1 = 0 ;
7076 PyObject *swig_obj[1] ;
7077
7078 if (!args) SWIG_fail;
7079 swig_obj[0] = args;
7080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7081 if (!SWIG_IsOK(res1)) {
7082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7083 }
7084 arg1 = reinterpret_cast< wxGauge * >(argp1);
7085 {
7086 PyThreadState* __tstate = wxPyBeginAllowThreads();
7087 result = (int)((wxGauge const *)arg1)->GetValue();
7088 wxPyEndAllowThreads(__tstate);
7089 if (PyErr_Occurred()) SWIG_fail;
7090 }
7091 resultobj = SWIG_From_int(static_cast< int >(result));
7092 return resultobj;
7093fail:
7094 return NULL;
f20a2e1f
RD
7095}
7096
7097
0d2c9713
RD
7098SWIGINTERN PyObject *_wrap_Gauge_Pulse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7099 PyObject *resultobj = 0;
7100 wxGauge *arg1 = (wxGauge *) 0 ;
7101 void *argp1 = 0 ;
7102 int res1 = 0 ;
7103 PyObject *swig_obj[1] ;
7104
7105 if (!args) SWIG_fail;
7106 swig_obj[0] = args;
7107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7108 if (!SWIG_IsOK(res1)) {
7109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Pulse" "', expected argument " "1"" of type '" "wxGauge *""'");
7110 }
7111 arg1 = reinterpret_cast< wxGauge * >(argp1);
7112 {
7113 PyThreadState* __tstate = wxPyBeginAllowThreads();
7114 (arg1)->Pulse();
7115 wxPyEndAllowThreads(__tstate);
7116 if (PyErr_Occurred()) SWIG_fail;
7117 }
7118 resultobj = SWIG_Py_Void();
7119 return resultobj;
7120fail:
7121 return NULL;
7122}
7123
7124
1bd55598
RD
7125SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7126 PyObject *resultobj = 0;
7127 wxGauge *arg1 = (wxGauge *) 0 ;
7128 bool result;
7129 void *argp1 = 0 ;
7130 int res1 = 0 ;
7131 PyObject *swig_obj[1] ;
7132
7133 if (!args) SWIG_fail;
7134 swig_obj[0] = args;
7135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7136 if (!SWIG_IsOK(res1)) {
7137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7138 }
7139 arg1 = reinterpret_cast< wxGauge * >(argp1);
7140 {
7141 PyThreadState* __tstate = wxPyBeginAllowThreads();
7142 result = (bool)((wxGauge const *)arg1)->IsVertical();
7143 wxPyEndAllowThreads(__tstate);
7144 if (PyErr_Occurred()) SWIG_fail;
7145 }
7146 {
7147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7148 }
7149 return resultobj;
7150fail:
7151 return NULL;
7152}
7153
7154
7155SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7156 PyObject *resultobj = 0;
7157 wxGauge *arg1 = (wxGauge *) 0 ;
7158 int arg2 ;
7159 void *argp1 = 0 ;
7160 int res1 = 0 ;
7161 int val2 ;
7162 int ecode2 = 0 ;
7163 PyObject * obj0 = 0 ;
7164 PyObject * obj1 = 0 ;
7165 char * kwnames[] = {
7166 (char *) "self",(char *) "w", NULL
7167 };
7168
7169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7171 if (!SWIG_IsOK(res1)) {
7172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7173 }
7174 arg1 = reinterpret_cast< wxGauge * >(argp1);
7175 ecode2 = SWIG_AsVal_int(obj1, &val2);
7176 if (!SWIG_IsOK(ecode2)) {
7177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7178 }
7179 arg2 = static_cast< int >(val2);
7180 {
7181 PyThreadState* __tstate = wxPyBeginAllowThreads();
7182 (arg1)->SetShadowWidth(arg2);
7183 wxPyEndAllowThreads(__tstate);
7184 if (PyErr_Occurred()) SWIG_fail;
7185 }
7186 resultobj = SWIG_Py_Void();
7187 return resultobj;
7188fail:
7189 return NULL;
d55e5bfc
RD
7190}
7191
7192
1bd55598
RD
7193SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7194 PyObject *resultobj = 0;
7195 wxGauge *arg1 = (wxGauge *) 0 ;
7196 int result;
7197 void *argp1 = 0 ;
7198 int res1 = 0 ;
7199 PyObject *swig_obj[1] ;
7200
7201 if (!args) SWIG_fail;
7202 swig_obj[0] = args;
7203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7204 if (!SWIG_IsOK(res1)) {
7205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7206 }
7207 arg1 = reinterpret_cast< wxGauge * >(argp1);
7208 {
7209 PyThreadState* __tstate = wxPyBeginAllowThreads();
7210 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7211 wxPyEndAllowThreads(__tstate);
7212 if (PyErr_Occurred()) SWIG_fail;
7213 }
7214 resultobj = SWIG_From_int(static_cast< int >(result));
7215 return resultobj;
7216fail:
7217 return NULL;
7218}
7219
7220
7221SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7222 PyObject *resultobj = 0;
7223 wxGauge *arg1 = (wxGauge *) 0 ;
7224 int arg2 ;
7225 void *argp1 = 0 ;
7226 int res1 = 0 ;
7227 int val2 ;
7228 int ecode2 = 0 ;
7229 PyObject * obj0 = 0 ;
7230 PyObject * obj1 = 0 ;
7231 char * kwnames[] = {
7232 (char *) "self",(char *) "w", NULL
7233 };
7234
7235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7237 if (!SWIG_IsOK(res1)) {
7238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7239 }
7240 arg1 = reinterpret_cast< wxGauge * >(argp1);
7241 ecode2 = SWIG_AsVal_int(obj1, &val2);
7242 if (!SWIG_IsOK(ecode2)) {
7243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7244 }
7245 arg2 = static_cast< int >(val2);
7246 {
7247 PyThreadState* __tstate = wxPyBeginAllowThreads();
7248 (arg1)->SetBezelFace(arg2);
7249 wxPyEndAllowThreads(__tstate);
7250 if (PyErr_Occurred()) SWIG_fail;
7251 }
7252 resultobj = SWIG_Py_Void();
7253 return resultobj;
7254fail:
7255 return NULL;
d55e5bfc
RD
7256}
7257
7258
1bd55598
RD
7259SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7260 PyObject *resultobj = 0;
7261 wxGauge *arg1 = (wxGauge *) 0 ;
7262 int result;
7263 void *argp1 = 0 ;
7264 int res1 = 0 ;
7265 PyObject *swig_obj[1] ;
7266
7267 if (!args) SWIG_fail;
7268 swig_obj[0] = args;
7269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7270 if (!SWIG_IsOK(res1)) {
7271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7272 }
7273 arg1 = reinterpret_cast< wxGauge * >(argp1);
7274 {
7275 PyThreadState* __tstate = wxPyBeginAllowThreads();
7276 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7277 wxPyEndAllowThreads(__tstate);
7278 if (PyErr_Occurred()) SWIG_fail;
7279 }
7280 resultobj = SWIG_From_int(static_cast< int >(result));
7281 return resultobj;
7282fail:
7283 return NULL;
7284}
7285
7286
7287SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7288 PyObject *resultobj = 0;
7289 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7290 SwigValueWrapper<wxVisualAttributes > result;
7291 int val1 ;
7292 int ecode1 = 0 ;
7293 PyObject * obj0 = 0 ;
7294 char * kwnames[] = {
7295 (char *) "variant", NULL
7296 };
7297
7298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7299 if (obj0) {
7300 ecode1 = SWIG_AsVal_int(obj0, &val1);
7301 if (!SWIG_IsOK(ecode1)) {
7302 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7303 }
7304 arg1 = static_cast< wxWindowVariant >(val1);
7305 }
7306 {
7307 if (!wxPyCheckForApp()) SWIG_fail;
7308 PyThreadState* __tstate = wxPyBeginAllowThreads();
7309 result = wxGauge::GetClassDefaultAttributes(arg1);
7310 wxPyEndAllowThreads(__tstate);
7311 if (PyErr_Occurred()) SWIG_fail;
7312 }
7313 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7314 return resultobj;
7315fail:
7316 return NULL;
d55e5bfc
RD
7317}
7318
7319
1bd55598
RD
7320SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7321 PyObject *obj;
7322 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7323 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7324 return SWIG_Py_Void();
d55e5bfc
RD
7325}
7326
1bd55598
RD
7327SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7328 return SWIG_Python_InitShadowInstance(args);
7329}
d55e5bfc 7330
1bd55598
RD
7331SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7332 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7333 return 1;
d55e5bfc
RD
7334}
7335
7336
1bd55598
RD
7337SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7338 PyObject *pyobj = 0;
7339
7340 {
7341#if wxUSE_UNICODE
7342 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7343#else
7344 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7345#endif
7346 }
7347 return pyobj;
d55e5bfc
RD
7348}
7349
7350
1bd55598
RD
7351SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7352 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7353 return 1;
d55e5bfc
RD
7354}
7355
7356
1bd55598
RD
7357SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7358 PyObject *pyobj = 0;
7359
7360 {
7361#if wxUSE_UNICODE
7362 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7363#else
7364 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7365#endif
7366 }
7367 return pyobj;
d55e5bfc
RD
7368}
7369
7370
1bd55598
RD
7371SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7372 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7373 return 1;
d55e5bfc
RD
7374}
7375
7376
1bd55598
RD
7377SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7378 PyObject *pyobj = 0;
7379
7380 {
7381#if wxUSE_UNICODE
7382 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7383#else
7384 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7385#endif
7386 }
7387 return pyobj;
7388}
7389
7390
7391SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7392 PyObject *resultobj = 0;
7393 wxWindow *arg1 = (wxWindow *) 0 ;
7394 int arg2 = (int) -1 ;
7395 wxString const &arg3_defvalue = wxPyEmptyString ;
7396 wxString *arg3 = (wxString *) &arg3_defvalue ;
7397 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7398 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7399 wxSize const &arg5_defvalue = wxDefaultSize ;
7400 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7401 long arg6 = (long) 0 ;
7402 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7403 wxString *arg7 = (wxString *) &arg7_defvalue ;
7404 wxStaticBox *result = 0 ;
7405 void *argp1 = 0 ;
7406 int res1 = 0 ;
7407 int val2 ;
7408 int ecode2 = 0 ;
7409 bool temp3 = false ;
7410 wxPoint temp4 ;
7411 wxSize temp5 ;
7412 long val6 ;
7413 int ecode6 = 0 ;
7414 bool temp7 = false ;
7415 PyObject * obj0 = 0 ;
7416 PyObject * obj1 = 0 ;
7417 PyObject * obj2 = 0 ;
7418 PyObject * obj3 = 0 ;
7419 PyObject * obj4 = 0 ;
7420 PyObject * obj5 = 0 ;
7421 PyObject * obj6 = 0 ;
7422 char * kwnames[] = {
7423 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7424 };
7425
7426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7428 if (!SWIG_IsOK(res1)) {
7429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7430 }
7431 arg1 = reinterpret_cast< wxWindow * >(argp1);
7432 if (obj1) {
7433 ecode2 = SWIG_AsVal_int(obj1, &val2);
7434 if (!SWIG_IsOK(ecode2)) {
7435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7436 }
7437 arg2 = static_cast< int >(val2);
7438 }
7439 if (obj2) {
36ed4f51 7440 {
1bd55598
RD
7441 arg3 = wxString_in_helper(obj2);
7442 if (arg3 == NULL) SWIG_fail;
7443 temp3 = true;
36ed4f51 7444 }
1bd55598
RD
7445 }
7446 if (obj3) {
d55e5bfc 7447 {
1bd55598
RD
7448 arg4 = &temp4;
7449 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7450 }
1bd55598
RD
7451 }
7452 if (obj4) {
d55e5bfc 7453 {
1bd55598
RD
7454 arg5 = &temp5;
7455 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7456 }
1bd55598
RD
7457 }
7458 if (obj5) {
7459 ecode6 = SWIG_AsVal_long(obj5, &val6);
7460 if (!SWIG_IsOK(ecode6)) {
7461 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7462 }
7463 arg6 = static_cast< long >(val6);
7464 }
7465 if (obj6) {
36ed4f51 7466 {
1bd55598
RD
7467 arg7 = wxString_in_helper(obj6);
7468 if (arg7 == NULL) SWIG_fail;
7469 temp7 = true;
36ed4f51 7470 }
1bd55598
RD
7471 }
7472 {
7473 if (!wxPyCheckForApp()) SWIG_fail;
7474 PyThreadState* __tstate = wxPyBeginAllowThreads();
7475 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7476 wxPyEndAllowThreads(__tstate);
7477 if (PyErr_Occurred()) SWIG_fail;
7478 }
7479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7480 {
7481 if (temp3)
7482 delete arg3;
7483 }
7484 {
7485 if (temp7)
7486 delete arg7;
7487 }
7488 return resultobj;
7489fail:
7490 {
7491 if (temp3)
7492 delete arg3;
7493 }
7494 {
7495 if (temp7)
7496 delete arg7;
7497 }
7498 return NULL;
7499}
d55e5bfc 7500
1bd55598
RD
7501
7502SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7503 PyObject *resultobj = 0;
7504 wxStaticBox *result = 0 ;
7505
7506 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7507 {
7508 if (!wxPyCheckForApp()) SWIG_fail;
7509 PyThreadState* __tstate = wxPyBeginAllowThreads();
7510 result = (wxStaticBox *)new wxStaticBox();
7511 wxPyEndAllowThreads(__tstate);
7512 if (PyErr_Occurred()) SWIG_fail;
7513 }
7514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7515 return resultobj;
7516fail:
7517 return NULL;
7518}
7519
7520
7521SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7522 PyObject *resultobj = 0;
7523 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7524 wxWindow *arg2 = (wxWindow *) 0 ;
7525 int arg3 = (int) -1 ;
7526 wxString const &arg4_defvalue = wxPyEmptyString ;
7527 wxString *arg4 = (wxString *) &arg4_defvalue ;
7528 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7529 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7530 wxSize const &arg6_defvalue = wxDefaultSize ;
7531 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7532 long arg7 = (long) 0 ;
7533 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7534 wxString *arg8 = (wxString *) &arg8_defvalue ;
7535 bool result;
7536 void *argp1 = 0 ;
7537 int res1 = 0 ;
7538 void *argp2 = 0 ;
7539 int res2 = 0 ;
7540 int val3 ;
7541 int ecode3 = 0 ;
7542 bool temp4 = false ;
7543 wxPoint temp5 ;
7544 wxSize temp6 ;
7545 long val7 ;
7546 int ecode7 = 0 ;
7547 bool temp8 = false ;
7548 PyObject * obj0 = 0 ;
7549 PyObject * obj1 = 0 ;
7550 PyObject * obj2 = 0 ;
7551 PyObject * obj3 = 0 ;
7552 PyObject * obj4 = 0 ;
7553 PyObject * obj5 = 0 ;
7554 PyObject * obj6 = 0 ;
7555 PyObject * obj7 = 0 ;
7556 char * kwnames[] = {
7557 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7558 };
7559
7560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7562 if (!SWIG_IsOK(res1)) {
7563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7564 }
7565 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7567 if (!SWIG_IsOK(res2)) {
7568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7569 }
7570 arg2 = reinterpret_cast< wxWindow * >(argp2);
7571 if (obj2) {
7572 ecode3 = SWIG_AsVal_int(obj2, &val3);
7573 if (!SWIG_IsOK(ecode3)) {
7574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7575 }
7576 arg3 = static_cast< int >(val3);
7577 }
7578 if (obj3) {
36ed4f51 7579 {
1bd55598
RD
7580 arg4 = wxString_in_helper(obj3);
7581 if (arg4 == NULL) SWIG_fail;
7582 temp4 = true;
36ed4f51 7583 }
1bd55598
RD
7584 }
7585 if (obj4) {
d55e5bfc 7586 {
1bd55598
RD
7587 arg5 = &temp5;
7588 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7589 }
1bd55598
RD
7590 }
7591 if (obj5) {
d55e5bfc 7592 {
1bd55598
RD
7593 arg6 = &temp6;
7594 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 7595 }
1bd55598
RD
7596 }
7597 if (obj6) {
7598 ecode7 = SWIG_AsVal_long(obj6, &val7);
7599 if (!SWIG_IsOK(ecode7)) {
7600 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7601 }
7602 arg7 = static_cast< long >(val7);
7603 }
7604 if (obj7) {
36ed4f51 7605 {
1bd55598
RD
7606 arg8 = wxString_in_helper(obj7);
7607 if (arg8 == NULL) SWIG_fail;
7608 temp8 = true;
36ed4f51 7609 }
1bd55598
RD
7610 }
7611 {
7612 PyThreadState* __tstate = wxPyBeginAllowThreads();
7613 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7614 wxPyEndAllowThreads(__tstate);
7615 if (PyErr_Occurred()) SWIG_fail;
7616 }
7617 {
7618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7619 }
7620 {
7621 if (temp4)
7622 delete arg4;
7623 }
7624 {
7625 if (temp8)
7626 delete arg8;
7627 }
7628 return resultobj;
7629fail:
7630 {
7631 if (temp4)
7632 delete arg4;
7633 }
7634 {
7635 if (temp8)
7636 delete arg8;
7637 }
7638 return NULL;
d55e5bfc
RD
7639}
7640
7641
1bd55598
RD
7642SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7643 PyObject *resultobj = 0;
7644 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7645 SwigValueWrapper<wxVisualAttributes > result;
7646 int val1 ;
7647 int ecode1 = 0 ;
7648 PyObject * obj0 = 0 ;
7649 char * kwnames[] = {
7650 (char *) "variant", NULL
7651 };
7652
7653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7654 if (obj0) {
7655 ecode1 = SWIG_AsVal_int(obj0, &val1);
7656 if (!SWIG_IsOK(ecode1)) {
7657 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7658 }
7659 arg1 = static_cast< wxWindowVariant >(val1);
7660 }
7661 {
7662 if (!wxPyCheckForApp()) SWIG_fail;
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
7664 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7665 wxPyEndAllowThreads(__tstate);
7666 if (PyErr_Occurred()) SWIG_fail;
7667 }
7668 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7669 return resultobj;
7670fail:
7671 return NULL;
7672}
7673
7674
7675SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7676 PyObject *obj;
7677 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7678 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7679 return SWIG_Py_Void();
7680}
7681
7682SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7683 return SWIG_Python_InitShadowInstance(args);
7684}
7685
7686SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7687 PyObject *resultobj = 0;
7688 wxWindow *arg1 = (wxWindow *) 0 ;
7689 int arg2 = (int) -1 ;
7690 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7691 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7692 wxSize const &arg4_defvalue = wxDefaultSize ;
7693 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7694 long arg5 = (long) wxLI_HORIZONTAL ;
7695 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7696 wxString *arg6 = (wxString *) &arg6_defvalue ;
7697 wxStaticLine *result = 0 ;
7698 void *argp1 = 0 ;
7699 int res1 = 0 ;
7700 int val2 ;
7701 int ecode2 = 0 ;
7702 wxPoint temp3 ;
7703 wxSize temp4 ;
7704 long val5 ;
7705 int ecode5 = 0 ;
7706 bool temp6 = false ;
7707 PyObject * obj0 = 0 ;
7708 PyObject * obj1 = 0 ;
7709 PyObject * obj2 = 0 ;
7710 PyObject * obj3 = 0 ;
7711 PyObject * obj4 = 0 ;
7712 PyObject * obj5 = 0 ;
7713 char * kwnames[] = {
7714 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7715 };
7716
7717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7719 if (!SWIG_IsOK(res1)) {
7720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7721 }
7722 arg1 = reinterpret_cast< wxWindow * >(argp1);
7723 if (obj1) {
7724 ecode2 = SWIG_AsVal_int(obj1, &val2);
7725 if (!SWIG_IsOK(ecode2)) {
7726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7727 }
7728 arg2 = static_cast< int >(val2);
7729 }
7730 if (obj2) {
7731 {
7732 arg3 = &temp3;
7733 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
f20a2e1f 7734 }
1bd55598
RD
7735 }
7736 if (obj3) {
f20a2e1f 7737 {
1bd55598
RD
7738 arg4 = &temp4;
7739 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 7740 }
1bd55598
RD
7741 }
7742 if (obj4) {
7743 ecode5 = SWIG_AsVal_long(obj4, &val5);
7744 if (!SWIG_IsOK(ecode5)) {
7745 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7746 }
7747 arg5 = static_cast< long >(val5);
7748 }
7749 if (obj5) {
f20a2e1f 7750 {
1bd55598
RD
7751 arg6 = wxString_in_helper(obj5);
7752 if (arg6 == NULL) SWIG_fail;
7753 temp6 = true;
f20a2e1f 7754 }
1bd55598
RD
7755 }
7756 {
7757 if (!wxPyCheckForApp()) SWIG_fail;
7758 PyThreadState* __tstate = wxPyBeginAllowThreads();
7759 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7760 wxPyEndAllowThreads(__tstate);
7761 if (PyErr_Occurred()) SWIG_fail;
7762 }
7763 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7764 {
7765 if (temp6)
7766 delete arg6;
7767 }
7768 return resultobj;
7769fail:
7770 {
7771 if (temp6)
7772 delete arg6;
7773 }
7774 return NULL;
d55e5bfc
RD
7775}
7776
7777
1bd55598
RD
7778SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7779 PyObject *resultobj = 0;
7780 wxStaticLine *result = 0 ;
7781
7782 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7783 {
7784 if (!wxPyCheckForApp()) SWIG_fail;
7785 PyThreadState* __tstate = wxPyBeginAllowThreads();
7786 result = (wxStaticLine *)new wxStaticLine();
7787 wxPyEndAllowThreads(__tstate);
7788 if (PyErr_Occurred()) SWIG_fail;
7789 }
7790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7791 return resultobj;
7792fail:
7793 return NULL;
7794}
7795
7796
7797SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7798 PyObject *resultobj = 0;
7799 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7800 wxWindow *arg2 = (wxWindow *) 0 ;
7801 int arg3 = (int) -1 ;
7802 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7803 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7804 wxSize const &arg5_defvalue = wxDefaultSize ;
7805 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7806 long arg6 = (long) wxLI_HORIZONTAL ;
7807 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7808 wxString *arg7 = (wxString *) &arg7_defvalue ;
7809 bool result;
7810 void *argp1 = 0 ;
7811 int res1 = 0 ;
7812 void *argp2 = 0 ;
7813 int res2 = 0 ;
7814 int val3 ;
7815 int ecode3 = 0 ;
7816 wxPoint temp4 ;
7817 wxSize temp5 ;
7818 long val6 ;
7819 int ecode6 = 0 ;
7820 bool temp7 = false ;
7821 PyObject * obj0 = 0 ;
7822 PyObject * obj1 = 0 ;
7823 PyObject * obj2 = 0 ;
7824 PyObject * obj3 = 0 ;
7825 PyObject * obj4 = 0 ;
7826 PyObject * obj5 = 0 ;
7827 PyObject * obj6 = 0 ;
7828 char * kwnames[] = {
7829 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7830 };
7831
7832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7834 if (!SWIG_IsOK(res1)) {
7835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7836 }
7837 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7838 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7839 if (!SWIG_IsOK(res2)) {
7840 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7841 }
7842 arg2 = reinterpret_cast< wxWindow * >(argp2);
7843 if (obj2) {
7844 ecode3 = SWIG_AsVal_int(obj2, &val3);
7845 if (!SWIG_IsOK(ecode3)) {
7846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7847 }
7848 arg3 = static_cast< int >(val3);
7849 }
7850 if (obj3) {
d55e5bfc 7851 {
1bd55598
RD
7852 arg4 = &temp4;
7853 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7854 }
1bd55598
RD
7855 }
7856 if (obj4) {
d55e5bfc 7857 {
1bd55598
RD
7858 arg5 = &temp5;
7859 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7860 }
7861 }
7862 if (obj5) {
7863 ecode6 = SWIG_AsVal_long(obj5, &val6);
7864 if (!SWIG_IsOK(ecode6)) {
7865 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7866 }
7867 arg6 = static_cast< long >(val6);
7868 }
7869 if (obj6) {
7870 {
7871 arg7 = wxString_in_helper(obj6);
7872 if (arg7 == NULL) SWIG_fail;
7873 temp7 = true;
d55e5bfc 7874 }
1bd55598
RD
7875 }
7876 {
7877 PyThreadState* __tstate = wxPyBeginAllowThreads();
7878 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7879 wxPyEndAllowThreads(__tstate);
7880 if (PyErr_Occurred()) SWIG_fail;
7881 }
7882 {
7883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7884 }
7885 {
7886 if (temp7)
7887 delete arg7;
7888 }
7889 return resultobj;
7890fail:
7891 {
7892 if (temp7)
7893 delete arg7;
7894 }
7895 return NULL;
d55e5bfc
RD
7896}
7897
7898
1bd55598
RD
7899SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7900 PyObject *resultobj = 0;
7901 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7902 bool result;
7903 void *argp1 = 0 ;
7904 int res1 = 0 ;
7905 PyObject *swig_obj[1] ;
7906
7907 if (!args) SWIG_fail;
7908 swig_obj[0] = args;
7909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7910 if (!SWIG_IsOK(res1)) {
7911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7912 }
7913 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7914 {
7915 PyThreadState* __tstate = wxPyBeginAllowThreads();
7916 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7917 wxPyEndAllowThreads(__tstate);
7918 if (PyErr_Occurred()) SWIG_fail;
7919 }
7920 {
7921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7922 }
7923 return resultobj;
7924fail:
7925 return NULL;
d55e5bfc
RD
7926}
7927
7928
1bd55598
RD
7929SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7930 PyObject *resultobj = 0;
7931 int result;
7932
7933 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7934 {
7935 PyThreadState* __tstate = wxPyBeginAllowThreads();
7936 result = (int)wxStaticLine::GetDefaultSize();
7937 wxPyEndAllowThreads(__tstate);
7938 if (PyErr_Occurred()) SWIG_fail;
7939 }
7940 resultobj = SWIG_From_int(static_cast< int >(result));
7941 return resultobj;
7942fail:
7943 return NULL;
7944}
7945
7946
7947SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7948 PyObject *resultobj = 0;
7949 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7950 SwigValueWrapper<wxVisualAttributes > result;
7951 int val1 ;
7952 int ecode1 = 0 ;
7953 PyObject * obj0 = 0 ;
7954 char * kwnames[] = {
7955 (char *) "variant", NULL
7956 };
7957
7958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7959 if (obj0) {
7960 ecode1 = SWIG_AsVal_int(obj0, &val1);
7961 if (!SWIG_IsOK(ecode1)) {
7962 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7963 }
7964 arg1 = static_cast< wxWindowVariant >(val1);
7965 }
7966 {
7967 if (!wxPyCheckForApp()) SWIG_fail;
7968 PyThreadState* __tstate = wxPyBeginAllowThreads();
7969 result = wxStaticLine::GetClassDefaultAttributes(arg1);
7970 wxPyEndAllowThreads(__tstate);
7971 if (PyErr_Occurred()) SWIG_fail;
7972 }
7973 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7974 return resultobj;
7975fail:
7976 return NULL;
7977}
7978
7979
7980SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7981 PyObject *obj;
7982 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7983 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
7984 return SWIG_Py_Void();
7985}
7986
7987SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7988 return SWIG_Python_InitShadowInstance(args);
7989}
7990
7991SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7992 PyObject *resultobj = 0;
7993 wxWindow *arg1 = (wxWindow *) 0 ;
7994 int arg2 = (int) -1 ;
7995 wxString const &arg3_defvalue = wxPyEmptyString ;
7996 wxString *arg3 = (wxString *) &arg3_defvalue ;
7997 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7998 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7999 wxSize const &arg5_defvalue = wxDefaultSize ;
8000 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8001 long arg6 = (long) 0 ;
8002 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8003 wxString *arg7 = (wxString *) &arg7_defvalue ;
8004 wxStaticText *result = 0 ;
8005 void *argp1 = 0 ;
8006 int res1 = 0 ;
8007 int val2 ;
8008 int ecode2 = 0 ;
8009 bool temp3 = false ;
8010 wxPoint temp4 ;
8011 wxSize temp5 ;
8012 long val6 ;
8013 int ecode6 = 0 ;
8014 bool temp7 = false ;
8015 PyObject * obj0 = 0 ;
8016 PyObject * obj1 = 0 ;
8017 PyObject * obj2 = 0 ;
8018 PyObject * obj3 = 0 ;
8019 PyObject * obj4 = 0 ;
8020 PyObject * obj5 = 0 ;
8021 PyObject * obj6 = 0 ;
8022 char * kwnames[] = {
8023 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8024 };
8025
8026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8028 if (!SWIG_IsOK(res1)) {
8029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8030 }
8031 arg1 = reinterpret_cast< wxWindow * >(argp1);
8032 if (obj1) {
8033 ecode2 = SWIG_AsVal_int(obj1, &val2);
8034 if (!SWIG_IsOK(ecode2)) {
8035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8036 }
8037 arg2 = static_cast< int >(val2);
8038 }
8039 if (obj2) {
d55e5bfc 8040 {
1bd55598
RD
8041 arg3 = wxString_in_helper(obj2);
8042 if (arg3 == NULL) SWIG_fail;
8043 temp3 = true;
d55e5bfc 8044 }
1bd55598
RD
8045 }
8046 if (obj3) {
d55e5bfc 8047 {
1bd55598
RD
8048 arg4 = &temp4;
8049 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8050 }
1bd55598
RD
8051 }
8052 if (obj4) {
d55e5bfc 8053 {
1bd55598
RD
8054 arg5 = &temp5;
8055 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8056 }
1bd55598
RD
8057 }
8058 if (obj5) {
8059 ecode6 = SWIG_AsVal_long(obj5, &val6);
8060 if (!SWIG_IsOK(ecode6)) {
8061 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8062 }
8063 arg6 = static_cast< long >(val6);
8064 }
8065 if (obj6) {
d55e5bfc 8066 {
1bd55598
RD
8067 arg7 = wxString_in_helper(obj6);
8068 if (arg7 == NULL) SWIG_fail;
8069 temp7 = true;
d55e5bfc 8070 }
1bd55598
RD
8071 }
8072 {
8073 if (!wxPyCheckForApp()) SWIG_fail;
8074 PyThreadState* __tstate = wxPyBeginAllowThreads();
8075 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8076 wxPyEndAllowThreads(__tstate);
8077 if (PyErr_Occurred()) SWIG_fail;
8078 }
8079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8080 {
8081 if (temp3)
8082 delete arg3;
8083 }
8084 {
8085 if (temp7)
8086 delete arg7;
8087 }
8088 return resultobj;
8089fail:
8090 {
8091 if (temp3)
8092 delete arg3;
8093 }
8094 {
8095 if (temp7)
8096 delete arg7;
8097 }
8098 return NULL;
d55e5bfc
RD
8099}
8100
8101
1bd55598
RD
8102SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8103 PyObject *resultobj = 0;
8104 wxStaticText *result = 0 ;
8105
8106 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8107 {
8108 if (!wxPyCheckForApp()) SWIG_fail;
8109 PyThreadState* __tstate = wxPyBeginAllowThreads();
8110 result = (wxStaticText *)new wxStaticText();
8111 wxPyEndAllowThreads(__tstate);
8112 if (PyErr_Occurred()) SWIG_fail;
8113 }
8114 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8115 return resultobj;
8116fail:
8117 return NULL;
8118}
8119
8120
8121SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8122 PyObject *resultobj = 0;
8123 wxStaticText *arg1 = (wxStaticText *) 0 ;
8124 wxWindow *arg2 = (wxWindow *) 0 ;
8125 int arg3 = (int) -1 ;
8126 wxString const &arg4_defvalue = wxPyEmptyString ;
8127 wxString *arg4 = (wxString *) &arg4_defvalue ;
8128 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8129 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8130 wxSize const &arg6_defvalue = wxDefaultSize ;
8131 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8132 long arg7 = (long) 0 ;
8133 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8134 wxString *arg8 = (wxString *) &arg8_defvalue ;
8135 bool result;
8136 void *argp1 = 0 ;
8137 int res1 = 0 ;
8138 void *argp2 = 0 ;
8139 int res2 = 0 ;
8140 int val3 ;
8141 int ecode3 = 0 ;
8142 bool temp4 = false ;
8143 wxPoint temp5 ;
8144 wxSize temp6 ;
8145 long val7 ;
8146 int ecode7 = 0 ;
8147 bool temp8 = false ;
8148 PyObject * obj0 = 0 ;
8149 PyObject * obj1 = 0 ;
8150 PyObject * obj2 = 0 ;
8151 PyObject * obj3 = 0 ;
8152 PyObject * obj4 = 0 ;
8153 PyObject * obj5 = 0 ;
8154 PyObject * obj6 = 0 ;
8155 PyObject * obj7 = 0 ;
8156 char * kwnames[] = {
8157 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8158 };
8159
8160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8162 if (!SWIG_IsOK(res1)) {
8163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8164 }
8165 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8166 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8167 if (!SWIG_IsOK(res2)) {
8168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8169 }
8170 arg2 = reinterpret_cast< wxWindow * >(argp2);
8171 if (obj2) {
8172 ecode3 = SWIG_AsVal_int(obj2, &val3);
8173 if (!SWIG_IsOK(ecode3)) {
8174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8175 }
8176 arg3 = static_cast< int >(val3);
8177 }
8178 if (obj3) {
d55e5bfc 8179 {
1bd55598
RD
8180 arg4 = wxString_in_helper(obj3);
8181 if (arg4 == NULL) SWIG_fail;
8182 temp4 = true;
d55e5bfc 8183 }
1bd55598
RD
8184 }
8185 if (obj4) {
d55e5bfc 8186 {
1bd55598
RD
8187 arg5 = &temp5;
8188 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8189 }
1bd55598
RD
8190 }
8191 if (obj5) {
d55e5bfc 8192 {
1bd55598
RD
8193 arg6 = &temp6;
8194 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 8195 }
1bd55598
RD
8196 }
8197 if (obj6) {
8198 ecode7 = SWIG_AsVal_long(obj6, &val7);
8199 if (!SWIG_IsOK(ecode7)) {
8200 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8201 }
8202 arg7 = static_cast< long >(val7);
8203 }
8204 if (obj7) {
d55e5bfc 8205 {
1bd55598
RD
8206 arg8 = wxString_in_helper(obj7);
8207 if (arg8 == NULL) SWIG_fail;
8208 temp8 = true;
d55e5bfc 8209 }
1bd55598
RD
8210 }
8211 {
8212 PyThreadState* __tstate = wxPyBeginAllowThreads();
8213 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8214 wxPyEndAllowThreads(__tstate);
8215 if (PyErr_Occurred()) SWIG_fail;
8216 }
8217 {
8218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8219 }
8220 {
8221 if (temp4)
8222 delete arg4;
8223 }
8224 {
8225 if (temp8)
8226 delete arg8;
8227 }
8228 return resultobj;
8229fail:
8230 {
8231 if (temp4)
8232 delete arg4;
8233 }
8234 {
8235 if (temp8)
8236 delete arg8;
8237 }
8238 return NULL;
8239}
8240
8241
8242SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8243 PyObject *resultobj = 0;
8244 wxStaticText *arg1 = (wxStaticText *) 0 ;
8245 int arg2 ;
8246 void *argp1 = 0 ;
8247 int res1 = 0 ;
8248 int val2 ;
8249 int ecode2 = 0 ;
8250 PyObject * obj0 = 0 ;
8251 PyObject * obj1 = 0 ;
8252 char * kwnames[] = {
8253 (char *) "self",(char *) "width", NULL
8254 };
8255
8256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8258 if (!SWIG_IsOK(res1)) {
8259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8260 }
8261 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8262 ecode2 = SWIG_AsVal_int(obj1, &val2);
8263 if (!SWIG_IsOK(ecode2)) {
8264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8265 }
8266 arg2 = static_cast< int >(val2);
8267 {
8268 PyThreadState* __tstate = wxPyBeginAllowThreads();
8269 (arg1)->Wrap(arg2);
8270 wxPyEndAllowThreads(__tstate);
8271 if (PyErr_Occurred()) SWIG_fail;
8272 }
8273 resultobj = SWIG_Py_Void();
8274 return resultobj;
8275fail:
8276 return NULL;
8277}
8278
8279
8280SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8281 PyObject *resultobj = 0;
8282 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8283 SwigValueWrapper<wxVisualAttributes > result;
8284 int val1 ;
8285 int ecode1 = 0 ;
8286 PyObject * obj0 = 0 ;
8287 char * kwnames[] = {
8288 (char *) "variant", NULL
8289 };
8290
8291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8292 if (obj0) {
8293 ecode1 = SWIG_AsVal_int(obj0, &val1);
8294 if (!SWIG_IsOK(ecode1)) {
8295 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8296 }
8297 arg1 = static_cast< wxWindowVariant >(val1);
8298 }
8299 {
8300 if (!wxPyCheckForApp()) SWIG_fail;
8301 PyThreadState* __tstate = wxPyBeginAllowThreads();
8302 result = wxStaticText::GetClassDefaultAttributes(arg1);
8303 wxPyEndAllowThreads(__tstate);
8304 if (PyErr_Occurred()) SWIG_fail;
8305 }
8306 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8307 return resultobj;
8308fail:
8309 return NULL;
8310}
8311
8312
8313SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8314 PyObject *obj;
8315 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8316 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8317 return SWIG_Py_Void();
8318}
8319
8320SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8321 return SWIG_Python_InitShadowInstance(args);
8322}
8323
8324SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8325 PyObject *resultobj = 0;
8326 wxWindow *arg1 = (wxWindow *) 0 ;
8327 int arg2 = (int) -1 ;
8328 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8329 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8330 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8331 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8332 wxSize const &arg5_defvalue = wxDefaultSize ;
8333 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8334 long arg6 = (long) 0 ;
8335 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8336 wxString *arg7 = (wxString *) &arg7_defvalue ;
8337 wxStaticBitmap *result = 0 ;
8338 void *argp1 = 0 ;
8339 int res1 = 0 ;
8340 int val2 ;
8341 int ecode2 = 0 ;
8342 void *argp3 = 0 ;
8343 int res3 = 0 ;
8344 wxPoint temp4 ;
8345 wxSize temp5 ;
8346 long val6 ;
8347 int ecode6 = 0 ;
8348 bool temp7 = false ;
8349 PyObject * obj0 = 0 ;
8350 PyObject * obj1 = 0 ;
8351 PyObject * obj2 = 0 ;
8352 PyObject * obj3 = 0 ;
8353 PyObject * obj4 = 0 ;
8354 PyObject * obj5 = 0 ;
8355 PyObject * obj6 = 0 ;
8356 char * kwnames[] = {
8357 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8358 };
8359
8360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8362 if (!SWIG_IsOK(res1)) {
8363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8364 }
8365 arg1 = reinterpret_cast< wxWindow * >(argp1);
8366 if (obj1) {
8367 ecode2 = SWIG_AsVal_int(obj1, &val2);
8368 if (!SWIG_IsOK(ecode2)) {
8369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8370 }
8371 arg2 = static_cast< int >(val2);
8372 }
8373 if (obj2) {
8374 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8375 if (!SWIG_IsOK(res3)) {
8376 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 8377 }
1bd55598
RD
8378 if (!argp3) {
8379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 8380 }
1bd55598
RD
8381 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8382 }
8383 if (obj3) {
d55e5bfc 8384 {
1bd55598
RD
8385 arg4 = &temp4;
8386 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 8387 }
1bd55598
RD
8388 }
8389 if (obj4) {
f20a2e1f 8390 {
1bd55598
RD
8391 arg5 = &temp5;
8392 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 8393 }
1bd55598
RD
8394 }
8395 if (obj5) {
8396 ecode6 = SWIG_AsVal_long(obj5, &val6);
8397 if (!SWIG_IsOK(ecode6)) {
8398 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8399 }
8400 arg6 = static_cast< long >(val6);
8401 }
8402 if (obj6) {
f20a2e1f 8403 {
1bd55598
RD
8404 arg7 = wxString_in_helper(obj6);
8405 if (arg7 == NULL) SWIG_fail;
8406 temp7 = true;
f20a2e1f 8407 }
1bd55598
RD
8408 }
8409 {
8410 if (!wxPyCheckForApp()) SWIG_fail;
8411 PyThreadState* __tstate = wxPyBeginAllowThreads();
8412 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8413 wxPyEndAllowThreads(__tstate);
8414 if (PyErr_Occurred()) SWIG_fail;
8415 }
8416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8417 {
8418 if (temp7)
8419 delete arg7;
8420 }
8421 return resultobj;
8422fail:
8423 {
8424 if (temp7)
8425 delete arg7;
8426 }
8427 return NULL;
f20a2e1f
RD
8428}
8429
8430
1bd55598
RD
8431SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8432 PyObject *resultobj = 0;
8433 wxStaticBitmap *result = 0 ;
8434
8435 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8436 {
8437 if (!wxPyCheckForApp()) SWIG_fail;
8438 PyThreadState* __tstate = wxPyBeginAllowThreads();
8439 result = (wxStaticBitmap *)new wxStaticBitmap();
8440 wxPyEndAllowThreads(__tstate);
8441 if (PyErr_Occurred()) SWIG_fail;
8442 }
8443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8444 return resultobj;
8445fail:
8446 return NULL;
8447}
8448
8449
8450SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8451 PyObject *resultobj = 0;
8452 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8453 wxWindow *arg2 = (wxWindow *) 0 ;
8454 int arg3 = (int) -1 ;
8455 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8456 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8457 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8458 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8459 wxSize const &arg6_defvalue = wxDefaultSize ;
8460 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8461 long arg7 = (long) 0 ;
8462 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8463 wxString *arg8 = (wxString *) &arg8_defvalue ;
8464 bool result;
8465 void *argp1 = 0 ;
8466 int res1 = 0 ;
8467 void *argp2 = 0 ;
8468 int res2 = 0 ;
8469 int val3 ;
8470 int ecode3 = 0 ;
8471 void *argp4 = 0 ;
8472 int res4 = 0 ;
8473 wxPoint temp5 ;
8474 wxSize temp6 ;
8475 long val7 ;
8476 int ecode7 = 0 ;
8477 bool temp8 = false ;
8478 PyObject * obj0 = 0 ;
8479 PyObject * obj1 = 0 ;
8480 PyObject * obj2 = 0 ;
8481 PyObject * obj3 = 0 ;
8482 PyObject * obj4 = 0 ;
8483 PyObject * obj5 = 0 ;
8484 PyObject * obj6 = 0 ;
8485 PyObject * obj7 = 0 ;
8486 char * kwnames[] = {
8487 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8488 };
8489
8490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8492 if (!SWIG_IsOK(res1)) {
8493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8494 }
8495 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8496 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8497 if (!SWIG_IsOK(res2)) {
8498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8499 }
8500 arg2 = reinterpret_cast< wxWindow * >(argp2);
8501 if (obj2) {
8502 ecode3 = SWIG_AsVal_int(obj2, &val3);
8503 if (!SWIG_IsOK(ecode3)) {
8504 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8505 }
8506 arg3 = static_cast< int >(val3);
8507 }
8508 if (obj3) {
8509 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8510 if (!SWIG_IsOK(res4)) {
8511 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 8512 }
1bd55598
RD
8513 if (!argp4) {
8514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 8515 }
1bd55598
RD
8516 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8517 }
8518 if (obj4) {
d55e5bfc 8519 {
1bd55598
RD
8520 arg5 = &temp5;
8521 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8522 }
1bd55598
RD
8523 }
8524 if (obj5) {
d55e5bfc 8525 {
1bd55598
RD
8526 arg6 = &temp6;
8527 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 8528 }
1bd55598
RD
8529 }
8530 if (obj6) {
8531 ecode7 = SWIG_AsVal_long(obj6, &val7);
8532 if (!SWIG_IsOK(ecode7)) {
8533 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8534 }
8535 arg7 = static_cast< long >(val7);
8536 }
8537 if (obj7) {
d55e5bfc 8538 {
1bd55598
RD
8539 arg8 = wxString_in_helper(obj7);
8540 if (arg8 == NULL) SWIG_fail;
8541 temp8 = true;
d55e5bfc 8542 }
1bd55598
RD
8543 }
8544 {
8545 PyThreadState* __tstate = wxPyBeginAllowThreads();
8546 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8547 wxPyEndAllowThreads(__tstate);
8548 if (PyErr_Occurred()) SWIG_fail;
8549 }
8550 {
8551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8552 }
8553 {
8554 if (temp8)
8555 delete arg8;
8556 }
8557 return resultobj;
8558fail:
8559 {
8560 if (temp8)
8561 delete arg8;
8562 }
8563 return NULL;
d55e5bfc
RD
8564}
8565
8566
1bd55598
RD
8567SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8568 PyObject *resultobj = 0;
8569 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8570 wxBitmap result;
8571 void *argp1 = 0 ;
8572 int res1 = 0 ;
8573 PyObject *swig_obj[1] ;
8574
8575 if (!args) SWIG_fail;
8576 swig_obj[0] = args;
8577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8578 if (!SWIG_IsOK(res1)) {
8579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8580 }
8581 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8582 {
8583 PyThreadState* __tstate = wxPyBeginAllowThreads();
8584 result = (arg1)->GetBitmap();
8585 wxPyEndAllowThreads(__tstate);
8586 if (PyErr_Occurred()) SWIG_fail;
8587 }
8588 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8589 return resultobj;
8590fail:
8591 return NULL;
8592}
8593
8594
8595SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8596 PyObject *resultobj = 0;
8597 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8598 wxBitmap *arg2 = 0 ;
8599 void *argp1 = 0 ;
8600 int res1 = 0 ;
8601 void *argp2 = 0 ;
8602 int res2 = 0 ;
8603 PyObject * obj0 = 0 ;
8604 PyObject * obj1 = 0 ;
8605 char * kwnames[] = {
8606 (char *) "self",(char *) "bitmap", NULL
8607 };
8608
8609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8611 if (!SWIG_IsOK(res1)) {
8612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8613 }
8614 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8615 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8616 if (!SWIG_IsOK(res2)) {
8617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8618 }
8619 if (!argp2) {
8620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8621 }
8622 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8623 {
8624 PyThreadState* __tstate = wxPyBeginAllowThreads();
8625 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8626 wxPyEndAllowThreads(__tstate);
8627 if (PyErr_Occurred()) SWIG_fail;
8628 }
8629 resultobj = SWIG_Py_Void();
8630 return resultobj;
8631fail:
8632 return NULL;
8633}
8634
8635
8636SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8637 PyObject *resultobj = 0;
8638 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8639 wxIcon *arg2 = 0 ;
8640 void *argp1 = 0 ;
8641 int res1 = 0 ;
8642 void *argp2 = 0 ;
8643 int res2 = 0 ;
8644 PyObject * obj0 = 0 ;
8645 PyObject * obj1 = 0 ;
8646 char * kwnames[] = {
8647 (char *) "self",(char *) "icon", NULL
8648 };
8649
8650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8652 if (!SWIG_IsOK(res1)) {
8653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8654 }
8655 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8656 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8657 if (!SWIG_IsOK(res2)) {
8658 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8659 }
8660 if (!argp2) {
8661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8662 }
8663 arg2 = reinterpret_cast< wxIcon * >(argp2);
8664 {
8665 PyThreadState* __tstate = wxPyBeginAllowThreads();
8666 (arg1)->SetIcon((wxIcon const &)*arg2);
8667 wxPyEndAllowThreads(__tstate);
8668 if (PyErr_Occurred()) SWIG_fail;
8669 }
8670 resultobj = SWIG_Py_Void();
8671 return resultobj;
8672fail:
8673 return NULL;
8674}
8675
8676
8677SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8678 PyObject *resultobj = 0;
8679 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8680 SwigValueWrapper<wxVisualAttributes > result;
8681 int val1 ;
8682 int ecode1 = 0 ;
8683 PyObject * obj0 = 0 ;
8684 char * kwnames[] = {
8685 (char *) "variant", NULL
8686 };
8687
8688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8689 if (obj0) {
8690 ecode1 = SWIG_AsVal_int(obj0, &val1);
8691 if (!SWIG_IsOK(ecode1)) {
8692 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8693 }
8694 arg1 = static_cast< wxWindowVariant >(val1);
8695 }
8696 {
8697 if (!wxPyCheckForApp()) SWIG_fail;
8698 PyThreadState* __tstate = wxPyBeginAllowThreads();
8699 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8700 wxPyEndAllowThreads(__tstate);
8701 if (PyErr_Occurred()) SWIG_fail;
8702 }
8703 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8704 return resultobj;
8705fail:
8706 return NULL;
d55e5bfc
RD
8707}
8708
8709
1bd55598
RD
8710SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8711 PyObject *obj;
8712 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8713 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8714 return SWIG_Py_Void();
d55e5bfc
RD
8715}
8716
1bd55598
RD
8717SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8718 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8719}
8720
1bd55598
RD
8721SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8722 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8723 return 1;
f20a2e1f
RD
8724}
8725
8726
1bd55598
RD
8727SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8728 PyObject *pyobj = 0;
8729
8730 {
8731#if wxUSE_UNICODE
8732 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8733#else
8734 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8735#endif
8736 }
8737 return pyobj;
8738}
8739
8740
8741SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8742 PyObject *resultobj = 0;
8743 wxWindow *arg1 = (wxWindow *) 0 ;
8744 int arg2 = (int) -1 ;
8745 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8746 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8747 wxSize const &arg4_defvalue = wxDefaultSize ;
8748 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8749 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8750 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8751 long arg6 = (long) 0 ;
8752 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8753 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8754 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8755 wxString *arg8 = (wxString *) &arg8_defvalue ;
8756 wxListBox *result = 0 ;
8757 void *argp1 = 0 ;
8758 int res1 = 0 ;
8759 int val2 ;
8760 int ecode2 = 0 ;
8761 wxPoint temp3 ;
8762 wxSize temp4 ;
8763 bool temp5 = false ;
8764 long val6 ;
8765 int ecode6 = 0 ;
8766 void *argp7 = 0 ;
8767 int res7 = 0 ;
8768 bool temp8 = false ;
8769 PyObject * obj0 = 0 ;
8770 PyObject * obj1 = 0 ;
8771 PyObject * obj2 = 0 ;
8772 PyObject * obj3 = 0 ;
8773 PyObject * obj4 = 0 ;
8774 PyObject * obj5 = 0 ;
8775 PyObject * obj6 = 0 ;
8776 PyObject * obj7 = 0 ;
8777 char * kwnames[] = {
8778 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8779 };
8780
8781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8783 if (!SWIG_IsOK(res1)) {
8784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8785 }
8786 arg1 = reinterpret_cast< wxWindow * >(argp1);
8787 if (obj1) {
8788 ecode2 = SWIG_AsVal_int(obj1, &val2);
8789 if (!SWIG_IsOK(ecode2)) {
8790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8791 }
8792 arg2 = static_cast< int >(val2);
8793 }
8794 if (obj2) {
d55e5bfc 8795 {
1bd55598
RD
8796 arg3 = &temp3;
8797 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 8798 }
1bd55598
RD
8799 }
8800 if (obj3) {
d55e5bfc 8801 {
1bd55598
RD
8802 arg4 = &temp4;
8803 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8804 }
1bd55598
RD
8805 }
8806 if (obj4) {
d55e5bfc 8807 {
1bd55598
RD
8808 if (! PySequence_Check(obj4)) {
8809 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8810 SWIG_fail;
8811 }
8812 arg5 = new wxArrayString;
8813 temp5 = true;
8814 int i, len=PySequence_Length(obj4);
8815 for (i=0; i<len; i++) {
8816 PyObject* item = PySequence_GetItem(obj4, i);
8817 wxString* s = wxString_in_helper(item);
8818 if (PyErr_Occurred()) SWIG_fail;
8819 arg5->Add(*s);
8820 delete s;
8821 Py_DECREF(item);
8822 }
d55e5bfc 8823 }
1bd55598
RD
8824 }
8825 if (obj5) {
8826 ecode6 = SWIG_AsVal_long(obj5, &val6);
8827 if (!SWIG_IsOK(ecode6)) {
8828 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8829 }
8830 arg6 = static_cast< long >(val6);
8831 }
8832 if (obj6) {
8833 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8834 if (!SWIG_IsOK(res7)) {
8835 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8836 }
1bd55598
RD
8837 if (!argp7) {
8838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8839 }
1bd55598
RD
8840 arg7 = reinterpret_cast< wxValidator * >(argp7);
8841 }
8842 if (obj7) {
d55e5bfc 8843 {
1bd55598
RD
8844 arg8 = wxString_in_helper(obj7);
8845 if (arg8 == NULL) SWIG_fail;
8846 temp8 = true;
d55e5bfc 8847 }
1bd55598
RD
8848 }
8849 {
8850 if (!wxPyCheckForApp()) SWIG_fail;
8851 PyThreadState* __tstate = wxPyBeginAllowThreads();
8852 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8853 wxPyEndAllowThreads(__tstate);
8854 if (PyErr_Occurred()) SWIG_fail;
8855 }
8856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8857 {
8858 if (temp5) delete arg5;
8859 }
8860 {
8861 if (temp8)
8862 delete arg8;
8863 }
8864 return resultobj;
8865fail:
8866 {
8867 if (temp5) delete arg5;
8868 }
8869 {
8870 if (temp8)
8871 delete arg8;
8872 }
8873 return NULL;
d55e5bfc
RD
8874}
8875
8876
1bd55598
RD
8877SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8878 PyObject *resultobj = 0;
8879 wxListBox *result = 0 ;
8880
8881 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8882 {
8883 if (!wxPyCheckForApp()) SWIG_fail;
8884 PyThreadState* __tstate = wxPyBeginAllowThreads();
8885 result = (wxListBox *)new wxListBox();
8886 wxPyEndAllowThreads(__tstate);
8887 if (PyErr_Occurred()) SWIG_fail;
8888 }
8889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8890 return resultobj;
8891fail:
8892 return NULL;
8893}
8894
8895
8896SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8897 PyObject *resultobj = 0;
8898 wxListBox *arg1 = (wxListBox *) 0 ;
8899 wxWindow *arg2 = (wxWindow *) 0 ;
8900 int arg3 = (int) -1 ;
8901 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8902 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8903 wxSize const &arg5_defvalue = wxDefaultSize ;
8904 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8905 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8906 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8907 long arg7 = (long) 0 ;
8908 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8909 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8910 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8911 wxString *arg9 = (wxString *) &arg9_defvalue ;
8912 bool result;
8913 void *argp1 = 0 ;
8914 int res1 = 0 ;
8915 void *argp2 = 0 ;
8916 int res2 = 0 ;
8917 int val3 ;
8918 int ecode3 = 0 ;
8919 wxPoint temp4 ;
8920 wxSize temp5 ;
8921 bool temp6 = false ;
8922 long val7 ;
8923 int ecode7 = 0 ;
8924 void *argp8 = 0 ;
8925 int res8 = 0 ;
8926 bool temp9 = false ;
8927 PyObject * obj0 = 0 ;
8928 PyObject * obj1 = 0 ;
8929 PyObject * obj2 = 0 ;
8930 PyObject * obj3 = 0 ;
8931 PyObject * obj4 = 0 ;
8932 PyObject * obj5 = 0 ;
8933 PyObject * obj6 = 0 ;
8934 PyObject * obj7 = 0 ;
8935 PyObject * obj8 = 0 ;
8936 char * kwnames[] = {
8937 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8938 };
8939
8940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8942 if (!SWIG_IsOK(res1)) {
8943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8944 }
8945 arg1 = reinterpret_cast< wxListBox * >(argp1);
8946 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8947 if (!SWIG_IsOK(res2)) {
8948 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8949 }
8950 arg2 = reinterpret_cast< wxWindow * >(argp2);
8951 if (obj2) {
8952 ecode3 = SWIG_AsVal_int(obj2, &val3);
8953 if (!SWIG_IsOK(ecode3)) {
8954 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8955 }
8956 arg3 = static_cast< int >(val3);
8957 }
8958 if (obj3) {
d55e5bfc 8959 {
1bd55598
RD
8960 arg4 = &temp4;
8961 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8962 }
1bd55598
RD
8963 }
8964 if (obj4) {
d55e5bfc 8965 {
1bd55598
RD
8966 arg5 = &temp5;
8967 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8968 }
1bd55598
RD
8969 }
8970 if (obj5) {
943e8dfd 8971 {
1bd55598
RD
8972 if (! PySequence_Check(obj5)) {
8973 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8974 SWIG_fail;
8975 }
8976 arg6 = new wxArrayString;
8977 temp6 = true;
8978 int i, len=PySequence_Length(obj5);
8979 for (i=0; i<len; i++) {
8980 PyObject* item = PySequence_GetItem(obj5, i);
8981 wxString* s = wxString_in_helper(item);
8982 if (PyErr_Occurred()) SWIG_fail;
8983 arg6->Add(*s);
8984 delete s;
8985 Py_DECREF(item);
8986 }
943e8dfd 8987 }
1bd55598
RD
8988 }
8989 if (obj6) {
8990 ecode7 = SWIG_AsVal_long(obj6, &val7);
8991 if (!SWIG_IsOK(ecode7)) {
8992 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
8993 }
8994 arg7 = static_cast< long >(val7);
8995 }
8996 if (obj7) {
8997 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
8998 if (!SWIG_IsOK(res8)) {
8999 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
943e8dfd 9000 }
1bd55598
RD
9001 if (!argp8) {
9002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
f20a2e1f 9003 }
1bd55598
RD
9004 arg8 = reinterpret_cast< wxValidator * >(argp8);
9005 }
9006 if (obj8) {
f20a2e1f 9007 {
1bd55598
RD
9008 arg9 = wxString_in_helper(obj8);
9009 if (arg9 == NULL) SWIG_fail;
9010 temp9 = true;
f20a2e1f 9011 }
1bd55598
RD
9012 }
9013 {
9014 PyThreadState* __tstate = wxPyBeginAllowThreads();
9015 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9016 wxPyEndAllowThreads(__tstate);
9017 if (PyErr_Occurred()) SWIG_fail;
9018 }
9019 {
9020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9021 }
9022 {
9023 if (temp6) delete arg6;
9024 }
9025 {
9026 if (temp9)
9027 delete arg9;
9028 }
9029 return resultobj;
9030fail:
9031 {
9032 if (temp6) delete arg6;
9033 }
9034 {
9035 if (temp9)
9036 delete arg9;
9037 }
9038 return NULL;
9039}
9040
9041
9042SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9043 PyObject *resultobj = 0;
9044 wxListBox *arg1 = (wxListBox *) 0 ;
9045 wxString *arg2 = 0 ;
9046 int arg3 ;
9047 PyObject *arg4 = (PyObject *) NULL ;
9048 void *argp1 = 0 ;
9049 int res1 = 0 ;
9050 bool temp2 = false ;
9051 int val3 ;
9052 int ecode3 = 0 ;
9053 PyObject * obj0 = 0 ;
9054 PyObject * obj1 = 0 ;
9055 PyObject * obj2 = 0 ;
9056 PyObject * obj3 = 0 ;
9057 char * kwnames[] = {
9058 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9059 };
9060
9061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9063 if (!SWIG_IsOK(res1)) {
9064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9065 }
9066 arg1 = reinterpret_cast< wxListBox * >(argp1);
9067 {
9068 arg2 = wxString_in_helper(obj1);
9069 if (arg2 == NULL) SWIG_fail;
9070 temp2 = true;
9071 }
9072 ecode3 = SWIG_AsVal_int(obj2, &val3);
9073 if (!SWIG_IsOK(ecode3)) {
9074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9075 }
9076 arg3 = static_cast< int >(val3);
9077 if (obj3) {
9078 arg4 = obj3;
9079 }
9080 {
9081 PyThreadState* __tstate = wxPyBeginAllowThreads();
9082 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9083 wxPyEndAllowThreads(__tstate);
9084 if (PyErr_Occurred()) SWIG_fail;
9085 }
9086 resultobj = SWIG_Py_Void();
9087 {
9088 if (temp2)
9089 delete arg2;
9090 }
9091 return resultobj;
9092fail:
9093 {
9094 if (temp2)
9095 delete arg2;
9096 }
9097 return NULL;
9098}
9099
9100
9101SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9102 PyObject *resultobj = 0;
9103 wxListBox *arg1 = (wxListBox *) 0 ;
9104 wxArrayString *arg2 = 0 ;
50f151d7 9105 unsigned int arg3 ;
1bd55598
RD
9106 void *argp1 = 0 ;
9107 int res1 = 0 ;
9108 bool temp2 = false ;
50f151d7 9109 unsigned int val3 ;
1bd55598
RD
9110 int ecode3 = 0 ;
9111 PyObject * obj0 = 0 ;
9112 PyObject * obj1 = 0 ;
9113 PyObject * obj2 = 0 ;
9114 char * kwnames[] = {
9115 (char *) "self",(char *) "items",(char *) "pos", NULL
9116 };
9117
9118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9120 if (!SWIG_IsOK(res1)) {
9121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9122 }
9123 arg1 = reinterpret_cast< wxListBox * >(argp1);
9124 {
9125 if (! PySequence_Check(obj1)) {
9126 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9127 SWIG_fail;
9128 }
9129 arg2 = new wxArrayString;
9130 temp2 = true;
9131 int i, len=PySequence_Length(obj1);
9132 for (i=0; i<len; i++) {
9133 PyObject* item = PySequence_GetItem(obj1, i);
9134 wxString* s = wxString_in_helper(item);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 arg2->Add(*s);
9137 delete s;
9138 Py_DECREF(item);
f20a2e1f 9139 }
1bd55598 9140 }
50f151d7 9141 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
1bd55598 9142 if (!SWIG_IsOK(ecode3)) {
50f151d7 9143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
1bd55598 9144 }
50f151d7 9145 arg3 = static_cast< unsigned int >(val3);
1bd55598
RD
9146 {
9147 PyThreadState* __tstate = wxPyBeginAllowThreads();
9148 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9149 wxPyEndAllowThreads(__tstate);
9150 if (PyErr_Occurred()) SWIG_fail;
9151 }
9152 resultobj = SWIG_Py_Void();
9153 {
9154 if (temp2) delete arg2;
9155 }
9156 return resultobj;
9157fail:
9158 {
9159 if (temp2) delete arg2;
9160 }
9161 return NULL;
f20a2e1f
RD
9162}
9163
9164
1bd55598
RD
9165SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9166 PyObject *resultobj = 0;
9167 wxListBox *arg1 = (wxListBox *) 0 ;
9168 wxArrayString *arg2 = 0 ;
9169 void *argp1 = 0 ;
9170 int res1 = 0 ;
9171 bool temp2 = false ;
9172 PyObject * obj0 = 0 ;
9173 PyObject * obj1 = 0 ;
9174 char * kwnames[] = {
9175 (char *) "self",(char *) "items", NULL
9176 };
9177
9178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9180 if (!SWIG_IsOK(res1)) {
9181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9182 }
9183 arg1 = reinterpret_cast< wxListBox * >(argp1);
9184 {
9185 if (! PySequence_Check(obj1)) {
9186 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9187 SWIG_fail;
9188 }
9189 arg2 = new wxArrayString;
9190 temp2 = true;
9191 int i, len=PySequence_Length(obj1);
9192 for (i=0; i<len; i++) {
9193 PyObject* item = PySequence_GetItem(obj1, i);
9194 wxString* s = wxString_in_helper(item);
9195 if (PyErr_Occurred()) SWIG_fail;
9196 arg2->Add(*s);
9197 delete s;
9198 Py_DECREF(item);
bfddbb17 9199 }
1bd55598
RD
9200 }
9201 {
9202 PyThreadState* __tstate = wxPyBeginAllowThreads();
9203 (arg1)->Set((wxArrayString const &)*arg2);
9204 wxPyEndAllowThreads(__tstate);
9205 if (PyErr_Occurred()) SWIG_fail;
9206 }
9207 resultobj = SWIG_Py_Void();
9208 {
9209 if (temp2) delete arg2;
9210 }
9211 return resultobj;
9212fail:
9213 {
9214 if (temp2) delete arg2;
9215 }
9216 return NULL;
9217}
9218
9219
9220SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9221 PyObject *resultobj = 0;
9222 wxListBox *arg1 = (wxListBox *) 0 ;
9223 int arg2 ;
9224 bool result;
9225 void *argp1 = 0 ;
9226 int res1 = 0 ;
9227 int val2 ;
9228 int ecode2 = 0 ;
9229 PyObject * obj0 = 0 ;
9230 PyObject * obj1 = 0 ;
9231 char * kwnames[] = {
9232 (char *) "self",(char *) "n", NULL
9233 };
9234
9235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9237 if (!SWIG_IsOK(res1)) {
9238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9239 }
9240 arg1 = reinterpret_cast< wxListBox * >(argp1);
9241 ecode2 = SWIG_AsVal_int(obj1, &val2);
9242 if (!SWIG_IsOK(ecode2)) {
9243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9244 }
9245 arg2 = static_cast< int >(val2);
9246 {
9247 PyThreadState* __tstate = wxPyBeginAllowThreads();
9248 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9249 wxPyEndAllowThreads(__tstate);
9250 if (PyErr_Occurred()) SWIG_fail;
9251 }
9252 {
9253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9254 }
9255 return resultobj;
9256fail:
9257 return NULL;
9258}
9259
9260
9261SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9262 PyObject *resultobj = 0;
9263 wxListBox *arg1 = (wxListBox *) 0 ;
9264 int arg2 ;
9265 bool arg3 = (bool) true ;
9266 void *argp1 = 0 ;
9267 int res1 = 0 ;
9268 int val2 ;
9269 int ecode2 = 0 ;
9270 bool val3 ;
9271 int ecode3 = 0 ;
9272 PyObject * obj0 = 0 ;
9273 PyObject * obj1 = 0 ;
9274 PyObject * obj2 = 0 ;
9275 char * kwnames[] = {
9276 (char *) "self",(char *) "n",(char *) "select", NULL
9277 };
9278
9279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9281 if (!SWIG_IsOK(res1)) {
9282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9283 }
9284 arg1 = reinterpret_cast< wxListBox * >(argp1);
9285 ecode2 = SWIG_AsVal_int(obj1, &val2);
9286 if (!SWIG_IsOK(ecode2)) {
9287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9288 }
9289 arg2 = static_cast< int >(val2);
9290 if (obj2) {
9291 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9292 if (!SWIG_IsOK(ecode3)) {
9293 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9294 }
9295 arg3 = static_cast< bool >(val3);
9296 }
9297 {
9298 PyThreadState* __tstate = wxPyBeginAllowThreads();
9299 (arg1)->SetSelection(arg2,arg3);
9300 wxPyEndAllowThreads(__tstate);
9301 if (PyErr_Occurred()) SWIG_fail;
9302 }
9303 resultobj = SWIG_Py_Void();
9304 return resultobj;
9305fail:
9306 return NULL;
9307}
9308
9309
9310SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9311 PyObject *resultobj = 0;
9312 wxListBox *arg1 = (wxListBox *) 0 ;
9313 int arg2 ;
9314 void *argp1 = 0 ;
9315 int res1 = 0 ;
9316 int val2 ;
9317 int ecode2 = 0 ;
9318 PyObject * obj0 = 0 ;
9319 PyObject * obj1 = 0 ;
9320 char * kwnames[] = {
9321 (char *) "self",(char *) "n", NULL
9322 };
9323
9324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9326 if (!SWIG_IsOK(res1)) {
9327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9328 }
9329 arg1 = reinterpret_cast< wxListBox * >(argp1);
9330 ecode2 = SWIG_AsVal_int(obj1, &val2);
9331 if (!SWIG_IsOK(ecode2)) {
9332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9333 }
9334 arg2 = static_cast< int >(val2);
9335 {
9336 PyThreadState* __tstate = wxPyBeginAllowThreads();
9337 (arg1)->Select(arg2);
9338 wxPyEndAllowThreads(__tstate);
9339 if (PyErr_Occurred()) SWIG_fail;
9340 }
9341 resultobj = SWIG_Py_Void();
9342 return resultobj;
9343fail:
9344 return NULL;
9345}
9346
9347
9348SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9349 PyObject *resultobj = 0;
9350 wxListBox *arg1 = (wxListBox *) 0 ;
9351 int arg2 ;
9352 void *argp1 = 0 ;
9353 int res1 = 0 ;
9354 int val2 ;
9355 int ecode2 = 0 ;
9356 PyObject * obj0 = 0 ;
9357 PyObject * obj1 = 0 ;
9358 char * kwnames[] = {
9359 (char *) "self",(char *) "n", NULL
9360 };
9361
9362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9364 if (!SWIG_IsOK(res1)) {
9365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9366 }
9367 arg1 = reinterpret_cast< wxListBox * >(argp1);
9368 ecode2 = SWIG_AsVal_int(obj1, &val2);
9369 if (!SWIG_IsOK(ecode2)) {
9370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9371 }
9372 arg2 = static_cast< int >(val2);
9373 {
9374 PyThreadState* __tstate = wxPyBeginAllowThreads();
9375 (arg1)->Deselect(arg2);
9376 wxPyEndAllowThreads(__tstate);
9377 if (PyErr_Occurred()) SWIG_fail;
9378 }
9379 resultobj = SWIG_Py_Void();
9380 return resultobj;
9381fail:
9382 return NULL;
9383}
9384
9385
9386SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9387 PyObject *resultobj = 0;
9388 wxListBox *arg1 = (wxListBox *) 0 ;
9389 int arg2 = (int) -1 ;
9390 void *argp1 = 0 ;
9391 int res1 = 0 ;
9392 int val2 ;
9393 int ecode2 = 0 ;
9394 PyObject * obj0 = 0 ;
9395 PyObject * obj1 = 0 ;
9396 char * kwnames[] = {
9397 (char *) "self",(char *) "itemToLeaveSelected", NULL
9398 };
9399
9400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9402 if (!SWIG_IsOK(res1)) {
9403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9404 }
9405 arg1 = reinterpret_cast< wxListBox * >(argp1);
9406 if (obj1) {
9407 ecode2 = SWIG_AsVal_int(obj1, &val2);
9408 if (!SWIG_IsOK(ecode2)) {
9409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9410 }
9411 arg2 = static_cast< int >(val2);
9412 }
9413 {
9414 PyThreadState* __tstate = wxPyBeginAllowThreads();
9415 (arg1)->DeselectAll(arg2);
9416 wxPyEndAllowThreads(__tstate);
9417 if (PyErr_Occurred()) SWIG_fail;
9418 }
9419 resultobj = SWIG_Py_Void();
9420 return resultobj;
9421fail:
9422 return NULL;
9423}
9424
9425
9426SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9427 PyObject *resultobj = 0;
9428 wxListBox *arg1 = (wxListBox *) 0 ;
9429 wxString *arg2 = 0 ;
9430 bool arg3 = (bool) true ;
9431 bool result;
9432 void *argp1 = 0 ;
9433 int res1 = 0 ;
9434 bool temp2 = false ;
9435 bool val3 ;
9436 int ecode3 = 0 ;
9437 PyObject * obj0 = 0 ;
9438 PyObject * obj1 = 0 ;
9439 PyObject * obj2 = 0 ;
9440 char * kwnames[] = {
9441 (char *) "self",(char *) "s",(char *) "select", NULL
9442 };
9443
9444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9446 if (!SWIG_IsOK(res1)) {
9447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9448 }
9449 arg1 = reinterpret_cast< wxListBox * >(argp1);
9450 {
9451 arg2 = wxString_in_helper(obj1);
9452 if (arg2 == NULL) SWIG_fail;
9453 temp2 = true;
9454 }
9455 if (obj2) {
9456 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9457 if (!SWIG_IsOK(ecode3)) {
9458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9459 }
9460 arg3 = static_cast< bool >(val3);
9461 }
9462 {
9463 PyThreadState* __tstate = wxPyBeginAllowThreads();
9464 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9465 wxPyEndAllowThreads(__tstate);
9466 if (PyErr_Occurred()) SWIG_fail;
9467 }
9468 {
9469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9470 }
9471 {
9472 if (temp2)
9473 delete arg2;
9474 }
9475 return resultobj;
9476fail:
9477 {
9478 if (temp2)
9479 delete arg2;
9480 }
9481 return NULL;
d55e5bfc
RD
9482}
9483
9484
1bd55598
RD
9485SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9486 PyObject *resultobj = 0;
9487 wxListBox *arg1 = (wxListBox *) 0 ;
9488 PyObject *result = 0 ;
9489 void *argp1 = 0 ;
9490 int res1 = 0 ;
9491 PyObject *swig_obj[1] ;
9492
9493 if (!args) SWIG_fail;
9494 swig_obj[0] = args;
9495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9496 if (!SWIG_IsOK(res1)) {
9497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9498 }
9499 arg1 = reinterpret_cast< wxListBox * >(argp1);
9500 {
9501 PyThreadState* __tstate = wxPyBeginAllowThreads();
9502 result = (PyObject *)wxListBox_GetSelections(arg1);
9503 wxPyEndAllowThreads(__tstate);
9504 if (PyErr_Occurred()) SWIG_fail;
9505 }
9506 resultobj = result;
9507 return resultobj;
9508fail:
9509 return NULL;
9510}
9511
9512
9513SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9514 PyObject *resultobj = 0;
9515 wxListBox *arg1 = (wxListBox *) 0 ;
9516 int arg2 ;
9517 void *argp1 = 0 ;
9518 int res1 = 0 ;
9519 int val2 ;
9520 int ecode2 = 0 ;
9521 PyObject * obj0 = 0 ;
9522 PyObject * obj1 = 0 ;
9523 char * kwnames[] = {
9524 (char *) "self",(char *) "n", NULL
9525 };
9526
9527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9529 if (!SWIG_IsOK(res1)) {
9530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9531 }
9532 arg1 = reinterpret_cast< wxListBox * >(argp1);
9533 ecode2 = SWIG_AsVal_int(obj1, &val2);
9534 if (!SWIG_IsOK(ecode2)) {
9535 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9536 }
9537 arg2 = static_cast< int >(val2);
9538 {
9539 PyThreadState* __tstate = wxPyBeginAllowThreads();
9540 (arg1)->SetFirstItem(arg2);
9541 wxPyEndAllowThreads(__tstate);
9542 if (PyErr_Occurred()) SWIG_fail;
9543 }
9544 resultobj = SWIG_Py_Void();
9545 return resultobj;
9546fail:
9547 return NULL;
9548}
9549
9550
9551SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9552 PyObject *resultobj = 0;
9553 wxListBox *arg1 = (wxListBox *) 0 ;
9554 wxString *arg2 = 0 ;
9555 void *argp1 = 0 ;
9556 int res1 = 0 ;
9557 bool temp2 = false ;
9558 PyObject * obj0 = 0 ;
9559 PyObject * obj1 = 0 ;
9560 char * kwnames[] = {
9561 (char *) "self",(char *) "s", NULL
9562 };
9563
9564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9566 if (!SWIG_IsOK(res1)) {
9567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9568 }
9569 arg1 = reinterpret_cast< wxListBox * >(argp1);
9570 {
9571 arg2 = wxString_in_helper(obj1);
9572 if (arg2 == NULL) SWIG_fail;
9573 temp2 = true;
9574 }
9575 {
9576 PyThreadState* __tstate = wxPyBeginAllowThreads();
9577 (arg1)->SetFirstItem((wxString const &)*arg2);
9578 wxPyEndAllowThreads(__tstate);
9579 if (PyErr_Occurred()) SWIG_fail;
9580 }
9581 resultobj = SWIG_Py_Void();
9582 {
9583 if (temp2)
9584 delete arg2;
9585 }
9586 return resultobj;
9587fail:
9588 {
9589 if (temp2)
9590 delete arg2;
9591 }
9592 return NULL;
9593}
9594
9595
9596SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9597 PyObject *resultobj = 0;
9598 wxListBox *arg1 = (wxListBox *) 0 ;
9599 int arg2 ;
9600 void *argp1 = 0 ;
9601 int res1 = 0 ;
9602 int val2 ;
9603 int ecode2 = 0 ;
9604 PyObject * obj0 = 0 ;
9605 PyObject * obj1 = 0 ;
9606 char * kwnames[] = {
9607 (char *) "self",(char *) "n", NULL
9608 };
9609
9610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9612 if (!SWIG_IsOK(res1)) {
9613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9614 }
9615 arg1 = reinterpret_cast< wxListBox * >(argp1);
9616 ecode2 = SWIG_AsVal_int(obj1, &val2);
9617 if (!SWIG_IsOK(ecode2)) {
9618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9619 }
9620 arg2 = static_cast< int >(val2);
9621 {
9622 PyThreadState* __tstate = wxPyBeginAllowThreads();
9623 (arg1)->EnsureVisible(arg2);
9624 wxPyEndAllowThreads(__tstate);
9625 if (PyErr_Occurred()) SWIG_fail;
9626 }
9627 resultobj = SWIG_Py_Void();
9628 return resultobj;
9629fail:
9630 return NULL;
9631}
9632
9633
9634SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9635 PyObject *resultobj = 0;
9636 wxListBox *arg1 = (wxListBox *) 0 ;
9637 wxString *arg2 = 0 ;
9638 void *argp1 = 0 ;
9639 int res1 = 0 ;
9640 bool temp2 = false ;
9641 PyObject * obj0 = 0 ;
9642 PyObject * obj1 = 0 ;
9643 char * kwnames[] = {
9644 (char *) "self",(char *) "s", NULL
9645 };
9646
9647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9649 if (!SWIG_IsOK(res1)) {
9650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9651 }
9652 arg1 = reinterpret_cast< wxListBox * >(argp1);
9653 {
9654 arg2 = wxString_in_helper(obj1);
9655 if (arg2 == NULL) SWIG_fail;
9656 temp2 = true;
9657 }
9658 {
9659 PyThreadState* __tstate = wxPyBeginAllowThreads();
9660 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9661 wxPyEndAllowThreads(__tstate);
9662 if (PyErr_Occurred()) SWIG_fail;
9663 }
9664 resultobj = SWIG_Py_Void();
9665 {
9666 if (temp2)
9667 delete arg2;
9668 }
9669 return resultobj;
9670fail:
9671 {
9672 if (temp2)
9673 delete arg2;
9674 }
9675 return NULL;
d55e5bfc
RD
9676}
9677
9678
1bd55598
RD
9679SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9680 PyObject *resultobj = 0;
9681 wxListBox *arg1 = (wxListBox *) 0 ;
9682 bool result;
9683 void *argp1 = 0 ;
9684 int res1 = 0 ;
9685 PyObject *swig_obj[1] ;
9686
9687 if (!args) SWIG_fail;
9688 swig_obj[0] = args;
9689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9690 if (!SWIG_IsOK(res1)) {
9691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9692 }
9693 arg1 = reinterpret_cast< wxListBox * >(argp1);
9694 {
9695 PyThreadState* __tstate = wxPyBeginAllowThreads();
9696 result = (bool)((wxListBox const *)arg1)->IsSorted();
9697 wxPyEndAllowThreads(__tstate);
9698 if (PyErr_Occurred()) SWIG_fail;
9699 }
9700 {
9701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9702 }
9703 return resultobj;
9704fail:
9705 return NULL;
9706}
9707
9708
9709SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9710 PyObject *resultobj = 0;
9711 wxListBox *arg1 = (wxListBox *) 0 ;
9712 wxPoint *arg2 = 0 ;
9713 int result;
9714 void *argp1 = 0 ;
9715 int res1 = 0 ;
9716 wxPoint temp2 ;
9717 PyObject * obj0 = 0 ;
9718 PyObject * obj1 = 0 ;
9719 char * kwnames[] = {
9720 (char *) "self",(char *) "pt", NULL
9721 };
9722
9723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9725 if (!SWIG_IsOK(res1)) {
9726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9727 }
9728 arg1 = reinterpret_cast< wxListBox * >(argp1);
9729 {
9730 arg2 = &temp2;
9731 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9732 }
9733 {
9734 PyThreadState* __tstate = wxPyBeginAllowThreads();
9735 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9736 wxPyEndAllowThreads(__tstate);
9737 if (PyErr_Occurred()) SWIG_fail;
9738 }
9739 resultobj = SWIG_From_int(static_cast< int >(result));
9740 return resultobj;
9741fail:
9742 return NULL;
9743}
9744
9745
9746SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9747 PyObject *resultobj = 0;
9748 wxListBox *arg1 = (wxListBox *) 0 ;
9749 int arg2 ;
9750 wxColour *arg3 = 0 ;
9751 void *argp1 = 0 ;
9752 int res1 = 0 ;
9753 int val2 ;
9754 int ecode2 = 0 ;
9755 wxColour temp3 ;
9756 PyObject * obj0 = 0 ;
9757 PyObject * obj1 = 0 ;
9758 PyObject * obj2 = 0 ;
9759 char * kwnames[] = {
9760 (char *) "self",(char *) "item",(char *) "c", NULL
9761 };
9762
9763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9765 if (!SWIG_IsOK(res1)) {
9766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9767 }
9768 arg1 = reinterpret_cast< wxListBox * >(argp1);
9769 ecode2 = SWIG_AsVal_int(obj1, &val2);
9770 if (!SWIG_IsOK(ecode2)) {
9771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9772 }
9773 arg2 = static_cast< int >(val2);
9774 {
9775 arg3 = &temp3;
9776 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9777 }
9778 {
9779 PyThreadState* __tstate = wxPyBeginAllowThreads();
9780 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9781 wxPyEndAllowThreads(__tstate);
9782 if (PyErr_Occurred()) SWIG_fail;
9783 }
9784 resultobj = SWIG_Py_Void();
9785 return resultobj;
9786fail:
9787 return NULL;
9788}
9789
9790
9791SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9792 PyObject *resultobj = 0;
9793 wxListBox *arg1 = (wxListBox *) 0 ;
9794 int arg2 ;
9795 wxColour *arg3 = 0 ;
9796 void *argp1 = 0 ;
9797 int res1 = 0 ;
9798 int val2 ;
9799 int ecode2 = 0 ;
9800 wxColour temp3 ;
9801 PyObject * obj0 = 0 ;
9802 PyObject * obj1 = 0 ;
9803 PyObject * obj2 = 0 ;
9804 char * kwnames[] = {
9805 (char *) "self",(char *) "item",(char *) "c", NULL
9806 };
9807
9808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9810 if (!SWIG_IsOK(res1)) {
9811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9812 }
9813 arg1 = reinterpret_cast< wxListBox * >(argp1);
9814 ecode2 = SWIG_AsVal_int(obj1, &val2);
9815 if (!SWIG_IsOK(ecode2)) {
9816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9817 }
9818 arg2 = static_cast< int >(val2);
9819 {
9820 arg3 = &temp3;
9821 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9822 }
9823 {
9824 PyThreadState* __tstate = wxPyBeginAllowThreads();
9825 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9826 wxPyEndAllowThreads(__tstate);
9827 if (PyErr_Occurred()) SWIG_fail;
9828 }
9829 resultobj = SWIG_Py_Void();
9830 return resultobj;
9831fail:
9832 return NULL;
9833}
9834
9835
9836SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9837 PyObject *resultobj = 0;
9838 wxListBox *arg1 = (wxListBox *) 0 ;
9839 int arg2 ;
9840 wxFont *arg3 = 0 ;
9841 void *argp1 = 0 ;
9842 int res1 = 0 ;
9843 int val2 ;
9844 int ecode2 = 0 ;
9845 void *argp3 = 0 ;
9846 int res3 = 0 ;
9847 PyObject * obj0 = 0 ;
9848 PyObject * obj1 = 0 ;
9849 PyObject * obj2 = 0 ;
9850 char * kwnames[] = {
9851 (char *) "self",(char *) "item",(char *) "f", NULL
9852 };
9853
9854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9856 if (!SWIG_IsOK(res1)) {
9857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9858 }
9859 arg1 = reinterpret_cast< wxListBox * >(argp1);
9860 ecode2 = SWIG_AsVal_int(obj1, &val2);
9861 if (!SWIG_IsOK(ecode2)) {
9862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9863 }
9864 arg2 = static_cast< int >(val2);
9865 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9866 if (!SWIG_IsOK(res3)) {
9867 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9868 }
9869 if (!argp3) {
9870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9871 }
9872 arg3 = reinterpret_cast< wxFont * >(argp3);
9873 {
9874 PyThreadState* __tstate = wxPyBeginAllowThreads();
9875 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9876 wxPyEndAllowThreads(__tstate);
9877 if (PyErr_Occurred()) SWIG_fail;
9878 }
9879 resultobj = SWIG_Py_Void();
9880 return resultobj;
9881fail:
9882 return NULL;
9883}
9884
9885
9886SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9887 PyObject *resultobj = 0;
9888 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9889 SwigValueWrapper<wxVisualAttributes > result;
9890 int val1 ;
9891 int ecode1 = 0 ;
9892 PyObject * obj0 = 0 ;
9893 char * kwnames[] = {
9894 (char *) "variant", NULL
9895 };
9896
9897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9898 if (obj0) {
9899 ecode1 = SWIG_AsVal_int(obj0, &val1);
9900 if (!SWIG_IsOK(ecode1)) {
9901 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9902 }
9903 arg1 = static_cast< wxWindowVariant >(val1);
9904 }
9905 {
9906 if (!wxPyCheckForApp()) SWIG_fail;
9907 PyThreadState* __tstate = wxPyBeginAllowThreads();
9908 result = wxListBox::GetClassDefaultAttributes(arg1);
9909 wxPyEndAllowThreads(__tstate);
9910 if (PyErr_Occurred()) SWIG_fail;
9911 }
9912 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9913 return resultobj;
9914fail:
9915 return NULL;
9916}
9917
9918
9919SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9920 PyObject *obj;
9921 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9922 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9923 return SWIG_Py_Void();
9924}
9925
9926SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9927 return SWIG_Python_InitShadowInstance(args);
9928}
9929
9930SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9931 PyObject *resultobj = 0;
9932 wxWindow *arg1 = (wxWindow *) 0 ;
9933 int arg2 = (int) -1 ;
9934 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9935 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9936 wxSize const &arg4_defvalue = wxDefaultSize ;
9937 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9938 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9939 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9940 long arg6 = (long) 0 ;
9941 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9942 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9943 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9944 wxString *arg8 = (wxString *) &arg8_defvalue ;
9945 wxCheckListBox *result = 0 ;
9946 void *argp1 = 0 ;
9947 int res1 = 0 ;
9948 int val2 ;
9949 int ecode2 = 0 ;
9950 wxPoint temp3 ;
9951 wxSize temp4 ;
9952 bool temp5 = false ;
9953 long val6 ;
9954 int ecode6 = 0 ;
9955 void *argp7 = 0 ;
9956 int res7 = 0 ;
9957 bool temp8 = false ;
9958 PyObject * obj0 = 0 ;
9959 PyObject * obj1 = 0 ;
9960 PyObject * obj2 = 0 ;
9961 PyObject * obj3 = 0 ;
9962 PyObject * obj4 = 0 ;
9963 PyObject * obj5 = 0 ;
9964 PyObject * obj6 = 0 ;
9965 PyObject * obj7 = 0 ;
9966 char * kwnames[] = {
9967 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9968 };
9969
9970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
9971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9972 if (!SWIG_IsOK(res1)) {
9973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
9974 }
9975 arg1 = reinterpret_cast< wxWindow * >(argp1);
9976 if (obj1) {
9977 ecode2 = SWIG_AsVal_int(obj1, &val2);
9978 if (!SWIG_IsOK(ecode2)) {
9979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
9980 }
9981 arg2 = static_cast< int >(val2);
9982 }
9983 if (obj2) {
9984 {
9985 arg3 = &temp3;
9986 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
bfddbb17 9987 }
1bd55598
RD
9988 }
9989 if (obj3) {
9990 {
9991 arg4 = &temp4;
9992 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 9993 }
1bd55598
RD
9994 }
9995 if (obj4) {
9996 {
9997 if (! PySequence_Check(obj4)) {
9998 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9999 SWIG_fail;
10000 }
10001 arg5 = new wxArrayString;
10002 temp5 = true;
10003 int i, len=PySequence_Length(obj4);
10004 for (i=0; i<len; i++) {
10005 PyObject* item = PySequence_GetItem(obj4, i);
10006 wxString* s = wxString_in_helper(item);
10007 if (PyErr_Occurred()) SWIG_fail;
10008 arg5->Add(*s);
10009 delete s;
10010 Py_DECREF(item);
10011 }
d55e5bfc 10012 }
1bd55598
RD
10013 }
10014 if (obj5) {
10015 ecode6 = SWIG_AsVal_long(obj5, &val6);
10016 if (!SWIG_IsOK(ecode6)) {
10017 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10018 }
10019 arg6 = static_cast< long >(val6);
10020 }
10021 if (obj6) {
10022 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10023 if (!SWIG_IsOK(res7)) {
10024 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10025 }
1bd55598
RD
10026 if (!argp7) {
10027 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10028 }
1bd55598
RD
10029 arg7 = reinterpret_cast< wxValidator * >(argp7);
10030 }
10031 if (obj7) {
10032 {
10033 arg8 = wxString_in_helper(obj7);
10034 if (arg8 == NULL) SWIG_fail;
10035 temp8 = true;
d55e5bfc 10036 }
1bd55598
RD
10037 }
10038 {
10039 if (!wxPyCheckForApp()) SWIG_fail;
10040 PyThreadState* __tstate = wxPyBeginAllowThreads();
10041 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10042 wxPyEndAllowThreads(__tstate);
10043 if (PyErr_Occurred()) SWIG_fail;
10044 }
10045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10046 {
10047 if (temp5) delete arg5;
10048 }
10049 {
10050 if (temp8)
10051 delete arg8;
10052 }
10053 return resultobj;
10054fail:
10055 {
10056 if (temp5) delete arg5;
10057 }
10058 {
10059 if (temp8)
10060 delete arg8;
10061 }
10062 return NULL;
10063}
10064
10065
10066SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10067 PyObject *resultobj = 0;
10068 wxCheckListBox *result = 0 ;
10069
10070 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10071 {
10072 if (!wxPyCheckForApp()) SWIG_fail;
10073 PyThreadState* __tstate = wxPyBeginAllowThreads();
10074 result = (wxCheckListBox *)new wxCheckListBox();
10075 wxPyEndAllowThreads(__tstate);
10076 if (PyErr_Occurred()) SWIG_fail;
10077 }
10078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10079 return resultobj;
10080fail:
10081 return NULL;
10082}
10083
10084
10085SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10086 PyObject *resultobj = 0;
10087 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10088 wxWindow *arg2 = (wxWindow *) 0 ;
10089 int arg3 = (int) -1 ;
10090 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10091 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10092 wxSize const &arg5_defvalue = wxDefaultSize ;
10093 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10094 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10095 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10096 long arg7 = (long) 0 ;
10097 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10098 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10099 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10100 wxString *arg9 = (wxString *) &arg9_defvalue ;
10101 bool result;
10102 void *argp1 = 0 ;
10103 int res1 = 0 ;
10104 void *argp2 = 0 ;
10105 int res2 = 0 ;
10106 int val3 ;
10107 int ecode3 = 0 ;
10108 wxPoint temp4 ;
10109 wxSize temp5 ;
10110 bool temp6 = false ;
10111 long val7 ;
10112 int ecode7 = 0 ;
10113 void *argp8 = 0 ;
10114 int res8 = 0 ;
10115 bool temp9 = false ;
10116 PyObject * obj0 = 0 ;
10117 PyObject * obj1 = 0 ;
10118 PyObject * obj2 = 0 ;
10119 PyObject * obj3 = 0 ;
10120 PyObject * obj4 = 0 ;
10121 PyObject * obj5 = 0 ;
10122 PyObject * obj6 = 0 ;
10123 PyObject * obj7 = 0 ;
10124 PyObject * obj8 = 0 ;
10125 char * kwnames[] = {
10126 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10127 };
10128
10129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10131 if (!SWIG_IsOK(res1)) {
10132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10133 }
10134 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10135 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10136 if (!SWIG_IsOK(res2)) {
10137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10138 }
10139 arg2 = reinterpret_cast< wxWindow * >(argp2);
10140 if (obj2) {
10141 ecode3 = SWIG_AsVal_int(obj2, &val3);
10142 if (!SWIG_IsOK(ecode3)) {
10143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10144 }
10145 arg3 = static_cast< int >(val3);
10146 }
10147 if (obj3) {
d55e5bfc 10148 {
1bd55598
RD
10149 arg4 = &temp4;
10150 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10151 }
1bd55598
RD
10152 }
10153 if (obj4) {
d55e5bfc 10154 {
1bd55598
RD
10155 arg5 = &temp5;
10156 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 10157 }
1bd55598
RD
10158 }
10159 if (obj5) {
d55e5bfc 10160 {
1bd55598
RD
10161 if (! PySequence_Check(obj5)) {
10162 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10163 SWIG_fail;
10164 }
10165 arg6 = new wxArrayString;
10166 temp6 = true;
10167 int i, len=PySequence_Length(obj5);
10168 for (i=0; i<len; i++) {
10169 PyObject* item = PySequence_GetItem(obj5, i);
10170 wxString* s = wxString_in_helper(item);
10171 if (PyErr_Occurred()) SWIG_fail;
10172 arg6->Add(*s);
10173 delete s;
10174 Py_DECREF(item);
10175 }
10176 }
10177 }
10178 if (obj6) {
10179 ecode7 = SWIG_AsVal_long(obj6, &val7);
10180 if (!SWIG_IsOK(ecode7)) {
10181 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10182 }
10183 arg7 = static_cast< long >(val7);
10184 }
10185 if (obj7) {
10186 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10187 if (!SWIG_IsOK(res8)) {
10188 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10189 }
10190 if (!argp8) {
10191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10192 }
1bd55598
RD
10193 arg8 = reinterpret_cast< wxValidator * >(argp8);
10194 }
10195 if (obj8) {
d55e5bfc 10196 {
1bd55598
RD
10197 arg9 = wxString_in_helper(obj8);
10198 if (arg9 == NULL) SWIG_fail;
10199 temp9 = true;
d55e5bfc 10200 }
1bd55598
RD
10201 }
10202 {
10203 PyThreadState* __tstate = wxPyBeginAllowThreads();
10204 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10205 wxPyEndAllowThreads(__tstate);
10206 if (PyErr_Occurred()) SWIG_fail;
10207 }
10208 {
10209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10210 }
10211 {
10212 if (temp6) delete arg6;
10213 }
10214 {
10215 if (temp9)
10216 delete arg9;
10217 }
10218 return resultobj;
10219fail:
10220 {
10221 if (temp6) delete arg6;
10222 }
10223 {
10224 if (temp9)
10225 delete arg9;
10226 }
10227 return NULL;
10228}
10229
10230
10231SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10232 PyObject *resultobj = 0;
10233 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10234 unsigned int arg2 ;
1bd55598
RD
10235 bool result;
10236 void *argp1 = 0 ;
10237 int res1 = 0 ;
50f151d7 10238 unsigned int val2 ;
1bd55598
RD
10239 int ecode2 = 0 ;
10240 PyObject * obj0 = 0 ;
10241 PyObject * obj1 = 0 ;
10242 char * kwnames[] = {
10243 (char *) "self",(char *) "index", NULL
10244 };
10245
10246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10248 if (!SWIG_IsOK(res1)) {
10249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10250 }
10251 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10252 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 10253 if (!SWIG_IsOK(ecode2)) {
50f151d7 10254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 10255 }
50f151d7 10256 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
10257 {
10258 PyThreadState* __tstate = wxPyBeginAllowThreads();
10259 result = (bool)(arg1)->IsChecked(arg2);
10260 wxPyEndAllowThreads(__tstate);
10261 if (PyErr_Occurred()) SWIG_fail;
10262 }
10263 {
10264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10265 }
10266 return resultobj;
10267fail:
10268 return NULL;
10269}
10270
10271
10272SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10273 PyObject *resultobj = 0;
10274 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10275 unsigned int arg2 ;
1bd55598
RD
10276 int arg3 = (int) true ;
10277 void *argp1 = 0 ;
10278 int res1 = 0 ;
50f151d7 10279 unsigned int val2 ;
1bd55598
RD
10280 int ecode2 = 0 ;
10281 int val3 ;
10282 int ecode3 = 0 ;
10283 PyObject * obj0 = 0 ;
10284 PyObject * obj1 = 0 ;
10285 PyObject * obj2 = 0 ;
10286 char * kwnames[] = {
10287 (char *) "self",(char *) "index",(char *) "check", NULL
10288 };
10289
10290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10292 if (!SWIG_IsOK(res1)) {
10293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10294 }
10295 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10296 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 10297 if (!SWIG_IsOK(ecode2)) {
50f151d7 10298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 10299 }
50f151d7 10300 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
10301 if (obj2) {
10302 ecode3 = SWIG_AsVal_int(obj2, &val3);
10303 if (!SWIG_IsOK(ecode3)) {
10304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10305 }
10306 arg3 = static_cast< int >(val3);
10307 }
10308 {
10309 PyThreadState* __tstate = wxPyBeginAllowThreads();
10310 (arg1)->Check(arg2,arg3);
10311 wxPyEndAllowThreads(__tstate);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 }
10314 resultobj = SWIG_Py_Void();
10315 return resultobj;
10316fail:
10317 return NULL;
d55e5bfc
RD
10318}
10319
10320
1bd55598
RD
10321SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10322 PyObject *obj;
10323 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10324 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10325 return SWIG_Py_Void();
d55e5bfc
RD
10326}
10327
1bd55598
RD
10328SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10329 return SWIG_Python_InitShadowInstance(args);
10330}
d55e5bfc 10331
1bd55598
RD
10332SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10333 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10334 return 1;
d55e5bfc
RD
10335}
10336
10337
1bd55598
RD
10338SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10339 PyObject *pyobj = 0;
10340
10341 {
d55e5bfc 10342#if wxUSE_UNICODE
1bd55598 10343 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
d55e5bfc 10344#else
1bd55598 10345 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
d55e5bfc 10346#endif
1bd55598
RD
10347 }
10348 return pyobj;
10349}
10350
10351
10352SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10353 PyObject *resultobj = 0;
10354 wxColour const &arg1_defvalue = wxNullColour ;
10355 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10356 wxColour const &arg2_defvalue = wxNullColour ;
10357 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10358 wxFont const &arg3_defvalue = wxNullFont ;
10359 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10360 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10361 wxTextAttr *result = 0 ;
10362 wxColour temp1 ;
10363 wxColour temp2 ;
10364 void *argp3 = 0 ;
10365 int res3 = 0 ;
10366 int val4 ;
10367 int ecode4 = 0 ;
10368 PyObject * obj0 = 0 ;
10369 PyObject * obj1 = 0 ;
10370 PyObject * obj2 = 0 ;
10371 PyObject * obj3 = 0 ;
10372 char * kwnames[] = {
10373 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10374 };
10375
10376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10377 if (obj0) {
d55e5bfc 10378 {
1bd55598
RD
10379 arg1 = &temp1;
10380 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 10381 }
1bd55598
RD
10382 }
10383 if (obj1) {
d55e5bfc 10384 {
1bd55598
RD
10385 arg2 = &temp2;
10386 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 10387 }
1bd55598
RD
10388 }
10389 if (obj2) {
10390 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10391 if (!SWIG_IsOK(res3)) {
10392 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10393 }
1bd55598
RD
10394 if (!argp3) {
10395 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10396 }
1bd55598
RD
10397 arg3 = reinterpret_cast< wxFont * >(argp3);
10398 }
10399 if (obj3) {
10400 ecode4 = SWIG_AsVal_int(obj3, &val4);
10401 if (!SWIG_IsOK(ecode4)) {
10402 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10403 }
10404 arg4 = static_cast< wxTextAttrAlignment >(val4);
10405 }
10406 {
10407 PyThreadState* __tstate = wxPyBeginAllowThreads();
10408 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10409 wxPyEndAllowThreads(__tstate);
10410 if (PyErr_Occurred()) SWIG_fail;
10411 }
10412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10413 return resultobj;
10414fail:
10415 return NULL;
d55e5bfc
RD
10416}
10417
10418
1bd55598
RD
10419SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10420 PyObject *resultobj = 0;
10421 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10422 void *argp1 = 0 ;
10423 int res1 = 0 ;
10424 PyObject *swig_obj[1] ;
10425
10426 if (!args) SWIG_fail;
10427 swig_obj[0] = args;
10428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10429 if (!SWIG_IsOK(res1)) {
10430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10431 }
10432 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10433 {
10434 PyThreadState* __tstate = wxPyBeginAllowThreads();
10435 delete arg1;
d55e5bfc 10436
1bd55598
RD
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 resultobj = SWIG_Py_Void();
10441 return resultobj;
10442fail:
10443 return NULL;
d55e5bfc
RD
10444}
10445
10446
1bd55598
RD
10447SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10448 PyObject *resultobj = 0;
10449 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10450 void *argp1 = 0 ;
10451 int res1 = 0 ;
10452 PyObject *swig_obj[1] ;
10453
10454 if (!args) SWIG_fail;
10455 swig_obj[0] = args;
10456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10457 if (!SWIG_IsOK(res1)) {
10458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10459 }
10460 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10461 {
10462 PyThreadState* __tstate = wxPyBeginAllowThreads();
10463 (arg1)->Init();
10464 wxPyEndAllowThreads(__tstate);
10465 if (PyErr_Occurred()) SWIG_fail;
10466 }
10467 resultobj = SWIG_Py_Void();
10468 return resultobj;
10469fail:
10470 return NULL;
10471}
10472
10473
2131d850
RD
10474SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10475 PyObject *resultobj = 0;
10476 wxTextAttr *arg1 = 0 ;
10477 wxTextAttr *arg2 = 0 ;
10478 wxTextAttr result;
10479 void *argp1 = 0 ;
10480 int res1 = 0 ;
10481 void *argp2 = 0 ;
10482 int res2 = 0 ;
10483 PyObject * obj0 = 0 ;
10484 PyObject * obj1 = 0 ;
10485 char * kwnames[] = {
10486 (char *) "base",(char *) "overlay", NULL
10487 };
10488
10489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10490 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10491 if (!SWIG_IsOK(res1)) {
10492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10493 }
10494 if (!argp1) {
10495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10496 }
10497 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10498 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10499 if (!SWIG_IsOK(res2)) {
10500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10501 }
10502 if (!argp2) {
10503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10504 }
10505 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10506 {
10507 PyThreadState* __tstate = wxPyBeginAllowThreads();
10508 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10509 wxPyEndAllowThreads(__tstate);
10510 if (PyErr_Occurred()) SWIG_fail;
10511 }
10512 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10513 return resultobj;
10514fail:
10515 return NULL;
10516}
10517
10518
1bd55598
RD
10519SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10520 PyObject *resultobj = 0;
10521 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10522 wxColour *arg2 = 0 ;
10523 void *argp1 = 0 ;
10524 int res1 = 0 ;
10525 wxColour temp2 ;
10526 PyObject * obj0 = 0 ;
10527 PyObject * obj1 = 0 ;
10528 char * kwnames[] = {
10529 (char *) "self",(char *) "colText", NULL
10530 };
10531
10532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10534 if (!SWIG_IsOK(res1)) {
10535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10536 }
10537 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10538 {
10539 arg2 = &temp2;
10540 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10541 }
10542 {
10543 PyThreadState* __tstate = wxPyBeginAllowThreads();
10544 (arg1)->SetTextColour((wxColour const &)*arg2);
10545 wxPyEndAllowThreads(__tstate);
10546 if (PyErr_Occurred()) SWIG_fail;
10547 }
10548 resultobj = SWIG_Py_Void();
10549 return resultobj;
10550fail:
10551 return NULL;
10552}
10553
10554
10555SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10556 PyObject *resultobj = 0;
10557 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10558 wxColour *arg2 = 0 ;
10559 void *argp1 = 0 ;
10560 int res1 = 0 ;
10561 wxColour temp2 ;
10562 PyObject * obj0 = 0 ;
10563 PyObject * obj1 = 0 ;
10564 char * kwnames[] = {
10565 (char *) "self",(char *) "colBack", NULL
10566 };
10567
10568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10570 if (!SWIG_IsOK(res1)) {
10571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10572 }
10573 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10574 {
10575 arg2 = &temp2;
10576 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10577 }
10578 {
10579 PyThreadState* __tstate = wxPyBeginAllowThreads();
10580 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10581 wxPyEndAllowThreads(__tstate);
10582 if (PyErr_Occurred()) SWIG_fail;
10583 }
10584 resultobj = SWIG_Py_Void();
10585 return resultobj;
10586fail:
10587 return NULL;
10588}
10589
10590
10591SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10592 PyObject *resultobj = 0;
10593 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10594 wxFont *arg2 = 0 ;
10595 long arg3 = (long) wxTEXT_ATTR_FONT ;
10596 void *argp1 = 0 ;
10597 int res1 = 0 ;
10598 void *argp2 = 0 ;
10599 int res2 = 0 ;
10600 long val3 ;
10601 int ecode3 = 0 ;
10602 PyObject * obj0 = 0 ;
10603 PyObject * obj1 = 0 ;
10604 PyObject * obj2 = 0 ;
10605 char * kwnames[] = {
10606 (char *) "self",(char *) "font",(char *) "flags", NULL
10607 };
10608
10609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10611 if (!SWIG_IsOK(res1)) {
10612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10613 }
10614 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10615 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10616 if (!SWIG_IsOK(res2)) {
10617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10618 }
10619 if (!argp2) {
10620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10621 }
10622 arg2 = reinterpret_cast< wxFont * >(argp2);
10623 if (obj2) {
10624 ecode3 = SWIG_AsVal_long(obj2, &val3);
10625 if (!SWIG_IsOK(ecode3)) {
10626 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10627 }
10628 arg3 = static_cast< long >(val3);
10629 }
10630 {
10631 PyThreadState* __tstate = wxPyBeginAllowThreads();
10632 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10633 wxPyEndAllowThreads(__tstate);
10634 if (PyErr_Occurred()) SWIG_fail;
10635 }
10636 resultobj = SWIG_Py_Void();
10637 return resultobj;
10638fail:
10639 return NULL;
10640}
10641
10642
10643SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10644 PyObject *resultobj = 0;
10645 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10646 wxTextAttrAlignment arg2 ;
10647 void *argp1 = 0 ;
10648 int res1 = 0 ;
10649 int val2 ;
10650 int ecode2 = 0 ;
10651 PyObject * obj0 = 0 ;
10652 PyObject * obj1 = 0 ;
10653 char * kwnames[] = {
10654 (char *) "self",(char *) "alignment", NULL
10655 };
10656
10657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10659 if (!SWIG_IsOK(res1)) {
10660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10661 }
10662 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10663 ecode2 = SWIG_AsVal_int(obj1, &val2);
10664 if (!SWIG_IsOK(ecode2)) {
10665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10666 }
10667 arg2 = static_cast< wxTextAttrAlignment >(val2);
10668 {
10669 PyThreadState* __tstate = wxPyBeginAllowThreads();
10670 (arg1)->SetAlignment(arg2);
10671 wxPyEndAllowThreads(__tstate);
10672 if (PyErr_Occurred()) SWIG_fail;
10673 }
10674 resultobj = SWIG_Py_Void();
10675 return resultobj;
10676fail:
10677 return NULL;
10678}
10679
10680
10681SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10682 PyObject *resultobj = 0;
10683 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10684 wxArrayInt *arg2 = 0 ;
10685 void *argp1 = 0 ;
10686 int res1 = 0 ;
10687 bool temp2 = false ;
10688 PyObject * obj0 = 0 ;
10689 PyObject * obj1 = 0 ;
10690 char * kwnames[] = {
10691 (char *) "self",(char *) "tabs", NULL
10692 };
10693
10694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10696 if (!SWIG_IsOK(res1)) {
10697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10698 }
10699 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10700 {
10701 if (! PySequence_Check(obj1)) {
10702 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10703 SWIG_fail;
10704 }
10705 arg2 = new wxArrayInt;
10706 temp2 = true;
10707 int i, len=PySequence_Length(obj1);
10708 for (i=0; i<len; i++) {
10709 PyObject* item = PySequence_GetItem(obj1, i);
10710 PyObject* number = PyNumber_Int(item);
ec8a7755
RD
10711 if (!number) {
10712 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10713 SWIG_fail;
10714 }
1bd55598
RD
10715 arg2->Add(PyInt_AS_LONG(number));
10716 Py_DECREF(item);
10717 Py_DECREF(number);
d55e5bfc 10718 }
1bd55598
RD
10719 }
10720 {
10721 PyThreadState* __tstate = wxPyBeginAllowThreads();
10722 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10723 wxPyEndAllowThreads(__tstate);
10724 if (PyErr_Occurred()) SWIG_fail;
10725 }
10726 resultobj = SWIG_Py_Void();
10727 {
10728 if (temp2) delete arg2;
10729 }
10730 return resultobj;
10731fail:
10732 {
10733 if (temp2) delete arg2;
10734 }
10735 return NULL;
10736}
10737
10738
10739SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10740 PyObject *resultobj = 0;
10741 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10742 int arg2 ;
10743 int arg3 = (int) 0 ;
10744 void *argp1 = 0 ;
10745 int res1 = 0 ;
10746 int val2 ;
10747 int ecode2 = 0 ;
10748 int val3 ;
10749 int ecode3 = 0 ;
10750 PyObject * obj0 = 0 ;
10751 PyObject * obj1 = 0 ;
10752 PyObject * obj2 = 0 ;
10753 char * kwnames[] = {
10754 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10755 };
10756
10757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10759 if (!SWIG_IsOK(res1)) {
10760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10761 }
10762 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10763 ecode2 = SWIG_AsVal_int(obj1, &val2);
10764 if (!SWIG_IsOK(ecode2)) {
10765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10766 }
10767 arg2 = static_cast< int >(val2);
10768 if (obj2) {
10769 ecode3 = SWIG_AsVal_int(obj2, &val3);
10770 if (!SWIG_IsOK(ecode3)) {
10771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10772 }
10773 arg3 = static_cast< int >(val3);
10774 }
10775 {
10776 PyThreadState* __tstate = wxPyBeginAllowThreads();
10777 (arg1)->SetLeftIndent(arg2,arg3);
10778 wxPyEndAllowThreads(__tstate);
10779 if (PyErr_Occurred()) SWIG_fail;
10780 }
10781 resultobj = SWIG_Py_Void();
10782 return resultobj;
10783fail:
10784 return NULL;
10785}
10786
10787
10788SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10789 PyObject *resultobj = 0;
10790 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10791 int arg2 ;
10792 void *argp1 = 0 ;
10793 int res1 = 0 ;
10794 int val2 ;
10795 int ecode2 = 0 ;
10796 PyObject * obj0 = 0 ;
10797 PyObject * obj1 = 0 ;
10798 char * kwnames[] = {
10799 (char *) "self",(char *) "indent", NULL
10800 };
10801
10802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10804 if (!SWIG_IsOK(res1)) {
10805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10806 }
10807 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10808 ecode2 = SWIG_AsVal_int(obj1, &val2);
10809 if (!SWIG_IsOK(ecode2)) {
10810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10811 }
10812 arg2 = static_cast< int >(val2);
10813 {
10814 PyThreadState* __tstate = wxPyBeginAllowThreads();
10815 (arg1)->SetRightIndent(arg2);
10816 wxPyEndAllowThreads(__tstate);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 }
10819 resultobj = SWIG_Py_Void();
10820 return resultobj;
10821fail:
10822 return NULL;
10823}
10824
10825
10826SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10827 PyObject *resultobj = 0;
10828 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10829 long arg2 ;
10830 void *argp1 = 0 ;
10831 int res1 = 0 ;
10832 long val2 ;
10833 int ecode2 = 0 ;
10834 PyObject * obj0 = 0 ;
10835 PyObject * obj1 = 0 ;
10836 char * kwnames[] = {
10837 (char *) "self",(char *) "flags", NULL
10838 };
10839
10840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10842 if (!SWIG_IsOK(res1)) {
10843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10844 }
10845 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10846 ecode2 = SWIG_AsVal_long(obj1, &val2);
10847 if (!SWIG_IsOK(ecode2)) {
10848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10849 }
10850 arg2 = static_cast< long >(val2);
10851 {
10852 PyThreadState* __tstate = wxPyBeginAllowThreads();
10853 (arg1)->SetFlags(arg2);
10854 wxPyEndAllowThreads(__tstate);
10855 if (PyErr_Occurred()) SWIG_fail;
10856 }
10857 resultobj = SWIG_Py_Void();
10858 return resultobj;
10859fail:
10860 return NULL;
d55e5bfc
RD
10861}
10862
10863
1bd55598
RD
10864SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10865 PyObject *resultobj = 0;
10866 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10867 bool result;
10868 void *argp1 = 0 ;
10869 int res1 = 0 ;
10870 PyObject *swig_obj[1] ;
10871
10872 if (!args) SWIG_fail;
10873 swig_obj[0] = args;
10874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10875 if (!SWIG_IsOK(res1)) {
10876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10877 }
10878 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10879 {
10880 PyThreadState* __tstate = wxPyBeginAllowThreads();
10881 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10882 wxPyEndAllowThreads(__tstate);
10883 if (PyErr_Occurred()) SWIG_fail;
10884 }
10885 {
10886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10887 }
10888 return resultobj;
10889fail:
10890 return NULL;
d55e5bfc
RD
10891}
10892
10893
1bd55598
RD
10894SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10895 PyObject *resultobj = 0;
10896 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10897 bool result;
10898 void *argp1 = 0 ;
10899 int res1 = 0 ;
10900 PyObject *swig_obj[1] ;
10901
10902 if (!args) SWIG_fail;
10903 swig_obj[0] = args;
10904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10905 if (!SWIG_IsOK(res1)) {
10906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10907 }
10908 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10909 {
10910 PyThreadState* __tstate = wxPyBeginAllowThreads();
10911 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10912 wxPyEndAllowThreads(__tstate);
10913 if (PyErr_Occurred()) SWIG_fail;
10914 }
10915 {
10916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10917 }
10918 return resultobj;
10919fail:
10920 return NULL;
d55e5bfc
RD
10921}
10922
10923
1bd55598
RD
10924SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10925 PyObject *resultobj = 0;
10926 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10927 bool result;
10928 void *argp1 = 0 ;
10929 int res1 = 0 ;
10930 PyObject *swig_obj[1] ;
10931
10932 if (!args) SWIG_fail;
10933 swig_obj[0] = args;
10934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10935 if (!SWIG_IsOK(res1)) {
10936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10937 }
10938 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10939 {
10940 PyThreadState* __tstate = wxPyBeginAllowThreads();
10941 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10942 wxPyEndAllowThreads(__tstate);
10943 if (PyErr_Occurred()) SWIG_fail;
10944 }
10945 {
10946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10947 }
10948 return resultobj;
10949fail:
10950 return NULL;
d55e5bfc
RD
10951}
10952
10953
1bd55598
RD
10954SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10955 PyObject *resultobj = 0;
10956 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10957 bool result;
10958 void *argp1 = 0 ;
10959 int res1 = 0 ;
10960 PyObject *swig_obj[1] ;
10961
10962 if (!args) SWIG_fail;
10963 swig_obj[0] = args;
10964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10965 if (!SWIG_IsOK(res1)) {
10966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10967 }
10968 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10969 {
10970 PyThreadState* __tstate = wxPyBeginAllowThreads();
10971 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
10972 wxPyEndAllowThreads(__tstate);
10973 if (PyErr_Occurred()) SWIG_fail;
10974 }
10975 {
10976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10977 }
10978 return resultobj;
10979fail:
10980 return NULL;
d55e5bfc
RD
10981}
10982
10983
1bd55598
RD
10984SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10985 PyObject *resultobj = 0;
10986 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10987 bool result;
10988 void *argp1 = 0 ;
10989 int res1 = 0 ;
10990 PyObject *swig_obj[1] ;
10991
10992 if (!args) SWIG_fail;
10993 swig_obj[0] = args;
10994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10995 if (!SWIG_IsOK(res1)) {
10996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10997 }
10998 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10999 {
11000 PyThreadState* __tstate = wxPyBeginAllowThreads();
11001 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11002 wxPyEndAllowThreads(__tstate);
11003 if (PyErr_Occurred()) SWIG_fail;
11004 }
11005 {
11006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11007 }
11008 return resultobj;
11009fail:
11010 return NULL;
d55e5bfc
RD
11011}
11012
11013
1bd55598
RD
11014SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11015 PyObject *resultobj = 0;
11016 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11017 bool result;
11018 void *argp1 = 0 ;
11019 int res1 = 0 ;
11020 PyObject *swig_obj[1] ;
11021
11022 if (!args) SWIG_fail;
11023 swig_obj[0] = args;
11024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11025 if (!SWIG_IsOK(res1)) {
11026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11027 }
11028 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11029 {
11030 PyThreadState* __tstate = wxPyBeginAllowThreads();
11031 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11032 wxPyEndAllowThreads(__tstate);
11033 if (PyErr_Occurred()) SWIG_fail;
11034 }
11035 {
11036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11037 }
11038 return resultobj;
11039fail:
11040 return NULL;
d55e5bfc
RD
11041}
11042
11043
1bd55598
RD
11044SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11045 PyObject *resultobj = 0;
11046 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11047 bool result;
11048 void *argp1 = 0 ;
11049 int res1 = 0 ;
11050 PyObject *swig_obj[1] ;
11051
11052 if (!args) SWIG_fail;
11053 swig_obj[0] = args;
11054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11055 if (!SWIG_IsOK(res1)) {
11056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11057 }
11058 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11059 {
11060 PyThreadState* __tstate = wxPyBeginAllowThreads();
11061 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11062 wxPyEndAllowThreads(__tstate);
11063 if (PyErr_Occurred()) SWIG_fail;
11064 }
11065 {
11066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11067 }
11068 return resultobj;
11069fail:
11070 return NULL;
11071}
11072
11073
11074SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11075 PyObject *resultobj = 0;
11076 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11077 long arg2 ;
11078 bool result;
11079 void *argp1 = 0 ;
11080 int res1 = 0 ;
11081 long val2 ;
11082 int ecode2 = 0 ;
11083 PyObject * obj0 = 0 ;
11084 PyObject * obj1 = 0 ;
11085 char * kwnames[] = {
11086 (char *) "self",(char *) "flag", NULL
11087 };
11088
11089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11091 if (!SWIG_IsOK(res1)) {
11092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11093 }
11094 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11095 ecode2 = SWIG_AsVal_long(obj1, &val2);
11096 if (!SWIG_IsOK(ecode2)) {
11097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11098 }
11099 arg2 = static_cast< long >(val2);
11100 {
11101 PyThreadState* __tstate = wxPyBeginAllowThreads();
11102 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11103 wxPyEndAllowThreads(__tstate);
11104 if (PyErr_Occurred()) SWIG_fail;
11105 }
11106 {
11107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11108 }
11109 return resultobj;
11110fail:
11111 return NULL;
d55e5bfc
RD
11112}
11113
11114
1bd55598
RD
11115SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11116 PyObject *resultobj = 0;
11117 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11118 wxColour *result = 0 ;
11119 void *argp1 = 0 ;
11120 int res1 = 0 ;
11121 PyObject *swig_obj[1] ;
11122
11123 if (!args) SWIG_fail;
11124 swig_obj[0] = args;
11125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11126 if (!SWIG_IsOK(res1)) {
11127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11128 }
11129 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11130 {
11131 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11132 {
1bd55598
RD
11133 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11134 result = (wxColour *) &_result_ref;
d55e5bfc 11135 }
1bd55598
RD
11136 wxPyEndAllowThreads(__tstate);
11137 if (PyErr_Occurred()) SWIG_fail;
11138 }
11139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11140 return resultobj;
11141fail:
11142 return NULL;
d55e5bfc
RD
11143}
11144
11145
1bd55598
RD
11146SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11147 PyObject *resultobj = 0;
11148 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11149 wxColour *result = 0 ;
11150 void *argp1 = 0 ;
11151 int res1 = 0 ;
11152 PyObject *swig_obj[1] ;
11153
11154 if (!args) SWIG_fail;
11155 swig_obj[0] = args;
11156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11157 if (!SWIG_IsOK(res1)) {
11158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11159 }
11160 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11161 {
11162 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11163 {
1bd55598
RD
11164 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11165 result = (wxColour *) &_result_ref;
d55e5bfc 11166 }
1bd55598
RD
11167 wxPyEndAllowThreads(__tstate);
11168 if (PyErr_Occurred()) SWIG_fail;
11169 }
11170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11171 return resultobj;
11172fail:
11173 return NULL;
d55e5bfc
RD
11174}
11175
11176
1bd55598
RD
11177SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11178 PyObject *resultobj = 0;
11179 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11180 wxFont *result = 0 ;
11181 void *argp1 = 0 ;
11182 int res1 = 0 ;
11183 PyObject *swig_obj[1] ;
11184
11185 if (!args) SWIG_fail;
11186 swig_obj[0] = args;
11187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11188 if (!SWIG_IsOK(res1)) {
11189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11190 }
11191 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11192 {
11193 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11194 {
1bd55598
RD
11195 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11196 result = (wxFont *) &_result_ref;
d55e5bfc 11197 }
1bd55598
RD
11198 wxPyEndAllowThreads(__tstate);
11199 if (PyErr_Occurred()) SWIG_fail;
11200 }
11201 {
11202 wxFont* resultptr = new wxFont(*result);
11203 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11204 }
11205 return resultobj;
11206fail:
11207 return NULL;
d55e5bfc
RD
11208}
11209
11210
1bd55598
RD
11211SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11212 PyObject *resultobj = 0;
11213 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11214 wxTextAttrAlignment result;
11215 void *argp1 = 0 ;
11216 int res1 = 0 ;
11217 PyObject *swig_obj[1] ;
11218
11219 if (!args) SWIG_fail;
11220 swig_obj[0] = args;
11221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11222 if (!SWIG_IsOK(res1)) {
11223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11224 }
11225 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11226 {
11227 PyThreadState* __tstate = wxPyBeginAllowThreads();
11228 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11229 wxPyEndAllowThreads(__tstate);
11230 if (PyErr_Occurred()) SWIG_fail;
11231 }
11232 resultobj = SWIG_From_int(static_cast< int >(result));
11233 return resultobj;
11234fail:
11235 return NULL;
d55e5bfc
RD
11236}
11237
11238
1bd55598
RD
11239SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11240 PyObject *resultobj = 0;
11241 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11242 wxArrayInt *result = 0 ;
11243 void *argp1 = 0 ;
11244 int res1 = 0 ;
11245 PyObject *swig_obj[1] ;
11246
11247 if (!args) SWIG_fail;
11248 swig_obj[0] = args;
11249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11250 if (!SWIG_IsOK(res1)) {
11251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11252 }
11253 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11254 {
11255 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 11256 {
1bd55598
RD
11257 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11258 result = (wxArrayInt *) &_result_ref;
36ed4f51 11259 }
1bd55598
RD
11260 wxPyEndAllowThreads(__tstate);
11261 if (PyErr_Occurred()) SWIG_fail;
11262 }
11263 {
b39fe951 11264 resultobj = wxArrayInt2PyList_helper(*result);
1bd55598
RD
11265 }
11266 return resultobj;
11267fail:
11268 return NULL;
d55e5bfc
RD
11269}
11270
11271
1bd55598
RD
11272SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11273 PyObject *resultobj = 0;
11274 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11275 long result;
11276 void *argp1 = 0 ;
11277 int res1 = 0 ;
11278 PyObject *swig_obj[1] ;
11279
11280 if (!args) SWIG_fail;
11281 swig_obj[0] = args;
11282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11283 if (!SWIG_IsOK(res1)) {
11284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11285 }
11286 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11287 {
11288 PyThreadState* __tstate = wxPyBeginAllowThreads();
11289 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11290 wxPyEndAllowThreads(__tstate);
11291 if (PyErr_Occurred()) SWIG_fail;
11292 }
11293 resultobj = SWIG_From_long(static_cast< long >(result));
11294 return resultobj;
11295fail:
11296 return NULL;
d55e5bfc
RD
11297}
11298
11299
1bd55598
RD
11300SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11301 PyObject *resultobj = 0;
11302 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11303 long result;
11304 void *argp1 = 0 ;
11305 int res1 = 0 ;
11306 PyObject *swig_obj[1] ;
11307
11308 if (!args) SWIG_fail;
11309 swig_obj[0] = args;
11310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11311 if (!SWIG_IsOK(res1)) {
11312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11313 }
11314 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11315 {
11316 PyThreadState* __tstate = wxPyBeginAllowThreads();
11317 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11318 wxPyEndAllowThreads(__tstate);
11319 if (PyErr_Occurred()) SWIG_fail;
11320 }
11321 resultobj = SWIG_From_long(static_cast< long >(result));
11322 return resultobj;
11323fail:
11324 return NULL;
d55e5bfc
RD
11325}
11326
11327
1bd55598
RD
11328SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11329 PyObject *resultobj = 0;
11330 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11331 long result;
11332 void *argp1 = 0 ;
11333 int res1 = 0 ;
11334 PyObject *swig_obj[1] ;
11335
11336 if (!args) SWIG_fail;
11337 swig_obj[0] = args;
11338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11339 if (!SWIG_IsOK(res1)) {
11340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11341 }
11342 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11343 {
11344 PyThreadState* __tstate = wxPyBeginAllowThreads();
11345 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11346 wxPyEndAllowThreads(__tstate);
11347 if (PyErr_Occurred()) SWIG_fail;
11348 }
11349 resultobj = SWIG_From_long(static_cast< long >(result));
11350 return resultobj;
11351fail:
11352 return NULL;
d55e5bfc
RD
11353}
11354
11355
1bd55598
RD
11356SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11357 PyObject *resultobj = 0;
11358 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11359 long result;
11360 void *argp1 = 0 ;
11361 int res1 = 0 ;
11362 PyObject *swig_obj[1] ;
11363
11364 if (!args) SWIG_fail;
11365 swig_obj[0] = args;
11366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11367 if (!SWIG_IsOK(res1)) {
11368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11369 }
11370 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11371 {
11372 PyThreadState* __tstate = wxPyBeginAllowThreads();
11373 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11374 wxPyEndAllowThreads(__tstate);
11375 if (PyErr_Occurred()) SWIG_fail;
11376 }
11377 resultobj = SWIG_From_long(static_cast< long >(result));
11378 return resultobj;
11379fail:
11380 return NULL;
d55e5bfc
RD
11381}
11382
11383
1bd55598
RD
11384SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11385 PyObject *resultobj = 0;
11386 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11387 bool result;
11388 void *argp1 = 0 ;
11389 int res1 = 0 ;
11390 PyObject *swig_obj[1] ;
11391
11392 if (!args) SWIG_fail;
11393 swig_obj[0] = args;
11394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11395 if (!SWIG_IsOK(res1)) {
11396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11397 }
11398 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11399 {
11400 PyThreadState* __tstate = wxPyBeginAllowThreads();
11401 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11402 wxPyEndAllowThreads(__tstate);
11403 if (PyErr_Occurred()) SWIG_fail;
11404 }
11405 {
11406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11407 }
11408 return resultobj;
11409fail:
11410 return NULL;
11411}
11412
11413
11414SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11415 PyObject *resultobj = 0;
11416 wxTextAttr *arg1 = 0 ;
11417 wxTextAttr *arg2 = 0 ;
11418 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11419 wxTextAttr result;
11420 void *argp1 = 0 ;
11421 int res1 = 0 ;
11422 void *argp2 = 0 ;
11423 int res2 = 0 ;
11424 void *argp3 = 0 ;
11425 int res3 = 0 ;
11426 PyObject * obj0 = 0 ;
11427 PyObject * obj1 = 0 ;
11428 PyObject * obj2 = 0 ;
11429 char * kwnames[] = {
11430 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11431 };
11432
11433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11434 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11435 if (!SWIG_IsOK(res1)) {
11436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11437 }
11438 if (!argp1) {
11439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11440 }
11441 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11442 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11443 if (!SWIG_IsOK(res2)) {
11444 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11445 }
11446 if (!argp2) {
11447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11448 }
11449 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11450 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11451 if (!SWIG_IsOK(res3)) {
11452 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11453 }
11454 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11455 {
11456 PyThreadState* __tstate = wxPyBeginAllowThreads();
11457 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11458 wxPyEndAllowThreads(__tstate);
11459 if (PyErr_Occurred()) SWIG_fail;
11460 }
11461 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11462 return resultobj;
11463fail:
11464 return NULL;
11465}
11466
11467
11468SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11469 PyObject *obj;
11470 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11471 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11472 return SWIG_Py_Void();
11473}
11474
11475SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11476 return SWIG_Python_InitShadowInstance(args);
11477}
11478
11479SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11480 PyObject *resultobj = 0;
11481 wxWindow *arg1 = (wxWindow *) 0 ;
11482 int arg2 = (int) -1 ;
11483 wxString const &arg3_defvalue = wxPyEmptyString ;
11484 wxString *arg3 = (wxString *) &arg3_defvalue ;
11485 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11486 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11487 wxSize const &arg5_defvalue = wxDefaultSize ;
11488 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11489 long arg6 = (long) 0 ;
11490 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11491 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11492 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11493 wxString *arg8 = (wxString *) &arg8_defvalue ;
11494 wxTextCtrl *result = 0 ;
11495 void *argp1 = 0 ;
11496 int res1 = 0 ;
11497 int val2 ;
11498 int ecode2 = 0 ;
11499 bool temp3 = false ;
11500 wxPoint temp4 ;
11501 wxSize temp5 ;
11502 long val6 ;
11503 int ecode6 = 0 ;
11504 void *argp7 = 0 ;
11505 int res7 = 0 ;
11506 bool temp8 = false ;
11507 PyObject * obj0 = 0 ;
11508 PyObject * obj1 = 0 ;
11509 PyObject * obj2 = 0 ;
11510 PyObject * obj3 = 0 ;
11511 PyObject * obj4 = 0 ;
11512 PyObject * obj5 = 0 ;
11513 PyObject * obj6 = 0 ;
11514 PyObject * obj7 = 0 ;
11515 char * kwnames[] = {
11516 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11517 };
11518
11519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11521 if (!SWIG_IsOK(res1)) {
11522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11523 }
11524 arg1 = reinterpret_cast< wxWindow * >(argp1);
11525 if (obj1) {
11526 ecode2 = SWIG_AsVal_int(obj1, &val2);
11527 if (!SWIG_IsOK(ecode2)) {
11528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11529 }
11530 arg2 = static_cast< int >(val2);
11531 }
11532 if (obj2) {
36ed4f51 11533 {
1bd55598
RD
11534 arg3 = wxString_in_helper(obj2);
11535 if (arg3 == NULL) SWIG_fail;
11536 temp3 = true;
36ed4f51 11537 }
1bd55598
RD
11538 }
11539 if (obj3) {
36ed4f51 11540 {
1bd55598
RD
11541 arg4 = &temp4;
11542 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 11543 }
1bd55598
RD
11544 }
11545 if (obj4) {
d55e5bfc 11546 {
1bd55598
RD
11547 arg5 = &temp5;
11548 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11549 }
1bd55598
RD
11550 }
11551 if (obj5) {
11552 ecode6 = SWIG_AsVal_long(obj5, &val6);
11553 if (!SWIG_IsOK(ecode6)) {
11554 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11555 }
11556 arg6 = static_cast< long >(val6);
11557 }
11558 if (obj6) {
11559 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11560 if (!SWIG_IsOK(res7)) {
11561 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11562 }
1bd55598
RD
11563 if (!argp7) {
11564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11565 }
1bd55598
RD
11566 arg7 = reinterpret_cast< wxValidator * >(argp7);
11567 }
11568 if (obj7) {
d55e5bfc 11569 {
1bd55598
RD
11570 arg8 = wxString_in_helper(obj7);
11571 if (arg8 == NULL) SWIG_fail;
11572 temp8 = true;
d55e5bfc 11573 }
1bd55598
RD
11574 }
11575 {
11576 if (!wxPyCheckForApp()) SWIG_fail;
11577 PyThreadState* __tstate = wxPyBeginAllowThreads();
11578 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11579 wxPyEndAllowThreads(__tstate);
11580 if (PyErr_Occurred()) SWIG_fail;
11581 }
11582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11583 {
11584 if (temp3)
11585 delete arg3;
11586 }
11587 {
11588 if (temp8)
11589 delete arg8;
11590 }
11591 return resultobj;
11592fail:
11593 {
11594 if (temp3)
11595 delete arg3;
11596 }
11597 {
11598 if (temp8)
11599 delete arg8;
11600 }
11601 return NULL;
d55e5bfc
RD
11602}
11603
11604
1bd55598
RD
11605SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11606 PyObject *resultobj = 0;
11607 wxTextCtrl *result = 0 ;
11608
11609 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11610 {
11611 if (!wxPyCheckForApp()) SWIG_fail;
11612 PyThreadState* __tstate = wxPyBeginAllowThreads();
11613 result = (wxTextCtrl *)new wxTextCtrl();
11614 wxPyEndAllowThreads(__tstate);
11615 if (PyErr_Occurred()) SWIG_fail;
11616 }
11617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11618 return resultobj;
11619fail:
11620 return NULL;
11621}
11622
11623
11624SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11625 PyObject *resultobj = 0;
11626 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11627 wxWindow *arg2 = (wxWindow *) 0 ;
11628 int arg3 = (int) -1 ;
11629 wxString const &arg4_defvalue = wxPyEmptyString ;
11630 wxString *arg4 = (wxString *) &arg4_defvalue ;
11631 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11632 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11633 wxSize const &arg6_defvalue = wxDefaultSize ;
11634 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11635 long arg7 = (long) 0 ;
11636 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11637 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11638 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11639 wxString *arg9 = (wxString *) &arg9_defvalue ;
11640 bool result;
11641 void *argp1 = 0 ;
11642 int res1 = 0 ;
11643 void *argp2 = 0 ;
11644 int res2 = 0 ;
11645 int val3 ;
11646 int ecode3 = 0 ;
11647 bool temp4 = false ;
11648 wxPoint temp5 ;
11649 wxSize temp6 ;
11650 long val7 ;
11651 int ecode7 = 0 ;
11652 void *argp8 = 0 ;
11653 int res8 = 0 ;
11654 bool temp9 = false ;
11655 PyObject * obj0 = 0 ;
11656 PyObject * obj1 = 0 ;
11657 PyObject * obj2 = 0 ;
11658 PyObject * obj3 = 0 ;
11659 PyObject * obj4 = 0 ;
11660 PyObject * obj5 = 0 ;
11661 PyObject * obj6 = 0 ;
11662 PyObject * obj7 = 0 ;
11663 PyObject * obj8 = 0 ;
11664 char * kwnames[] = {
11665 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11666 };
11667
11668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11670 if (!SWIG_IsOK(res1)) {
11671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11672 }
11673 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11674 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11675 if (!SWIG_IsOK(res2)) {
11676 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11677 }
11678 arg2 = reinterpret_cast< wxWindow * >(argp2);
11679 if (obj2) {
11680 ecode3 = SWIG_AsVal_int(obj2, &val3);
11681 if (!SWIG_IsOK(ecode3)) {
11682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11683 }
11684 arg3 = static_cast< int >(val3);
11685 }
11686 if (obj3) {
d55e5bfc 11687 {
1bd55598
RD
11688 arg4 = wxString_in_helper(obj3);
11689 if (arg4 == NULL) SWIG_fail;
11690 temp4 = true;
d55e5bfc 11691 }
1bd55598
RD
11692 }
11693 if (obj4) {
d55e5bfc 11694 {
1bd55598
RD
11695 arg5 = &temp5;
11696 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11697 }
1bd55598
RD
11698 }
11699 if (obj5) {
d55e5bfc 11700 {
1bd55598
RD
11701 arg6 = &temp6;
11702 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 11703 }
1bd55598
RD
11704 }
11705 if (obj6) {
11706 ecode7 = SWIG_AsVal_long(obj6, &val7);
11707 if (!SWIG_IsOK(ecode7)) {
11708 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11709 }
11710 arg7 = static_cast< long >(val7);
11711 }
11712 if (obj7) {
11713 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11714 if (!SWIG_IsOK(res8)) {
11715 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 11716 }
1bd55598
RD
11717 if (!argp8) {
11718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11719 }
11720 arg8 = reinterpret_cast< wxValidator * >(argp8);
11721 }
11722 if (obj8) {
d55e5bfc 11723 {
1bd55598
RD
11724 arg9 = wxString_in_helper(obj8);
11725 if (arg9 == NULL) SWIG_fail;
11726 temp9 = true;
d55e5bfc 11727 }
1bd55598
RD
11728 }
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11732 wxPyEndAllowThreads(__tstate);
11733 if (PyErr_Occurred()) SWIG_fail;
11734 }
11735 {
11736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11737 }
11738 {
11739 if (temp4)
11740 delete arg4;
11741 }
11742 {
11743 if (temp9)
11744 delete arg9;
11745 }
11746 return resultobj;
11747fail:
11748 {
11749 if (temp4)
11750 delete arg4;
11751 }
11752 {
11753 if (temp9)
11754 delete arg9;
11755 }
11756 return NULL;
d55e5bfc
RD
11757}
11758
11759
1bd55598
RD
11760SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11761 PyObject *resultobj = 0;
11762 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11763 wxString result;
11764 void *argp1 = 0 ;
11765 int res1 = 0 ;
11766 PyObject *swig_obj[1] ;
11767
11768 if (!args) SWIG_fail;
11769 swig_obj[0] = args;
11770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11771 if (!SWIG_IsOK(res1)) {
11772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11773 }
11774 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11775 {
11776 PyThreadState* __tstate = wxPyBeginAllowThreads();
11777 result = ((wxTextCtrl const *)arg1)->GetValue();
11778 wxPyEndAllowThreads(__tstate);
11779 if (PyErr_Occurred()) SWIG_fail;
11780 }
11781 {
11782#if wxUSE_UNICODE
11783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11784#else
11785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11786#endif
11787 }
11788 return resultobj;
11789fail:
11790 return NULL;
11791}
11792
11793
11794SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11795 PyObject *resultobj = 0;
11796 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11797 wxString *arg2 = 0 ;
11798 void *argp1 = 0 ;
11799 int res1 = 0 ;
11800 bool temp2 = false ;
11801 PyObject * obj0 = 0 ;
11802 PyObject * obj1 = 0 ;
11803 char * kwnames[] = {
11804 (char *) "self",(char *) "value", NULL
11805 };
11806
11807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11809 if (!SWIG_IsOK(res1)) {
11810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11811 }
11812 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11813 {
11814 arg2 = wxString_in_helper(obj1);
11815 if (arg2 == NULL) SWIG_fail;
11816 temp2 = true;
11817 }
11818 {
11819 PyThreadState* __tstate = wxPyBeginAllowThreads();
11820 (arg1)->SetValue((wxString const &)*arg2);
11821 wxPyEndAllowThreads(__tstate);
11822 if (PyErr_Occurred()) SWIG_fail;
11823 }
11824 resultobj = SWIG_Py_Void();
11825 {
11826 if (temp2)
11827 delete arg2;
11828 }
11829 return resultobj;
11830fail:
11831 {
11832 if (temp2)
11833 delete arg2;
11834 }
11835 return NULL;
11836}
11837
11838
b39fe951
RD
11839SWIGINTERN PyObject *_wrap_TextCtrl_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11840 PyObject *resultobj = 0;
11841 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11842 bool result;
11843 void *argp1 = 0 ;
11844 int res1 = 0 ;
11845 PyObject *swig_obj[1] ;
11846
11847 if (!args) SWIG_fail;
11848 swig_obj[0] = args;
11849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11850 if (!SWIG_IsOK(res1)) {
11851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEmpty" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11852 }
11853 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11854 {
11855 PyThreadState* __tstate = wxPyBeginAllowThreads();
11856 result = (bool)((wxTextCtrl const *)arg1)->IsEmpty();
11857 wxPyEndAllowThreads(__tstate);
11858 if (PyErr_Occurred()) SWIG_fail;
11859 }
11860 {
11861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11862 }
11863 return resultobj;
11864fail:
11865 return NULL;
11866}
11867
11868
11869SWIGINTERN PyObject *_wrap_TextCtrl_ChangeValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11870 PyObject *resultobj = 0;
11871 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11872 wxString *arg2 = 0 ;
11873 void *argp1 = 0 ;
11874 int res1 = 0 ;
11875 bool temp2 = false ;
11876 PyObject * obj0 = 0 ;
11877 PyObject * obj1 = 0 ;
11878 char * kwnames[] = {
11879 (char *) "self",(char *) "value", NULL
11880 };
11881
11882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ChangeValue",kwnames,&obj0,&obj1)) SWIG_fail;
11883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11884 if (!SWIG_IsOK(res1)) {
11885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ChangeValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11886 }
11887 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11888 {
11889 arg2 = wxString_in_helper(obj1);
11890 if (arg2 == NULL) SWIG_fail;
11891 temp2 = true;
11892 }
11893 {
11894 PyThreadState* __tstate = wxPyBeginAllowThreads();
11895 (arg1)->ChangeValue((wxString const &)*arg2);
11896 wxPyEndAllowThreads(__tstate);
11897 if (PyErr_Occurred()) SWIG_fail;
11898 }
11899 resultobj = SWIG_Py_Void();
11900 {
11901 if (temp2)
11902 delete arg2;
11903 }
11904 return resultobj;
11905fail:
11906 {
11907 if (temp2)
11908 delete arg2;
11909 }
11910 return NULL;
11911}
11912
11913
1bd55598
RD
11914SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11915 PyObject *resultobj = 0;
11916 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11917 long arg2 ;
11918 long arg3 ;
11919 wxString result;
11920 void *argp1 = 0 ;
11921 int res1 = 0 ;
11922 long val2 ;
11923 int ecode2 = 0 ;
11924 long val3 ;
11925 int ecode3 = 0 ;
11926 PyObject * obj0 = 0 ;
11927 PyObject * obj1 = 0 ;
11928 PyObject * obj2 = 0 ;
11929 char * kwnames[] = {
2131d850 11930 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
11931 };
11932
11933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) 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_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11937 }
11938 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11939 ecode2 = SWIG_AsVal_long(obj1, &val2);
11940 if (!SWIG_IsOK(ecode2)) {
11941 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11942 }
11943 arg2 = static_cast< long >(val2);
11944 ecode3 = SWIG_AsVal_long(obj2, &val3);
11945 if (!SWIG_IsOK(ecode3)) {
11946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11947 }
11948 arg3 = static_cast< long >(val3);
11949 {
11950 PyThreadState* __tstate = wxPyBeginAllowThreads();
11951 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11952 wxPyEndAllowThreads(__tstate);
11953 if (PyErr_Occurred()) SWIG_fail;
11954 }
11955 {
11956#if wxUSE_UNICODE
11957 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11958#else
11959 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11960#endif
11961 }
11962 return resultobj;
11963fail:
11964 return NULL;
11965}
11966
11967
11968SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11969 PyObject *resultobj = 0;
11970 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11971 long arg2 ;
11972 int result;
11973 void *argp1 = 0 ;
11974 int res1 = 0 ;
11975 long val2 ;
11976 int ecode2 = 0 ;
11977 PyObject * obj0 = 0 ;
11978 PyObject * obj1 = 0 ;
11979 char * kwnames[] = {
11980 (char *) "self",(char *) "lineNo", NULL
11981 };
11982
11983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11985 if (!SWIG_IsOK(res1)) {
11986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11987 }
11988 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11989 ecode2 = SWIG_AsVal_long(obj1, &val2);
11990 if (!SWIG_IsOK(ecode2)) {
11991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11992 }
11993 arg2 = static_cast< long >(val2);
11994 {
11995 PyThreadState* __tstate = wxPyBeginAllowThreads();
11996 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11997 wxPyEndAllowThreads(__tstate);
11998 if (PyErr_Occurred()) SWIG_fail;
11999 }
12000 resultobj = SWIG_From_int(static_cast< int >(result));
12001 return resultobj;
12002fail:
12003 return NULL;
12004}
12005
12006
12007SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12008 PyObject *resultobj = 0;
12009 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12010 long arg2 ;
12011 wxString result;
12012 void *argp1 = 0 ;
12013 int res1 = 0 ;
12014 long val2 ;
12015 int ecode2 = 0 ;
12016 PyObject * obj0 = 0 ;
12017 PyObject * obj1 = 0 ;
12018 char * kwnames[] = {
12019 (char *) "self",(char *) "lineNo", NULL
12020 };
12021
12022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
12023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12024 if (!SWIG_IsOK(res1)) {
12025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12026 }
12027 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12028 ecode2 = SWIG_AsVal_long(obj1, &val2);
12029 if (!SWIG_IsOK(ecode2)) {
12030 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
12031 }
12032 arg2 = static_cast< long >(val2);
12033 {
12034 PyThreadState* __tstate = wxPyBeginAllowThreads();
12035 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
12036 wxPyEndAllowThreads(__tstate);
12037 if (PyErr_Occurred()) SWIG_fail;
12038 }
12039 {
12040#if wxUSE_UNICODE
12041 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12042#else
12043 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12044#endif
12045 }
12046 return resultobj;
12047fail:
12048 return NULL;
d55e5bfc
RD
12049}
12050
12051
1bd55598
RD
12052SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12053 PyObject *resultobj = 0;
12054 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12055 int result;
12056 void *argp1 = 0 ;
12057 int res1 = 0 ;
12058 PyObject *swig_obj[1] ;
12059
12060 if (!args) SWIG_fail;
12061 swig_obj[0] = args;
12062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12063 if (!SWIG_IsOK(res1)) {
12064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12065 }
12066 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12067 {
12068 PyThreadState* __tstate = wxPyBeginAllowThreads();
12069 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12070 wxPyEndAllowThreads(__tstate);
12071 if (PyErr_Occurred()) SWIG_fail;
12072 }
12073 resultobj = SWIG_From_int(static_cast< int >(result));
12074 return resultobj;
12075fail:
12076 return NULL;
d55e5bfc
RD
12077}
12078
12079
1bd55598
RD
12080SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12081 PyObject *resultobj = 0;
12082 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12083 bool result;
12084 void *argp1 = 0 ;
12085 int res1 = 0 ;
12086 PyObject *swig_obj[1] ;
12087
12088 if (!args) SWIG_fail;
12089 swig_obj[0] = args;
12090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12091 if (!SWIG_IsOK(res1)) {
12092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12093 }
12094 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12095 {
12096 PyThreadState* __tstate = wxPyBeginAllowThreads();
12097 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12098 wxPyEndAllowThreads(__tstate);
12099 if (PyErr_Occurred()) SWIG_fail;
12100 }
12101 {
12102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12103 }
12104 return resultobj;
12105fail:
12106 return NULL;
d55e5bfc
RD
12107}
12108
12109
1bd55598
RD
12110SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12111 PyObject *resultobj = 0;
12112 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12113 bool result;
12114 void *argp1 = 0 ;
12115 int res1 = 0 ;
12116 PyObject *swig_obj[1] ;
12117
12118 if (!args) SWIG_fail;
12119 swig_obj[0] = args;
12120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12121 if (!SWIG_IsOK(res1)) {
12122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12123 }
12124 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12125 {
12126 PyThreadState* __tstate = wxPyBeginAllowThreads();
12127 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12128 wxPyEndAllowThreads(__tstate);
12129 if (PyErr_Occurred()) SWIG_fail;
12130 }
12131 {
12132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12133 }
12134 return resultobj;
12135fail:
12136 return NULL;
d55e5bfc
RD
12137}
12138
12139
1bd55598
RD
12140SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12141 PyObject *resultobj = 0;
12142 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12143 bool result;
12144 void *argp1 = 0 ;
12145 int res1 = 0 ;
12146 PyObject *swig_obj[1] ;
12147
12148 if (!args) SWIG_fail;
12149 swig_obj[0] = args;
12150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12151 if (!SWIG_IsOK(res1)) {
12152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12153 }
12154 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
12157 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12158 wxPyEndAllowThreads(__tstate);
12159 if (PyErr_Occurred()) SWIG_fail;
12160 }
12161 {
12162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12163 }
12164 return resultobj;
12165fail:
12166 return NULL;
d55e5bfc
RD
12167}
12168
12169
1bd55598
RD
12170SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12171 PyObject *resultobj = 0;
12172 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12173 bool result;
12174 void *argp1 = 0 ;
12175 int res1 = 0 ;
12176 PyObject *swig_obj[1] ;
12177
12178 if (!args) SWIG_fail;
12179 swig_obj[0] = args;
12180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12181 if (!SWIG_IsOK(res1)) {
12182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12183 }
12184 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12185 {
12186 PyThreadState* __tstate = wxPyBeginAllowThreads();
12187 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12188 wxPyEndAllowThreads(__tstate);
12189 if (PyErr_Occurred()) SWIG_fail;
12190 }
12191 {
12192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12193 }
12194 return resultobj;
12195fail:
12196 return NULL;
12197}
12198
12199
12200SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12201 PyObject *resultobj = 0;
12202 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12203 long *arg2 = (long *) 0 ;
12204 long *arg3 = (long *) 0 ;
12205 void *argp1 = 0 ;
12206 int res1 = 0 ;
12207 long temp2 ;
12208 int res2 = SWIG_TMPOBJ ;
12209 long temp3 ;
12210 int res3 = SWIG_TMPOBJ ;
12211 PyObject *swig_obj[1] ;
12212
12213 arg2 = &temp2;
12214 arg3 = &temp3;
12215 if (!args) SWIG_fail;
12216 swig_obj[0] = args;
12217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12218 if (!SWIG_IsOK(res1)) {
12219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12220 }
12221 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12222 {
12223 PyThreadState* __tstate = wxPyBeginAllowThreads();
12224 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12225 wxPyEndAllowThreads(__tstate);
12226 if (PyErr_Occurred()) SWIG_fail;
12227 }
12228 resultobj = SWIG_Py_Void();
12229 if (SWIG_IsTmpObj(res2)) {
12230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12231 } else {
12232 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12234 }
12235 if (SWIG_IsTmpObj(res3)) {
12236 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12237 } else {
12238 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12239 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12240 }
12241 return resultobj;
12242fail:
12243 return NULL;
d55e5bfc
RD
12244}
12245
12246
1bd55598
RD
12247SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12248 PyObject *resultobj = 0;
12249 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12250 wxString result;
12251 void *argp1 = 0 ;
12252 int res1 = 0 ;
12253 PyObject *swig_obj[1] ;
12254
12255 if (!args) SWIG_fail;
12256 swig_obj[0] = args;
12257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12258 if (!SWIG_IsOK(res1)) {
12259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12260 }
12261 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12262 {
12263 PyThreadState* __tstate = wxPyBeginAllowThreads();
12264 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12265 wxPyEndAllowThreads(__tstate);
12266 if (PyErr_Occurred()) SWIG_fail;
12267 }
12268 {
d55e5bfc 12269#if wxUSE_UNICODE
1bd55598 12270 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 12271#else
1bd55598 12272 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 12273#endif
1bd55598
RD
12274 }
12275 return resultobj;
12276fail:
12277 return NULL;
d55e5bfc
RD
12278}
12279
12280
1bd55598
RD
12281SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12282 PyObject *resultobj = 0;
12283 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12284 void *argp1 = 0 ;
12285 int res1 = 0 ;
12286 PyObject *swig_obj[1] ;
12287
12288 if (!args) SWIG_fail;
12289 swig_obj[0] = args;
12290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12291 if (!SWIG_IsOK(res1)) {
12292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12293 }
12294 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12295 {
12296 PyThreadState* __tstate = wxPyBeginAllowThreads();
12297 (arg1)->Clear();
12298 wxPyEndAllowThreads(__tstate);
12299 if (PyErr_Occurred()) SWIG_fail;
12300 }
12301 resultobj = SWIG_Py_Void();
12302 return resultobj;
12303fail:
12304 return NULL;
12305}
12306
12307
12308SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12309 PyObject *resultobj = 0;
12310 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12311 long arg2 ;
12312 long arg3 ;
12313 wxString *arg4 = 0 ;
12314 void *argp1 = 0 ;
12315 int res1 = 0 ;
12316 long val2 ;
12317 int ecode2 = 0 ;
12318 long val3 ;
12319 int ecode3 = 0 ;
12320 bool temp4 = false ;
12321 PyObject * obj0 = 0 ;
12322 PyObject * obj1 = 0 ;
12323 PyObject * obj2 = 0 ;
12324 PyObject * obj3 = 0 ;
12325 char * kwnames[] = {
2131d850 12326 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
1bd55598
RD
12327 };
12328
12329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12331 if (!SWIG_IsOK(res1)) {
12332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12333 }
12334 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12335 ecode2 = SWIG_AsVal_long(obj1, &val2);
12336 if (!SWIG_IsOK(ecode2)) {
12337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12338 }
12339 arg2 = static_cast< long >(val2);
12340 ecode3 = SWIG_AsVal_long(obj2, &val3);
12341 if (!SWIG_IsOK(ecode3)) {
12342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12343 }
12344 arg3 = static_cast< long >(val3);
12345 {
12346 arg4 = wxString_in_helper(obj3);
12347 if (arg4 == NULL) SWIG_fail;
12348 temp4 = true;
12349 }
12350 {
12351 PyThreadState* __tstate = wxPyBeginAllowThreads();
12352 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12353 wxPyEndAllowThreads(__tstate);
12354 if (PyErr_Occurred()) SWIG_fail;
12355 }
12356 resultobj = SWIG_Py_Void();
12357 {
12358 if (temp4)
12359 delete arg4;
12360 }
12361 return resultobj;
12362fail:
12363 {
12364 if (temp4)
12365 delete arg4;
12366 }
12367 return NULL;
12368}
12369
12370
12371SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12372 PyObject *resultobj = 0;
12373 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12374 long arg2 ;
12375 long arg3 ;
12376 void *argp1 = 0 ;
12377 int res1 = 0 ;
12378 long val2 ;
12379 int ecode2 = 0 ;
12380 long val3 ;
12381 int ecode3 = 0 ;
12382 PyObject * obj0 = 0 ;
12383 PyObject * obj1 = 0 ;
12384 PyObject * obj2 = 0 ;
12385 char * kwnames[] = {
2131d850 12386 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
12387 };
12388
12389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12391 if (!SWIG_IsOK(res1)) {
12392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12393 }
12394 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12395 ecode2 = SWIG_AsVal_long(obj1, &val2);
12396 if (!SWIG_IsOK(ecode2)) {
12397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12398 }
12399 arg2 = static_cast< long >(val2);
12400 ecode3 = SWIG_AsVal_long(obj2, &val3);
12401 if (!SWIG_IsOK(ecode3)) {
12402 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12403 }
12404 arg3 = static_cast< long >(val3);
12405 {
12406 PyThreadState* __tstate = wxPyBeginAllowThreads();
12407 (arg1)->Remove(arg2,arg3);
12408 wxPyEndAllowThreads(__tstate);
12409 if (PyErr_Occurred()) SWIG_fail;
12410 }
12411 resultobj = SWIG_Py_Void();
12412 return resultobj;
12413fail:
12414 return NULL;
12415}
12416
12417
12418SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12419 PyObject *resultobj = 0;
12420 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12421 wxString *arg2 = 0 ;
f5263701 12422 int arg3 = (int) wxTEXT_TYPE_ANY ;
1bd55598
RD
12423 bool result;
12424 void *argp1 = 0 ;
12425 int res1 = 0 ;
12426 bool temp2 = false ;
f5263701
RD
12427 int val3 ;
12428 int ecode3 = 0 ;
1bd55598
RD
12429 PyObject * obj0 = 0 ;
12430 PyObject * obj1 = 0 ;
f5263701 12431 PyObject * obj2 = 0 ;
1bd55598 12432 char * kwnames[] = {
f5263701 12433 (char *) "self",(char *) "file",(char *) "fileType", NULL
1bd55598
RD
12434 };
12435
f5263701 12436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextCtrl_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
1bd55598
RD
12437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12438 if (!SWIG_IsOK(res1)) {
12439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12440 }
12441 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12442 {
12443 arg2 = wxString_in_helper(obj1);
12444 if (arg2 == NULL) SWIG_fail;
12445 temp2 = true;
12446 }
f5263701
RD
12447 if (obj2) {
12448 ecode3 = SWIG_AsVal_int(obj2, &val3);
12449 if (!SWIG_IsOK(ecode3)) {
12450 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_LoadFile" "', expected argument " "3"" of type '" "int""'");
12451 }
12452 arg3 = static_cast< int >(val3);
12453 }
1bd55598
RD
12454 {
12455 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12456 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
1bd55598
RD
12457 wxPyEndAllowThreads(__tstate);
12458 if (PyErr_Occurred()) SWIG_fail;
12459 }
12460 {
12461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12462 }
12463 {
12464 if (temp2)
12465 delete arg2;
12466 }
12467 return resultobj;
12468fail:
12469 {
12470 if (temp2)
12471 delete arg2;
12472 }
12473 return NULL;
12474}
12475
12476
12477SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12478 PyObject *resultobj = 0;
12479 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12480 wxString const &arg2_defvalue = wxPyEmptyString ;
12481 wxString *arg2 = (wxString *) &arg2_defvalue ;
f5263701 12482 int arg3 = (int) wxTEXT_TYPE_ANY ;
1bd55598
RD
12483 bool result;
12484 void *argp1 = 0 ;
12485 int res1 = 0 ;
12486 bool temp2 = false ;
f5263701
RD
12487 int val3 ;
12488 int ecode3 = 0 ;
1bd55598
RD
12489 PyObject * obj0 = 0 ;
12490 PyObject * obj1 = 0 ;
f5263701 12491 PyObject * obj2 = 0 ;
1bd55598 12492 char * kwnames[] = {
f5263701 12493 (char *) "self",(char *) "file",(char *) "fileType", NULL
1bd55598
RD
12494 };
12495
f5263701 12496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:TextCtrl_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
1bd55598
RD
12497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12498 if (!SWIG_IsOK(res1)) {
12499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12500 }
12501 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12502 if (obj1) {
d55e5bfc 12503 {
1bd55598
RD
12504 arg2 = wxString_in_helper(obj1);
12505 if (arg2 == NULL) SWIG_fail;
12506 temp2 = true;
d55e5bfc 12507 }
1bd55598 12508 }
f5263701
RD
12509 if (obj2) {
12510 ecode3 = SWIG_AsVal_int(obj2, &val3);
12511 if (!SWIG_IsOK(ecode3)) {
12512 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SaveFile" "', expected argument " "3"" of type '" "int""'");
12513 }
12514 arg3 = static_cast< int >(val3);
12515 }
1bd55598
RD
12516 {
12517 PyThreadState* __tstate = wxPyBeginAllowThreads();
f5263701 12518 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
1bd55598
RD
12519 wxPyEndAllowThreads(__tstate);
12520 if (PyErr_Occurred()) SWIG_fail;
12521 }
12522 {
12523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12524 }
12525 {
12526 if (temp2)
12527 delete arg2;
12528 }
12529 return resultobj;
12530fail:
12531 {
12532 if (temp2)
12533 delete arg2;
12534 }
12535 return NULL;
d55e5bfc
RD
12536}
12537
12538
1bd55598
RD
12539SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12540 PyObject *resultobj = 0;
12541 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12542 void *argp1 = 0 ;
12543 int res1 = 0 ;
12544 PyObject *swig_obj[1] ;
12545
12546 if (!args) SWIG_fail;
12547 swig_obj[0] = args;
12548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12549 if (!SWIG_IsOK(res1)) {
12550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12551 }
12552 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12553 {
12554 PyThreadState* __tstate = wxPyBeginAllowThreads();
12555 (arg1)->MarkDirty();
12556 wxPyEndAllowThreads(__tstate);
12557 if (PyErr_Occurred()) SWIG_fail;
12558 }
12559 resultobj = SWIG_Py_Void();
12560 return resultobj;
12561fail:
12562 return NULL;
d55e5bfc
RD
12563}
12564
12565
1bd55598
RD
12566SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12567 PyObject *resultobj = 0;
12568 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12569 void *argp1 = 0 ;
12570 int res1 = 0 ;
12571 PyObject *swig_obj[1] ;
12572
12573 if (!args) SWIG_fail;
12574 swig_obj[0] = args;
12575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12576 if (!SWIG_IsOK(res1)) {
12577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12578 }
12579 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12580 {
12581 PyThreadState* __tstate = wxPyBeginAllowThreads();
12582 (arg1)->DiscardEdits();
12583 wxPyEndAllowThreads(__tstate);
12584 if (PyErr_Occurred()) SWIG_fail;
12585 }
12586 resultobj = SWIG_Py_Void();
12587 return resultobj;
12588fail:
12589 return NULL;
12590}
12591
12592
b02396e8
RD
12593SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12594 PyObject *resultobj = 0;
12595 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12596 bool arg2 ;
12597 void *argp1 = 0 ;
12598 int res1 = 0 ;
12599 bool val2 ;
12600 int ecode2 = 0 ;
12601 PyObject * obj0 = 0 ;
12602 PyObject * obj1 = 0 ;
12603 char * kwnames[] = {
12604 (char *) "self",(char *) "modified", NULL
12605 };
12606
12607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12609 if (!SWIG_IsOK(res1)) {
12610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12611 }
12612 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12613 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12614 if (!SWIG_IsOK(ecode2)) {
12615 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12616 }
12617 arg2 = static_cast< bool >(val2);
12618 {
12619 PyThreadState* __tstate = wxPyBeginAllowThreads();
12620 (arg1)->SetModified(arg2);
12621 wxPyEndAllowThreads(__tstate);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 resultobj = SWIG_Py_Void();
12625 return resultobj;
12626fail:
12627 return NULL;
12628}
12629
12630
1bd55598
RD
12631SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12632 PyObject *resultobj = 0;
12633 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12634 unsigned long arg2 ;
12635 void *argp1 = 0 ;
12636 int res1 = 0 ;
12637 unsigned long val2 ;
12638 int ecode2 = 0 ;
12639 PyObject * obj0 = 0 ;
12640 PyObject * obj1 = 0 ;
12641 char * kwnames[] = {
12642 (char *) "self",(char *) "len", NULL
12643 };
12644
12645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12647 if (!SWIG_IsOK(res1)) {
12648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12649 }
12650 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12651 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12652 if (!SWIG_IsOK(ecode2)) {
12653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12654 }
12655 arg2 = static_cast< unsigned long >(val2);
12656 {
12657 PyThreadState* __tstate = wxPyBeginAllowThreads();
12658 (arg1)->SetMaxLength(arg2);
12659 wxPyEndAllowThreads(__tstate);
12660 if (PyErr_Occurred()) SWIG_fail;
12661 }
12662 resultobj = SWIG_Py_Void();
12663 return resultobj;
12664fail:
12665 return NULL;
12666}
12667
12668
12669SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12670 PyObject *resultobj = 0;
12671 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12672 wxString *arg2 = 0 ;
12673 void *argp1 = 0 ;
12674 int res1 = 0 ;
12675 bool temp2 = false ;
12676 PyObject * obj0 = 0 ;
12677 PyObject * obj1 = 0 ;
12678 char * kwnames[] = {
12679 (char *) "self",(char *) "text", NULL
12680 };
12681
12682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12684 if (!SWIG_IsOK(res1)) {
12685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12686 }
12687 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12688 {
12689 arg2 = wxString_in_helper(obj1);
12690 if (arg2 == NULL) SWIG_fail;
12691 temp2 = true;
12692 }
12693 {
12694 PyThreadState* __tstate = wxPyBeginAllowThreads();
12695 (arg1)->WriteText((wxString const &)*arg2);
12696 wxPyEndAllowThreads(__tstate);
12697 if (PyErr_Occurred()) SWIG_fail;
12698 }
12699 resultobj = SWIG_Py_Void();
12700 {
12701 if (temp2)
12702 delete arg2;
12703 }
12704 return resultobj;
12705fail:
12706 {
12707 if (temp2)
12708 delete arg2;
12709 }
12710 return NULL;
d55e5bfc
RD
12711}
12712
12713
1bd55598
RD
12714SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12715 PyObject *resultobj = 0;
12716 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12717 wxString *arg2 = 0 ;
12718 void *argp1 = 0 ;
12719 int res1 = 0 ;
12720 bool temp2 = false ;
12721 PyObject * obj0 = 0 ;
12722 PyObject * obj1 = 0 ;
12723 char * kwnames[] = {
12724 (char *) "self",(char *) "text", NULL
12725 };
12726
12727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12729 if (!SWIG_IsOK(res1)) {
12730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12731 }
12732 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12733 {
12734 arg2 = wxString_in_helper(obj1);
12735 if (arg2 == NULL) SWIG_fail;
12736 temp2 = true;
12737 }
12738 {
12739 PyThreadState* __tstate = wxPyBeginAllowThreads();
12740 (arg1)->AppendText((wxString const &)*arg2);
12741 wxPyEndAllowThreads(__tstate);
12742 if (PyErr_Occurred()) SWIG_fail;
12743 }
12744 resultobj = SWIG_Py_Void();
12745 {
12746 if (temp2)
12747 delete arg2;
12748 }
12749 return resultobj;
12750fail:
12751 {
12752 if (temp2)
12753 delete arg2;
12754 }
12755 return NULL;
12756}
12757
12758
12759SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12760 PyObject *resultobj = 0;
12761 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12762 wxKeyEvent *arg2 = 0 ;
12763 bool result;
12764 void *argp1 = 0 ;
12765 int res1 = 0 ;
12766 void *argp2 = 0 ;
12767 int res2 = 0 ;
12768 PyObject * obj0 = 0 ;
12769 PyObject * obj1 = 0 ;
12770 char * kwnames[] = {
12771 (char *) "self",(char *) "event", NULL
12772 };
12773
12774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12776 if (!SWIG_IsOK(res1)) {
12777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12778 }
12779 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12781 if (!SWIG_IsOK(res2)) {
12782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12783 }
12784 if (!argp2) {
12785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12786 }
12787 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12788 {
12789 PyThreadState* __tstate = wxPyBeginAllowThreads();
12790 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12791 wxPyEndAllowThreads(__tstate);
12792 if (PyErr_Occurred()) SWIG_fail;
12793 }
12794 {
12795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12796 }
12797 return resultobj;
12798fail:
12799 return NULL;
12800}
12801
12802
12803SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12804 PyObject *resultobj = 0;
12805 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12806 long arg2 ;
12807 long arg3 ;
12808 wxTextAttr *arg4 = 0 ;
12809 bool result;
12810 void *argp1 = 0 ;
12811 int res1 = 0 ;
12812 long val2 ;
12813 int ecode2 = 0 ;
12814 long val3 ;
12815 int ecode3 = 0 ;
12816 void *argp4 = 0 ;
12817 int res4 = 0 ;
12818 PyObject * obj0 = 0 ;
12819 PyObject * obj1 = 0 ;
12820 PyObject * obj2 = 0 ;
12821 PyObject * obj3 = 0 ;
12822 char * kwnames[] = {
12823 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12824 };
12825
12826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12828 if (!SWIG_IsOK(res1)) {
12829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12830 }
12831 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12832 ecode2 = SWIG_AsVal_long(obj1, &val2);
12833 if (!SWIG_IsOK(ecode2)) {
12834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12835 }
12836 arg2 = static_cast< long >(val2);
12837 ecode3 = SWIG_AsVal_long(obj2, &val3);
12838 if (!SWIG_IsOK(ecode3)) {
12839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12840 }
12841 arg3 = static_cast< long >(val3);
12842 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12843 if (!SWIG_IsOK(res4)) {
12844 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12845 }
12846 if (!argp4) {
12847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12848 }
12849 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12850 {
12851 PyThreadState* __tstate = wxPyBeginAllowThreads();
12852 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12853 wxPyEndAllowThreads(__tstate);
12854 if (PyErr_Occurred()) SWIG_fail;
12855 }
12856 {
12857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12858 }
12859 return resultobj;
12860fail:
12861 return NULL;
12862}
12863
12864
12865SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12866 PyObject *resultobj = 0;
12867 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12868 long arg2 ;
12869 wxTextAttr *arg3 = 0 ;
12870 bool result;
12871 void *argp1 = 0 ;
12872 int res1 = 0 ;
12873 long val2 ;
12874 int ecode2 = 0 ;
12875 void *argp3 = 0 ;
12876 int res3 = 0 ;
12877 PyObject * obj0 = 0 ;
12878 PyObject * obj1 = 0 ;
12879 PyObject * obj2 = 0 ;
12880 char * kwnames[] = {
12881 (char *) "self",(char *) "position",(char *) "style", NULL
12882 };
12883
12884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12886 if (!SWIG_IsOK(res1)) {
12887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12888 }
12889 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12890 ecode2 = SWIG_AsVal_long(obj1, &val2);
12891 if (!SWIG_IsOK(ecode2)) {
12892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12893 }
12894 arg2 = static_cast< long >(val2);
12895 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12896 if (!SWIG_IsOK(res3)) {
12897 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12898 }
12899 if (!argp3) {
12900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12901 }
12902 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12903 {
12904 PyThreadState* __tstate = wxPyBeginAllowThreads();
12905 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12906 wxPyEndAllowThreads(__tstate);
12907 if (PyErr_Occurred()) SWIG_fail;
12908 }
12909 {
12910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12911 }
12912 return resultobj;
12913fail:
12914 return NULL;
12915}
12916
12917
12918SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12919 PyObject *resultobj = 0;
12920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12921 wxTextAttr *arg2 = 0 ;
12922 bool result;
12923 void *argp1 = 0 ;
12924 int res1 = 0 ;
12925 void *argp2 = 0 ;
12926 int res2 = 0 ;
12927 PyObject * obj0 = 0 ;
12928 PyObject * obj1 = 0 ;
12929 char * kwnames[] = {
12930 (char *) "self",(char *) "style", NULL
12931 };
12932
12933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12935 if (!SWIG_IsOK(res1)) {
12936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12937 }
12938 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12939 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12940 if (!SWIG_IsOK(res2)) {
12941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12942 }
12943 if (!argp2) {
12944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12945 }
12946 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12947 {
12948 PyThreadState* __tstate = wxPyBeginAllowThreads();
12949 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12950 wxPyEndAllowThreads(__tstate);
12951 if (PyErr_Occurred()) SWIG_fail;
12952 }
12953 {
12954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12955 }
12956 return resultobj;
12957fail:
12958 return NULL;
d55e5bfc
RD
12959}
12960
12961
1bd55598
RD
12962SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12963 PyObject *resultobj = 0;
12964 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12965 wxTextAttr *result = 0 ;
12966 void *argp1 = 0 ;
12967 int res1 = 0 ;
12968 PyObject *swig_obj[1] ;
12969
12970 if (!args) SWIG_fail;
12971 swig_obj[0] = args;
12972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12973 if (!SWIG_IsOK(res1)) {
12974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12975 }
12976 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12977 {
12978 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 12979 {
1bd55598
RD
12980 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12981 result = (wxTextAttr *) &_result_ref;
d55e5bfc 12982 }
1bd55598
RD
12983 wxPyEndAllowThreads(__tstate);
12984 if (PyErr_Occurred()) SWIG_fail;
12985 }
12986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12987 return resultobj;
12988fail:
12989 return NULL;
12990}
12991
12992
12993SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12994 PyObject *resultobj = 0;
12995 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12996 long arg2 ;
12997 long arg3 ;
12998 long result;
12999 void *argp1 = 0 ;
13000 int res1 = 0 ;
13001 long val2 ;
13002 int ecode2 = 0 ;
13003 long val3 ;
13004 int ecode3 = 0 ;
13005 PyObject * obj0 = 0 ;
13006 PyObject * obj1 = 0 ;
13007 PyObject * obj2 = 0 ;
13008 char * kwnames[] = {
13009 (char *) "self",(char *) "x",(char *) "y", NULL
13010 };
13011
13012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13014 if (!SWIG_IsOK(res1)) {
13015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13016 }
13017 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13018 ecode2 = SWIG_AsVal_long(obj1, &val2);
13019 if (!SWIG_IsOK(ecode2)) {
13020 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
13021 }
13022 arg2 = static_cast< long >(val2);
13023 ecode3 = SWIG_AsVal_long(obj2, &val3);
13024 if (!SWIG_IsOK(ecode3)) {
13025 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
13026 }
13027 arg3 = static_cast< long >(val3);
13028 {
13029 PyThreadState* __tstate = wxPyBeginAllowThreads();
13030 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
13031 wxPyEndAllowThreads(__tstate);
13032 if (PyErr_Occurred()) SWIG_fail;
13033 }
13034 resultobj = SWIG_From_long(static_cast< long >(result));
13035 return resultobj;
13036fail:
13037 return NULL;
13038}
13039
13040
13041SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13042 PyObject *resultobj = 0;
13043 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13044 long arg2 ;
13045 long *arg3 = (long *) 0 ;
13046 long *arg4 = (long *) 0 ;
13047 void *argp1 = 0 ;
13048 int res1 = 0 ;
13049 long val2 ;
13050 int ecode2 = 0 ;
13051 long temp3 ;
13052 int res3 = SWIG_TMPOBJ ;
13053 long temp4 ;
13054 int res4 = SWIG_TMPOBJ ;
13055 PyObject * obj0 = 0 ;
13056 PyObject * obj1 = 0 ;
13057 char * kwnames[] = {
13058 (char *) "self",(char *) "pos", NULL
13059 };
13060
13061 arg3 = &temp3;
13062 arg4 = &temp4;
13063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) 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_PositionToXY" "', 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_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13072 }
13073 arg2 = static_cast< long >(val2);
13074 {
13075 PyThreadState* __tstate = wxPyBeginAllowThreads();
13076 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13077 wxPyEndAllowThreads(__tstate);
13078 if (PyErr_Occurred()) SWIG_fail;
13079 }
13080 resultobj = SWIG_Py_Void();
13081 if (SWIG_IsTmpObj(res3)) {
13082 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13083 } else {
13084 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13085 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13086 }
13087 if (SWIG_IsTmpObj(res4)) {
13088 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13089 } else {
13090 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13091 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13092 }
13093 return resultobj;
13094fail:
13095 return NULL;
13096}
13097
13098
13099SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13100 PyObject *resultobj = 0;
13101 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13102 long arg2 ;
13103 void *argp1 = 0 ;
13104 int res1 = 0 ;
13105 long val2 ;
13106 int ecode2 = 0 ;
13107 PyObject * obj0 = 0 ;
13108 PyObject * obj1 = 0 ;
13109 char * kwnames[] = {
13110 (char *) "self",(char *) "pos", NULL
13111 };
13112
13113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13114 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13115 if (!SWIG_IsOK(res1)) {
13116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13117 }
13118 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13119 ecode2 = SWIG_AsVal_long(obj1, &val2);
13120 if (!SWIG_IsOK(ecode2)) {
13121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13122 }
13123 arg2 = static_cast< long >(val2);
13124 {
13125 PyThreadState* __tstate = wxPyBeginAllowThreads();
13126 (arg1)->ShowPosition(arg2);
13127 wxPyEndAllowThreads(__tstate);
13128 if (PyErr_Occurred()) SWIG_fail;
13129 }
13130 resultobj = SWIG_Py_Void();
13131 return resultobj;
13132fail:
13133 return NULL;
13134}
13135
13136
13137SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13138 PyObject *resultobj = 0;
13139 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13140 wxPoint *arg2 = 0 ;
13141 long *arg3 = (long *) 0 ;
13142 long *arg4 = (long *) 0 ;
13143 wxTextCtrlHitTestResult result;
13144 void *argp1 = 0 ;
13145 int res1 = 0 ;
13146 wxPoint temp2 ;
13147 long temp3 ;
13148 int res3 = SWIG_TMPOBJ ;
13149 long temp4 ;
13150 int res4 = SWIG_TMPOBJ ;
13151 PyObject * obj0 = 0 ;
13152 PyObject * obj1 = 0 ;
13153 char * kwnames[] = {
13154 (char *) "self",(char *) "pt", NULL
13155 };
13156
13157 arg3 = &temp3;
13158 arg4 = &temp4;
13159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13161 if (!SWIG_IsOK(res1)) {
13162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13163 }
13164 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13165 {
13166 arg2 = &temp2;
13167 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13168 }
13169 {
13170 PyThreadState* __tstate = wxPyBeginAllowThreads();
13171 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13172 wxPyEndAllowThreads(__tstate);
13173 if (PyErr_Occurred()) SWIG_fail;
13174 }
13175 resultobj = SWIG_From_int(static_cast< int >(result));
13176 if (SWIG_IsTmpObj(res3)) {
13177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13178 } else {
13179 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13181 }
13182 if (SWIG_IsTmpObj(res4)) {
13183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13184 } else {
13185 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13187 }
13188 return resultobj;
13189fail:
13190 return NULL;
13191}
13192
13193
13194SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13195 PyObject *resultobj = 0;
13196 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13197 wxPoint *arg2 = 0 ;
13198 long *arg3 = (long *) 0 ;
13199 wxTextCtrlHitTestResult result;
13200 void *argp1 = 0 ;
13201 int res1 = 0 ;
13202 wxPoint temp2 ;
13203 long temp3 ;
13204 int res3 = SWIG_TMPOBJ ;
13205 PyObject * obj0 = 0 ;
13206 PyObject * obj1 = 0 ;
13207 char * kwnames[] = {
13208 (char *) "self",(char *) "pt", NULL
13209 };
13210
13211 arg3 = &temp3;
13212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13214 if (!SWIG_IsOK(res1)) {
13215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13216 }
13217 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13218 {
13219 arg2 = &temp2;
13220 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13221 }
13222 {
13223 PyThreadState* __tstate = wxPyBeginAllowThreads();
13224 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13225 wxPyEndAllowThreads(__tstate);
13226 if (PyErr_Occurred()) SWIG_fail;
13227 }
13228 resultobj = SWIG_From_int(static_cast< int >(result));
13229 if (SWIG_IsTmpObj(res3)) {
13230 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13231 } else {
13232 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13233 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13234 }
13235 return resultobj;
13236fail:
13237 return NULL;
d55e5bfc
RD
13238}
13239
13240
1bd55598
RD
13241SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13242 PyObject *resultobj = 0;
13243 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13244 void *argp1 = 0 ;
13245 int res1 = 0 ;
13246 PyObject *swig_obj[1] ;
13247
13248 if (!args) SWIG_fail;
13249 swig_obj[0] = args;
13250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13251 if (!SWIG_IsOK(res1)) {
13252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13253 }
13254 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 (arg1)->Copy();
13258 wxPyEndAllowThreads(__tstate);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 resultobj = SWIG_Py_Void();
13262 return resultobj;
13263fail:
13264 return NULL;
d55e5bfc
RD
13265}
13266
13267
1bd55598
RD
13268SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13269 PyObject *resultobj = 0;
13270 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13271 void *argp1 = 0 ;
13272 int res1 = 0 ;
13273 PyObject *swig_obj[1] ;
13274
13275 if (!args) SWIG_fail;
13276 swig_obj[0] = args;
13277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13278 if (!SWIG_IsOK(res1)) {
13279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13280 }
13281 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13282 {
13283 PyThreadState* __tstate = wxPyBeginAllowThreads();
13284 (arg1)->Cut();
13285 wxPyEndAllowThreads(__tstate);
13286 if (PyErr_Occurred()) SWIG_fail;
13287 }
13288 resultobj = SWIG_Py_Void();
13289 return resultobj;
13290fail:
13291 return NULL;
d55e5bfc
RD
13292}
13293
13294
1bd55598
RD
13295SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13296 PyObject *resultobj = 0;
13297 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13298 void *argp1 = 0 ;
13299 int res1 = 0 ;
13300 PyObject *swig_obj[1] ;
13301
13302 if (!args) SWIG_fail;
13303 swig_obj[0] = args;
13304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13305 if (!SWIG_IsOK(res1)) {
13306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13307 }
13308 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13309 {
13310 PyThreadState* __tstate = wxPyBeginAllowThreads();
13311 (arg1)->Paste();
13312 wxPyEndAllowThreads(__tstate);
13313 if (PyErr_Occurred()) SWIG_fail;
13314 }
13315 resultobj = SWIG_Py_Void();
13316 return resultobj;
13317fail:
13318 return NULL;
d55e5bfc
RD
13319}
13320
13321
1bd55598
RD
13322SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13323 PyObject *resultobj = 0;
13324 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13325 bool result;
13326 void *argp1 = 0 ;
13327 int res1 = 0 ;
13328 PyObject *swig_obj[1] ;
13329
13330 if (!args) SWIG_fail;
13331 swig_obj[0] = args;
13332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13333 if (!SWIG_IsOK(res1)) {
13334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13335 }
13336 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13337 {
13338 PyThreadState* __tstate = wxPyBeginAllowThreads();
13339 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13340 wxPyEndAllowThreads(__tstate);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 }
13343 {
13344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13345 }
13346 return resultobj;
13347fail:
13348 return NULL;
d55e5bfc
RD
13349}
13350
13351
1bd55598
RD
13352SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13353 PyObject *resultobj = 0;
13354 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13355 bool result;
13356 void *argp1 = 0 ;
13357 int res1 = 0 ;
13358 PyObject *swig_obj[1] ;
13359
13360 if (!args) SWIG_fail;
13361 swig_obj[0] = args;
13362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13363 if (!SWIG_IsOK(res1)) {
13364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13365 }
13366 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13367 {
13368 PyThreadState* __tstate = wxPyBeginAllowThreads();
13369 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13370 wxPyEndAllowThreads(__tstate);
13371 if (PyErr_Occurred()) SWIG_fail;
13372 }
13373 {
13374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13375 }
13376 return resultobj;
13377fail:
13378 return NULL;
d55e5bfc
RD
13379}
13380
13381
1bd55598
RD
13382SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13383 PyObject *resultobj = 0;
13384 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13385 bool result;
13386 void *argp1 = 0 ;
13387 int res1 = 0 ;
13388 PyObject *swig_obj[1] ;
13389
13390 if (!args) SWIG_fail;
13391 swig_obj[0] = args;
13392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13393 if (!SWIG_IsOK(res1)) {
13394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13395 }
13396 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13397 {
13398 PyThreadState* __tstate = wxPyBeginAllowThreads();
13399 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13400 wxPyEndAllowThreads(__tstate);
13401 if (PyErr_Occurred()) SWIG_fail;
13402 }
13403 {
13404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13405 }
13406 return resultobj;
13407fail:
13408 return NULL;
d55e5bfc
RD
13409}
13410
13411
1bd55598
RD
13412SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13413 PyObject *resultobj = 0;
13414 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13415 void *argp1 = 0 ;
13416 int res1 = 0 ;
13417 PyObject *swig_obj[1] ;
13418
13419 if (!args) SWIG_fail;
13420 swig_obj[0] = args;
13421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13422 if (!SWIG_IsOK(res1)) {
13423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13424 }
13425 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 (arg1)->Undo();
13429 wxPyEndAllowThreads(__tstate);
13430 if (PyErr_Occurred()) SWIG_fail;
13431 }
13432 resultobj = SWIG_Py_Void();
13433 return resultobj;
13434fail:
13435 return NULL;
d55e5bfc
RD
13436}
13437
13438
1bd55598
RD
13439SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13440 PyObject *resultobj = 0;
13441 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13442 void *argp1 = 0 ;
13443 int res1 = 0 ;
13444 PyObject *swig_obj[1] ;
13445
13446 if (!args) SWIG_fail;
13447 swig_obj[0] = args;
13448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13449 if (!SWIG_IsOK(res1)) {
13450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13451 }
13452 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13453 {
13454 PyThreadState* __tstate = wxPyBeginAllowThreads();
13455 (arg1)->Redo();
13456 wxPyEndAllowThreads(__tstate);
13457 if (PyErr_Occurred()) SWIG_fail;
13458 }
13459 resultobj = SWIG_Py_Void();
13460 return resultobj;
13461fail:
13462 return NULL;
d55e5bfc
RD
13463}
13464
13465
1bd55598
RD
13466SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13467 PyObject *resultobj = 0;
13468 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13469 bool result;
13470 void *argp1 = 0 ;
13471 int res1 = 0 ;
13472 PyObject *swig_obj[1] ;
13473
13474 if (!args) SWIG_fail;
13475 swig_obj[0] = args;
13476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13477 if (!SWIG_IsOK(res1)) {
13478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13479 }
13480 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13481 {
13482 PyThreadState* __tstate = wxPyBeginAllowThreads();
13483 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13484 wxPyEndAllowThreads(__tstate);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 }
13487 {
13488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13489 }
13490 return resultobj;
13491fail:
13492 return NULL;
d55e5bfc
RD
13493}
13494
13495
1bd55598
RD
13496SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13497 PyObject *resultobj = 0;
13498 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13499 bool result;
13500 void *argp1 = 0 ;
13501 int res1 = 0 ;
13502 PyObject *swig_obj[1] ;
13503
13504 if (!args) SWIG_fail;
13505 swig_obj[0] = args;
13506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13507 if (!SWIG_IsOK(res1)) {
13508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13509 }
13510 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13511 {
13512 PyThreadState* __tstate = wxPyBeginAllowThreads();
13513 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13514 wxPyEndAllowThreads(__tstate);
13515 if (PyErr_Occurred()) SWIG_fail;
13516 }
13517 {
13518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13519 }
13520 return resultobj;
13521fail:
13522 return NULL;
13523}
13524
13525
13526SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13527 PyObject *resultobj = 0;
13528 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13529 long arg2 ;
13530 void *argp1 = 0 ;
13531 int res1 = 0 ;
13532 long val2 ;
13533 int ecode2 = 0 ;
13534 PyObject * obj0 = 0 ;
13535 PyObject * obj1 = 0 ;
13536 char * kwnames[] = {
13537 (char *) "self",(char *) "pos", NULL
13538 };
13539
13540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13542 if (!SWIG_IsOK(res1)) {
13543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13544 }
13545 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13546 ecode2 = SWIG_AsVal_long(obj1, &val2);
13547 if (!SWIG_IsOK(ecode2)) {
13548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13549 }
13550 arg2 = static_cast< long >(val2);
13551 {
13552 PyThreadState* __tstate = wxPyBeginAllowThreads();
13553 (arg1)->SetInsertionPoint(arg2);
13554 wxPyEndAllowThreads(__tstate);
13555 if (PyErr_Occurred()) SWIG_fail;
13556 }
13557 resultobj = SWIG_Py_Void();
13558 return resultobj;
13559fail:
13560 return NULL;
d55e5bfc
RD
13561}
13562
13563
1bd55598
RD
13564SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13565 PyObject *resultobj = 0;
13566 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13567 void *argp1 = 0 ;
13568 int res1 = 0 ;
13569 PyObject *swig_obj[1] ;
13570
13571 if (!args) SWIG_fail;
13572 swig_obj[0] = args;
13573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13574 if (!SWIG_IsOK(res1)) {
13575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13576 }
13577 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13578 {
13579 PyThreadState* __tstate = wxPyBeginAllowThreads();
13580 (arg1)->SetInsertionPointEnd();
13581 wxPyEndAllowThreads(__tstate);
13582 if (PyErr_Occurred()) SWIG_fail;
13583 }
13584 resultobj = SWIG_Py_Void();
13585 return resultobj;
13586fail:
13587 return NULL;
d55e5bfc
RD
13588}
13589
13590
1bd55598
RD
13591SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13592 PyObject *resultobj = 0;
13593 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13594 long result;
13595 void *argp1 = 0 ;
13596 int res1 = 0 ;
13597 PyObject *swig_obj[1] ;
13598
13599 if (!args) SWIG_fail;
13600 swig_obj[0] = args;
13601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13602 if (!SWIG_IsOK(res1)) {
13603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13604 }
13605 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13606 {
13607 PyThreadState* __tstate = wxPyBeginAllowThreads();
13608 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13609 wxPyEndAllowThreads(__tstate);
13610 if (PyErr_Occurred()) SWIG_fail;
13611 }
13612 resultobj = SWIG_From_long(static_cast< long >(result));
13613 return resultobj;
13614fail:
13615 return NULL;
d55e5bfc
RD
13616}
13617
13618
1bd55598
RD
13619SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13620 PyObject *resultobj = 0;
13621 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13622 long result;
13623 void *argp1 = 0 ;
13624 int res1 = 0 ;
13625 PyObject *swig_obj[1] ;
13626
13627 if (!args) SWIG_fail;
13628 swig_obj[0] = args;
13629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13630 if (!SWIG_IsOK(res1)) {
13631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13632 }
13633 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13634 {
13635 PyThreadState* __tstate = wxPyBeginAllowThreads();
13636 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13637 wxPyEndAllowThreads(__tstate);
13638 if (PyErr_Occurred()) SWIG_fail;
13639 }
13640 resultobj = SWIG_From_long(static_cast< long >(result));
13641 return resultobj;
13642fail:
13643 return NULL;
13644}
13645
13646
13647SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13648 PyObject *resultobj = 0;
13649 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13650 long arg2 ;
13651 long arg3 ;
13652 void *argp1 = 0 ;
13653 int res1 = 0 ;
13654 long val2 ;
13655 int ecode2 = 0 ;
13656 long val3 ;
13657 int ecode3 = 0 ;
13658 PyObject * obj0 = 0 ;
13659 PyObject * obj1 = 0 ;
13660 PyObject * obj2 = 0 ;
13661 char * kwnames[] = {
2131d850 13662 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
13663 };
13664
13665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13667 if (!SWIG_IsOK(res1)) {
13668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13669 }
13670 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13671 ecode2 = SWIG_AsVal_long(obj1, &val2);
13672 if (!SWIG_IsOK(ecode2)) {
13673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13674 }
13675 arg2 = static_cast< long >(val2);
13676 ecode3 = SWIG_AsVal_long(obj2, &val3);
13677 if (!SWIG_IsOK(ecode3)) {
13678 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13679 }
13680 arg3 = static_cast< long >(val3);
13681 {
13682 PyThreadState* __tstate = wxPyBeginAllowThreads();
13683 (arg1)->SetSelection(arg2,arg3);
13684 wxPyEndAllowThreads(__tstate);
13685 if (PyErr_Occurred()) SWIG_fail;
13686 }
13687 resultobj = SWIG_Py_Void();
13688 return resultobj;
13689fail:
13690 return NULL;
d55e5bfc
RD
13691}
13692
13693
1bd55598
RD
13694SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13695 PyObject *resultobj = 0;
13696 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13697 void *argp1 = 0 ;
13698 int res1 = 0 ;
13699 PyObject *swig_obj[1] ;
13700
13701 if (!args) SWIG_fail;
13702 swig_obj[0] = args;
13703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13704 if (!SWIG_IsOK(res1)) {
13705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13706 }
13707 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13708 {
13709 PyThreadState* __tstate = wxPyBeginAllowThreads();
13710 (arg1)->SelectAll();
13711 wxPyEndAllowThreads(__tstate);
13712 if (PyErr_Occurred()) SWIG_fail;
13713 }
13714 resultobj = SWIG_Py_Void();
13715 return resultobj;
13716fail:
13717 return NULL;
13718}
13719
13720
13721SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13722 PyObject *resultobj = 0;
13723 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13724 bool arg2 ;
13725 void *argp1 = 0 ;
13726 int res1 = 0 ;
13727 bool val2 ;
13728 int ecode2 = 0 ;
13729 PyObject * obj0 = 0 ;
13730 PyObject * obj1 = 0 ;
13731 char * kwnames[] = {
13732 (char *) "self",(char *) "editable", NULL
13733 };
13734
13735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13737 if (!SWIG_IsOK(res1)) {
13738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13739 }
13740 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13741 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13742 if (!SWIG_IsOK(ecode2)) {
13743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13744 }
13745 arg2 = static_cast< bool >(val2);
13746 {
13747 PyThreadState* __tstate = wxPyBeginAllowThreads();
13748 (arg1)->SetEditable(arg2);
13749 wxPyEndAllowThreads(__tstate);
13750 if (PyErr_Occurred()) SWIG_fail;
13751 }
13752 resultobj = SWIG_Py_Void();
13753 return resultobj;
13754fail:
13755 return NULL;
13756}
13757
13758
d7645bfd
VZ
13759SWIGINTERN PyObject *_wrap_TextCtrl_MacCheckSpelling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13760 PyObject *resultobj = 0;
13761 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13762 bool arg2 ;
13763 void *argp1 = 0 ;
13764 int res1 = 0 ;
13765 bool val2 ;
13766 int ecode2 = 0 ;
13767 PyObject * obj0 = 0 ;
13768 PyObject * obj1 = 0 ;
13769 char * kwnames[] = {
13770 (char *) "self",(char *) "check", NULL
13771 };
13772
13773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_MacCheckSpelling",kwnames,&obj0,&obj1)) SWIG_fail;
13774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13775 if (!SWIG_IsOK(res1)) {
13776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13777 }
13778 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13779 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13780 if (!SWIG_IsOK(ecode2)) {
13781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_MacCheckSpelling" "', expected argument " "2"" of type '" "bool""'");
13782 }
13783 arg2 = static_cast< bool >(val2);
13784 {
13785 PyThreadState* __tstate = wxPyBeginAllowThreads();
13786 (arg1)->MacCheckSpelling(arg2);
13787 wxPyEndAllowThreads(__tstate);
13788 if (PyErr_Occurred()) SWIG_fail;
13789 }
13790 resultobj = SWIG_Py_Void();
13791 return resultobj;
13792fail:
13793 return NULL;
13794}
13795
13796
b39fe951
RD
13797SWIGINTERN PyObject *_wrap_TextCtrl_SendTextUpdatedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13798 PyObject *resultobj = 0;
13799 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13800 void *argp1 = 0 ;
13801 int res1 = 0 ;
13802 PyObject *swig_obj[1] ;
13803
13804 if (!args) SWIG_fail;
13805 swig_obj[0] = args;
13806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13807 if (!SWIG_IsOK(res1)) {
13808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SendTextUpdatedEvent" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13809 }
13810 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13811 {
13812 PyThreadState* __tstate = wxPyBeginAllowThreads();
13813 (arg1)->SendTextUpdatedEvent();
13814 wxPyEndAllowThreads(__tstate);
13815 if (PyErr_Occurred()) SWIG_fail;
13816 }
13817 resultobj = SWIG_Py_Void();
13818 return resultobj;
13819fail:
13820 return NULL;
13821}
13822
13823
1bd55598
RD
13824SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13825 PyObject *resultobj = 0;
13826 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13827 wxString *arg2 = 0 ;
13828 void *argp1 = 0 ;
13829 int res1 = 0 ;
13830 bool temp2 = false ;
13831 PyObject * obj0 = 0 ;
13832 PyObject * obj1 = 0 ;
13833 char * kwnames[] = {
13834 (char *) "self",(char *) "text", NULL
13835 };
13836
13837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13839 if (!SWIG_IsOK(res1)) {
13840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13841 }
13842 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13843 {
13844 arg2 = wxString_in_helper(obj1);
13845 if (arg2 == NULL) SWIG_fail;
13846 temp2 = true;
13847 }
13848 {
13849 PyThreadState* __tstate = wxPyBeginAllowThreads();
13850 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
13854 resultobj = SWIG_Py_Void();
13855 {
13856 if (temp2)
13857 delete arg2;
13858 }
13859 return resultobj;
13860fail:
13861 {
13862 if (temp2)
13863 delete arg2;
13864 }
13865 return NULL;
13866}
13867
13868
13869SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13870 PyObject *resultobj = 0;
13871 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13872 long arg2 ;
13873 long arg3 ;
13874 wxString result;
13875 void *argp1 = 0 ;
13876 int res1 = 0 ;
13877 long val2 ;
13878 int ecode2 = 0 ;
13879 long val3 ;
13880 int ecode3 = 0 ;
13881 PyObject * obj0 = 0 ;
13882 PyObject * obj1 = 0 ;
13883 PyObject * obj2 = 0 ;
13884 char * kwnames[] = {
2131d850 13885 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
13886 };
13887
13888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13890 if (!SWIG_IsOK(res1)) {
13891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13892 }
13893 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13894 ecode2 = SWIG_AsVal_long(obj1, &val2);
13895 if (!SWIG_IsOK(ecode2)) {
13896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13897 }
13898 arg2 = static_cast< long >(val2);
13899 ecode3 = SWIG_AsVal_long(obj2, &val3);
13900 if (!SWIG_IsOK(ecode3)) {
13901 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13902 }
13903 arg3 = static_cast< long >(val3);
13904 {
13905 PyThreadState* __tstate = wxPyBeginAllowThreads();
13906 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13907 wxPyEndAllowThreads(__tstate);
13908 if (PyErr_Occurred()) SWIG_fail;
13909 }
13910 {
13911#if wxUSE_UNICODE
13912 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13913#else
13914 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13915#endif
13916 }
13917 return resultobj;
13918fail:
13919 return NULL;
d55e5bfc
RD
13920}
13921
13922
1bd55598
RD
13923SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13924 PyObject *resultobj = 0;
13925 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13926 SwigValueWrapper<wxVisualAttributes > result;
13927 int val1 ;
13928 int ecode1 = 0 ;
13929 PyObject * obj0 = 0 ;
13930 char * kwnames[] = {
13931 (char *) "variant", NULL
13932 };
13933
13934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13935 if (obj0) {
13936 ecode1 = SWIG_AsVal_int(obj0, &val1);
13937 if (!SWIG_IsOK(ecode1)) {
13938 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13939 }
13940 arg1 = static_cast< wxWindowVariant >(val1);
13941 }
13942 {
13943 if (!wxPyCheckForApp()) SWIG_fail;
13944 PyThreadState* __tstate = wxPyBeginAllowThreads();
13945 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13946 wxPyEndAllowThreads(__tstate);
13947 if (PyErr_Occurred()) SWIG_fail;
13948 }
13949 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13950 return resultobj;
13951fail:
13952 return NULL;
13953}
13954
13955
13956SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13957 PyObject *obj;
13958 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13959 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13960 return SWIG_Py_Void();
13961}
13962
13963SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13964 return SWIG_Python_InitShadowInstance(args);
13965}
13966
13967SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13968 PyObject *resultobj = 0;
13969 int arg1 ;
13970 wxMouseEvent *arg2 = 0 ;
13971 long arg3 ;
13972 long arg4 ;
13973 wxTextUrlEvent *result = 0 ;
13974 int val1 ;
13975 int ecode1 = 0 ;
13976 void *argp2 = 0 ;
13977 int res2 = 0 ;
13978 long val3 ;
13979 int ecode3 = 0 ;
13980 long val4 ;
13981 int ecode4 = 0 ;
13982 PyObject * obj0 = 0 ;
13983 PyObject * obj1 = 0 ;
13984 PyObject * obj2 = 0 ;
13985 PyObject * obj3 = 0 ;
13986 char * kwnames[] = {
13987 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13988 };
13989
13990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13991 ecode1 = SWIG_AsVal_int(obj0, &val1);
13992 if (!SWIG_IsOK(ecode1)) {
13993 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13994 }
13995 arg1 = static_cast< int >(val1);
13996 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13997 if (!SWIG_IsOK(res2)) {
13998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13999 }
14000 if (!argp2) {
14001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
14002 }
14003 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
14004 ecode3 = SWIG_AsVal_long(obj2, &val3);
14005 if (!SWIG_IsOK(ecode3)) {
14006 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
14007 }
14008 arg3 = static_cast< long >(val3);
14009 ecode4 = SWIG_AsVal_long(obj3, &val4);
14010 if (!SWIG_IsOK(ecode4)) {
14011 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
14012 }
14013 arg4 = static_cast< long >(val4);
14014 {
14015 PyThreadState* __tstate = wxPyBeginAllowThreads();
14016 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
14017 wxPyEndAllowThreads(__tstate);
14018 if (PyErr_Occurred()) SWIG_fail;
14019 }
14020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
14021 return resultobj;
14022fail:
14023 return NULL;
d55e5bfc
RD
14024}
14025
14026
1bd55598
RD
14027SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14028 PyObject *resultobj = 0;
14029 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14030 wxMouseEvent *result = 0 ;
14031 void *argp1 = 0 ;
14032 int res1 = 0 ;
14033 PyObject *swig_obj[1] ;
14034
14035 if (!args) SWIG_fail;
14036 swig_obj[0] = args;
14037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14038 if (!SWIG_IsOK(res1)) {
14039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
14040 }
14041 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14042 {
14043 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 14044 {
1bd55598
RD
14045 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
14046 result = (wxMouseEvent *) &_result_ref;
d55e5bfc 14047 }
1bd55598
RD
14048 wxPyEndAllowThreads(__tstate);
14049 if (PyErr_Occurred()) SWIG_fail;
14050 }
14051 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
14052 return resultobj;
14053fail:
14054 return NULL;
d55e5bfc
RD
14055}
14056
14057
1bd55598
RD
14058SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14059 PyObject *resultobj = 0;
14060 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14061 long result;
14062 void *argp1 = 0 ;
14063 int res1 = 0 ;
14064 PyObject *swig_obj[1] ;
14065
14066 if (!args) SWIG_fail;
14067 swig_obj[0] = args;
14068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14069 if (!SWIG_IsOK(res1)) {
14070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14071 }
14072 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14073 {
14074 PyThreadState* __tstate = wxPyBeginAllowThreads();
14075 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
14076 wxPyEndAllowThreads(__tstate);
14077 if (PyErr_Occurred()) SWIG_fail;
14078 }
14079 resultobj = SWIG_From_long(static_cast< long >(result));
14080 return resultobj;
14081fail:
14082 return NULL;
d55e5bfc
RD
14083}
14084
14085
1bd55598
RD
14086SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14087 PyObject *resultobj = 0;
14088 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
14089 long result;
14090 void *argp1 = 0 ;
14091 int res1 = 0 ;
14092 PyObject *swig_obj[1] ;
14093
14094 if (!args) SWIG_fail;
14095 swig_obj[0] = args;
14096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
14097 if (!SWIG_IsOK(res1)) {
14098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
14099 }
14100 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
14101 {
14102 PyThreadState* __tstate = wxPyBeginAllowThreads();
14103 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
14104 wxPyEndAllowThreads(__tstate);
14105 if (PyErr_Occurred()) SWIG_fail;
14106 }
14107 resultobj = SWIG_From_long(static_cast< long >(result));
14108 return resultobj;
14109fail:
14110 return NULL;
d55e5bfc
RD
14111}
14112
14113
1bd55598
RD
14114SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14115 PyObject *obj;
14116 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14117 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
14118 return SWIG_Py_Void();
68e533f8
RD
14119}
14120
1bd55598
RD
14121SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14122 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
14123}
14124
1bd55598
RD
14125SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
14126 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
14127 return 1;
d55e5bfc
RD
14128}
14129
14130
1bd55598
RD
14131SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
14132 PyObject *pyobj = 0;
14133
14134 {
14135#if wxUSE_UNICODE
14136 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14137#else
14138 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14139#endif
14140 }
14141 return pyobj;
14142}
14143
14144
14145SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14146 PyObject *resultobj = 0;
14147 wxWindow *arg1 = (wxWindow *) 0 ;
14148 int arg2 = (int) -1 ;
14149 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14150 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14151 wxSize const &arg4_defvalue = wxDefaultSize ;
14152 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14153 long arg5 = (long) wxSB_HORIZONTAL ;
14154 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14155 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14156 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14157 wxString *arg7 = (wxString *) &arg7_defvalue ;
14158 wxScrollBar *result = 0 ;
14159 void *argp1 = 0 ;
14160 int res1 = 0 ;
14161 int val2 ;
14162 int ecode2 = 0 ;
14163 wxPoint temp3 ;
14164 wxSize temp4 ;
14165 long val5 ;
14166 int ecode5 = 0 ;
14167 void *argp6 = 0 ;
14168 int res6 = 0 ;
14169 bool temp7 = false ;
14170 PyObject * obj0 = 0 ;
14171 PyObject * obj1 = 0 ;
14172 PyObject * obj2 = 0 ;
14173 PyObject * obj3 = 0 ;
14174 PyObject * obj4 = 0 ;
14175 PyObject * obj5 = 0 ;
14176 PyObject * obj6 = 0 ;
14177 char * kwnames[] = {
14178 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14179 };
14180
14181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14183 if (!SWIG_IsOK(res1)) {
14184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14185 }
14186 arg1 = reinterpret_cast< wxWindow * >(argp1);
14187 if (obj1) {
14188 ecode2 = SWIG_AsVal_int(obj1, &val2);
14189 if (!SWIG_IsOK(ecode2)) {
14190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14191 }
14192 arg2 = static_cast< int >(val2);
14193 }
14194 if (obj2) {
d55e5bfc 14195 {
1bd55598
RD
14196 arg3 = &temp3;
14197 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14198 }
1bd55598
RD
14199 }
14200 if (obj3) {
36ed4f51 14201 {
1bd55598
RD
14202 arg4 = &temp4;
14203 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14204 }
1bd55598
RD
14205 }
14206 if (obj4) {
14207 ecode5 = SWIG_AsVal_long(obj4, &val5);
14208 if (!SWIG_IsOK(ecode5)) {
14209 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14210 }
14211 arg5 = static_cast< long >(val5);
14212 }
14213 if (obj5) {
14214 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14215 if (!SWIG_IsOK(res6)) {
14216 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14217 }
1bd55598
RD
14218 if (!argp6) {
14219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14220 }
1bd55598
RD
14221 arg6 = reinterpret_cast< wxValidator * >(argp6);
14222 }
14223 if (obj6) {
d55e5bfc 14224 {
1bd55598
RD
14225 arg7 = wxString_in_helper(obj6);
14226 if (arg7 == NULL) SWIG_fail;
14227 temp7 = true;
d55e5bfc 14228 }
1bd55598
RD
14229 }
14230 {
14231 if (!wxPyCheckForApp()) SWIG_fail;
14232 PyThreadState* __tstate = wxPyBeginAllowThreads();
14233 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14234 wxPyEndAllowThreads(__tstate);
14235 if (PyErr_Occurred()) SWIG_fail;
14236 }
14237 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14238 {
14239 if (temp7)
14240 delete arg7;
14241 }
14242 return resultobj;
14243fail:
14244 {
14245 if (temp7)
14246 delete arg7;
14247 }
14248 return NULL;
d55e5bfc
RD
14249}
14250
14251
1bd55598
RD
14252SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14253 PyObject *resultobj = 0;
14254 wxScrollBar *result = 0 ;
14255
14256 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14257 {
14258 if (!wxPyCheckForApp()) SWIG_fail;
14259 PyThreadState* __tstate = wxPyBeginAllowThreads();
14260 result = (wxScrollBar *)new wxScrollBar();
14261 wxPyEndAllowThreads(__tstate);
14262 if (PyErr_Occurred()) SWIG_fail;
14263 }
14264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14265 return resultobj;
14266fail:
14267 return NULL;
14268}
14269
14270
14271SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14272 PyObject *resultobj = 0;
14273 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14274 wxWindow *arg2 = (wxWindow *) 0 ;
14275 int arg3 = (int) -1 ;
14276 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14277 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14278 wxSize const &arg5_defvalue = wxDefaultSize ;
14279 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14280 long arg6 = (long) wxSB_HORIZONTAL ;
14281 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14282 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14283 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14284 wxString *arg8 = (wxString *) &arg8_defvalue ;
14285 bool result;
14286 void *argp1 = 0 ;
14287 int res1 = 0 ;
14288 void *argp2 = 0 ;
14289 int res2 = 0 ;
14290 int val3 ;
14291 int ecode3 = 0 ;
14292 wxPoint temp4 ;
14293 wxSize temp5 ;
14294 long val6 ;
14295 int ecode6 = 0 ;
14296 void *argp7 = 0 ;
14297 int res7 = 0 ;
14298 bool temp8 = false ;
14299 PyObject * obj0 = 0 ;
14300 PyObject * obj1 = 0 ;
14301 PyObject * obj2 = 0 ;
14302 PyObject * obj3 = 0 ;
14303 PyObject * obj4 = 0 ;
14304 PyObject * obj5 = 0 ;
14305 PyObject * obj6 = 0 ;
14306 PyObject * obj7 = 0 ;
14307 char * kwnames[] = {
14308 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14309 };
14310
14311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14313 if (!SWIG_IsOK(res1)) {
14314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14315 }
14316 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14317 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14318 if (!SWIG_IsOK(res2)) {
14319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14320 }
14321 arg2 = reinterpret_cast< wxWindow * >(argp2);
14322 if (obj2) {
14323 ecode3 = SWIG_AsVal_int(obj2, &val3);
14324 if (!SWIG_IsOK(ecode3)) {
14325 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14326 }
14327 arg3 = static_cast< int >(val3);
14328 }
14329 if (obj3) {
d55e5bfc 14330 {
1bd55598
RD
14331 arg4 = &temp4;
14332 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14333 }
1bd55598
RD
14334 }
14335 if (obj4) {
d55e5bfc 14336 {
1bd55598
RD
14337 arg5 = &temp5;
14338 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14339 }
1bd55598
RD
14340 }
14341 if (obj5) {
14342 ecode6 = SWIG_AsVal_long(obj5, &val6);
14343 if (!SWIG_IsOK(ecode6)) {
14344 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14345 }
14346 arg6 = static_cast< long >(val6);
14347 }
14348 if (obj6) {
14349 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14350 if (!SWIG_IsOK(res7)) {
14351 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14352 }
1bd55598
RD
14353 if (!argp7) {
14354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14355 }
1bd55598
RD
14356 arg7 = reinterpret_cast< wxValidator * >(argp7);
14357 }
14358 if (obj7) {
d55e5bfc 14359 {
1bd55598
RD
14360 arg8 = wxString_in_helper(obj7);
14361 if (arg8 == NULL) SWIG_fail;
14362 temp8 = true;
d55e5bfc 14363 }
1bd55598
RD
14364 }
14365 {
14366 PyThreadState* __tstate = wxPyBeginAllowThreads();
14367 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14368 wxPyEndAllowThreads(__tstate);
14369 if (PyErr_Occurred()) SWIG_fail;
14370 }
14371 {
14372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14373 }
14374 {
14375 if (temp8)
14376 delete arg8;
14377 }
14378 return resultobj;
14379fail:
14380 {
14381 if (temp8)
14382 delete arg8;
14383 }
14384 return NULL;
d55e5bfc
RD
14385}
14386
14387
1bd55598
RD
14388SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14389 PyObject *resultobj = 0;
14390 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14391 int result;
14392 void *argp1 = 0 ;
14393 int res1 = 0 ;
14394 PyObject *swig_obj[1] ;
14395
14396 if (!args) SWIG_fail;
14397 swig_obj[0] = args;
14398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14399 if (!SWIG_IsOK(res1)) {
14400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14401 }
14402 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14403 {
14404 PyThreadState* __tstate = wxPyBeginAllowThreads();
14405 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14406 wxPyEndAllowThreads(__tstate);
14407 if (PyErr_Occurred()) SWIG_fail;
14408 }
14409 resultobj = SWIG_From_int(static_cast< int >(result));
14410 return resultobj;
14411fail:
14412 return NULL;
d55e5bfc
RD
14413}
14414
14415
1bd55598
RD
14416SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14417 PyObject *resultobj = 0;
14418 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14419 int result;
14420 void *argp1 = 0 ;
14421 int res1 = 0 ;
14422 PyObject *swig_obj[1] ;
14423
14424 if (!args) SWIG_fail;
14425 swig_obj[0] = args;
14426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14427 if (!SWIG_IsOK(res1)) {
14428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14429 }
14430 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14431 {
14432 PyThreadState* __tstate = wxPyBeginAllowThreads();
14433 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14434 wxPyEndAllowThreads(__tstate);
14435 if (PyErr_Occurred()) SWIG_fail;
14436 }
14437 resultobj = SWIG_From_int(static_cast< int >(result));
14438 return resultobj;
14439fail:
14440 return NULL;
d55e5bfc
RD
14441}
14442
14443
1bd55598
RD
14444SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14445 PyObject *resultobj = 0;
14446 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14447 int result;
14448 void *argp1 = 0 ;
14449 int res1 = 0 ;
14450 PyObject *swig_obj[1] ;
14451
14452 if (!args) SWIG_fail;
14453 swig_obj[0] = args;
14454 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14455 if (!SWIG_IsOK(res1)) {
14456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14457 }
14458 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14459 {
14460 PyThreadState* __tstate = wxPyBeginAllowThreads();
14461 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14462 wxPyEndAllowThreads(__tstate);
14463 if (PyErr_Occurred()) SWIG_fail;
14464 }
14465 resultobj = SWIG_From_int(static_cast< int >(result));
14466 return resultobj;
14467fail:
14468 return NULL;
d55e5bfc
RD
14469}
14470
14471
1bd55598
RD
14472SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14473 PyObject *resultobj = 0;
14474 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14475 int result;
14476 void *argp1 = 0 ;
14477 int res1 = 0 ;
14478 PyObject *swig_obj[1] ;
14479
14480 if (!args) SWIG_fail;
14481 swig_obj[0] = args;
14482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14483 if (!SWIG_IsOK(res1)) {
14484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14485 }
14486 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14487 {
14488 PyThreadState* __tstate = wxPyBeginAllowThreads();
14489 result = (int)((wxScrollBar const *)arg1)->GetRange();
14490 wxPyEndAllowThreads(__tstate);
14491 if (PyErr_Occurred()) SWIG_fail;
14492 }
14493 resultobj = SWIG_From_int(static_cast< int >(result));
14494 return resultobj;
14495fail:
14496 return NULL;
d55e5bfc
RD
14497}
14498
14499
1bd55598
RD
14500SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14501 PyObject *resultobj = 0;
14502 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14503 bool result;
14504 void *argp1 = 0 ;
14505 int res1 = 0 ;
14506 PyObject *swig_obj[1] ;
14507
14508 if (!args) SWIG_fail;
14509 swig_obj[0] = args;
14510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14511 if (!SWIG_IsOK(res1)) {
14512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14513 }
14514 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14515 {
14516 PyThreadState* __tstate = wxPyBeginAllowThreads();
14517 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14518 wxPyEndAllowThreads(__tstate);
14519 if (PyErr_Occurred()) SWIG_fail;
14520 }
14521 {
14522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14523 }
14524 return resultobj;
14525fail:
14526 return NULL;
14527}
14528
14529
14530SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14531 PyObject *resultobj = 0;
14532 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14533 int arg2 ;
14534 void *argp1 = 0 ;
14535 int res1 = 0 ;
14536 int val2 ;
14537 int ecode2 = 0 ;
14538 PyObject * obj0 = 0 ;
14539 PyObject * obj1 = 0 ;
14540 char * kwnames[] = {
14541 (char *) "self",(char *) "viewStart", NULL
14542 };
14543
14544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14546 if (!SWIG_IsOK(res1)) {
14547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14548 }
14549 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14550 ecode2 = SWIG_AsVal_int(obj1, &val2);
14551 if (!SWIG_IsOK(ecode2)) {
14552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14553 }
14554 arg2 = static_cast< int >(val2);
14555 {
14556 PyThreadState* __tstate = wxPyBeginAllowThreads();
14557 (arg1)->SetThumbPosition(arg2);
14558 wxPyEndAllowThreads(__tstate);
14559 if (PyErr_Occurred()) SWIG_fail;
14560 }
14561 resultobj = SWIG_Py_Void();
14562 return resultobj;
14563fail:
14564 return NULL;
14565}
14566
14567
14568SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14569 PyObject *resultobj = 0;
14570 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14571 SwigValueWrapper<wxVisualAttributes > result;
14572 int val1 ;
14573 int ecode1 = 0 ;
14574 PyObject * obj0 = 0 ;
14575 char * kwnames[] = {
14576 (char *) "variant", NULL
14577 };
14578
14579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14580 if (obj0) {
14581 ecode1 = SWIG_AsVal_int(obj0, &val1);
14582 if (!SWIG_IsOK(ecode1)) {
14583 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14584 }
14585 arg1 = static_cast< wxWindowVariant >(val1);
14586 }
14587 {
14588 if (!wxPyCheckForApp()) SWIG_fail;
14589 PyThreadState* __tstate = wxPyBeginAllowThreads();
14590 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14591 wxPyEndAllowThreads(__tstate);
14592 if (PyErr_Occurred()) SWIG_fail;
14593 }
14594 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14595 return resultobj;
14596fail:
14597 return NULL;
d55e5bfc
RD
14598}
14599
14600
1bd55598
RD
14601SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14602 PyObject *obj;
14603 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14604 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14605 return SWIG_Py_Void();
d55e5bfc
RD
14606}
14607
1bd55598
RD
14608SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14609 return SWIG_Python_InitShadowInstance(args);
14610}
d55e5bfc 14611
1bd55598
RD
14612SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14613 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14614 return 1;
14615}
14616
14617
14618SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14619 PyObject *pyobj = 0;
14620
14621 {
d55e5bfc 14622#if wxUSE_UNICODE
1bd55598 14623 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14624#else
1bd55598 14625 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14626#endif
1bd55598
RD
14627 }
14628 return pyobj;
d55e5bfc
RD
14629}
14630
14631
1bd55598
RD
14632SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14633 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14634 return 1;
d55e5bfc
RD
14635}
14636
14637
1bd55598
RD
14638SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14639 PyObject *pyobj = 0;
14640
14641 {
14642#if wxUSE_UNICODE
14643 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14644#else
14645 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14646#endif
14647 }
14648 return pyobj;
14649}
14650
14651
14652SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14653 PyObject *resultobj = 0;
14654 wxWindow *arg1 = (wxWindow *) 0 ;
14655 int arg2 = (int) -1 ;
14656 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14657 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14658 wxSize const &arg4_defvalue = wxDefaultSize ;
14659 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14660 long arg5 = (long) wxSP_HORIZONTAL ;
14661 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14662 wxString *arg6 = (wxString *) &arg6_defvalue ;
14663 wxSpinButton *result = 0 ;
14664 void *argp1 = 0 ;
14665 int res1 = 0 ;
14666 int val2 ;
14667 int ecode2 = 0 ;
14668 wxPoint temp3 ;
14669 wxSize temp4 ;
14670 long val5 ;
14671 int ecode5 = 0 ;
14672 bool temp6 = false ;
14673 PyObject * obj0 = 0 ;
14674 PyObject * obj1 = 0 ;
14675 PyObject * obj2 = 0 ;
14676 PyObject * obj3 = 0 ;
14677 PyObject * obj4 = 0 ;
14678 PyObject * obj5 = 0 ;
14679 char * kwnames[] = {
14680 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14681 };
14682
14683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14685 if (!SWIG_IsOK(res1)) {
14686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14687 }
14688 arg1 = reinterpret_cast< wxWindow * >(argp1);
14689 if (obj1) {
14690 ecode2 = SWIG_AsVal_int(obj1, &val2);
14691 if (!SWIG_IsOK(ecode2)) {
14692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14693 }
14694 arg2 = static_cast< int >(val2);
14695 }
14696 if (obj2) {
d55e5bfc 14697 {
1bd55598
RD
14698 arg3 = &temp3;
14699 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14700 }
1bd55598
RD
14701 }
14702 if (obj3) {
d55e5bfc 14703 {
1bd55598
RD
14704 arg4 = &temp4;
14705 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14706 }
1bd55598
RD
14707 }
14708 if (obj4) {
14709 ecode5 = SWIG_AsVal_long(obj4, &val5);
14710 if (!SWIG_IsOK(ecode5)) {
14711 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14712 }
14713 arg5 = static_cast< long >(val5);
14714 }
14715 if (obj5) {
d55e5bfc 14716 {
1bd55598
RD
14717 arg6 = wxString_in_helper(obj5);
14718 if (arg6 == NULL) SWIG_fail;
14719 temp6 = true;
d55e5bfc 14720 }
1bd55598
RD
14721 }
14722 {
14723 if (!wxPyCheckForApp()) SWIG_fail;
14724 PyThreadState* __tstate = wxPyBeginAllowThreads();
14725 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14726 wxPyEndAllowThreads(__tstate);
14727 if (PyErr_Occurred()) SWIG_fail;
14728 }
14729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14730 {
14731 if (temp6)
14732 delete arg6;
14733 }
14734 return resultobj;
14735fail:
14736 {
14737 if (temp6)
14738 delete arg6;
14739 }
14740 return NULL;
d55e5bfc
RD
14741}
14742
14743
1bd55598
RD
14744SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14745 PyObject *resultobj = 0;
14746 wxSpinButton *result = 0 ;
14747
14748 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14749 {
14750 if (!wxPyCheckForApp()) SWIG_fail;
14751 PyThreadState* __tstate = wxPyBeginAllowThreads();
14752 result = (wxSpinButton *)new wxSpinButton();
14753 wxPyEndAllowThreads(__tstate);
14754 if (PyErr_Occurred()) SWIG_fail;
14755 }
14756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14757 return resultobj;
14758fail:
14759 return NULL;
14760}
14761
14762
14763SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14764 PyObject *resultobj = 0;
14765 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14766 wxWindow *arg2 = (wxWindow *) 0 ;
14767 int arg3 = (int) -1 ;
14768 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14769 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14770 wxSize const &arg5_defvalue = wxDefaultSize ;
14771 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14772 long arg6 = (long) wxSP_HORIZONTAL ;
14773 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14774 wxString *arg7 = (wxString *) &arg7_defvalue ;
14775 bool result;
14776 void *argp1 = 0 ;
14777 int res1 = 0 ;
14778 void *argp2 = 0 ;
14779 int res2 = 0 ;
14780 int val3 ;
14781 int ecode3 = 0 ;
14782 wxPoint temp4 ;
14783 wxSize temp5 ;
14784 long val6 ;
14785 int ecode6 = 0 ;
14786 bool temp7 = false ;
14787 PyObject * obj0 = 0 ;
14788 PyObject * obj1 = 0 ;
14789 PyObject * obj2 = 0 ;
14790 PyObject * obj3 = 0 ;
14791 PyObject * obj4 = 0 ;
14792 PyObject * obj5 = 0 ;
14793 PyObject * obj6 = 0 ;
14794 char * kwnames[] = {
14795 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14796 };
14797
14798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14800 if (!SWIG_IsOK(res1)) {
14801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14802 }
14803 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14804 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14805 if (!SWIG_IsOK(res2)) {
14806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14807 }
14808 arg2 = reinterpret_cast< wxWindow * >(argp2);
14809 if (obj2) {
14810 ecode3 = SWIG_AsVal_int(obj2, &val3);
14811 if (!SWIG_IsOK(ecode3)) {
14812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14813 }
14814 arg3 = static_cast< int >(val3);
14815 }
14816 if (obj3) {
d55e5bfc 14817 {
1bd55598
RD
14818 arg4 = &temp4;
14819 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14820 }
1bd55598
RD
14821 }
14822 if (obj4) {
d55e5bfc 14823 {
1bd55598
RD
14824 arg5 = &temp5;
14825 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14826 }
1bd55598
RD
14827 }
14828 if (obj5) {
14829 ecode6 = SWIG_AsVal_long(obj5, &val6);
14830 if (!SWIG_IsOK(ecode6)) {
14831 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14832 }
14833 arg6 = static_cast< long >(val6);
14834 }
14835 if (obj6) {
14836 {
14837 arg7 = wxString_in_helper(obj6);
14838 if (arg7 == NULL) SWIG_fail;
14839 temp7 = true;
14840 }
14841 }
14842 {
14843 PyThreadState* __tstate = wxPyBeginAllowThreads();
14844 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14845 wxPyEndAllowThreads(__tstate);
14846 if (PyErr_Occurred()) SWIG_fail;
14847 }
14848 {
14849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14850 }
14851 {
14852 if (temp7)
14853 delete arg7;
14854 }
14855 return resultobj;
14856fail:
14857 {
14858 if (temp7)
14859 delete arg7;
14860 }
14861 return NULL;
d55e5bfc
RD
14862}
14863
14864
1bd55598
RD
14865SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14866 PyObject *resultobj = 0;
14867 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14868 int result;
14869 void *argp1 = 0 ;
14870 int res1 = 0 ;
14871 PyObject *swig_obj[1] ;
14872
14873 if (!args) SWIG_fail;
14874 swig_obj[0] = args;
14875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14876 if (!SWIG_IsOK(res1)) {
14877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14878 }
14879 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14880 {
14881 PyThreadState* __tstate = wxPyBeginAllowThreads();
14882 result = (int)((wxSpinButton const *)arg1)->GetValue();
14883 wxPyEndAllowThreads(__tstate);
14884 if (PyErr_Occurred()) SWIG_fail;
14885 }
14886 resultobj = SWIG_From_int(static_cast< int >(result));
14887 return resultobj;
14888fail:
14889 return NULL;
d55e5bfc
RD
14890}
14891
14892
1bd55598
RD
14893SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14894 PyObject *resultobj = 0;
14895 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14896 int result;
14897 void *argp1 = 0 ;
14898 int res1 = 0 ;
14899 PyObject *swig_obj[1] ;
14900
14901 if (!args) SWIG_fail;
14902 swig_obj[0] = args;
14903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14904 if (!SWIG_IsOK(res1)) {
14905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14906 }
14907 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14908 {
14909 PyThreadState* __tstate = wxPyBeginAllowThreads();
14910 result = (int)((wxSpinButton const *)arg1)->GetMin();
14911 wxPyEndAllowThreads(__tstate);
14912 if (PyErr_Occurred()) SWIG_fail;
14913 }
14914 resultobj = SWIG_From_int(static_cast< int >(result));
14915 return resultobj;
14916fail:
14917 return NULL;
d55e5bfc
RD
14918}
14919
14920
1bd55598
RD
14921SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14922 PyObject *resultobj = 0;
14923 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14924 int result;
14925 void *argp1 = 0 ;
14926 int res1 = 0 ;
14927 PyObject *swig_obj[1] ;
14928
14929 if (!args) SWIG_fail;
14930 swig_obj[0] = args;
14931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14932 if (!SWIG_IsOK(res1)) {
14933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14934 }
14935 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14936 {
14937 PyThreadState* __tstate = wxPyBeginAllowThreads();
14938 result = (int)((wxSpinButton const *)arg1)->GetMax();
14939 wxPyEndAllowThreads(__tstate);
14940 if (PyErr_Occurred()) SWIG_fail;
14941 }
14942 resultobj = SWIG_From_int(static_cast< int >(result));
14943 return resultobj;
14944fail:
14945 return NULL;
14946}
14947
14948
14949SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14950 PyObject *resultobj = 0;
14951 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14952 int arg2 ;
14953 void *argp1 = 0 ;
14954 int res1 = 0 ;
14955 int val2 ;
14956 int ecode2 = 0 ;
14957 PyObject * obj0 = 0 ;
14958 PyObject * obj1 = 0 ;
14959 char * kwnames[] = {
14960 (char *) "self",(char *) "val", NULL
14961 };
14962
14963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14965 if (!SWIG_IsOK(res1)) {
14966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14967 }
14968 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14969 ecode2 = SWIG_AsVal_int(obj1, &val2);
14970 if (!SWIG_IsOK(ecode2)) {
14971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14972 }
14973 arg2 = static_cast< int >(val2);
14974 {
14975 PyThreadState* __tstate = wxPyBeginAllowThreads();
14976 (arg1)->SetValue(arg2);
14977 wxPyEndAllowThreads(__tstate);
14978 if (PyErr_Occurred()) SWIG_fail;
14979 }
14980 resultobj = SWIG_Py_Void();
14981 return resultobj;
14982fail:
14983 return NULL;
14984}
14985
14986
14987SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14988 PyObject *resultobj = 0;
14989 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14990 int arg2 ;
14991 void *argp1 = 0 ;
14992 int res1 = 0 ;
14993 int val2 ;
14994 int ecode2 = 0 ;
14995 PyObject * obj0 = 0 ;
14996 PyObject * obj1 = 0 ;
14997 char * kwnames[] = {
14998 (char *) "self",(char *) "minVal", NULL
14999 };
15000
15001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
15002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15003 if (!SWIG_IsOK(res1)) {
15004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15005 }
15006 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15007 ecode2 = SWIG_AsVal_int(obj1, &val2);
15008 if (!SWIG_IsOK(ecode2)) {
15009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
15010 }
15011 arg2 = static_cast< int >(val2);
15012 {
15013 PyThreadState* __tstate = wxPyBeginAllowThreads();
15014 (arg1)->SetMin(arg2);
15015 wxPyEndAllowThreads(__tstate);
15016 if (PyErr_Occurred()) SWIG_fail;
15017 }
15018 resultobj = SWIG_Py_Void();
15019 return resultobj;
15020fail:
15021 return NULL;
15022}
15023
15024
15025SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15026 PyObject *resultobj = 0;
15027 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15028 int arg2 ;
15029 void *argp1 = 0 ;
15030 int res1 = 0 ;
15031 int val2 ;
15032 int ecode2 = 0 ;
15033 PyObject * obj0 = 0 ;
15034 PyObject * obj1 = 0 ;
15035 char * kwnames[] = {
15036 (char *) "self",(char *) "maxVal", NULL
15037 };
15038
15039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
15040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15041 if (!SWIG_IsOK(res1)) {
15042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15043 }
15044 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15045 ecode2 = SWIG_AsVal_int(obj1, &val2);
15046 if (!SWIG_IsOK(ecode2)) {
15047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
15048 }
15049 arg2 = static_cast< int >(val2);
15050 {
15051 PyThreadState* __tstate = wxPyBeginAllowThreads();
15052 (arg1)->SetMax(arg2);
15053 wxPyEndAllowThreads(__tstate);
15054 if (PyErr_Occurred()) SWIG_fail;
15055 }
15056 resultobj = SWIG_Py_Void();
15057 return resultobj;
15058fail:
15059 return NULL;
15060}
15061
15062
15063SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15064 PyObject *resultobj = 0;
15065 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15066 int arg2 ;
15067 int arg3 ;
15068 void *argp1 = 0 ;
15069 int res1 = 0 ;
15070 int val2 ;
15071 int ecode2 = 0 ;
15072 int val3 ;
15073 int ecode3 = 0 ;
15074 PyObject * obj0 = 0 ;
15075 PyObject * obj1 = 0 ;
15076 PyObject * obj2 = 0 ;
15077 char * kwnames[] = {
15078 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15079 };
15080
15081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15083 if (!SWIG_IsOK(res1)) {
15084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
15085 }
15086 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15087 ecode2 = SWIG_AsVal_int(obj1, &val2);
15088 if (!SWIG_IsOK(ecode2)) {
15089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
15090 }
15091 arg2 = static_cast< int >(val2);
15092 ecode3 = SWIG_AsVal_int(obj2, &val3);
15093 if (!SWIG_IsOK(ecode3)) {
15094 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
15095 }
15096 arg3 = static_cast< int >(val3);
15097 {
15098 PyThreadState* __tstate = wxPyBeginAllowThreads();
15099 (arg1)->SetRange(arg2,arg3);
15100 wxPyEndAllowThreads(__tstate);
15101 if (PyErr_Occurred()) SWIG_fail;
15102 }
15103 resultobj = SWIG_Py_Void();
15104 return resultobj;
15105fail:
15106 return NULL;
d55e5bfc
RD
15107}
15108
15109
1bd55598
RD
15110SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15111 PyObject *resultobj = 0;
15112 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
15113 bool result;
15114 void *argp1 = 0 ;
15115 int res1 = 0 ;
15116 PyObject *swig_obj[1] ;
15117
15118 if (!args) SWIG_fail;
15119 swig_obj[0] = args;
15120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
15121 if (!SWIG_IsOK(res1)) {
15122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
15123 }
15124 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
15125 {
15126 PyThreadState* __tstate = wxPyBeginAllowThreads();
15127 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
15128 wxPyEndAllowThreads(__tstate);
15129 if (PyErr_Occurred()) SWIG_fail;
15130 }
15131 {
15132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15133 }
15134 return resultobj;
15135fail:
15136 return NULL;
d55e5bfc
RD
15137}
15138
15139
1bd55598
RD
15140SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15141 PyObject *resultobj = 0;
15142 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15143 SwigValueWrapper<wxVisualAttributes > result;
15144 int val1 ;
15145 int ecode1 = 0 ;
15146 PyObject * obj0 = 0 ;
15147 char * kwnames[] = {
15148 (char *) "variant", NULL
15149 };
15150
15151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15152 if (obj0) {
15153 ecode1 = SWIG_AsVal_int(obj0, &val1);
15154 if (!SWIG_IsOK(ecode1)) {
15155 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15156 }
15157 arg1 = static_cast< wxWindowVariant >(val1);
15158 }
15159 {
15160 if (!wxPyCheckForApp()) SWIG_fail;
15161 PyThreadState* __tstate = wxPyBeginAllowThreads();
15162 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15163 wxPyEndAllowThreads(__tstate);
15164 if (PyErr_Occurred()) SWIG_fail;
15165 }
15166 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15167 return resultobj;
15168fail:
15169 return NULL;
15170}
15171
15172
15173SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15174 PyObject *obj;
15175 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15176 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15177 return SWIG_Py_Void();
15178}
15179
15180SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15181 return SWIG_Python_InitShadowInstance(args);
15182}
15183
15184SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15185 PyObject *resultobj = 0;
15186 wxWindow *arg1 = (wxWindow *) 0 ;
15187 int arg2 = (int) -1 ;
15188 wxString const &arg3_defvalue = wxPyEmptyString ;
15189 wxString *arg3 = (wxString *) &arg3_defvalue ;
15190 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15191 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15192 wxSize const &arg5_defvalue = wxDefaultSize ;
15193 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15194 long arg6 = (long) wxSP_ARROW_KEYS ;
15195 int arg7 = (int) 0 ;
15196 int arg8 = (int) 100 ;
15197 int arg9 = (int) 0 ;
15198 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15199 wxString *arg10 = (wxString *) &arg10_defvalue ;
15200 wxSpinCtrl *result = 0 ;
15201 void *argp1 = 0 ;
15202 int res1 = 0 ;
15203 int val2 ;
15204 int ecode2 = 0 ;
15205 bool temp3 = false ;
15206 wxPoint temp4 ;
15207 wxSize temp5 ;
15208 long val6 ;
15209 int ecode6 = 0 ;
15210 int val7 ;
15211 int ecode7 = 0 ;
15212 int val8 ;
15213 int ecode8 = 0 ;
15214 int val9 ;
15215 int ecode9 = 0 ;
15216 bool temp10 = false ;
15217 PyObject * obj0 = 0 ;
15218 PyObject * obj1 = 0 ;
15219 PyObject * obj2 = 0 ;
15220 PyObject * obj3 = 0 ;
15221 PyObject * obj4 = 0 ;
15222 PyObject * obj5 = 0 ;
15223 PyObject * obj6 = 0 ;
15224 PyObject * obj7 = 0 ;
15225 PyObject * obj8 = 0 ;
15226 PyObject * obj9 = 0 ;
15227 char * kwnames[] = {
15228 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15229 };
15230
15231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15233 if (!SWIG_IsOK(res1)) {
15234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15235 }
15236 arg1 = reinterpret_cast< wxWindow * >(argp1);
15237 if (obj1) {
15238 ecode2 = SWIG_AsVal_int(obj1, &val2);
15239 if (!SWIG_IsOK(ecode2)) {
15240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15241 }
15242 arg2 = static_cast< int >(val2);
15243 }
15244 if (obj2) {
d55e5bfc 15245 {
1bd55598
RD
15246 arg3 = wxString_in_helper(obj2);
15247 if (arg3 == NULL) SWIG_fail;
15248 temp3 = true;
d55e5bfc 15249 }
1bd55598
RD
15250 }
15251 if (obj3) {
d55e5bfc 15252 {
1bd55598
RD
15253 arg4 = &temp4;
15254 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15255 }
1bd55598
RD
15256 }
15257 if (obj4) {
d55e5bfc 15258 {
1bd55598
RD
15259 arg5 = &temp5;
15260 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15261 }
1bd55598
RD
15262 }
15263 if (obj5) {
15264 ecode6 = SWIG_AsVal_long(obj5, &val6);
15265 if (!SWIG_IsOK(ecode6)) {
15266 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15267 }
15268 arg6 = static_cast< long >(val6);
15269 }
15270 if (obj6) {
15271 ecode7 = SWIG_AsVal_int(obj6, &val7);
15272 if (!SWIG_IsOK(ecode7)) {
15273 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15274 }
15275 arg7 = static_cast< int >(val7);
15276 }
15277 if (obj7) {
15278 ecode8 = SWIG_AsVal_int(obj7, &val8);
15279 if (!SWIG_IsOK(ecode8)) {
15280 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15281 }
15282 arg8 = static_cast< int >(val8);
15283 }
15284 if (obj8) {
15285 ecode9 = SWIG_AsVal_int(obj8, &val9);
15286 if (!SWIG_IsOK(ecode9)) {
15287 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15288 }
15289 arg9 = static_cast< int >(val9);
15290 }
15291 if (obj9) {
d55e5bfc 15292 {
1bd55598
RD
15293 arg10 = wxString_in_helper(obj9);
15294 if (arg10 == NULL) SWIG_fail;
15295 temp10 = true;
d55e5bfc 15296 }
1bd55598
RD
15297 }
15298 {
15299 if (!wxPyCheckForApp()) SWIG_fail;
15300 PyThreadState* __tstate = wxPyBeginAllowThreads();
15301 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15302 wxPyEndAllowThreads(__tstate);
15303 if (PyErr_Occurred()) SWIG_fail;
15304 }
15305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15306 {
15307 if (temp3)
15308 delete arg3;
15309 }
15310 {
15311 if (temp10)
15312 delete arg10;
15313 }
15314 return resultobj;
15315fail:
15316 {
15317 if (temp3)
15318 delete arg3;
15319 }
15320 {
15321 if (temp10)
15322 delete arg10;
15323 }
15324 return NULL;
d55e5bfc
RD
15325}
15326
15327
1bd55598
RD
15328SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15329 PyObject *resultobj = 0;
15330 wxSpinCtrl *result = 0 ;
15331
15332 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15333 {
15334 if (!wxPyCheckForApp()) SWIG_fail;
15335 PyThreadState* __tstate = wxPyBeginAllowThreads();
15336 result = (wxSpinCtrl *)new wxSpinCtrl();
15337 wxPyEndAllowThreads(__tstate);
15338 if (PyErr_Occurred()) SWIG_fail;
15339 }
15340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15341 return resultobj;
15342fail:
15343 return NULL;
15344}
15345
15346
15347SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15348 PyObject *resultobj = 0;
15349 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15350 wxWindow *arg2 = (wxWindow *) 0 ;
15351 int arg3 = (int) -1 ;
15352 wxString const &arg4_defvalue = wxPyEmptyString ;
15353 wxString *arg4 = (wxString *) &arg4_defvalue ;
15354 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15355 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15356 wxSize const &arg6_defvalue = wxDefaultSize ;
15357 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15358 long arg7 = (long) wxSP_ARROW_KEYS ;
15359 int arg8 = (int) 0 ;
15360 int arg9 = (int) 100 ;
15361 int arg10 = (int) 0 ;
15362 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15363 wxString *arg11 = (wxString *) &arg11_defvalue ;
15364 bool result;
15365 void *argp1 = 0 ;
15366 int res1 = 0 ;
15367 void *argp2 = 0 ;
15368 int res2 = 0 ;
15369 int val3 ;
15370 int ecode3 = 0 ;
15371 bool temp4 = false ;
15372 wxPoint temp5 ;
15373 wxSize temp6 ;
15374 long val7 ;
15375 int ecode7 = 0 ;
15376 int val8 ;
15377 int ecode8 = 0 ;
15378 int val9 ;
15379 int ecode9 = 0 ;
15380 int val10 ;
15381 int ecode10 = 0 ;
15382 bool temp11 = false ;
15383 PyObject * obj0 = 0 ;
15384 PyObject * obj1 = 0 ;
15385 PyObject * obj2 = 0 ;
15386 PyObject * obj3 = 0 ;
15387 PyObject * obj4 = 0 ;
15388 PyObject * obj5 = 0 ;
15389 PyObject * obj6 = 0 ;
15390 PyObject * obj7 = 0 ;
15391 PyObject * obj8 = 0 ;
15392 PyObject * obj9 = 0 ;
15393 PyObject * obj10 = 0 ;
15394 char * kwnames[] = {
15395 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15396 };
15397
15398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15400 if (!SWIG_IsOK(res1)) {
15401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15402 }
15403 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15404 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15405 if (!SWIG_IsOK(res2)) {
15406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15407 }
15408 arg2 = reinterpret_cast< wxWindow * >(argp2);
15409 if (obj2) {
15410 ecode3 = SWIG_AsVal_int(obj2, &val3);
15411 if (!SWIG_IsOK(ecode3)) {
15412 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15413 }
15414 arg3 = static_cast< int >(val3);
15415 }
15416 if (obj3) {
36ed4f51 15417 {
1bd55598
RD
15418 arg4 = wxString_in_helper(obj3);
15419 if (arg4 == NULL) SWIG_fail;
15420 temp4 = true;
36ed4f51 15421 }
1bd55598
RD
15422 }
15423 if (obj4) {
36ed4f51 15424 {
1bd55598
RD
15425 arg5 = &temp5;
15426 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 15427 }
1bd55598
RD
15428 }
15429 if (obj5) {
d55e5bfc 15430 {
1bd55598
RD
15431 arg6 = &temp6;
15432 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 15433 }
1bd55598
RD
15434 }
15435 if (obj6) {
15436 ecode7 = SWIG_AsVal_long(obj6, &val7);
15437 if (!SWIG_IsOK(ecode7)) {
15438 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15439 }
15440 arg7 = static_cast< long >(val7);
15441 }
15442 if (obj7) {
15443 ecode8 = SWIG_AsVal_int(obj7, &val8);
15444 if (!SWIG_IsOK(ecode8)) {
15445 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15446 }
15447 arg8 = static_cast< int >(val8);
15448 }
15449 if (obj8) {
15450 ecode9 = SWIG_AsVal_int(obj8, &val9);
15451 if (!SWIG_IsOK(ecode9)) {
15452 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15453 }
15454 arg9 = static_cast< int >(val9);
15455 }
15456 if (obj9) {
15457 ecode10 = SWIG_AsVal_int(obj9, &val10);
15458 if (!SWIG_IsOK(ecode10)) {
15459 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15460 }
15461 arg10 = static_cast< int >(val10);
15462 }
15463 if (obj10) {
15464 {
15465 arg11 = wxString_in_helper(obj10);
15466 if (arg11 == NULL) SWIG_fail;
15467 temp11 = true;
15468 }
15469 }
15470 {
15471 PyThreadState* __tstate = wxPyBeginAllowThreads();
15472 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15473 wxPyEndAllowThreads(__tstate);
15474 if (PyErr_Occurred()) SWIG_fail;
15475 }
15476 {
15477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15478 }
15479 {
15480 if (temp4)
15481 delete arg4;
15482 }
15483 {
15484 if (temp11)
15485 delete arg11;
15486 }
15487 return resultobj;
15488fail:
15489 {
15490 if (temp4)
15491 delete arg4;
15492 }
15493 {
15494 if (temp11)
15495 delete arg11;
15496 }
15497 return NULL;
d55e5bfc
RD
15498}
15499
15500
1bd55598
RD
15501SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15502 PyObject *resultobj = 0;
15503 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15504 int result;
15505 void *argp1 = 0 ;
15506 int res1 = 0 ;
15507 PyObject *swig_obj[1] ;
15508
15509 if (!args) SWIG_fail;
15510 swig_obj[0] = args;
15511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15512 if (!SWIG_IsOK(res1)) {
15513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15514 }
15515 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15516 {
15517 PyThreadState* __tstate = wxPyBeginAllowThreads();
15518 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15519 wxPyEndAllowThreads(__tstate);
15520 if (PyErr_Occurred()) SWIG_fail;
15521 }
15522 resultobj = SWIG_From_int(static_cast< int >(result));
15523 return resultobj;
15524fail:
15525 return NULL;
15526}
15527
15528
15529SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15530 PyObject *resultobj = 0;
15531 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15532 int arg2 ;
15533 void *argp1 = 0 ;
15534 int res1 = 0 ;
15535 int val2 ;
15536 int ecode2 = 0 ;
15537 PyObject * obj0 = 0 ;
15538 PyObject * obj1 = 0 ;
15539 char * kwnames[] = {
15540 (char *) "self",(char *) "value", NULL
15541 };
15542
15543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15545 if (!SWIG_IsOK(res1)) {
15546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15547 }
15548 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15549 ecode2 = SWIG_AsVal_int(obj1, &val2);
15550 if (!SWIG_IsOK(ecode2)) {
15551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15552 }
15553 arg2 = static_cast< int >(val2);
15554 {
15555 PyThreadState* __tstate = wxPyBeginAllowThreads();
15556 (arg1)->SetValue(arg2);
15557 wxPyEndAllowThreads(__tstate);
15558 if (PyErr_Occurred()) SWIG_fail;
15559 }
15560 resultobj = SWIG_Py_Void();
15561 return resultobj;
15562fail:
15563 return NULL;
15564}
15565
15566
15567SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15568 PyObject *resultobj = 0;
15569 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15570 wxString *arg2 = 0 ;
15571 void *argp1 = 0 ;
15572 int res1 = 0 ;
15573 bool temp2 = false ;
15574 PyObject * obj0 = 0 ;
15575 PyObject * obj1 = 0 ;
15576 char * kwnames[] = {
15577 (char *) "self",(char *) "text", NULL
15578 };
15579
15580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15582 if (!SWIG_IsOK(res1)) {
15583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15584 }
15585 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15586 {
15587 arg2 = wxString_in_helper(obj1);
15588 if (arg2 == NULL) SWIG_fail;
15589 temp2 = true;
15590 }
15591 {
15592 PyThreadState* __tstate = wxPyBeginAllowThreads();
15593 (arg1)->SetValue((wxString const &)*arg2);
15594 wxPyEndAllowThreads(__tstate);
15595 if (PyErr_Occurred()) SWIG_fail;
15596 }
15597 resultobj = SWIG_Py_Void();
15598 {
15599 if (temp2)
15600 delete arg2;
15601 }
15602 return resultobj;
15603fail:
15604 {
15605 if (temp2)
15606 delete arg2;
15607 }
15608 return NULL;
15609}
15610
15611
15612SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15613 PyObject *resultobj = 0;
15614 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15615 int arg2 ;
15616 int arg3 ;
15617 void *argp1 = 0 ;
15618 int res1 = 0 ;
15619 int val2 ;
15620 int ecode2 = 0 ;
15621 int val3 ;
15622 int ecode3 = 0 ;
15623 PyObject * obj0 = 0 ;
15624 PyObject * obj1 = 0 ;
15625 PyObject * obj2 = 0 ;
15626 char * kwnames[] = {
15627 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15628 };
15629
15630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15632 if (!SWIG_IsOK(res1)) {
15633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15634 }
15635 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15636 ecode2 = SWIG_AsVal_int(obj1, &val2);
15637 if (!SWIG_IsOK(ecode2)) {
15638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15639 }
15640 arg2 = static_cast< int >(val2);
15641 ecode3 = SWIG_AsVal_int(obj2, &val3);
15642 if (!SWIG_IsOK(ecode3)) {
15643 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15644 }
15645 arg3 = static_cast< int >(val3);
15646 {
15647 PyThreadState* __tstate = wxPyBeginAllowThreads();
15648 (arg1)->SetRange(arg2,arg3);
15649 wxPyEndAllowThreads(__tstate);
15650 if (PyErr_Occurred()) SWIG_fail;
15651 }
15652 resultobj = SWIG_Py_Void();
15653 return resultobj;
15654fail:
15655 return NULL;
d55e5bfc
RD
15656}
15657
15658
1bd55598
RD
15659SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15660 PyObject *resultobj = 0;
15661 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15662 int result;
15663 void *argp1 = 0 ;
15664 int res1 = 0 ;
15665 PyObject *swig_obj[1] ;
15666
15667 if (!args) SWIG_fail;
15668 swig_obj[0] = args;
15669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15670 if (!SWIG_IsOK(res1)) {
15671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15672 }
15673 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15674 {
15675 PyThreadState* __tstate = wxPyBeginAllowThreads();
15676 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15677 wxPyEndAllowThreads(__tstate);
15678 if (PyErr_Occurred()) SWIG_fail;
15679 }
15680 resultobj = SWIG_From_int(static_cast< int >(result));
15681 return resultobj;
15682fail:
15683 return NULL;
d55e5bfc
RD
15684}
15685
15686
1bd55598
RD
15687SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15688 PyObject *resultobj = 0;
15689 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15690 int result;
15691 void *argp1 = 0 ;
15692 int res1 = 0 ;
15693 PyObject *swig_obj[1] ;
15694
15695 if (!args) SWIG_fail;
15696 swig_obj[0] = args;
15697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15698 if (!SWIG_IsOK(res1)) {
15699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15700 }
15701 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15702 {
15703 PyThreadState* __tstate = wxPyBeginAllowThreads();
15704 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15705 wxPyEndAllowThreads(__tstate);
15706 if (PyErr_Occurred()) SWIG_fail;
15707 }
15708 resultobj = SWIG_From_int(static_cast< int >(result));
15709 return resultobj;
15710fail:
15711 return NULL;
15712}
15713
15714
15715SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15716 PyObject *resultobj = 0;
15717 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15718 long arg2 ;
15719 long arg3 ;
15720 void *argp1 = 0 ;
15721 int res1 = 0 ;
15722 long val2 ;
15723 int ecode2 = 0 ;
15724 long val3 ;
15725 int ecode3 = 0 ;
15726 PyObject * obj0 = 0 ;
15727 PyObject * obj1 = 0 ;
15728 PyObject * obj2 = 0 ;
15729 char * kwnames[] = {
2131d850 15730 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
15731 };
15732
15733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15735 if (!SWIG_IsOK(res1)) {
15736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15737 }
15738 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15739 ecode2 = SWIG_AsVal_long(obj1, &val2);
15740 if (!SWIG_IsOK(ecode2)) {
15741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15742 }
15743 arg2 = static_cast< long >(val2);
15744 ecode3 = SWIG_AsVal_long(obj2, &val3);
15745 if (!SWIG_IsOK(ecode3)) {
15746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15747 }
15748 arg3 = static_cast< long >(val3);
15749 {
15750 PyThreadState* __tstate = wxPyBeginAllowThreads();
15751 (arg1)->SetSelection(arg2,arg3);
15752 wxPyEndAllowThreads(__tstate);
15753 if (PyErr_Occurred()) SWIG_fail;
15754 }
15755 resultobj = SWIG_Py_Void();
15756 return resultobj;
15757fail:
15758 return NULL;
15759}
15760
15761
15762SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15763 PyObject *resultobj = 0;
15764 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15765 SwigValueWrapper<wxVisualAttributes > result;
15766 int val1 ;
15767 int ecode1 = 0 ;
15768 PyObject * obj0 = 0 ;
15769 char * kwnames[] = {
15770 (char *) "variant", NULL
15771 };
15772
15773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15774 if (obj0) {
15775 ecode1 = SWIG_AsVal_int(obj0, &val1);
15776 if (!SWIG_IsOK(ecode1)) {
15777 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15778 }
15779 arg1 = static_cast< wxWindowVariant >(val1);
15780 }
15781 {
15782 if (!wxPyCheckForApp()) SWIG_fail;
15783 PyThreadState* __tstate = wxPyBeginAllowThreads();
15784 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15785 wxPyEndAllowThreads(__tstate);
15786 if (PyErr_Occurred()) SWIG_fail;
15787 }
15788 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15789 return resultobj;
15790fail:
15791 return NULL;
d55e5bfc
RD
15792}
15793
15794
1bd55598
RD
15795SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15796 PyObject *obj;
15797 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15798 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15799 return SWIG_Py_Void();
d55e5bfc
RD
15800}
15801
1bd55598
RD
15802SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15803 return SWIG_Python_InitShadowInstance(args);
15804}
d55e5bfc 15805
1bd55598
RD
15806SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15807 PyObject *resultobj = 0;
15808 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15809 int arg2 = (int) 0 ;
15810 wxSpinEvent *result = 0 ;
15811 int val1 ;
15812 int ecode1 = 0 ;
15813 int val2 ;
15814 int ecode2 = 0 ;
15815 PyObject * obj0 = 0 ;
15816 PyObject * obj1 = 0 ;
15817 char * kwnames[] = {
15818 (char *) "commandType",(char *) "winid", NULL
15819 };
15820
15821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15822 if (obj0) {
15823 ecode1 = SWIG_AsVal_int(obj0, &val1);
15824 if (!SWIG_IsOK(ecode1)) {
15825 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15826 }
15827 arg1 = static_cast< wxEventType >(val1);
15828 }
15829 if (obj1) {
15830 ecode2 = SWIG_AsVal_int(obj1, &val2);
15831 if (!SWIG_IsOK(ecode2)) {
15832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15833 }
15834 arg2 = static_cast< int >(val2);
15835 }
15836 {
15837 PyThreadState* __tstate = wxPyBeginAllowThreads();
15838 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15839 wxPyEndAllowThreads(__tstate);
15840 if (PyErr_Occurred()) SWIG_fail;
15841 }
15842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15843 return resultobj;
15844fail:
15845 return NULL;
d55e5bfc
RD
15846}
15847
15848
1bd55598
RD
15849SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15850 PyObject *resultobj = 0;
15851 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15852 int result;
15853 void *argp1 = 0 ;
15854 int res1 = 0 ;
15855 PyObject *swig_obj[1] ;
15856
15857 if (!args) SWIG_fail;
15858 swig_obj[0] = args;
15859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15860 if (!SWIG_IsOK(res1)) {
15861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15862 }
15863 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15864 {
15865 PyThreadState* __tstate = wxPyBeginAllowThreads();
15866 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15867 wxPyEndAllowThreads(__tstate);
15868 if (PyErr_Occurred()) SWIG_fail;
15869 }
15870 resultobj = SWIG_From_int(static_cast< int >(result));
15871 return resultobj;
15872fail:
15873 return NULL;
15874}
15875
15876
15877SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15878 PyObject *resultobj = 0;
15879 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15880 int arg2 ;
15881 void *argp1 = 0 ;
15882 int res1 = 0 ;
15883 int val2 ;
15884 int ecode2 = 0 ;
15885 PyObject * obj0 = 0 ;
15886 PyObject * obj1 = 0 ;
15887 char * kwnames[] = {
15888 (char *) "self",(char *) "pos", NULL
15889 };
15890
15891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15893 if (!SWIG_IsOK(res1)) {
15894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15895 }
15896 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15897 ecode2 = SWIG_AsVal_int(obj1, &val2);
15898 if (!SWIG_IsOK(ecode2)) {
15899 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15900 }
15901 arg2 = static_cast< int >(val2);
15902 {
15903 PyThreadState* __tstate = wxPyBeginAllowThreads();
15904 (arg1)->SetPosition(arg2);
15905 wxPyEndAllowThreads(__tstate);
15906 if (PyErr_Occurred()) SWIG_fail;
15907 }
15908 resultobj = SWIG_Py_Void();
15909 return resultobj;
15910fail:
15911 return NULL;
d55e5bfc
RD
15912}
15913
15914
1bd55598
RD
15915SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15916 PyObject *obj;
15917 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15918 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15919 return SWIG_Py_Void();
d55e5bfc
RD
15920}
15921
1bd55598
RD
15922SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15923 return SWIG_Python_InitShadowInstance(args);
15924}
d55e5bfc 15925
1bd55598
RD
15926SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15927 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15928 return 1;
d55e5bfc
RD
15929}
15930
15931
1bd55598
RD
15932SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15933 PyObject *pyobj = 0;
15934
15935 {
15936#if wxUSE_UNICODE
15937 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15938#else
15939 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15940#endif
15941 }
15942 return pyobj;
d55e5bfc
RD
15943}
15944
15945
1bd55598
RD
15946SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15947 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15948 return 1;
15949}
15950
15951
15952SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15953 PyObject *pyobj = 0;
15954
15955 {
15956#if wxUSE_UNICODE
15957 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15958#else
15959 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15960#endif
15961 }
15962 return pyobj;
15963}
15964
15965
15966SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15967 PyObject *resultobj = 0;
15968 wxWindow *arg1 = (wxWindow *) 0 ;
15969 int arg2 = (int) -1 ;
15970 wxString const &arg3_defvalue = wxPyEmptyString ;
15971 wxString *arg3 = (wxString *) &arg3_defvalue ;
15972 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15973 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15974 wxSize const &arg5_defvalue = wxDefaultSize ;
15975 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15976 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15977 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15978 int arg7 = (int) 0 ;
15979 long arg8 = (long) wxRA_HORIZONTAL ;
15980 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15981 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15982 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15983 wxString *arg10 = (wxString *) &arg10_defvalue ;
15984 wxRadioBox *result = 0 ;
15985 void *argp1 = 0 ;
15986 int res1 = 0 ;
15987 int val2 ;
15988 int ecode2 = 0 ;
15989 bool temp3 = false ;
15990 wxPoint temp4 ;
15991 wxSize temp5 ;
15992 bool temp6 = false ;
15993 int val7 ;
15994 int ecode7 = 0 ;
15995 long val8 ;
15996 int ecode8 = 0 ;
15997 void *argp9 = 0 ;
15998 int res9 = 0 ;
15999 bool temp10 = false ;
16000 PyObject * obj0 = 0 ;
16001 PyObject * obj1 = 0 ;
16002 PyObject * obj2 = 0 ;
16003 PyObject * obj3 = 0 ;
16004 PyObject * obj4 = 0 ;
16005 PyObject * obj5 = 0 ;
16006 PyObject * obj6 = 0 ;
16007 PyObject * obj7 = 0 ;
16008 PyObject * obj8 = 0 ;
16009 PyObject * obj9 = 0 ;
16010 char * kwnames[] = {
16011 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16012 };
16013
16014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
16015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16016 if (!SWIG_IsOK(res1)) {
16017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
16018 }
16019 arg1 = reinterpret_cast< wxWindow * >(argp1);
16020 if (obj1) {
16021 ecode2 = SWIG_AsVal_int(obj1, &val2);
16022 if (!SWIG_IsOK(ecode2)) {
16023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
16024 }
16025 arg2 = static_cast< int >(val2);
16026 }
16027 if (obj2) {
36ed4f51 16028 {
1bd55598
RD
16029 arg3 = wxString_in_helper(obj2);
16030 if (arg3 == NULL) SWIG_fail;
16031 temp3 = true;
36ed4f51 16032 }
1bd55598
RD
16033 }
16034 if (obj3) {
36ed4f51 16035 {
1bd55598
RD
16036 arg4 = &temp4;
16037 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 16038 }
1bd55598
RD
16039 }
16040 if (obj4) {
d55e5bfc 16041 {
1bd55598
RD
16042 arg5 = &temp5;
16043 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 16044 }
1bd55598
RD
16045 }
16046 if (obj5) {
d55e5bfc 16047 {
1bd55598
RD
16048 if (! PySequence_Check(obj5)) {
16049 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16050 SWIG_fail;
16051 }
16052 arg6 = new wxArrayString;
16053 temp6 = true;
16054 int i, len=PySequence_Length(obj5);
16055 for (i=0; i<len; i++) {
16056 PyObject* item = PySequence_GetItem(obj5, i);
16057 wxString* s = wxString_in_helper(item);
16058 if (PyErr_Occurred()) SWIG_fail;
16059 arg6->Add(*s);
16060 delete s;
16061 Py_DECREF(item);
16062 }
d55e5bfc 16063 }
1bd55598
RD
16064 }
16065 if (obj6) {
16066 ecode7 = SWIG_AsVal_int(obj6, &val7);
16067 if (!SWIG_IsOK(ecode7)) {
16068 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
16069 }
16070 arg7 = static_cast< int >(val7);
16071 }
16072 if (obj7) {
16073 ecode8 = SWIG_AsVal_long(obj7, &val8);
16074 if (!SWIG_IsOK(ecode8)) {
16075 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
16076 }
16077 arg8 = static_cast< long >(val8);
16078 }
16079 if (obj8) {
16080 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
16081 if (!SWIG_IsOK(res9)) {
16082 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16083 }
1bd55598
RD
16084 if (!argp9) {
16085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 16086 }
1bd55598
RD
16087 arg9 = reinterpret_cast< wxValidator * >(argp9);
16088 }
16089 if (obj9) {
d55e5bfc 16090 {
1bd55598
RD
16091 arg10 = wxString_in_helper(obj9);
16092 if (arg10 == NULL) SWIG_fail;
16093 temp10 = true;
d55e5bfc 16094 }
1bd55598
RD
16095 }
16096 {
16097 if (!wxPyCheckForApp()) SWIG_fail;
16098 PyThreadState* __tstate = wxPyBeginAllowThreads();
16099 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);
16100 wxPyEndAllowThreads(__tstate);
16101 if (PyErr_Occurred()) SWIG_fail;
16102 }
16103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
16104 {
16105 if (temp3)
16106 delete arg3;
16107 }
16108 {
16109 if (temp6) delete arg6;
16110 }
16111 {
16112 if (temp10)
16113 delete arg10;
16114 }
16115 return resultobj;
16116fail:
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 NULL;
d55e5bfc
RD
16129}
16130
16131
1bd55598
RD
16132SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16133 PyObject *resultobj = 0;
16134 wxRadioBox *result = 0 ;
16135
16136 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16137 {
16138 if (!wxPyCheckForApp()) SWIG_fail;
16139 PyThreadState* __tstate = wxPyBeginAllowThreads();
16140 result = (wxRadioBox *)new wxRadioBox();
16141 wxPyEndAllowThreads(__tstate);
16142 if (PyErr_Occurred()) SWIG_fail;
16143 }
16144 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16145 return resultobj;
16146fail:
16147 return NULL;
16148}
16149
16150
16151SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16152 PyObject *resultobj = 0;
16153 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16154 wxWindow *arg2 = (wxWindow *) 0 ;
16155 int arg3 = (int) -1 ;
16156 wxString const &arg4_defvalue = wxPyEmptyString ;
16157 wxString *arg4 = (wxString *) &arg4_defvalue ;
16158 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16159 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16160 wxSize const &arg6_defvalue = wxDefaultSize ;
16161 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16162 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16163 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16164 int arg8 = (int) 0 ;
16165 long arg9 = (long) wxRA_HORIZONTAL ;
16166 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16167 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16168 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16169 wxString *arg11 = (wxString *) &arg11_defvalue ;
16170 bool result;
16171 void *argp1 = 0 ;
16172 int res1 = 0 ;
16173 void *argp2 = 0 ;
16174 int res2 = 0 ;
16175 int val3 ;
16176 int ecode3 = 0 ;
16177 bool temp4 = false ;
16178 wxPoint temp5 ;
16179 wxSize temp6 ;
16180 bool temp7 = false ;
16181 int val8 ;
16182 int ecode8 = 0 ;
16183 long val9 ;
16184 int ecode9 = 0 ;
16185 void *argp10 = 0 ;
16186 int res10 = 0 ;
16187 bool temp11 = false ;
16188 PyObject * obj0 = 0 ;
16189 PyObject * obj1 = 0 ;
16190 PyObject * obj2 = 0 ;
16191 PyObject * obj3 = 0 ;
16192 PyObject * obj4 = 0 ;
16193 PyObject * obj5 = 0 ;
16194 PyObject * obj6 = 0 ;
16195 PyObject * obj7 = 0 ;
16196 PyObject * obj8 = 0 ;
16197 PyObject * obj9 = 0 ;
16198 PyObject * obj10 = 0 ;
16199 char * kwnames[] = {
16200 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16201 };
16202
16203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16205 if (!SWIG_IsOK(res1)) {
16206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16207 }
16208 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16209 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16210 if (!SWIG_IsOK(res2)) {
16211 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16212 }
16213 arg2 = reinterpret_cast< wxWindow * >(argp2);
16214 if (obj2) {
16215 ecode3 = SWIG_AsVal_int(obj2, &val3);
16216 if (!SWIG_IsOK(ecode3)) {
16217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16218 }
16219 arg3 = static_cast< int >(val3);
16220 }
16221 if (obj3) {
36ed4f51 16222 {
1bd55598
RD
16223 arg4 = wxString_in_helper(obj3);
16224 if (arg4 == NULL) SWIG_fail;
16225 temp4 = true;
36ed4f51 16226 }
1bd55598
RD
16227 }
16228 if (obj4) {
36ed4f51 16229 {
1bd55598
RD
16230 arg5 = &temp5;
16231 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 16232 }
1bd55598
RD
16233 }
16234 if (obj5) {
d55e5bfc 16235 {
1bd55598
RD
16236 arg6 = &temp6;
16237 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 16238 }
1bd55598
RD
16239 }
16240 if (obj6) {
36ed4f51 16241 {
1bd55598
RD
16242 if (! PySequence_Check(obj6)) {
16243 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16244 SWIG_fail;
16245 }
16246 arg7 = new wxArrayString;
16247 temp7 = true;
16248 int i, len=PySequence_Length(obj6);
16249 for (i=0; i<len; i++) {
16250 PyObject* item = PySequence_GetItem(obj6, i);
16251 wxString* s = wxString_in_helper(item);
16252 if (PyErr_Occurred()) SWIG_fail;
16253 arg7->Add(*s);
16254 delete s;
16255 Py_DECREF(item);
16256 }
36ed4f51 16257 }
1bd55598
RD
16258 }
16259 if (obj7) {
16260 ecode8 = SWIG_AsVal_int(obj7, &val8);
16261 if (!SWIG_IsOK(ecode8)) {
16262 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16263 }
16264 arg8 = static_cast< int >(val8);
16265 }
16266 if (obj8) {
16267 ecode9 = SWIG_AsVal_long(obj8, &val9);
16268 if (!SWIG_IsOK(ecode9)) {
16269 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16270 }
16271 arg9 = static_cast< long >(val9);
16272 }
16273 if (obj9) {
16274 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16275 if (!SWIG_IsOK(res10)) {
16276 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16277 }
1bd55598
RD
16278 if (!argp10) {
16279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16280 }
1bd55598
RD
16281 arg10 = reinterpret_cast< wxValidator * >(argp10);
16282 }
16283 if (obj10) {
d55e5bfc 16284 {
1bd55598
RD
16285 arg11 = wxString_in_helper(obj10);
16286 if (arg11 == NULL) SWIG_fail;
16287 temp11 = true;
d55e5bfc 16288 }
1bd55598
RD
16289 }
16290 {
16291 PyThreadState* __tstate = wxPyBeginAllowThreads();
16292 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);
16293 wxPyEndAllowThreads(__tstate);
16294 if (PyErr_Occurred()) SWIG_fail;
16295 }
16296 {
16297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16298 }
16299 {
16300 if (temp4)
16301 delete arg4;
16302 }
16303 {
16304 if (temp7) delete arg7;
16305 }
16306 {
16307 if (temp11)
16308 delete arg11;
16309 }
16310 return resultobj;
16311fail:
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 NULL;
16324}
16325
16326
16327SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16328 PyObject *resultobj = 0;
16329 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16330 int arg2 ;
16331 void *argp1 = 0 ;
16332 int res1 = 0 ;
16333 int val2 ;
16334 int ecode2 = 0 ;
16335 PyObject * obj0 = 0 ;
16336 PyObject * obj1 = 0 ;
16337 char * kwnames[] = {
16338 (char *) "self",(char *) "n", NULL
16339 };
16340
16341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16343 if (!SWIG_IsOK(res1)) {
16344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16345 }
16346 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16347 ecode2 = SWIG_AsVal_int(obj1, &val2);
16348 if (!SWIG_IsOK(ecode2)) {
16349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16350 }
16351 arg2 = static_cast< int >(val2);
16352 {
16353 PyThreadState* __tstate = wxPyBeginAllowThreads();
16354 (arg1)->SetSelection(arg2);
16355 wxPyEndAllowThreads(__tstate);
16356 if (PyErr_Occurred()) SWIG_fail;
16357 }
16358 resultobj = SWIG_Py_Void();
16359 return resultobj;
16360fail:
16361 return NULL;
d55e5bfc
RD
16362}
16363
16364
1bd55598
RD
16365SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16366 PyObject *resultobj = 0;
16367 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16368 int result;
16369 void *argp1 = 0 ;
16370 int res1 = 0 ;
16371 PyObject *swig_obj[1] ;
16372
16373 if (!args) SWIG_fail;
16374 swig_obj[0] = args;
16375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16376 if (!SWIG_IsOK(res1)) {
16377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16378 }
16379 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16380 {
16381 PyThreadState* __tstate = wxPyBeginAllowThreads();
16382 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16383 wxPyEndAllowThreads(__tstate);
16384 if (PyErr_Occurred()) SWIG_fail;
16385 }
16386 resultobj = SWIG_From_int(static_cast< int >(result));
16387 return resultobj;
16388fail:
16389 return NULL;
d55e5bfc
RD
16390}
16391
16392
1bd55598
RD
16393SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16394 PyObject *resultobj = 0;
16395 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16396 wxString result;
16397 void *argp1 = 0 ;
16398 int res1 = 0 ;
16399 PyObject *swig_obj[1] ;
16400
16401 if (!args) SWIG_fail;
16402 swig_obj[0] = args;
16403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16404 if (!SWIG_IsOK(res1)) {
16405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16406 }
16407 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16408 {
16409 PyThreadState* __tstate = wxPyBeginAllowThreads();
16410 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16411 wxPyEndAllowThreads(__tstate);
16412 if (PyErr_Occurred()) SWIG_fail;
16413 }
16414 {
16415#if wxUSE_UNICODE
16416 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16417#else
16418 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16419#endif
16420 }
16421 return resultobj;
16422fail:
16423 return NULL;
16424}
16425
16426
16427SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16428 PyObject *resultobj = 0;
16429 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16430 wxString *arg2 = 0 ;
16431 bool result;
16432 void *argp1 = 0 ;
16433 int res1 = 0 ;
16434 bool temp2 = false ;
16435 PyObject * obj0 = 0 ;
16436 PyObject * obj1 = 0 ;
16437 char * kwnames[] = {
16438 (char *) "self",(char *) "s", NULL
16439 };
16440
16441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16443 if (!SWIG_IsOK(res1)) {
16444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16445 }
16446 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16447 {
16448 arg2 = wxString_in_helper(obj1);
16449 if (arg2 == NULL) SWIG_fail;
16450 temp2 = true;
16451 }
16452 {
16453 PyThreadState* __tstate = wxPyBeginAllowThreads();
16454 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16455 wxPyEndAllowThreads(__tstate);
16456 if (PyErr_Occurred()) SWIG_fail;
16457 }
16458 {
16459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16460 }
16461 {
16462 if (temp2)
16463 delete arg2;
16464 }
16465 return resultobj;
16466fail:
16467 {
16468 if (temp2)
16469 delete arg2;
16470 }
16471 return NULL;
4896ac9e
RD
16472}
16473
16474
1bd55598
RD
16475SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16476 PyObject *resultobj = 0;
16477 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
1c71765a 16478 size_t result;
1bd55598
RD
16479 void *argp1 = 0 ;
16480 int res1 = 0 ;
16481 PyObject *swig_obj[1] ;
16482
16483 if (!args) SWIG_fail;
16484 swig_obj[0] = args;
16485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16486 if (!SWIG_IsOK(res1)) {
16487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16488 }
16489 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16490 {
16491 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a 16492 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
1bd55598
RD
16493 wxPyEndAllowThreads(__tstate);
16494 if (PyErr_Occurred()) SWIG_fail;
16495 }
1c71765a 16496 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
1bd55598
RD
16497 return resultobj;
16498fail:
16499 return NULL;
16500}
16501
16502
16503SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16504 PyObject *resultobj = 0;
16505 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16506 wxString *arg2 = 0 ;
16507 int result;
16508 void *argp1 = 0 ;
16509 int res1 = 0 ;
16510 bool temp2 = false ;
16511 PyObject * obj0 = 0 ;
16512 PyObject * obj1 = 0 ;
16513 char * kwnames[] = {
16514 (char *) "self",(char *) "s", NULL
16515 };
16516
16517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16519 if (!SWIG_IsOK(res1)) {
16520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16521 }
16522 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16523 {
16524 arg2 = wxString_in_helper(obj1);
16525 if (arg2 == NULL) SWIG_fail;
16526 temp2 = true;
16527 }
16528 {
16529 PyThreadState* __tstate = wxPyBeginAllowThreads();
16530 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16531 wxPyEndAllowThreads(__tstate);
16532 if (PyErr_Occurred()) SWIG_fail;
16533 }
16534 resultobj = SWIG_From_int(static_cast< int >(result));
16535 {
16536 if (temp2)
16537 delete arg2;
16538 }
16539 return resultobj;
16540fail:
16541 {
16542 if (temp2)
16543 delete arg2;
16544 }
16545 return NULL;
16546}
16547
16548
16549SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16550 PyObject *resultobj = 0;
16551 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16552 int arg2 ;
16553 wxString result;
16554 void *argp1 = 0 ;
16555 int res1 = 0 ;
16556 int val2 ;
16557 int ecode2 = 0 ;
16558 PyObject * obj0 = 0 ;
16559 PyObject * obj1 = 0 ;
16560 char * kwnames[] = {
16561 (char *) "self",(char *) "n", NULL
16562 };
16563
16564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16566 if (!SWIG_IsOK(res1)) {
16567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16568 }
16569 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16570 ecode2 = SWIG_AsVal_int(obj1, &val2);
16571 if (!SWIG_IsOK(ecode2)) {
16572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16573 }
16574 arg2 = static_cast< int >(val2);
16575 {
16576 PyThreadState* __tstate = wxPyBeginAllowThreads();
16577 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16578 wxPyEndAllowThreads(__tstate);
16579 if (PyErr_Occurred()) SWIG_fail;
16580 }
16581 {
16582#if wxUSE_UNICODE
16583 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16584#else
16585 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16586#endif
16587 }
16588 return resultobj;
16589fail:
16590 return NULL;
16591}
16592
16593
16594SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16595 PyObject *resultobj = 0;
16596 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16597 int arg2 ;
16598 wxString *arg3 = 0 ;
16599 void *argp1 = 0 ;
16600 int res1 = 0 ;
16601 int val2 ;
16602 int ecode2 = 0 ;
16603 bool temp3 = false ;
16604 PyObject * obj0 = 0 ;
16605 PyObject * obj1 = 0 ;
16606 PyObject * obj2 = 0 ;
16607 char * kwnames[] = {
16608 (char *) "self",(char *) "n",(char *) "label", NULL
16609 };
16610
16611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16613 if (!SWIG_IsOK(res1)) {
16614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16615 }
16616 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16617 ecode2 = SWIG_AsVal_int(obj1, &val2);
16618 if (!SWIG_IsOK(ecode2)) {
16619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16620 }
16621 arg2 = static_cast< int >(val2);
16622 {
16623 arg3 = wxString_in_helper(obj2);
16624 if (arg3 == NULL) SWIG_fail;
16625 temp3 = true;
16626 }
16627 {
16628 PyThreadState* __tstate = wxPyBeginAllowThreads();
16629 (arg1)->SetString(arg2,(wxString const &)*arg3);
16630 wxPyEndAllowThreads(__tstate);
16631 if (PyErr_Occurred()) SWIG_fail;
16632 }
16633 resultobj = SWIG_Py_Void();
16634 {
16635 if (temp3)
16636 delete arg3;
16637 }
16638 return resultobj;
16639fail:
16640 {
16641 if (temp3)
16642 delete arg3;
16643 }
16644 return NULL;
16645}
16646
16647
16648SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16649 PyObject *resultobj = 0;
16650 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16651 unsigned int arg2 ;
1bd55598
RD
16652 bool arg3 = (bool) true ;
16653 void *argp1 = 0 ;
16654 int res1 = 0 ;
50f151d7 16655 unsigned int val2 ;
1bd55598
RD
16656 int ecode2 = 0 ;
16657 bool val3 ;
16658 int ecode3 = 0 ;
16659 PyObject * obj0 = 0 ;
16660 PyObject * obj1 = 0 ;
16661 PyObject * obj2 = 0 ;
16662 char * kwnames[] = {
16663 (char *) "self",(char *) "n",(char *) "enable", NULL
16664 };
16665
16666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16668 if (!SWIG_IsOK(res1)) {
16669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16670 }
16671 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16672 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16673 if (!SWIG_IsOK(ecode2)) {
50f151d7 16674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16675 }
50f151d7 16676 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16677 if (obj2) {
16678 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16679 if (!SWIG_IsOK(ecode3)) {
16680 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16681 }
16682 arg3 = static_cast< bool >(val3);
16683 }
16684 {
16685 PyThreadState* __tstate = wxPyBeginAllowThreads();
16686 (arg1)->Enable(arg2,arg3);
16687 wxPyEndAllowThreads(__tstate);
16688 if (PyErr_Occurred()) SWIG_fail;
16689 }
16690 resultobj = SWIG_Py_Void();
16691 return resultobj;
16692fail:
16693 return NULL;
16694}
16695
16696
16697SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16698 PyObject *resultobj = 0;
16699 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16700 unsigned int arg2 ;
1bd55598
RD
16701 bool arg3 = (bool) true ;
16702 void *argp1 = 0 ;
16703 int res1 = 0 ;
50f151d7 16704 unsigned int val2 ;
1bd55598
RD
16705 int ecode2 = 0 ;
16706 bool val3 ;
16707 int ecode3 = 0 ;
16708 PyObject * obj0 = 0 ;
16709 PyObject * obj1 = 0 ;
16710 PyObject * obj2 = 0 ;
16711 char * kwnames[] = {
16712 (char *) "self",(char *) "n",(char *) "show", NULL
16713 };
16714
16715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16717 if (!SWIG_IsOK(res1)) {
16718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16719 }
16720 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16721 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16722 if (!SWIG_IsOK(ecode2)) {
50f151d7 16723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16724 }
50f151d7 16725 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16726 if (obj2) {
16727 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16728 if (!SWIG_IsOK(ecode3)) {
16729 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16730 }
16731 arg3 = static_cast< bool >(val3);
16732 }
16733 {
16734 PyThreadState* __tstate = wxPyBeginAllowThreads();
16735 (arg1)->Show(arg2,arg3);
16736 wxPyEndAllowThreads(__tstate);
16737 if (PyErr_Occurred()) SWIG_fail;
16738 }
16739 resultobj = SWIG_Py_Void();
16740 return resultobj;
16741fail:
16742 return NULL;
d55e5bfc
RD
16743}
16744
16745
50f151d7
RD
16746SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16747 PyObject *resultobj = 0;
16748 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16749 unsigned int arg2 ;
16750 bool result;
16751 void *argp1 = 0 ;
16752 int res1 = 0 ;
16753 unsigned int val2 ;
16754 int ecode2 = 0 ;
16755 PyObject * obj0 = 0 ;
16756 PyObject * obj1 = 0 ;
16757 char * kwnames[] = {
16758 (char *) "self",(char *) "n", NULL
16759 };
16760
16761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16763 if (!SWIG_IsOK(res1)) {
16764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16765 }
16766 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16767 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16768 if (!SWIG_IsOK(ecode2)) {
16769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16770 }
16771 arg2 = static_cast< unsigned int >(val2);
16772 {
16773 PyThreadState* __tstate = wxPyBeginAllowThreads();
16774 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16775 wxPyEndAllowThreads(__tstate);
16776 if (PyErr_Occurred()) SWIG_fail;
16777 }
16778 {
16779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16780 }
16781 return resultobj;
16782fail:
16783 return NULL;
16784}
16785
16786
16787SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16788 PyObject *resultobj = 0;
16789 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16790 unsigned int arg2 ;
16791 bool result;
16792 void *argp1 = 0 ;
16793 int res1 = 0 ;
16794 unsigned int val2 ;
16795 int ecode2 = 0 ;
16796 PyObject * obj0 = 0 ;
16797 PyObject * obj1 = 0 ;
16798 char * kwnames[] = {
16799 (char *) "self",(char *) "n", NULL
16800 };
16801
16802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16804 if (!SWIG_IsOK(res1)) {
16805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16806 }
16807 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16808 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16809 if (!SWIG_IsOK(ecode2)) {
16810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16811 }
16812 arg2 = static_cast< unsigned int >(val2);
16813 {
16814 PyThreadState* __tstate = wxPyBeginAllowThreads();
16815 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16816 wxPyEndAllowThreads(__tstate);
16817 if (PyErr_Occurred()) SWIG_fail;
16818 }
16819 {
16820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16821 }
16822 return resultobj;
16823fail:
16824 return NULL;
16825}
16826
16827
1bd55598
RD
16828SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16829 PyObject *resultobj = 0;
16830 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16831 unsigned int result;
1bd55598
RD
16832 void *argp1 = 0 ;
16833 int res1 = 0 ;
16834 PyObject *swig_obj[1] ;
16835
16836 if (!args) SWIG_fail;
16837 swig_obj[0] = args;
16838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16839 if (!SWIG_IsOK(res1)) {
16840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16841 }
16842 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16843 {
16844 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16845 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
1bd55598
RD
16846 wxPyEndAllowThreads(__tstate);
16847 if (PyErr_Occurred()) SWIG_fail;
16848 }
50f151d7 16849 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16850 return resultobj;
16851fail:
16852 return NULL;
d55e5bfc
RD
16853}
16854
16855
1bd55598
RD
16856SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16857 PyObject *resultobj = 0;
16858 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16859 unsigned int result;
1bd55598
RD
16860 void *argp1 = 0 ;
16861 int res1 = 0 ;
16862 PyObject *swig_obj[1] ;
16863
16864 if (!args) SWIG_fail;
16865 swig_obj[0] = args;
16866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16867 if (!SWIG_IsOK(res1)) {
16868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16869 }
16870 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16871 {
16872 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16873 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
1bd55598
RD
16874 wxPyEndAllowThreads(__tstate);
16875 if (PyErr_Occurred()) SWIG_fail;
16876 }
50f151d7 16877 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16878 return resultobj;
16879fail:
16880 return NULL;
16881}
16882
16883
16884SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16885 PyObject *resultobj = 0;
16886 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16887 int arg2 ;
16888 wxDirection arg3 ;
16889 long arg4 ;
16890 int result;
16891 void *argp1 = 0 ;
16892 int res1 = 0 ;
16893 int val2 ;
16894 int ecode2 = 0 ;
16895 int val3 ;
16896 int ecode3 = 0 ;
16897 long val4 ;
16898 int ecode4 = 0 ;
16899 PyObject * obj0 = 0 ;
16900 PyObject * obj1 = 0 ;
16901 PyObject * obj2 = 0 ;
16902 PyObject * obj3 = 0 ;
16903 char * kwnames[] = {
16904 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16905 };
16906
16907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16909 if (!SWIG_IsOK(res1)) {
16910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16911 }
16912 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16913 ecode2 = SWIG_AsVal_int(obj1, &val2);
16914 if (!SWIG_IsOK(ecode2)) {
16915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16916 }
16917 arg2 = static_cast< int >(val2);
16918 ecode3 = SWIG_AsVal_int(obj2, &val3);
16919 if (!SWIG_IsOK(ecode3)) {
16920 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16921 }
16922 arg3 = static_cast< wxDirection >(val3);
16923 ecode4 = SWIG_AsVal_long(obj3, &val4);
16924 if (!SWIG_IsOK(ecode4)) {
16925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16926 }
16927 arg4 = static_cast< long >(val4);
16928 {
16929 PyThreadState* __tstate = wxPyBeginAllowThreads();
16930 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16931 wxPyEndAllowThreads(__tstate);
16932 if (PyErr_Occurred()) SWIG_fail;
16933 }
16934 resultobj = SWIG_From_int(static_cast< int >(result));
16935 return resultobj;
16936fail:
16937 return NULL;
16938}
16939
16940
2131d850
RD
16941SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16942 PyObject *resultobj = 0;
16943 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16944 unsigned int arg2 ;
16945 wxString *arg3 = 0 ;
16946 void *argp1 = 0 ;
16947 int res1 = 0 ;
16948 unsigned int val2 ;
16949 int ecode2 = 0 ;
16950 bool temp3 = false ;
16951 PyObject * obj0 = 0 ;
16952 PyObject * obj1 = 0 ;
16953 PyObject * obj2 = 0 ;
16954 char * kwnames[] = {
16955 (char *) "self",(char *) "item",(char *) "text", NULL
16956 };
16957
16958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16960 if (!SWIG_IsOK(res1)) {
16961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16962 }
16963 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16964 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16965 if (!SWIG_IsOK(ecode2)) {
16966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16967 }
16968 arg2 = static_cast< unsigned int >(val2);
16969 {
16970 arg3 = wxString_in_helper(obj2);
16971 if (arg3 == NULL) SWIG_fail;
16972 temp3 = true;
16973 }
16974 {
16975 PyThreadState* __tstate = wxPyBeginAllowThreads();
16976 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16977 wxPyEndAllowThreads(__tstate);
16978 if (PyErr_Occurred()) SWIG_fail;
16979 }
16980 resultobj = SWIG_Py_Void();
16981 {
16982 if (temp3)
16983 delete arg3;
16984 }
16985 return resultobj;
16986fail:
16987 {
16988 if (temp3)
16989 delete arg3;
16990 }
16991 return NULL;
16992}
16993
16994
16995SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16996 PyObject *resultobj = 0;
16997 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16998 unsigned int arg2 ;
16999 wxToolTip *result = 0 ;
17000 void *argp1 = 0 ;
17001 int res1 = 0 ;
17002 unsigned int val2 ;
17003 int ecode2 = 0 ;
17004 PyObject * obj0 = 0 ;
17005 PyObject * obj1 = 0 ;
17006 char * kwnames[] = {
17007 (char *) "self",(char *) "item", NULL
17008 };
17009
17010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
17011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17012 if (!SWIG_IsOK(res1)) {
17013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17014 }
17015 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17016 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17017 if (!SWIG_IsOK(ecode2)) {
17018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
17019 }
17020 arg2 = static_cast< unsigned int >(val2);
17021 {
17022 PyThreadState* __tstate = wxPyBeginAllowThreads();
17023 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
17024 wxPyEndAllowThreads(__tstate);
17025 if (PyErr_Occurred()) SWIG_fail;
17026 }
17027 {
17028 resultobj = wxPyMake_wxObject(result, (bool)0);
17029 }
17030 return resultobj;
17031fail:
17032 return NULL;
17033}
17034
17035
b850e7f3
RD
17036SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17037 PyObject *resultobj = 0;
17038 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17039 unsigned int arg2 ;
17040 wxString *arg3 = 0 ;
17041 void *argp1 = 0 ;
17042 int res1 = 0 ;
17043 unsigned int val2 ;
17044 int ecode2 = 0 ;
17045 bool temp3 = false ;
17046 PyObject * obj0 = 0 ;
17047 PyObject * obj1 = 0 ;
17048 PyObject * obj2 = 0 ;
17049 char * kwnames[] = {
17050 (char *) "self",(char *) "n",(char *) "helpText", NULL
17051 };
17052
17053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17055 if (!SWIG_IsOK(res1)) {
17056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
17057 }
17058 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17059 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17060 if (!SWIG_IsOK(ecode2)) {
17061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17062 }
17063 arg2 = static_cast< unsigned int >(val2);
17064 {
17065 arg3 = wxString_in_helper(obj2);
17066 if (arg3 == NULL) SWIG_fail;
17067 temp3 = true;
17068 }
17069 {
17070 PyThreadState* __tstate = wxPyBeginAllowThreads();
17071 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
17072 wxPyEndAllowThreads(__tstate);
17073 if (PyErr_Occurred()) SWIG_fail;
17074 }
17075 resultobj = SWIG_Py_Void();
17076 {
17077 if (temp3)
17078 delete arg3;
17079 }
17080 return resultobj;
17081fail:
17082 {
17083 if (temp3)
17084 delete arg3;
17085 }
17086 return NULL;
17087}
17088
17089
17090SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17091 PyObject *resultobj = 0;
17092 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
17093 unsigned int arg2 ;
17094 wxString result;
17095 void *argp1 = 0 ;
17096 int res1 = 0 ;
17097 unsigned int val2 ;
17098 int ecode2 = 0 ;
17099 PyObject * obj0 = 0 ;
17100 PyObject * obj1 = 0 ;
17101 char * kwnames[] = {
17102 (char *) "self",(char *) "n", NULL
17103 };
17104
17105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
17106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
17107 if (!SWIG_IsOK(res1)) {
17108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
17109 }
17110 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
17111 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
17112 if (!SWIG_IsOK(ecode2)) {
17113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
17114 }
17115 arg2 = static_cast< unsigned int >(val2);
17116 {
17117 PyThreadState* __tstate = wxPyBeginAllowThreads();
17118 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
17119 wxPyEndAllowThreads(__tstate);
17120 if (PyErr_Occurred()) SWIG_fail;
17121 }
17122 {
17123#if wxUSE_UNICODE
17124 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17125#else
17126 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17127#endif
17128 }
17129 return resultobj;
17130fail:
17131 return NULL;
17132}
17133
17134
1bd55598
RD
17135SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17136 PyObject *resultobj = 0;
17137 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17138 SwigValueWrapper<wxVisualAttributes > result;
17139 int val1 ;
17140 int ecode1 = 0 ;
17141 PyObject * obj0 = 0 ;
17142 char * kwnames[] = {
17143 (char *) "variant", NULL
17144 };
17145
17146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17147 if (obj0) {
17148 ecode1 = SWIG_AsVal_int(obj0, &val1);
17149 if (!SWIG_IsOK(ecode1)) {
17150 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17151 }
17152 arg1 = static_cast< wxWindowVariant >(val1);
17153 }
17154 {
17155 if (!wxPyCheckForApp()) SWIG_fail;
17156 PyThreadState* __tstate = wxPyBeginAllowThreads();
17157 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17158 wxPyEndAllowThreads(__tstate);
17159 if (PyErr_Occurred()) SWIG_fail;
17160 }
17161 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17162 return resultobj;
17163fail:
17164 return NULL;
17165}
17166
17167
17168SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17169 PyObject *obj;
17170 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17171 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17172 return SWIG_Py_Void();
17173}
17174
17175SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17176 return SWIG_Python_InitShadowInstance(args);
17177}
17178
17179SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17180 PyObject *resultobj = 0;
17181 wxWindow *arg1 = (wxWindow *) 0 ;
17182 int arg2 = (int) -1 ;
17183 wxString const &arg3_defvalue = wxPyEmptyString ;
17184 wxString *arg3 = (wxString *) &arg3_defvalue ;
17185 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17186 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17187 wxSize const &arg5_defvalue = wxDefaultSize ;
17188 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17189 long arg6 = (long) 0 ;
17190 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17191 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17192 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17193 wxString *arg8 = (wxString *) &arg8_defvalue ;
17194 wxRadioButton *result = 0 ;
17195 void *argp1 = 0 ;
17196 int res1 = 0 ;
17197 int val2 ;
17198 int ecode2 = 0 ;
17199 bool temp3 = false ;
17200 wxPoint temp4 ;
17201 wxSize temp5 ;
17202 long val6 ;
17203 int ecode6 = 0 ;
17204 void *argp7 = 0 ;
17205 int res7 = 0 ;
17206 bool temp8 = false ;
17207 PyObject * obj0 = 0 ;
17208 PyObject * obj1 = 0 ;
17209 PyObject * obj2 = 0 ;
17210 PyObject * obj3 = 0 ;
17211 PyObject * obj4 = 0 ;
17212 PyObject * obj5 = 0 ;
17213 PyObject * obj6 = 0 ;
17214 PyObject * obj7 = 0 ;
17215 char * kwnames[] = {
17216 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17217 };
17218
17219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17221 if (!SWIG_IsOK(res1)) {
17222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17223 }
17224 arg1 = reinterpret_cast< wxWindow * >(argp1);
17225 if (obj1) {
17226 ecode2 = SWIG_AsVal_int(obj1, &val2);
17227 if (!SWIG_IsOK(ecode2)) {
17228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17229 }
17230 arg2 = static_cast< int >(val2);
17231 }
17232 if (obj2) {
d55e5bfc 17233 {
1bd55598
RD
17234 arg3 = wxString_in_helper(obj2);
17235 if (arg3 == NULL) SWIG_fail;
17236 temp3 = true;
d55e5bfc 17237 }
1bd55598
RD
17238 }
17239 if (obj3) {
d55e5bfc 17240 {
1bd55598
RD
17241 arg4 = &temp4;
17242 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 17243 }
1bd55598
RD
17244 }
17245 if (obj4) {
d55e5bfc 17246 {
1bd55598
RD
17247 arg5 = &temp5;
17248 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17249 }
1bd55598
RD
17250 }
17251 if (obj5) {
17252 ecode6 = SWIG_AsVal_long(obj5, &val6);
17253 if (!SWIG_IsOK(ecode6)) {
17254 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17255 }
17256 arg6 = static_cast< long >(val6);
17257 }
17258 if (obj6) {
17259 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17260 if (!SWIG_IsOK(res7)) {
17261 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 17262 }
1bd55598
RD
17263 if (!argp7) {
17264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17265 }
17266 arg7 = reinterpret_cast< wxValidator * >(argp7);
17267 }
17268 if (obj7) {
d55e5bfc 17269 {
1bd55598
RD
17270 arg8 = wxString_in_helper(obj7);
17271 if (arg8 == NULL) SWIG_fail;
17272 temp8 = true;
d55e5bfc 17273 }
1bd55598
RD
17274 }
17275 {
17276 if (!wxPyCheckForApp()) SWIG_fail;
17277 PyThreadState* __tstate = wxPyBeginAllowThreads();
17278 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17279 wxPyEndAllowThreads(__tstate);
17280 if (PyErr_Occurred()) SWIG_fail;
17281 }
17282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17283 {
17284 if (temp3)
17285 delete arg3;
17286 }
17287 {
17288 if (temp8)
17289 delete arg8;
17290 }
17291 return resultobj;
17292fail:
17293 {
17294 if (temp3)
17295 delete arg3;
17296 }
17297 {
17298 if (temp8)
17299 delete arg8;
17300 }
17301 return NULL;
d55e5bfc
RD
17302}
17303
17304
1bd55598
RD
17305SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17306 PyObject *resultobj = 0;
17307 wxRadioButton *result = 0 ;
17308
17309 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17310 {
17311 if (!wxPyCheckForApp()) SWIG_fail;
17312 PyThreadState* __tstate = wxPyBeginAllowThreads();
17313 result = (wxRadioButton *)new wxRadioButton();
17314 wxPyEndAllowThreads(__tstate);
17315 if (PyErr_Occurred()) SWIG_fail;
17316 }
17317 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17318 return resultobj;
17319fail:
17320 return NULL;
17321}
17322
17323
17324SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17325 PyObject *resultobj = 0;
17326 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17327 wxWindow *arg2 = (wxWindow *) 0 ;
17328 int arg3 = (int) -1 ;
17329 wxString const &arg4_defvalue = wxPyEmptyString ;
17330 wxString *arg4 = (wxString *) &arg4_defvalue ;
17331 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17332 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17333 wxSize const &arg6_defvalue = wxDefaultSize ;
17334 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17335 long arg7 = (long) 0 ;
17336 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17337 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17338 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17339 wxString *arg9 = (wxString *) &arg9_defvalue ;
17340 bool result;
17341 void *argp1 = 0 ;
17342 int res1 = 0 ;
17343 void *argp2 = 0 ;
17344 int res2 = 0 ;
17345 int val3 ;
17346 int ecode3 = 0 ;
17347 bool temp4 = false ;
17348 wxPoint temp5 ;
17349 wxSize temp6 ;
17350 long val7 ;
17351 int ecode7 = 0 ;
17352 void *argp8 = 0 ;
17353 int res8 = 0 ;
17354 bool temp9 = false ;
17355 PyObject * obj0 = 0 ;
17356 PyObject * obj1 = 0 ;
17357 PyObject * obj2 = 0 ;
17358 PyObject * obj3 = 0 ;
17359 PyObject * obj4 = 0 ;
17360 PyObject * obj5 = 0 ;
17361 PyObject * obj6 = 0 ;
17362 PyObject * obj7 = 0 ;
17363 PyObject * obj8 = 0 ;
17364 char * kwnames[] = {
17365 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17366 };
17367
17368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17370 if (!SWIG_IsOK(res1)) {
17371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17372 }
17373 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17374 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17375 if (!SWIG_IsOK(res2)) {
17376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17377 }
17378 arg2 = reinterpret_cast< wxWindow * >(argp2);
17379 if (obj2) {
17380 ecode3 = SWIG_AsVal_int(obj2, &val3);
17381 if (!SWIG_IsOK(ecode3)) {
17382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17383 }
17384 arg3 = static_cast< int >(val3);
17385 }
17386 if (obj3) {
d55e5bfc 17387 {
1bd55598
RD
17388 arg4 = wxString_in_helper(obj3);
17389 if (arg4 == NULL) SWIG_fail;
17390 temp4 = true;
d55e5bfc 17391 }
1bd55598
RD
17392 }
17393 if (obj4) {
d55e5bfc 17394 {
1bd55598
RD
17395 arg5 = &temp5;
17396 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17397 }
1bd55598
RD
17398 }
17399 if (obj5) {
d55e5bfc 17400 {
1bd55598
RD
17401 arg6 = &temp6;
17402 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17403 }
1bd55598
RD
17404 }
17405 if (obj6) {
17406 ecode7 = SWIG_AsVal_long(obj6, &val7);
17407 if (!SWIG_IsOK(ecode7)) {
17408 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17409 }
17410 arg7 = static_cast< long >(val7);
17411 }
17412 if (obj7) {
17413 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17414 if (!SWIG_IsOK(res8)) {
17415 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17416 }
1bd55598
RD
17417 if (!argp8) {
17418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17419 }
1bd55598
RD
17420 arg8 = reinterpret_cast< wxValidator * >(argp8);
17421 }
17422 if (obj8) {
d55e5bfc 17423 {
1bd55598
RD
17424 arg9 = wxString_in_helper(obj8);
17425 if (arg9 == NULL) SWIG_fail;
17426 temp9 = true;
d55e5bfc 17427 }
1bd55598
RD
17428 }
17429 {
17430 PyThreadState* __tstate = wxPyBeginAllowThreads();
17431 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17432 wxPyEndAllowThreads(__tstate);
17433 if (PyErr_Occurred()) SWIG_fail;
17434 }
17435 {
17436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17437 }
17438 {
17439 if (temp4)
17440 delete arg4;
17441 }
17442 {
17443 if (temp9)
17444 delete arg9;
17445 }
17446 return resultobj;
17447fail:
17448 {
17449 if (temp4)
17450 delete arg4;
17451 }
17452 {
17453 if (temp9)
17454 delete arg9;
17455 }
17456 return NULL;
d55e5bfc
RD
17457}
17458
17459
1bd55598
RD
17460SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17461 PyObject *resultobj = 0;
17462 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17463 bool result;
17464 void *argp1 = 0 ;
17465 int res1 = 0 ;
17466 PyObject *swig_obj[1] ;
17467
17468 if (!args) SWIG_fail;
17469 swig_obj[0] = args;
17470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17471 if (!SWIG_IsOK(res1)) {
17472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17473 }
17474 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17475 {
17476 PyThreadState* __tstate = wxPyBeginAllowThreads();
17477 result = (bool)(arg1)->GetValue();
17478 wxPyEndAllowThreads(__tstate);
17479 if (PyErr_Occurred()) SWIG_fail;
17480 }
17481 {
17482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17483 }
17484 return resultobj;
17485fail:
17486 return NULL;
17487}
17488
17489
17490SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17491 PyObject *resultobj = 0;
17492 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17493 bool arg2 ;
17494 void *argp1 = 0 ;
17495 int res1 = 0 ;
17496 bool val2 ;
17497 int ecode2 = 0 ;
17498 PyObject * obj0 = 0 ;
17499 PyObject * obj1 = 0 ;
17500 char * kwnames[] = {
17501 (char *) "self",(char *) "value", NULL
17502 };
17503
17504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17506 if (!SWIG_IsOK(res1)) {
17507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17508 }
17509 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17510 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17511 if (!SWIG_IsOK(ecode2)) {
17512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17513 }
17514 arg2 = static_cast< bool >(val2);
17515 {
17516 PyThreadState* __tstate = wxPyBeginAllowThreads();
17517 (arg1)->SetValue(arg2);
17518 wxPyEndAllowThreads(__tstate);
17519 if (PyErr_Occurred()) SWIG_fail;
17520 }
17521 resultobj = SWIG_Py_Void();
17522 return resultobj;
17523fail:
17524 return NULL;
17525}
17526
17527
17528SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17529 PyObject *resultobj = 0;
17530 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17531 SwigValueWrapper<wxVisualAttributes > result;
17532 int val1 ;
17533 int ecode1 = 0 ;
17534 PyObject * obj0 = 0 ;
17535 char * kwnames[] = {
17536 (char *) "variant", NULL
17537 };
17538
17539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17540 if (obj0) {
17541 ecode1 = SWIG_AsVal_int(obj0, &val1);
17542 if (!SWIG_IsOK(ecode1)) {
17543 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17544 }
17545 arg1 = static_cast< wxWindowVariant >(val1);
17546 }
17547 {
17548 if (!wxPyCheckForApp()) SWIG_fail;
17549 PyThreadState* __tstate = wxPyBeginAllowThreads();
17550 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17551 wxPyEndAllowThreads(__tstate);
17552 if (PyErr_Occurred()) SWIG_fail;
17553 }
17554 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17555 return resultobj;
17556fail:
17557 return NULL;
d55e5bfc
RD
17558}
17559
17560
1bd55598
RD
17561SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17562 PyObject *obj;
17563 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17564 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17565 return SWIG_Py_Void();
d55e5bfc
RD
17566}
17567
1bd55598
RD
17568SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17569 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17570}
17571
1bd55598
RD
17572SWIGINTERN int SliderNameStr_set(PyObject *) {
17573 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17574 return 1;
d55e5bfc
RD
17575}
17576
17577
1bd55598
RD
17578SWIGINTERN PyObject *SliderNameStr_get(void) {
17579 PyObject *pyobj = 0;
17580
17581 {
17582#if wxUSE_UNICODE
17583 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17584#else
17585 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17586#endif
17587 }
17588 return pyobj;
17589}
17590
17591
17592SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17593 PyObject *resultobj = 0;
17594 wxWindow *arg1 = (wxWindow *) 0 ;
17595 int arg2 = (int) -1 ;
17596 int arg3 = (int) 0 ;
17597 int arg4 = (int) 0 ;
17598 int arg5 = (int) 100 ;
17599 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17600 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17601 wxSize const &arg7_defvalue = wxDefaultSize ;
17602 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17603 long arg8 = (long) wxSL_HORIZONTAL ;
17604 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17605 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17606 wxString const &arg10_defvalue = wxPySliderNameStr ;
17607 wxString *arg10 = (wxString *) &arg10_defvalue ;
17608 wxSlider *result = 0 ;
17609 void *argp1 = 0 ;
17610 int res1 = 0 ;
17611 int val2 ;
17612 int ecode2 = 0 ;
17613 int val3 ;
17614 int ecode3 = 0 ;
17615 int val4 ;
17616 int ecode4 = 0 ;
17617 int val5 ;
17618 int ecode5 = 0 ;
17619 wxPoint temp6 ;
17620 wxSize temp7 ;
17621 long val8 ;
17622 int ecode8 = 0 ;
17623 void *argp9 = 0 ;
17624 int res9 = 0 ;
17625 bool temp10 = false ;
17626 PyObject * obj0 = 0 ;
17627 PyObject * obj1 = 0 ;
17628 PyObject * obj2 = 0 ;
17629 PyObject * obj3 = 0 ;
17630 PyObject * obj4 = 0 ;
17631 PyObject * obj5 = 0 ;
17632 PyObject * obj6 = 0 ;
17633 PyObject * obj7 = 0 ;
17634 PyObject * obj8 = 0 ;
17635 PyObject * obj9 = 0 ;
17636 char * kwnames[] = {
17637 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17638 };
17639
17640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17642 if (!SWIG_IsOK(res1)) {
17643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17644 }
17645 arg1 = reinterpret_cast< wxWindow * >(argp1);
17646 if (obj1) {
17647 ecode2 = SWIG_AsVal_int(obj1, &val2);
17648 if (!SWIG_IsOK(ecode2)) {
17649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17650 }
17651 arg2 = static_cast< int >(val2);
17652 }
17653 if (obj2) {
17654 ecode3 = SWIG_AsVal_int(obj2, &val3);
17655 if (!SWIG_IsOK(ecode3)) {
17656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17657 }
17658 arg3 = static_cast< int >(val3);
17659 }
17660 if (obj3) {
17661 ecode4 = SWIG_AsVal_int(obj3, &val4);
17662 if (!SWIG_IsOK(ecode4)) {
17663 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17664 }
17665 arg4 = static_cast< int >(val4);
17666 }
17667 if (obj4) {
17668 ecode5 = SWIG_AsVal_int(obj4, &val5);
17669 if (!SWIG_IsOK(ecode5)) {
17670 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17671 }
17672 arg5 = static_cast< int >(val5);
17673 }
17674 if (obj5) {
36ed4f51 17675 {
1bd55598
RD
17676 arg6 = &temp6;
17677 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 17678 }
1bd55598
RD
17679 }
17680 if (obj6) {
36ed4f51 17681 {
1bd55598
RD
17682 arg7 = &temp7;
17683 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
36ed4f51 17684 }
1bd55598
RD
17685 }
17686 if (obj7) {
17687 ecode8 = SWIG_AsVal_long(obj7, &val8);
17688 if (!SWIG_IsOK(ecode8)) {
17689 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17690 }
17691 arg8 = static_cast< long >(val8);
17692 }
17693 if (obj8) {
17694 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17695 if (!SWIG_IsOK(res9)) {
17696 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
36ed4f51 17697 }
1bd55598
RD
17698 if (!argp9) {
17699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 17700 }
1bd55598
RD
17701 arg9 = reinterpret_cast< wxValidator * >(argp9);
17702 }
17703 if (obj9) {
d55e5bfc 17704 {
1bd55598
RD
17705 arg10 = wxString_in_helper(obj9);
17706 if (arg10 == NULL) SWIG_fail;
17707 temp10 = true;
d55e5bfc 17708 }
1bd55598
RD
17709 }
17710 {
17711 if (!wxPyCheckForApp()) SWIG_fail;
17712 PyThreadState* __tstate = wxPyBeginAllowThreads();
17713 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17714 wxPyEndAllowThreads(__tstate);
17715 if (PyErr_Occurred()) SWIG_fail;
17716 }
17717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17718 {
17719 if (temp10)
17720 delete arg10;
17721 }
17722 return resultobj;
17723fail:
17724 {
17725 if (temp10)
17726 delete arg10;
17727 }
17728 return NULL;
d55e5bfc
RD
17729}
17730
17731
1bd55598
RD
17732SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17733 PyObject *resultobj = 0;
17734 wxSlider *result = 0 ;
17735
17736 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17737 {
17738 if (!wxPyCheckForApp()) SWIG_fail;
17739 PyThreadState* __tstate = wxPyBeginAllowThreads();
17740 result = (wxSlider *)new wxSlider();
17741 wxPyEndAllowThreads(__tstate);
17742 if (PyErr_Occurred()) SWIG_fail;
17743 }
17744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17745 return resultobj;
17746fail:
17747 return NULL;
17748}
17749
17750
17751SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17752 PyObject *resultobj = 0;
17753 wxSlider *arg1 = (wxSlider *) 0 ;
17754 wxWindow *arg2 = (wxWindow *) 0 ;
17755 int arg3 = (int) -1 ;
17756 int arg4 = (int) 0 ;
17757 int arg5 = (int) 0 ;
17758 int arg6 = (int) 100 ;
17759 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17760 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17761 wxSize const &arg8_defvalue = wxDefaultSize ;
17762 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17763 long arg9 = (long) wxSL_HORIZONTAL ;
17764 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17765 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17766 wxString const &arg11_defvalue = wxPySliderNameStr ;
17767 wxString *arg11 = (wxString *) &arg11_defvalue ;
17768 bool result;
17769 void *argp1 = 0 ;
17770 int res1 = 0 ;
17771 void *argp2 = 0 ;
17772 int res2 = 0 ;
17773 int val3 ;
17774 int ecode3 = 0 ;
17775 int val4 ;
17776 int ecode4 = 0 ;
17777 int val5 ;
17778 int ecode5 = 0 ;
17779 int val6 ;
17780 int ecode6 = 0 ;
17781 wxPoint temp7 ;
17782 wxSize temp8 ;
17783 long val9 ;
17784 int ecode9 = 0 ;
17785 void *argp10 = 0 ;
17786 int res10 = 0 ;
17787 bool temp11 = false ;
17788 PyObject * obj0 = 0 ;
17789 PyObject * obj1 = 0 ;
17790 PyObject * obj2 = 0 ;
17791 PyObject * obj3 = 0 ;
17792 PyObject * obj4 = 0 ;
17793 PyObject * obj5 = 0 ;
17794 PyObject * obj6 = 0 ;
17795 PyObject * obj7 = 0 ;
17796 PyObject * obj8 = 0 ;
17797 PyObject * obj9 = 0 ;
17798 PyObject * obj10 = 0 ;
17799 char * kwnames[] = {
17800 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17801 };
17802
17803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17805 if (!SWIG_IsOK(res1)) {
17806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17807 }
17808 arg1 = reinterpret_cast< wxSlider * >(argp1);
17809 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17810 if (!SWIG_IsOK(res2)) {
17811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17812 }
17813 arg2 = reinterpret_cast< wxWindow * >(argp2);
17814 if (obj2) {
17815 ecode3 = SWIG_AsVal_int(obj2, &val3);
17816 if (!SWIG_IsOK(ecode3)) {
17817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17818 }
17819 arg3 = static_cast< int >(val3);
17820 }
17821 if (obj3) {
17822 ecode4 = SWIG_AsVal_int(obj3, &val4);
17823 if (!SWIG_IsOK(ecode4)) {
17824 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17825 }
17826 arg4 = static_cast< int >(val4);
17827 }
17828 if (obj4) {
17829 ecode5 = SWIG_AsVal_int(obj4, &val5);
17830 if (!SWIG_IsOK(ecode5)) {
17831 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17832 }
17833 arg5 = static_cast< int >(val5);
17834 }
17835 if (obj5) {
17836 ecode6 = SWIG_AsVal_int(obj5, &val6);
17837 if (!SWIG_IsOK(ecode6)) {
17838 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17839 }
17840 arg6 = static_cast< int >(val6);
17841 }
17842 if (obj6) {
d55e5bfc 17843 {
1bd55598
RD
17844 arg7 = &temp7;
17845 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d55e5bfc 17846 }
1bd55598
RD
17847 }
17848 if (obj7) {
d55e5bfc 17849 {
1bd55598
RD
17850 arg8 = &temp8;
17851 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d55e5bfc 17852 }
1bd55598
RD
17853 }
17854 if (obj8) {
17855 ecode9 = SWIG_AsVal_long(obj8, &val9);
17856 if (!SWIG_IsOK(ecode9)) {
17857 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17858 }
17859 arg9 = static_cast< long >(val9);
17860 }
17861 if (obj9) {
17862 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17863 if (!SWIG_IsOK(res10)) {
17864 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17865 }
1bd55598
RD
17866 if (!argp10) {
17867 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17868 }
1bd55598
RD
17869 arg10 = reinterpret_cast< wxValidator * >(argp10);
17870 }
17871 if (obj10) {
d55e5bfc 17872 {
1bd55598
RD
17873 arg11 = wxString_in_helper(obj10);
17874 if (arg11 == NULL) SWIG_fail;
17875 temp11 = true;
d55e5bfc 17876 }
1bd55598
RD
17877 }
17878 {
17879 PyThreadState* __tstate = wxPyBeginAllowThreads();
17880 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17881 wxPyEndAllowThreads(__tstate);
17882 if (PyErr_Occurred()) SWIG_fail;
17883 }
17884 {
17885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17886 }
17887 {
17888 if (temp11)
17889 delete arg11;
17890 }
17891 return resultobj;
17892fail:
17893 {
17894 if (temp11)
17895 delete arg11;
17896 }
17897 return NULL;
d55e5bfc
RD
17898}
17899
17900
1bd55598
RD
17901SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17902 PyObject *resultobj = 0;
17903 wxSlider *arg1 = (wxSlider *) 0 ;
17904 int result;
17905 void *argp1 = 0 ;
17906 int res1 = 0 ;
17907 PyObject *swig_obj[1] ;
17908
17909 if (!args) SWIG_fail;
17910 swig_obj[0] = args;
17911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17912 if (!SWIG_IsOK(res1)) {
17913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17914 }
17915 arg1 = reinterpret_cast< wxSlider * >(argp1);
17916 {
17917 PyThreadState* __tstate = wxPyBeginAllowThreads();
17918 result = (int)((wxSlider const *)arg1)->GetValue();
17919 wxPyEndAllowThreads(__tstate);
17920 if (PyErr_Occurred()) SWIG_fail;
17921 }
17922 resultobj = SWIG_From_int(static_cast< int >(result));
17923 return resultobj;
17924fail:
17925 return NULL;
17926}
17927
17928
17929SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17930 PyObject *resultobj = 0;
17931 wxSlider *arg1 = (wxSlider *) 0 ;
17932 int arg2 ;
17933 void *argp1 = 0 ;
17934 int res1 = 0 ;
17935 int val2 ;
17936 int ecode2 = 0 ;
17937 PyObject * obj0 = 0 ;
17938 PyObject * obj1 = 0 ;
17939 char * kwnames[] = {
17940 (char *) "self",(char *) "value", NULL
17941 };
17942
17943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17945 if (!SWIG_IsOK(res1)) {
17946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17947 }
17948 arg1 = reinterpret_cast< wxSlider * >(argp1);
17949 ecode2 = SWIG_AsVal_int(obj1, &val2);
17950 if (!SWIG_IsOK(ecode2)) {
17951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17952 }
17953 arg2 = static_cast< int >(val2);
17954 {
17955 PyThreadState* __tstate = wxPyBeginAllowThreads();
17956 (arg1)->SetValue(arg2);
17957 wxPyEndAllowThreads(__tstate);
17958 if (PyErr_Occurred()) SWIG_fail;
17959 }
17960 resultobj = SWIG_Py_Void();
17961 return resultobj;
17962fail:
17963 return NULL;
17964}
17965
17966
17967SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17968 PyObject *resultobj = 0;
17969 wxSlider *arg1 = (wxSlider *) 0 ;
17970 int arg2 ;
17971 int arg3 ;
17972 void *argp1 = 0 ;
17973 int res1 = 0 ;
17974 int val2 ;
17975 int ecode2 = 0 ;
17976 int val3 ;
17977 int ecode3 = 0 ;
17978 PyObject * obj0 = 0 ;
17979 PyObject * obj1 = 0 ;
17980 PyObject * obj2 = 0 ;
17981 char * kwnames[] = {
17982 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17983 };
17984
17985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17987 if (!SWIG_IsOK(res1)) {
17988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17989 }
17990 arg1 = reinterpret_cast< wxSlider * >(argp1);
17991 ecode2 = SWIG_AsVal_int(obj1, &val2);
17992 if (!SWIG_IsOK(ecode2)) {
17993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17994 }
17995 arg2 = static_cast< int >(val2);
17996 ecode3 = SWIG_AsVal_int(obj2, &val3);
17997 if (!SWIG_IsOK(ecode3)) {
17998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17999 }
18000 arg3 = static_cast< int >(val3);
18001 {
18002 PyThreadState* __tstate = wxPyBeginAllowThreads();
18003 (arg1)->SetRange(arg2,arg3);
18004 wxPyEndAllowThreads(__tstate);
18005 if (PyErr_Occurred()) SWIG_fail;
18006 }
18007 resultobj = SWIG_Py_Void();
18008 return resultobj;
18009fail:
18010 return NULL;
d55e5bfc
RD
18011}
18012
18013
1bd55598
RD
18014SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18015 PyObject *resultobj = 0;
18016 wxSlider *arg1 = (wxSlider *) 0 ;
18017 int result;
18018 void *argp1 = 0 ;
18019 int res1 = 0 ;
18020 PyObject *swig_obj[1] ;
18021
18022 if (!args) SWIG_fail;
18023 swig_obj[0] = args;
18024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18025 if (!SWIG_IsOK(res1)) {
18026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
18027 }
18028 arg1 = reinterpret_cast< wxSlider * >(argp1);
18029 {
18030 PyThreadState* __tstate = wxPyBeginAllowThreads();
18031 result = (int)((wxSlider const *)arg1)->GetMin();
18032 wxPyEndAllowThreads(__tstate);
18033 if (PyErr_Occurred()) SWIG_fail;
18034 }
18035 resultobj = SWIG_From_int(static_cast< int >(result));
18036 return resultobj;
18037fail:
18038 return NULL;
f20a2e1f
RD
18039}
18040
18041
1bd55598
RD
18042SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18043 PyObject *resultobj = 0;
18044 wxSlider *arg1 = (wxSlider *) 0 ;
18045 int result;
18046 void *argp1 = 0 ;
18047 int res1 = 0 ;
18048 PyObject *swig_obj[1] ;
18049
18050 if (!args) SWIG_fail;
18051 swig_obj[0] = args;
18052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18053 if (!SWIG_IsOK(res1)) {
18054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
18055 }
18056 arg1 = reinterpret_cast< wxSlider * >(argp1);
18057 {
18058 PyThreadState* __tstate = wxPyBeginAllowThreads();
18059 result = (int)((wxSlider const *)arg1)->GetMax();
18060 wxPyEndAllowThreads(__tstate);
18061 if (PyErr_Occurred()) SWIG_fail;
18062 }
18063 resultobj = SWIG_From_int(static_cast< int >(result));
18064 return resultobj;
18065fail:
18066 return NULL;
18067}
18068
18069
18070SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18071 PyObject *resultobj = 0;
18072 wxSlider *arg1 = (wxSlider *) 0 ;
18073 int arg2 ;
18074 void *argp1 = 0 ;
18075 int res1 = 0 ;
18076 int val2 ;
18077 int ecode2 = 0 ;
18078 PyObject * obj0 = 0 ;
18079 PyObject * obj1 = 0 ;
18080 char * kwnames[] = {
18081 (char *) "self",(char *) "minValue", NULL
18082 };
18083
18084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
18085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18086 if (!SWIG_IsOK(res1)) {
18087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
18088 }
18089 arg1 = reinterpret_cast< wxSlider * >(argp1);
18090 ecode2 = SWIG_AsVal_int(obj1, &val2);
18091 if (!SWIG_IsOK(ecode2)) {
18092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
18093 }
18094 arg2 = static_cast< int >(val2);
18095 {
18096 PyThreadState* __tstate = wxPyBeginAllowThreads();
18097 (arg1)->SetMin(arg2);
18098 wxPyEndAllowThreads(__tstate);
18099 if (PyErr_Occurred()) SWIG_fail;
18100 }
18101 resultobj = SWIG_Py_Void();
18102 return resultobj;
18103fail:
18104 return NULL;
18105}
18106
18107
18108SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18109 PyObject *resultobj = 0;
18110 wxSlider *arg1 = (wxSlider *) 0 ;
18111 int arg2 ;
18112 void *argp1 = 0 ;
18113 int res1 = 0 ;
18114 int val2 ;
18115 int ecode2 = 0 ;
18116 PyObject * obj0 = 0 ;
18117 PyObject * obj1 = 0 ;
18118 char * kwnames[] = {
18119 (char *) "self",(char *) "maxValue", NULL
18120 };
18121
18122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
18123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18124 if (!SWIG_IsOK(res1)) {
18125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
18126 }
18127 arg1 = reinterpret_cast< wxSlider * >(argp1);
18128 ecode2 = SWIG_AsVal_int(obj1, &val2);
18129 if (!SWIG_IsOK(ecode2)) {
18130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
18131 }
18132 arg2 = static_cast< int >(val2);
18133 {
18134 PyThreadState* __tstate = wxPyBeginAllowThreads();
18135 (arg1)->SetMax(arg2);
18136 wxPyEndAllowThreads(__tstate);
18137 if (PyErr_Occurred()) SWIG_fail;
18138 }
18139 resultobj = SWIG_Py_Void();
18140 return resultobj;
18141fail:
18142 return NULL;
18143}
18144
18145
18146SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18147 PyObject *resultobj = 0;
18148 wxSlider *arg1 = (wxSlider *) 0 ;
18149 int arg2 ;
18150 void *argp1 = 0 ;
18151 int res1 = 0 ;
18152 int val2 ;
18153 int ecode2 = 0 ;
18154 PyObject * obj0 = 0 ;
18155 PyObject * obj1 = 0 ;
18156 char * kwnames[] = {
18157 (char *) "self",(char *) "lineSize", NULL
18158 };
18159
18160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18162 if (!SWIG_IsOK(res1)) {
18163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18164 }
18165 arg1 = reinterpret_cast< wxSlider * >(argp1);
18166 ecode2 = SWIG_AsVal_int(obj1, &val2);
18167 if (!SWIG_IsOK(ecode2)) {
18168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18169 }
18170 arg2 = static_cast< int >(val2);
18171 {
18172 PyThreadState* __tstate = wxPyBeginAllowThreads();
18173 (arg1)->SetLineSize(arg2);
18174 wxPyEndAllowThreads(__tstate);
18175 if (PyErr_Occurred()) SWIG_fail;
18176 }
18177 resultobj = SWIG_Py_Void();
18178 return resultobj;
18179fail:
18180 return NULL;
18181}
18182
18183
18184SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18185 PyObject *resultobj = 0;
18186 wxSlider *arg1 = (wxSlider *) 0 ;
18187 int arg2 ;
18188 void *argp1 = 0 ;
18189 int res1 = 0 ;
18190 int val2 ;
18191 int ecode2 = 0 ;
18192 PyObject * obj0 = 0 ;
18193 PyObject * obj1 = 0 ;
18194 char * kwnames[] = {
18195 (char *) "self",(char *) "pageSize", NULL
18196 };
18197
18198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18200 if (!SWIG_IsOK(res1)) {
18201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18202 }
18203 arg1 = reinterpret_cast< wxSlider * >(argp1);
18204 ecode2 = SWIG_AsVal_int(obj1, &val2);
18205 if (!SWIG_IsOK(ecode2)) {
18206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18207 }
18208 arg2 = static_cast< int >(val2);
18209 {
18210 PyThreadState* __tstate = wxPyBeginAllowThreads();
18211 (arg1)->SetPageSize(arg2);
18212 wxPyEndAllowThreads(__tstate);
18213 if (PyErr_Occurred()) SWIG_fail;
18214 }
18215 resultobj = SWIG_Py_Void();
18216 return resultobj;
18217fail:
18218 return NULL;
d55e5bfc
RD
18219}
18220
18221
1bd55598
RD
18222SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18223 PyObject *resultobj = 0;
18224 wxSlider *arg1 = (wxSlider *) 0 ;
18225 int result;
18226 void *argp1 = 0 ;
18227 int res1 = 0 ;
18228 PyObject *swig_obj[1] ;
18229
18230 if (!args) SWIG_fail;
18231 swig_obj[0] = args;
18232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18233 if (!SWIG_IsOK(res1)) {
18234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18235 }
18236 arg1 = reinterpret_cast< wxSlider * >(argp1);
18237 {
18238 PyThreadState* __tstate = wxPyBeginAllowThreads();
18239 result = (int)((wxSlider const *)arg1)->GetLineSize();
18240 wxPyEndAllowThreads(__tstate);
18241 if (PyErr_Occurred()) SWIG_fail;
18242 }
18243 resultobj = SWIG_From_int(static_cast< int >(result));
18244 return resultobj;
18245fail:
18246 return NULL;
d55e5bfc
RD
18247}
18248
18249
1bd55598
RD
18250SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18251 PyObject *resultobj = 0;
18252 wxSlider *arg1 = (wxSlider *) 0 ;
18253 int result;
18254 void *argp1 = 0 ;
18255 int res1 = 0 ;
18256 PyObject *swig_obj[1] ;
18257
18258 if (!args) SWIG_fail;
18259 swig_obj[0] = args;
18260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18261 if (!SWIG_IsOK(res1)) {
18262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18263 }
18264 arg1 = reinterpret_cast< wxSlider * >(argp1);
18265 {
18266 PyThreadState* __tstate = wxPyBeginAllowThreads();
18267 result = (int)((wxSlider const *)arg1)->GetPageSize();
18268 wxPyEndAllowThreads(__tstate);
18269 if (PyErr_Occurred()) SWIG_fail;
18270 }
18271 resultobj = SWIG_From_int(static_cast< int >(result));
18272 return resultobj;
18273fail:
18274 return NULL;
18275}
18276
18277
18278SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18279 PyObject *resultobj = 0;
18280 wxSlider *arg1 = (wxSlider *) 0 ;
18281 int arg2 ;
18282 void *argp1 = 0 ;
18283 int res1 = 0 ;
18284 int val2 ;
18285 int ecode2 = 0 ;
18286 PyObject * obj0 = 0 ;
18287 PyObject * obj1 = 0 ;
18288 char * kwnames[] = {
18289 (char *) "self",(char *) "lenPixels", NULL
18290 };
18291
18292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18294 if (!SWIG_IsOK(res1)) {
18295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18296 }
18297 arg1 = reinterpret_cast< wxSlider * >(argp1);
18298 ecode2 = SWIG_AsVal_int(obj1, &val2);
18299 if (!SWIG_IsOK(ecode2)) {
18300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18301 }
18302 arg2 = static_cast< int >(val2);
18303 {
18304 PyThreadState* __tstate = wxPyBeginAllowThreads();
18305 (arg1)->SetThumbLength(arg2);
18306 wxPyEndAllowThreads(__tstate);
18307 if (PyErr_Occurred()) SWIG_fail;
18308 }
18309 resultobj = SWIG_Py_Void();
18310 return resultobj;
18311fail:
18312 return NULL;
d55e5bfc
RD
18313}
18314
18315
1bd55598
RD
18316SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18317 PyObject *resultobj = 0;
18318 wxSlider *arg1 = (wxSlider *) 0 ;
18319 int result;
18320 void *argp1 = 0 ;
18321 int res1 = 0 ;
18322 PyObject *swig_obj[1] ;
18323
18324 if (!args) SWIG_fail;
18325 swig_obj[0] = args;
18326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18327 if (!SWIG_IsOK(res1)) {
18328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18329 }
18330 arg1 = reinterpret_cast< wxSlider * >(argp1);
18331 {
18332 PyThreadState* __tstate = wxPyBeginAllowThreads();
18333 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18334 wxPyEndAllowThreads(__tstate);
18335 if (PyErr_Occurred()) SWIG_fail;
18336 }
18337 resultobj = SWIG_From_int(static_cast< int >(result));
18338 return resultobj;
18339fail:
18340 return NULL;
18341}
18342
18343
18344SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18345 PyObject *resultobj = 0;
18346 wxSlider *arg1 = (wxSlider *) 0 ;
18347 int arg2 ;
18348 int arg3 = (int) 1 ;
18349 void *argp1 = 0 ;
18350 int res1 = 0 ;
18351 int val2 ;
18352 int ecode2 = 0 ;
18353 int val3 ;
18354 int ecode3 = 0 ;
18355 PyObject * obj0 = 0 ;
18356 PyObject * obj1 = 0 ;
18357 PyObject * obj2 = 0 ;
18358 char * kwnames[] = {
18359 (char *) "self",(char *) "n",(char *) "pos", NULL
18360 };
18361
18362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18364 if (!SWIG_IsOK(res1)) {
18365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18366 }
18367 arg1 = reinterpret_cast< wxSlider * >(argp1);
18368 ecode2 = SWIG_AsVal_int(obj1, &val2);
18369 if (!SWIG_IsOK(ecode2)) {
18370 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18371 }
18372 arg2 = static_cast< int >(val2);
18373 if (obj2) {
18374 ecode3 = SWIG_AsVal_int(obj2, &val3);
18375 if (!SWIG_IsOK(ecode3)) {
18376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18377 }
18378 arg3 = static_cast< int >(val3);
18379 }
18380 {
18381 PyThreadState* __tstate = wxPyBeginAllowThreads();
18382 (arg1)->SetTickFreq(arg2,arg3);
18383 wxPyEndAllowThreads(__tstate);
18384 if (PyErr_Occurred()) SWIG_fail;
18385 }
18386 resultobj = SWIG_Py_Void();
18387 return resultobj;
18388fail:
18389 return NULL;
d55e5bfc
RD
18390}
18391
18392
1bd55598
RD
18393SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18394 PyObject *resultobj = 0;
18395 wxSlider *arg1 = (wxSlider *) 0 ;
18396 int result;
18397 void *argp1 = 0 ;
18398 int res1 = 0 ;
18399 PyObject *swig_obj[1] ;
18400
18401 if (!args) SWIG_fail;
18402 swig_obj[0] = args;
18403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18404 if (!SWIG_IsOK(res1)) {
18405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18406 }
18407 arg1 = reinterpret_cast< wxSlider * >(argp1);
18408 {
18409 PyThreadState* __tstate = wxPyBeginAllowThreads();
18410 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18411 wxPyEndAllowThreads(__tstate);
18412 if (PyErr_Occurred()) SWIG_fail;
18413 }
18414 resultobj = SWIG_From_int(static_cast< int >(result));
18415 return resultobj;
18416fail:
18417 return NULL;
d55e5bfc
RD
18418}
18419
18420
1bd55598
RD
18421SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18422 PyObject *resultobj = 0;
18423 wxSlider *arg1 = (wxSlider *) 0 ;
18424 void *argp1 = 0 ;
18425 int res1 = 0 ;
18426 PyObject *swig_obj[1] ;
18427
18428 if (!args) SWIG_fail;
18429 swig_obj[0] = args;
18430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18431 if (!SWIG_IsOK(res1)) {
18432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18433 }
18434 arg1 = reinterpret_cast< wxSlider * >(argp1);
18435 {
18436 PyThreadState* __tstate = wxPyBeginAllowThreads();
18437 (arg1)->ClearTicks();
18438 wxPyEndAllowThreads(__tstate);
18439 if (PyErr_Occurred()) SWIG_fail;
18440 }
18441 resultobj = SWIG_Py_Void();
18442 return resultobj;
18443fail:
18444 return NULL;
18445}
18446
18447
18448SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18449 PyObject *resultobj = 0;
18450 wxSlider *arg1 = (wxSlider *) 0 ;
18451 int arg2 ;
18452 void *argp1 = 0 ;
18453 int res1 = 0 ;
18454 int val2 ;
18455 int ecode2 = 0 ;
18456 PyObject * obj0 = 0 ;
18457 PyObject * obj1 = 0 ;
18458 char * kwnames[] = {
18459 (char *) "self",(char *) "tickPos", NULL
18460 };
18461
18462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18464 if (!SWIG_IsOK(res1)) {
18465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18466 }
18467 arg1 = reinterpret_cast< wxSlider * >(argp1);
18468 ecode2 = SWIG_AsVal_int(obj1, &val2);
18469 if (!SWIG_IsOK(ecode2)) {
18470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18471 }
18472 arg2 = static_cast< int >(val2);
18473 {
18474 PyThreadState* __tstate = wxPyBeginAllowThreads();
18475 (arg1)->SetTick(arg2);
18476 wxPyEndAllowThreads(__tstate);
18477 if (PyErr_Occurred()) SWIG_fail;
18478 }
18479 resultobj = SWIG_Py_Void();
18480 return resultobj;
18481fail:
18482 return NULL;
d55e5bfc
RD
18483}
18484
18485
1bd55598
RD
18486SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18487 PyObject *resultobj = 0;
18488 wxSlider *arg1 = (wxSlider *) 0 ;
18489 void *argp1 = 0 ;
18490 int res1 = 0 ;
18491 PyObject *swig_obj[1] ;
18492
18493 if (!args) SWIG_fail;
18494 swig_obj[0] = args;
18495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18496 if (!SWIG_IsOK(res1)) {
18497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18498 }
18499 arg1 = reinterpret_cast< wxSlider * >(argp1);
18500 {
18501 PyThreadState* __tstate = wxPyBeginAllowThreads();
18502 (arg1)->ClearSel();
18503 wxPyEndAllowThreads(__tstate);
18504 if (PyErr_Occurred()) SWIG_fail;
18505 }
18506 resultobj = SWIG_Py_Void();
18507 return resultobj;
18508fail:
18509 return NULL;
d55e5bfc
RD
18510}
18511
18512
1bd55598
RD
18513SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18514 PyObject *resultobj = 0;
18515 wxSlider *arg1 = (wxSlider *) 0 ;
18516 int result;
18517 void *argp1 = 0 ;
18518 int res1 = 0 ;
18519 PyObject *swig_obj[1] ;
18520
18521 if (!args) SWIG_fail;
18522 swig_obj[0] = args;
18523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18524 if (!SWIG_IsOK(res1)) {
18525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18526 }
18527 arg1 = reinterpret_cast< wxSlider * >(argp1);
18528 {
18529 PyThreadState* __tstate = wxPyBeginAllowThreads();
18530 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18531 wxPyEndAllowThreads(__tstate);
18532 if (PyErr_Occurred()) SWIG_fail;
18533 }
18534 resultobj = SWIG_From_int(static_cast< int >(result));
18535 return resultobj;
18536fail:
18537 return NULL;
d55e5bfc
RD
18538}
18539
18540
1bd55598
RD
18541SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18542 PyObject *resultobj = 0;
18543 wxSlider *arg1 = (wxSlider *) 0 ;
18544 int result;
18545 void *argp1 = 0 ;
18546 int res1 = 0 ;
18547 PyObject *swig_obj[1] ;
18548
18549 if (!args) SWIG_fail;
18550 swig_obj[0] = args;
18551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18552 if (!SWIG_IsOK(res1)) {
18553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18554 }
18555 arg1 = reinterpret_cast< wxSlider * >(argp1);
18556 {
18557 PyThreadState* __tstate = wxPyBeginAllowThreads();
18558 result = (int)((wxSlider const *)arg1)->GetSelStart();
18559 wxPyEndAllowThreads(__tstate);
18560 if (PyErr_Occurred()) SWIG_fail;
18561 }
18562 resultobj = SWIG_From_int(static_cast< int >(result));
18563 return resultobj;
18564fail:
18565 return NULL;
18566}
18567
18568
18569SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18570 PyObject *resultobj = 0;
18571 wxSlider *arg1 = (wxSlider *) 0 ;
18572 int arg2 ;
18573 int arg3 ;
18574 void *argp1 = 0 ;
18575 int res1 = 0 ;
18576 int val2 ;
18577 int ecode2 = 0 ;
18578 int val3 ;
18579 int ecode3 = 0 ;
18580 PyObject * obj0 = 0 ;
18581 PyObject * obj1 = 0 ;
18582 PyObject * obj2 = 0 ;
18583 char * kwnames[] = {
18584 (char *) "self",(char *) "min",(char *) "max", NULL
18585 };
18586
18587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18589 if (!SWIG_IsOK(res1)) {
18590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18591 }
18592 arg1 = reinterpret_cast< wxSlider * >(argp1);
18593 ecode2 = SWIG_AsVal_int(obj1, &val2);
18594 if (!SWIG_IsOK(ecode2)) {
18595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18596 }
18597 arg2 = static_cast< int >(val2);
18598 ecode3 = SWIG_AsVal_int(obj2, &val3);
18599 if (!SWIG_IsOK(ecode3)) {
18600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18601 }
18602 arg3 = static_cast< int >(val3);
18603 {
18604 PyThreadState* __tstate = wxPyBeginAllowThreads();
18605 (arg1)->SetSelection(arg2,arg3);
18606 wxPyEndAllowThreads(__tstate);
18607 if (PyErr_Occurred()) SWIG_fail;
18608 }
18609 resultobj = SWIG_Py_Void();
18610 return resultobj;
18611fail:
18612 return NULL;
18613}
18614
18615
18616SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18617 PyObject *resultobj = 0;
18618 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18619 SwigValueWrapper<wxVisualAttributes > result;
18620 int val1 ;
18621 int ecode1 = 0 ;
18622 PyObject * obj0 = 0 ;
18623 char * kwnames[] = {
18624 (char *) "variant", NULL
18625 };
18626
18627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18628 if (obj0) {
18629 ecode1 = SWIG_AsVal_int(obj0, &val1);
18630 if (!SWIG_IsOK(ecode1)) {
18631 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18632 }
18633 arg1 = static_cast< wxWindowVariant >(val1);
18634 }
18635 {
18636 if (!wxPyCheckForApp()) SWIG_fail;
18637 PyThreadState* __tstate = wxPyBeginAllowThreads();
18638 result = wxSlider::GetClassDefaultAttributes(arg1);
18639 wxPyEndAllowThreads(__tstate);
18640 if (PyErr_Occurred()) SWIG_fail;
18641 }
18642 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18643 return resultobj;
18644fail:
18645 return NULL;
d55e5bfc
RD
18646}
18647
18648
1bd55598
RD
18649SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18650 PyObject *obj;
18651 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18652 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18653 return SWIG_Py_Void();
d55e5bfc
RD
18654}
18655
1bd55598
RD
18656SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18657 return SWIG_Python_InitShadowInstance(args);
18658}
d55e5bfc 18659
1bd55598
RD
18660SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18661 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18662 return 1;
d55e5bfc
RD
18663}
18664
18665
1bd55598
RD
18666SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18667 PyObject *pyobj = 0;
18668
18669 {
18670#if wxUSE_UNICODE
18671 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18672#else
18673 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18674#endif
18675 }
18676 return pyobj;
18677}
18678
18679
18680SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18681 PyObject *resultobj = 0;
18682 wxWindow *arg1 = (wxWindow *) 0 ;
18683 int arg2 = (int) -1 ;
18684 wxString const &arg3_defvalue = wxPyEmptyString ;
18685 wxString *arg3 = (wxString *) &arg3_defvalue ;
18686 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18687 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18688 wxSize const &arg5_defvalue = wxDefaultSize ;
18689 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18690 long arg6 = (long) 0 ;
18691 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18692 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18693 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18694 wxString *arg8 = (wxString *) &arg8_defvalue ;
18695 wxToggleButton *result = 0 ;
18696 void *argp1 = 0 ;
18697 int res1 = 0 ;
18698 int val2 ;
18699 int ecode2 = 0 ;
18700 bool temp3 = false ;
18701 wxPoint temp4 ;
18702 wxSize temp5 ;
18703 long val6 ;
18704 int ecode6 = 0 ;
18705 void *argp7 = 0 ;
18706 int res7 = 0 ;
18707 bool temp8 = false ;
18708 PyObject * obj0 = 0 ;
18709 PyObject * obj1 = 0 ;
18710 PyObject * obj2 = 0 ;
18711 PyObject * obj3 = 0 ;
18712 PyObject * obj4 = 0 ;
18713 PyObject * obj5 = 0 ;
18714 PyObject * obj6 = 0 ;
18715 PyObject * obj7 = 0 ;
18716 char * kwnames[] = {
18717 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18718 };
18719
18720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18722 if (!SWIG_IsOK(res1)) {
18723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18724 }
18725 arg1 = reinterpret_cast< wxWindow * >(argp1);
18726 if (obj1) {
18727 ecode2 = SWIG_AsVal_int(obj1, &val2);
18728 if (!SWIG_IsOK(ecode2)) {
18729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18730 }
18731 arg2 = static_cast< int >(val2);
18732 }
18733 if (obj2) {
d55e5bfc 18734 {
1bd55598
RD
18735 arg3 = wxString_in_helper(obj2);
18736 if (arg3 == NULL) SWIG_fail;
18737 temp3 = true;
d55e5bfc 18738 }
1bd55598
RD
18739 }
18740 if (obj3) {
36ed4f51 18741 {
1bd55598
RD
18742 arg4 = &temp4;
18743 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 18744 }
1bd55598
RD
18745 }
18746 if (obj4) {
d55e5bfc 18747 {
1bd55598
RD
18748 arg5 = &temp5;
18749 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 18750 }
1bd55598
RD
18751 }
18752 if (obj5) {
18753 ecode6 = SWIG_AsVal_long(obj5, &val6);
18754 if (!SWIG_IsOK(ecode6)) {
18755 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18756 }
18757 arg6 = static_cast< long >(val6);
18758 }
18759 if (obj6) {
18760 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18761 if (!SWIG_IsOK(res7)) {
18762 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18763 }
1bd55598
RD
18764 if (!argp7) {
18765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 18766 }
1bd55598
RD
18767 arg7 = reinterpret_cast< wxValidator * >(argp7);
18768 }
18769 if (obj7) {
d55e5bfc 18770 {
1bd55598
RD
18771 arg8 = wxString_in_helper(obj7);
18772 if (arg8 == NULL) SWIG_fail;
18773 temp8 = true;
d55e5bfc 18774 }
1bd55598
RD
18775 }
18776 {
18777 if (!wxPyCheckForApp()) SWIG_fail;
18778 PyThreadState* __tstate = wxPyBeginAllowThreads();
18779 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18780 wxPyEndAllowThreads(__tstate);
18781 if (PyErr_Occurred()) SWIG_fail;
18782 }
18783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18784 {
18785 if (temp3)
18786 delete arg3;
18787 }
18788 {
18789 if (temp8)
18790 delete arg8;
18791 }
18792 return resultobj;
18793fail:
18794 {
18795 if (temp3)
18796 delete arg3;
18797 }
18798 {
18799 if (temp8)
18800 delete arg8;
18801 }
18802 return NULL;
d55e5bfc
RD
18803}
18804
18805
1bd55598
RD
18806SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18807 PyObject *resultobj = 0;
18808 wxToggleButton *result = 0 ;
18809
18810 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18811 {
18812 if (!wxPyCheckForApp()) SWIG_fail;
18813 PyThreadState* __tstate = wxPyBeginAllowThreads();
18814 result = (wxToggleButton *)new wxToggleButton();
18815 wxPyEndAllowThreads(__tstate);
18816 if (PyErr_Occurred()) SWIG_fail;
18817 }
18818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18819 return resultobj;
18820fail:
18821 return NULL;
18822}
18823
18824
18825SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18826 PyObject *resultobj = 0;
18827 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18828 wxWindow *arg2 = (wxWindow *) 0 ;
18829 int arg3 = (int) -1 ;
18830 wxString const &arg4_defvalue = wxPyEmptyString ;
18831 wxString *arg4 = (wxString *) &arg4_defvalue ;
18832 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18833 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18834 wxSize const &arg6_defvalue = wxDefaultSize ;
18835 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18836 long arg7 = (long) 0 ;
18837 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18838 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18839 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18840 wxString *arg9 = (wxString *) &arg9_defvalue ;
18841 bool result;
18842 void *argp1 = 0 ;
18843 int res1 = 0 ;
18844 void *argp2 = 0 ;
18845 int res2 = 0 ;
18846 int val3 ;
18847 int ecode3 = 0 ;
18848 bool temp4 = false ;
18849 wxPoint temp5 ;
18850 wxSize temp6 ;
18851 long val7 ;
18852 int ecode7 = 0 ;
18853 void *argp8 = 0 ;
18854 int res8 = 0 ;
18855 bool temp9 = false ;
18856 PyObject * obj0 = 0 ;
18857 PyObject * obj1 = 0 ;
18858 PyObject * obj2 = 0 ;
18859 PyObject * obj3 = 0 ;
18860 PyObject * obj4 = 0 ;
18861 PyObject * obj5 = 0 ;
18862 PyObject * obj6 = 0 ;
18863 PyObject * obj7 = 0 ;
18864 PyObject * obj8 = 0 ;
18865 char * kwnames[] = {
18866 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18867 };
18868
18869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18871 if (!SWIG_IsOK(res1)) {
18872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18873 }
18874 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18875 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18876 if (!SWIG_IsOK(res2)) {
18877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18878 }
18879 arg2 = reinterpret_cast< wxWindow * >(argp2);
18880 if (obj2) {
18881 ecode3 = SWIG_AsVal_int(obj2, &val3);
18882 if (!SWIG_IsOK(ecode3)) {
18883 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18884 }
18885 arg3 = static_cast< int >(val3);
18886 }
18887 if (obj3) {
36ed4f51 18888 {
1bd55598
RD
18889 arg4 = wxString_in_helper(obj3);
18890 if (arg4 == NULL) SWIG_fail;
18891 temp4 = true;
36ed4f51 18892 }
1bd55598
RD
18893 }
18894 if (obj4) {
36ed4f51 18895 {
1bd55598
RD
18896 arg5 = &temp5;
18897 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 18898 }
1bd55598
RD
18899 }
18900 if (obj5) {
36ed4f51 18901 {
1bd55598
RD
18902 arg6 = &temp6;
18903 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 18904 }
1bd55598
RD
18905 }
18906 if (obj6) {
18907 ecode7 = SWIG_AsVal_long(obj6, &val7);
18908 if (!SWIG_IsOK(ecode7)) {
18909 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18910 }
18911 arg7 = static_cast< long >(val7);
18912 }
18913 if (obj7) {
18914 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18915 if (!SWIG_IsOK(res8)) {
18916 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 18917 }
1bd55598
RD
18918 if (!argp8) {
18919 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 18920 }
1bd55598
RD
18921 arg8 = reinterpret_cast< wxValidator * >(argp8);
18922 }
18923 if (obj8) {
d55e5bfc 18924 {
1bd55598
RD
18925 arg9 = wxString_in_helper(obj8);
18926 if (arg9 == NULL) SWIG_fail;
18927 temp9 = true;
d55e5bfc 18928 }
1bd55598
RD
18929 }
18930 {
18931 PyThreadState* __tstate = wxPyBeginAllowThreads();
18932 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18933 wxPyEndAllowThreads(__tstate);
18934 if (PyErr_Occurred()) SWIG_fail;
18935 }
18936 {
18937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18938 }
18939 {
18940 if (temp4)
18941 delete arg4;
18942 }
18943 {
18944 if (temp9)
18945 delete arg9;
18946 }
18947 return resultobj;
18948fail:
18949 {
18950 if (temp4)
18951 delete arg4;
18952 }
18953 {
18954 if (temp9)
18955 delete arg9;
18956 }
18957 return NULL;
18958}
18959
18960
18961SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18962 PyObject *resultobj = 0;
18963 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18964 bool arg2 ;
18965 void *argp1 = 0 ;
18966 int res1 = 0 ;
18967 bool val2 ;
18968 int ecode2 = 0 ;
18969 PyObject * obj0 = 0 ;
18970 PyObject * obj1 = 0 ;
18971 char * kwnames[] = {
18972 (char *) "self",(char *) "value", NULL
18973 };
18974
18975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18977 if (!SWIG_IsOK(res1)) {
18978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18979 }
18980 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18981 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18982 if (!SWIG_IsOK(ecode2)) {
18983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18984 }
18985 arg2 = static_cast< bool >(val2);
18986 {
18987 PyThreadState* __tstate = wxPyBeginAllowThreads();
18988 (arg1)->SetValue(arg2);
18989 wxPyEndAllowThreads(__tstate);
18990 if (PyErr_Occurred()) SWIG_fail;
18991 }
18992 resultobj = SWIG_Py_Void();
18993 return resultobj;
18994fail:
18995 return NULL;
d55e5bfc
RD
18996}
18997
18998
1bd55598
RD
18999SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19000 PyObject *resultobj = 0;
19001 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
19002 bool result;
19003 void *argp1 = 0 ;
19004 int res1 = 0 ;
19005 PyObject *swig_obj[1] ;
19006
19007 if (!args) SWIG_fail;
19008 swig_obj[0] = args;
19009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
19010 if (!SWIG_IsOK(res1)) {
19011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
19012 }
19013 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
19014 {
19015 PyThreadState* __tstate = wxPyBeginAllowThreads();
19016 result = (bool)((wxToggleButton const *)arg1)->GetValue();
19017 wxPyEndAllowThreads(__tstate);
19018 if (PyErr_Occurred()) SWIG_fail;
19019 }
19020 {
19021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19022 }
19023 return resultobj;
19024fail:
19025 return NULL;
f20a2e1f
RD
19026}
19027
19028
1bd55598
RD
19029SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19030 PyObject *resultobj = 0;
19031 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19032 SwigValueWrapper<wxVisualAttributes > result;
19033 int val1 ;
19034 int ecode1 = 0 ;
19035 PyObject * obj0 = 0 ;
19036 char * kwnames[] = {
19037 (char *) "variant", NULL
19038 };
19039
19040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19041 if (obj0) {
19042 ecode1 = SWIG_AsVal_int(obj0, &val1);
19043 if (!SWIG_IsOK(ecode1)) {
19044 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19045 }
19046 arg1 = static_cast< wxWindowVariant >(val1);
19047 }
19048 {
19049 if (!wxPyCheckForApp()) SWIG_fail;
19050 PyThreadState* __tstate = wxPyBeginAllowThreads();
19051 result = wxToggleButton::GetClassDefaultAttributes(arg1);
19052 wxPyEndAllowThreads(__tstate);
19053 if (PyErr_Occurred()) SWIG_fail;
19054 }
19055 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19056 return resultobj;
19057fail:
19058 return NULL;
d55e5bfc
RD
19059}
19060
19061
1bd55598
RD
19062SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19063 PyObject *obj;
19064 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19065 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
19066 return SWIG_Py_Void();
d55e5bfc
RD
19067}
19068
1bd55598
RD
19069SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19070 return SWIG_Python_InitShadowInstance(args);
19071}
d55e5bfc 19072
1bd55598
RD
19073SWIGINTERN int NotebookNameStr_set(PyObject *) {
19074 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
19075 return 1;
d55e5bfc
RD
19076}
19077
19078
1bd55598
RD
19079SWIGINTERN PyObject *NotebookNameStr_get(void) {
19080 PyObject *pyobj = 0;
19081
19082 {
d55e5bfc 19083#if wxUSE_UNICODE
1bd55598 19084 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19085#else
1bd55598 19086 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 19087#endif
1bd55598
RD
19088 }
19089 return pyobj;
d55e5bfc
RD
19090}
19091
19092
1bd55598
RD
19093SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19094 PyObject *resultobj = 0;
19095 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19096 size_t result;
19097 void *argp1 = 0 ;
19098 int res1 = 0 ;
19099 PyObject *swig_obj[1] ;
19100
19101 if (!args) SWIG_fail;
19102 swig_obj[0] = args;
19103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19104 if (!SWIG_IsOK(res1)) {
19105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19106 }
19107 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19108 {
19109 PyThreadState* __tstate = wxPyBeginAllowThreads();
19110 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
19111 wxPyEndAllowThreads(__tstate);
19112 if (PyErr_Occurred()) SWIG_fail;
19113 }
19114 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
19115 return resultobj;
19116fail:
19117 return NULL;
19118}
19119
19120
19121SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19122 PyObject *resultobj = 0;
19123 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19124 size_t arg2 ;
19125 wxWindow *result = 0 ;
19126 void *argp1 = 0 ;
19127 int res1 = 0 ;
19128 size_t val2 ;
19129 int ecode2 = 0 ;
19130 PyObject * obj0 = 0 ;
19131 PyObject * obj1 = 0 ;
19132 char * kwnames[] = {
19133 (char *) "self",(char *) "n", NULL
19134 };
19135
19136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19138 if (!SWIG_IsOK(res1)) {
19139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19140 }
19141 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19142 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19143 if (!SWIG_IsOK(ecode2)) {
19144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19145 }
19146 arg2 = static_cast< size_t >(val2);
19147 {
19148 PyThreadState* __tstate = wxPyBeginAllowThreads();
19149 result = (wxWindow *)(arg1)->GetPage(arg2);
19150 wxPyEndAllowThreads(__tstate);
19151 if (PyErr_Occurred()) SWIG_fail;
19152 }
19153 {
19154 resultobj = wxPyMake_wxObject(result, 0);
19155 }
19156 return resultobj;
19157fail:
19158 return NULL;
d55e5bfc
RD
19159}
19160
19161
1bd55598
RD
19162SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19163 PyObject *resultobj = 0;
19164 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19165 wxWindow *result = 0 ;
19166 void *argp1 = 0 ;
19167 int res1 = 0 ;
19168 PyObject *swig_obj[1] ;
19169
19170 if (!args) SWIG_fail;
19171 swig_obj[0] = args;
19172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19173 if (!SWIG_IsOK(res1)) {
19174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19175 }
19176 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19177 {
19178 PyThreadState* __tstate = wxPyBeginAllowThreads();
19179 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19180 wxPyEndAllowThreads(__tstate);
19181 if (PyErr_Occurred()) SWIG_fail;
19182 }
19183 {
19184 resultobj = wxPyMake_wxObject(result, 0);
19185 }
19186 return resultobj;
19187fail:
19188 return NULL;
d55e5bfc
RD
19189}
19190
19191
1bd55598
RD
19192SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19193 PyObject *resultobj = 0;
19194 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19195 int result;
19196 void *argp1 = 0 ;
19197 int res1 = 0 ;
19198 PyObject *swig_obj[1] ;
19199
19200 if (!args) SWIG_fail;
19201 swig_obj[0] = args;
19202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19203 if (!SWIG_IsOK(res1)) {
19204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19205 }
19206 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19207 {
19208 PyThreadState* __tstate = wxPyBeginAllowThreads();
19209 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19210 wxPyEndAllowThreads(__tstate);
19211 if (PyErr_Occurred()) SWIG_fail;
19212 }
19213 resultobj = SWIG_From_int(static_cast< int >(result));
19214 return resultobj;
19215fail:
19216 return NULL;
19217}
19218
19219
19220SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19221 PyObject *resultobj = 0;
19222 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19223 size_t arg2 ;
19224 wxString *arg3 = 0 ;
19225 bool result;
19226 void *argp1 = 0 ;
19227 int res1 = 0 ;
19228 size_t val2 ;
19229 int ecode2 = 0 ;
19230 bool temp3 = false ;
19231 PyObject * obj0 = 0 ;
19232 PyObject * obj1 = 0 ;
19233 PyObject * obj2 = 0 ;
19234 char * kwnames[] = {
19235 (char *) "self",(char *) "n",(char *) "strText", NULL
19236 };
19237
19238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19240 if (!SWIG_IsOK(res1)) {
19241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19242 }
19243 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19244 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19245 if (!SWIG_IsOK(ecode2)) {
19246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19247 }
19248 arg2 = static_cast< size_t >(val2);
19249 {
19250 arg3 = wxString_in_helper(obj2);
19251 if (arg3 == NULL) SWIG_fail;
19252 temp3 = true;
19253 }
19254 {
19255 PyThreadState* __tstate = wxPyBeginAllowThreads();
19256 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19257 wxPyEndAllowThreads(__tstate);
19258 if (PyErr_Occurred()) SWIG_fail;
19259 }
19260 {
19261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19262 }
19263 {
19264 if (temp3)
19265 delete arg3;
19266 }
19267 return resultobj;
19268fail:
19269 {
19270 if (temp3)
19271 delete arg3;
19272 }
19273 return NULL;
19274}
19275
19276
19277SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19278 PyObject *resultobj = 0;
19279 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19280 size_t arg2 ;
19281 wxString result;
19282 void *argp1 = 0 ;
19283 int res1 = 0 ;
19284 size_t val2 ;
19285 int ecode2 = 0 ;
19286 PyObject * obj0 = 0 ;
19287 PyObject * obj1 = 0 ;
19288 char * kwnames[] = {
19289 (char *) "self",(char *) "n", NULL
19290 };
19291
19292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19294 if (!SWIG_IsOK(res1)) {
19295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19296 }
19297 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19298 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19299 if (!SWIG_IsOK(ecode2)) {
19300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19301 }
19302 arg2 = static_cast< size_t >(val2);
19303 {
19304 PyThreadState* __tstate = wxPyBeginAllowThreads();
19305 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19306 wxPyEndAllowThreads(__tstate);
19307 if (PyErr_Occurred()) SWIG_fail;
19308 }
19309 {
19310#if wxUSE_UNICODE
19311 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19312#else
19313 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19314#endif
19315 }
19316 return resultobj;
19317fail:
19318 return NULL;
19319}
19320
19321
19322SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19323 PyObject *resultobj = 0;
19324 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19325 wxImageList *arg2 = (wxImageList *) 0 ;
19326 void *argp1 = 0 ;
19327 int res1 = 0 ;
19328 void *argp2 = 0 ;
19329 int res2 = 0 ;
19330 PyObject * obj0 = 0 ;
19331 PyObject * obj1 = 0 ;
19332 char * kwnames[] = {
19333 (char *) "self",(char *) "imageList", NULL
19334 };
19335
19336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19338 if (!SWIG_IsOK(res1)) {
19339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19340 }
19341 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19342 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19343 if (!SWIG_IsOK(res2)) {
19344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19345 }
19346 arg2 = reinterpret_cast< wxImageList * >(argp2);
19347 {
19348 PyThreadState* __tstate = wxPyBeginAllowThreads();
19349 (arg1)->SetImageList(arg2);
19350 wxPyEndAllowThreads(__tstate);
19351 if (PyErr_Occurred()) SWIG_fail;
19352 }
19353 resultobj = SWIG_Py_Void();
19354 return resultobj;
19355fail:
19356 return NULL;
19357}
19358
19359
19360SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19361 PyObject *resultobj = 0;
19362 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19363 wxImageList *arg2 = (wxImageList *) 0 ;
19364 void *argp1 = 0 ;
19365 int res1 = 0 ;
19366 int res2 = 0 ;
19367 PyObject * obj0 = 0 ;
19368 PyObject * obj1 = 0 ;
19369 char * kwnames[] = {
19370 (char *) "self",(char *) "imageList", NULL
19371 };
19372
19373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19375 if (!SWIG_IsOK(res1)) {
19376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19377 }
19378 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19379 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19380 if (!SWIG_IsOK(res2)) {
19381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19382 }
19383 {
19384 PyThreadState* __tstate = wxPyBeginAllowThreads();
19385 (arg1)->AssignImageList(arg2);
19386 wxPyEndAllowThreads(__tstate);
19387 if (PyErr_Occurred()) SWIG_fail;
19388 }
19389 resultobj = SWIG_Py_Void();
19390 return resultobj;
19391fail:
19392 return NULL;
d55e5bfc
RD
19393}
19394
19395
1bd55598
RD
19396SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19397 PyObject *resultobj = 0;
19398 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19399 wxImageList *result = 0 ;
19400 void *argp1 = 0 ;
19401 int res1 = 0 ;
19402 PyObject *swig_obj[1] ;
19403
19404 if (!args) SWIG_fail;
19405 swig_obj[0] = args;
19406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19407 if (!SWIG_IsOK(res1)) {
19408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19409 }
19410 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19411 {
19412 PyThreadState* __tstate = wxPyBeginAllowThreads();
19413 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19414 wxPyEndAllowThreads(__tstate);
19415 if (PyErr_Occurred()) SWIG_fail;
19416 }
3ecece7e
RD
19417 {
19418 resultobj = wxPyMake_wxObject(result, (bool)0);
19419 }
1bd55598
RD
19420 return resultobj;
19421fail:
19422 return NULL;
19423}
19424
19425
19426SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19427 PyObject *resultobj = 0;
19428 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19429 size_t arg2 ;
19430 int result;
19431 void *argp1 = 0 ;
19432 int res1 = 0 ;
19433 size_t val2 ;
19434 int ecode2 = 0 ;
19435 PyObject * obj0 = 0 ;
19436 PyObject * obj1 = 0 ;
19437 char * kwnames[] = {
19438 (char *) "self",(char *) "n", NULL
19439 };
19440
19441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19443 if (!SWIG_IsOK(res1)) {
19444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19445 }
19446 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19447 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19448 if (!SWIG_IsOK(ecode2)) {
19449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19450 }
19451 arg2 = static_cast< size_t >(val2);
19452 {
19453 PyThreadState* __tstate = wxPyBeginAllowThreads();
19454 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19455 wxPyEndAllowThreads(__tstate);
19456 if (PyErr_Occurred()) SWIG_fail;
19457 }
19458 resultobj = SWIG_From_int(static_cast< int >(result));
19459 return resultobj;
19460fail:
19461 return NULL;
19462}
19463
19464
19465SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19466 PyObject *resultobj = 0;
19467 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19468 size_t arg2 ;
19469 int arg3 ;
19470 bool result;
19471 void *argp1 = 0 ;
19472 int res1 = 0 ;
19473 size_t val2 ;
19474 int ecode2 = 0 ;
19475 int val3 ;
19476 int ecode3 = 0 ;
19477 PyObject * obj0 = 0 ;
19478 PyObject * obj1 = 0 ;
19479 PyObject * obj2 = 0 ;
19480 char * kwnames[] = {
19481 (char *) "self",(char *) "n",(char *) "imageId", NULL
19482 };
19483
19484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19486 if (!SWIG_IsOK(res1)) {
19487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19488 }
19489 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19490 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19491 if (!SWIG_IsOK(ecode2)) {
19492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19493 }
19494 arg2 = static_cast< size_t >(val2);
19495 ecode3 = SWIG_AsVal_int(obj2, &val3);
19496 if (!SWIG_IsOK(ecode3)) {
19497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19498 }
19499 arg3 = static_cast< int >(val3);
19500 {
19501 PyThreadState* __tstate = wxPyBeginAllowThreads();
19502 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19503 wxPyEndAllowThreads(__tstate);
19504 if (PyErr_Occurred()) SWIG_fail;
19505 }
19506 {
19507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19508 }
19509 return resultobj;
19510fail:
19511 return NULL;
19512}
19513
19514
19515SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19516 PyObject *resultobj = 0;
19517 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19518 wxSize *arg2 = 0 ;
19519 void *argp1 = 0 ;
19520 int res1 = 0 ;
19521 wxSize temp2 ;
19522 PyObject * obj0 = 0 ;
19523 PyObject * obj1 = 0 ;
19524 char * kwnames[] = {
19525 (char *) "self",(char *) "size", NULL
19526 };
19527
19528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19530 if (!SWIG_IsOK(res1)) {
19531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19532 }
19533 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19534 {
19535 arg2 = &temp2;
19536 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19537 }
19538 {
19539 PyThreadState* __tstate = wxPyBeginAllowThreads();
19540 (arg1)->SetPageSize((wxSize const &)*arg2);
19541 wxPyEndAllowThreads(__tstate);
19542 if (PyErr_Occurred()) SWIG_fail;
19543 }
19544 resultobj = SWIG_Py_Void();
19545 return resultobj;
19546fail:
19547 return NULL;
19548}
19549
19550
19551SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19552 PyObject *resultobj = 0;
19553 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19554 wxSize *arg2 = 0 ;
19555 wxSize result;
19556 void *argp1 = 0 ;
19557 int res1 = 0 ;
19558 wxSize temp2 ;
19559 PyObject * obj0 = 0 ;
19560 PyObject * obj1 = 0 ;
19561 char * kwnames[] = {
19562 (char *) "self",(char *) "sizePage", NULL
19563 };
19564
19565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19567 if (!SWIG_IsOK(res1)) {
19568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19569 }
19570 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19571 {
19572 arg2 = &temp2;
19573 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19574 }
19575 {
19576 PyThreadState* __tstate = wxPyBeginAllowThreads();
19577 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19578 wxPyEndAllowThreads(__tstate);
19579 if (PyErr_Occurred()) SWIG_fail;
19580 }
19581 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19582 return resultobj;
19583fail:
19584 return NULL;
d55e5bfc
RD
19585}
19586
19587
1bd55598
RD
19588SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19589 PyObject *resultobj = 0;
19590 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19591 unsigned int result;
1bd55598
RD
19592 void *argp1 = 0 ;
19593 int res1 = 0 ;
19594 PyObject *swig_obj[1] ;
19595
19596 if (!args) SWIG_fail;
19597 swig_obj[0] = args;
19598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19599 if (!SWIG_IsOK(res1)) {
19600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19601 }
19602 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19603 {
19604 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19605 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
1bd55598
RD
19606 wxPyEndAllowThreads(__tstate);
19607 if (PyErr_Occurred()) SWIG_fail;
19608 }
e9d6f3a4 19609 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
19610 return resultobj;
19611fail:
19612 return NULL;
19613}
19614
19615
19616SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19617 PyObject *resultobj = 0;
19618 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19619 unsigned int arg2 ;
1bd55598
RD
19620 void *argp1 = 0 ;
19621 int res1 = 0 ;
e9d6f3a4 19622 unsigned int val2 ;
1bd55598
RD
19623 int ecode2 = 0 ;
19624 PyObject * obj0 = 0 ;
19625 PyObject * obj1 = 0 ;
19626 char * kwnames[] = {
19627 (char *) "self",(char *) "internalBorder", NULL
19628 };
19629
19630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19632 if (!SWIG_IsOK(res1)) {
19633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19634 }
19635 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19636 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 19637 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 19639 }
e9d6f3a4 19640 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
19641 {
19642 PyThreadState* __tstate = wxPyBeginAllowThreads();
19643 (arg1)->SetInternalBorder(arg2);
19644 wxPyEndAllowThreads(__tstate);
19645 if (PyErr_Occurred()) SWIG_fail;
19646 }
19647 resultobj = SWIG_Py_Void();
19648 return resultobj;
19649fail:
19650 return NULL;
d55e5bfc
RD
19651}
19652
19653
1bd55598
RD
19654SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19655 PyObject *resultobj = 0;
19656 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19657 bool result;
19658 void *argp1 = 0 ;
19659 int res1 = 0 ;
19660 PyObject *swig_obj[1] ;
19661
19662 if (!args) SWIG_fail;
19663 swig_obj[0] = args;
19664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19665 if (!SWIG_IsOK(res1)) {
19666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19667 }
19668 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19669 {
19670 PyThreadState* __tstate = wxPyBeginAllowThreads();
19671 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19672 wxPyEndAllowThreads(__tstate);
19673 if (PyErr_Occurred()) SWIG_fail;
19674 }
19675 {
19676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19677 }
19678 return resultobj;
19679fail:
19680 return NULL;
19681}
19682
19683
e9d6f3a4
RD
19684SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19685 PyObject *resultobj = 0;
19686 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19687 int arg2 ;
19688 void *argp1 = 0 ;
19689 int res1 = 0 ;
19690 int val2 ;
19691 int ecode2 = 0 ;
19692 PyObject * obj0 = 0 ;
19693 PyObject * obj1 = 0 ;
19694 char * kwnames[] = {
19695 (char *) "self",(char *) "margin", NULL
19696 };
19697
19698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19700 if (!SWIG_IsOK(res1)) {
19701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19702 }
19703 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19704 ecode2 = SWIG_AsVal_int(obj1, &val2);
19705 if (!SWIG_IsOK(ecode2)) {
19706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19707 }
19708 arg2 = static_cast< int >(val2);
19709 {
19710 PyThreadState* __tstate = wxPyBeginAllowThreads();
19711 (arg1)->SetControlMargin(arg2);
19712 wxPyEndAllowThreads(__tstate);
19713 if (PyErr_Occurred()) SWIG_fail;
19714 }
19715 resultobj = SWIG_Py_Void();
19716 return resultobj;
19717fail:
19718 return NULL;
19719}
19720
19721
19722SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19723 PyObject *resultobj = 0;
19724 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19725 int result;
19726 void *argp1 = 0 ;
19727 int res1 = 0 ;
19728 PyObject *swig_obj[1] ;
19729
19730 if (!args) SWIG_fail;
19731 swig_obj[0] = args;
19732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19733 if (!SWIG_IsOK(res1)) {
19734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19735 }
19736 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19737 {
19738 PyThreadState* __tstate = wxPyBeginAllowThreads();
19739 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19740 wxPyEndAllowThreads(__tstate);
19741 if (PyErr_Occurred()) SWIG_fail;
19742 }
19743 resultobj = SWIG_From_int(static_cast< int >(result));
19744 return resultobj;
19745fail:
19746 return NULL;
19747}
19748
19749
1bd55598
RD
19750SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19751 PyObject *resultobj = 0;
19752 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19753 bool arg2 ;
19754 void *argp1 = 0 ;
19755 int res1 = 0 ;
19756 bool val2 ;
19757 int ecode2 = 0 ;
19758 PyObject * obj0 = 0 ;
19759 PyObject * obj1 = 0 ;
19760 char * kwnames[] = {
19761 (char *) "self",(char *) "fit", NULL
19762 };
19763
19764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19766 if (!SWIG_IsOK(res1)) {
19767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19768 }
19769 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19770 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19771 if (!SWIG_IsOK(ecode2)) {
19772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19773 }
19774 arg2 = static_cast< bool >(val2);
19775 {
19776 PyThreadState* __tstate = wxPyBeginAllowThreads();
19777 (arg1)->SetFitToCurrentPage(arg2);
19778 wxPyEndAllowThreads(__tstate);
19779 if (PyErr_Occurred()) SWIG_fail;
19780 }
19781 resultobj = SWIG_Py_Void();
19782 return resultobj;
19783fail:
19784 return NULL;
d55e5bfc
RD
19785}
19786
19787
1bd55598
RD
19788SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19789 PyObject *resultobj = 0;
19790 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19791 bool result;
19792 void *argp1 = 0 ;
19793 int res1 = 0 ;
19794 PyObject *swig_obj[1] ;
19795
19796 if (!args) SWIG_fail;
19797 swig_obj[0] = args;
19798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19799 if (!SWIG_IsOK(res1)) {
19800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19801 }
19802 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19803 {
19804 PyThreadState* __tstate = wxPyBeginAllowThreads();
19805 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19806 wxPyEndAllowThreads(__tstate);
19807 if (PyErr_Occurred()) SWIG_fail;
19808 }
19809 {
19810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19811 }
19812 return resultobj;
19813fail:
19814 return NULL;
19815}
19816
19817
e9d6f3a4
RD
19818SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19819 PyObject *resultobj = 0;
19820 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19821 wxSizer *result = 0 ;
19822 void *argp1 = 0 ;
19823 int res1 = 0 ;
19824 PyObject *swig_obj[1] ;
19825
19826 if (!args) SWIG_fail;
19827 swig_obj[0] = args;
19828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19829 if (!SWIG_IsOK(res1)) {
19830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19831 }
19832 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19833 {
19834 PyThreadState* __tstate = wxPyBeginAllowThreads();
19835 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19836 wxPyEndAllowThreads(__tstate);
19837 if (PyErr_Occurred()) SWIG_fail;
19838 }
19839 {
19840 resultobj = wxPyMake_wxObject(result, (bool)0);
19841 }
19842 return resultobj;
19843fail:
19844 return NULL;
19845}
19846
19847
1bd55598
RD
19848SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19849 PyObject *resultobj = 0;
19850 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19851 size_t arg2 ;
19852 bool result;
19853 void *argp1 = 0 ;
19854 int res1 = 0 ;
19855 size_t val2 ;
19856 int ecode2 = 0 ;
19857 PyObject * obj0 = 0 ;
19858 PyObject * obj1 = 0 ;
19859 char * kwnames[] = {
19860 (char *) "self",(char *) "n", NULL
19861 };
19862
19863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19865 if (!SWIG_IsOK(res1)) {
19866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19867 }
19868 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19869 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19870 if (!SWIG_IsOK(ecode2)) {
19871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19872 }
19873 arg2 = static_cast< size_t >(val2);
19874 {
19875 PyThreadState* __tstate = wxPyBeginAllowThreads();
19876 result = (bool)(arg1)->DeletePage(arg2);
19877 wxPyEndAllowThreads(__tstate);
19878 if (PyErr_Occurred()) SWIG_fail;
19879 }
19880 {
19881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19882 }
19883 return resultobj;
19884fail:
19885 return NULL;
19886}
19887
19888
19889SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19890 PyObject *resultobj = 0;
19891 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19892 size_t arg2 ;
19893 bool result;
19894 void *argp1 = 0 ;
19895 int res1 = 0 ;
19896 size_t val2 ;
19897 int ecode2 = 0 ;
19898 PyObject * obj0 = 0 ;
19899 PyObject * obj1 = 0 ;
19900 char * kwnames[] = {
19901 (char *) "self",(char *) "n", NULL
19902 };
19903
19904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19906 if (!SWIG_IsOK(res1)) {
19907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19908 }
19909 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19910 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19911 if (!SWIG_IsOK(ecode2)) {
19912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19913 }
19914 arg2 = static_cast< size_t >(val2);
19915 {
19916 PyThreadState* __tstate = wxPyBeginAllowThreads();
19917 result = (bool)(arg1)->RemovePage(arg2);
19918 wxPyEndAllowThreads(__tstate);
19919 if (PyErr_Occurred()) SWIG_fail;
19920 }
19921 {
19922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19923 }
19924 return resultobj;
19925fail:
19926 return NULL;
f20a2e1f
RD
19927}
19928
19929
1bd55598
RD
19930SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19931 PyObject *resultobj = 0;
19932 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19933 bool result;
19934 void *argp1 = 0 ;
19935 int res1 = 0 ;
19936 PyObject *swig_obj[1] ;
19937
19938 if (!args) SWIG_fail;
19939 swig_obj[0] = args;
19940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19941 if (!SWIG_IsOK(res1)) {
19942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19943 }
19944 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19945 {
19946 PyThreadState* __tstate = wxPyBeginAllowThreads();
19947 result = (bool)(arg1)->DeleteAllPages();
19948 wxPyEndAllowThreads(__tstate);
19949 if (PyErr_Occurred()) SWIG_fail;
19950 }
19951 {
19952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19953 }
19954 return resultobj;
19955fail:
19956 return NULL;
19957}
19958
19959
19960SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19961 PyObject *resultobj = 0;
19962 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19963 wxWindow *arg2 = (wxWindow *) 0 ;
19964 wxString *arg3 = 0 ;
19965 bool arg4 = (bool) false ;
19966 int arg5 = (int) -1 ;
19967 bool result;
19968 void *argp1 = 0 ;
19969 int res1 = 0 ;
19970 void *argp2 = 0 ;
19971 int res2 = 0 ;
19972 bool temp3 = false ;
19973 bool val4 ;
19974 int ecode4 = 0 ;
19975 int val5 ;
19976 int ecode5 = 0 ;
19977 PyObject * obj0 = 0 ;
19978 PyObject * obj1 = 0 ;
19979 PyObject * obj2 = 0 ;
19980 PyObject * obj3 = 0 ;
19981 PyObject * obj4 = 0 ;
19982 char * kwnames[] = {
19983 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19984 };
19985
19986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19988 if (!SWIG_IsOK(res1)) {
19989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19990 }
19991 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19992 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19993 if (!SWIG_IsOK(res2)) {
19994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19995 }
19996 arg2 = reinterpret_cast< wxWindow * >(argp2);
19997 {
19998 arg3 = wxString_in_helper(obj2);
19999 if (arg3 == NULL) SWIG_fail;
20000 temp3 = true;
20001 }
20002 if (obj3) {
20003 ecode4 = SWIG_AsVal_bool(obj3, &val4);
20004 if (!SWIG_IsOK(ecode4)) {
20005 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
20006 }
20007 arg4 = static_cast< bool >(val4);
20008 }
20009 if (obj4) {
20010 ecode5 = SWIG_AsVal_int(obj4, &val5);
20011 if (!SWIG_IsOK(ecode5)) {
20012 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
20013 }
20014 arg5 = static_cast< int >(val5);
20015 }
20016 {
20017 PyThreadState* __tstate = wxPyBeginAllowThreads();
20018 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
20019 wxPyEndAllowThreads(__tstate);
20020 if (PyErr_Occurred()) SWIG_fail;
20021 }
20022 {
20023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20024 }
20025 {
20026 if (temp3)
20027 delete arg3;
20028 }
20029 return resultobj;
20030fail:
20031 {
20032 if (temp3)
20033 delete arg3;
20034 }
20035 return NULL;
20036}
20037
20038
20039SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20040 PyObject *resultobj = 0;
20041 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20042 size_t arg2 ;
20043 wxWindow *arg3 = (wxWindow *) 0 ;
20044 wxString *arg4 = 0 ;
20045 bool arg5 = (bool) false ;
20046 int arg6 = (int) -1 ;
20047 bool result;
20048 void *argp1 = 0 ;
20049 int res1 = 0 ;
20050 size_t val2 ;
20051 int ecode2 = 0 ;
20052 void *argp3 = 0 ;
20053 int res3 = 0 ;
20054 bool temp4 = false ;
20055 bool val5 ;
20056 int ecode5 = 0 ;
20057 int val6 ;
20058 int ecode6 = 0 ;
20059 PyObject * obj0 = 0 ;
20060 PyObject * obj1 = 0 ;
20061 PyObject * obj2 = 0 ;
20062 PyObject * obj3 = 0 ;
20063 PyObject * obj4 = 0 ;
20064 PyObject * obj5 = 0 ;
20065 char * kwnames[] = {
20066 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
20067 };
20068
20069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20071 if (!SWIG_IsOK(res1)) {
20072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20073 }
20074 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20075 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20076 if (!SWIG_IsOK(ecode2)) {
20077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
20078 }
20079 arg2 = static_cast< size_t >(val2);
20080 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
20081 if (!SWIG_IsOK(res3)) {
20082 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
20083 }
20084 arg3 = reinterpret_cast< wxWindow * >(argp3);
20085 {
20086 arg4 = wxString_in_helper(obj3);
20087 if (arg4 == NULL) SWIG_fail;
20088 temp4 = true;
20089 }
20090 if (obj4) {
20091 ecode5 = SWIG_AsVal_bool(obj4, &val5);
20092 if (!SWIG_IsOK(ecode5)) {
20093 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
20094 }
20095 arg5 = static_cast< bool >(val5);
20096 }
20097 if (obj5) {
20098 ecode6 = SWIG_AsVal_int(obj5, &val6);
20099 if (!SWIG_IsOK(ecode6)) {
20100 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
20101 }
20102 arg6 = static_cast< int >(val6);
20103 }
20104 {
20105 PyThreadState* __tstate = wxPyBeginAllowThreads();
20106 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
20107 wxPyEndAllowThreads(__tstate);
20108 if (PyErr_Occurred()) SWIG_fail;
20109 }
20110 {
20111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20112 }
20113 {
20114 if (temp4)
20115 delete arg4;
20116 }
20117 return resultobj;
20118fail:
20119 {
20120 if (temp4)
20121 delete arg4;
20122 }
20123 return NULL;
20124}
20125
20126
20127SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20128 PyObject *resultobj = 0;
20129 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20130 size_t arg2 ;
20131 int result;
20132 void *argp1 = 0 ;
20133 int res1 = 0 ;
20134 size_t val2 ;
20135 int ecode2 = 0 ;
20136 PyObject * obj0 = 0 ;
20137 PyObject * obj1 = 0 ;
20138 char * kwnames[] = {
20139 (char *) "self",(char *) "n", NULL
20140 };
20141
20142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20144 if (!SWIG_IsOK(res1)) {
20145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20146 }
20147 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20148 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20149 if (!SWIG_IsOK(ecode2)) {
20150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20151 }
20152 arg2 = static_cast< size_t >(val2);
20153 {
20154 PyThreadState* __tstate = wxPyBeginAllowThreads();
20155 result = (int)(arg1)->SetSelection(arg2);
20156 wxPyEndAllowThreads(__tstate);
20157 if (PyErr_Occurred()) SWIG_fail;
20158 }
20159 resultobj = SWIG_From_int(static_cast< int >(result));
20160 return resultobj;
20161fail:
20162 return NULL;
20163}
20164
20165
b39fe951
RD
20166SWIGINTERN PyObject *_wrap_BookCtrlBase_ChangeSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20167 PyObject *resultobj = 0;
20168 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20169 size_t arg2 ;
20170 int result;
20171 void *argp1 = 0 ;
20172 int res1 = 0 ;
20173 size_t val2 ;
20174 int ecode2 = 0 ;
20175 PyObject * obj0 = 0 ;
20176 PyObject * obj1 = 0 ;
20177 char * kwnames[] = {
20178 (char *) "self",(char *) "n", NULL
20179 };
20180
20181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_ChangeSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20183 if (!SWIG_IsOK(res1)) {
20184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20185 }
20186 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20187 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20188 if (!SWIG_IsOK(ecode2)) {
20189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_ChangeSelection" "', expected argument " "2"" of type '" "size_t""'");
20190 }
20191 arg2 = static_cast< size_t >(val2);
20192 {
20193 PyThreadState* __tstate = wxPyBeginAllowThreads();
20194 result = (int)(arg1)->ChangeSelection(arg2);
20195 wxPyEndAllowThreads(__tstate);
20196 if (PyErr_Occurred()) SWIG_fail;
20197 }
20198 resultobj = SWIG_From_int(static_cast< int >(result));
20199 return resultobj;
20200fail:
20201 return NULL;
20202}
20203
20204
1bd55598
RD
20205SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20206 PyObject *resultobj = 0;
20207 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20208 bool arg2 = (bool) true ;
20209 void *argp1 = 0 ;
20210 int res1 = 0 ;
20211 bool val2 ;
20212 int ecode2 = 0 ;
20213 PyObject * obj0 = 0 ;
20214 PyObject * obj1 = 0 ;
20215 char * kwnames[] = {
20216 (char *) "self",(char *) "forward", NULL
20217 };
20218
20219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20221 if (!SWIG_IsOK(res1)) {
20222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20223 }
20224 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20225 if (obj1) {
20226 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20227 if (!SWIG_IsOK(ecode2)) {
20228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20229 }
20230 arg2 = static_cast< bool >(val2);
20231 }
20232 {
20233 PyThreadState* __tstate = wxPyBeginAllowThreads();
20234 (arg1)->AdvanceSelection(arg2);
20235 wxPyEndAllowThreads(__tstate);
20236 if (PyErr_Occurred()) SWIG_fail;
20237 }
20238 resultobj = SWIG_Py_Void();
20239 return resultobj;
20240fail:
20241 return NULL;
20242}
20243
20244
704eda0c
RD
20245SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20246 PyObject *resultobj = 0;
20247 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20248 wxPoint *arg2 = 0 ;
20249 long *arg3 = (long *) 0 ;
20250 int result;
20251 void *argp1 = 0 ;
20252 int res1 = 0 ;
20253 wxPoint temp2 ;
20254 long temp3 ;
20255 int res3 = SWIG_TMPOBJ ;
20256 PyObject * obj0 = 0 ;
20257 PyObject * obj1 = 0 ;
20258 char * kwnames[] = {
20259 (char *) "self",(char *) "pt", NULL
20260 };
20261
20262 arg3 = &temp3;
20263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20265 if (!SWIG_IsOK(res1)) {
20266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20267 }
20268 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20269 {
20270 arg2 = &temp2;
20271 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20272 }
20273 {
20274 PyThreadState* __tstate = wxPyBeginAllowThreads();
20275 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20276 wxPyEndAllowThreads(__tstate);
20277 if (PyErr_Occurred()) SWIG_fail;
20278 }
20279 resultobj = SWIG_From_int(static_cast< int >(result));
20280 if (SWIG_IsTmpObj(res3)) {
20281 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20282 } else {
20283 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20284 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20285 }
20286 return resultobj;
20287fail:
20288 return NULL;
20289}
20290
20291
1bd55598
RD
20292SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20293 PyObject *resultobj = 0;
20294 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20295 SwigValueWrapper<wxVisualAttributes > result;
20296 int val1 ;
20297 int ecode1 = 0 ;
20298 PyObject * obj0 = 0 ;
20299 char * kwnames[] = {
20300 (char *) "variant", NULL
20301 };
20302
20303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20304 if (obj0) {
20305 ecode1 = SWIG_AsVal_int(obj0, &val1);
20306 if (!SWIG_IsOK(ecode1)) {
20307 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20308 }
20309 arg1 = static_cast< wxWindowVariant >(val1);
20310 }
20311 {
20312 if (!wxPyCheckForApp()) SWIG_fail;
20313 PyThreadState* __tstate = wxPyBeginAllowThreads();
20314 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20315 wxPyEndAllowThreads(__tstate);
20316 if (PyErr_Occurred()) SWIG_fail;
20317 }
20318 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20319 return resultobj;
20320fail:
20321 return NULL;
20322}
20323
20324
20325SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20326 PyObject *obj;
20327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20328 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20329 return SWIG_Py_Void();
20330}
20331
20332SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20333 PyObject *resultobj = 0;
20334 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20335 int arg2 = (int) 0 ;
20336 int arg3 = (int) -1 ;
20337 int arg4 = (int) -1 ;
20338 wxBookCtrlBaseEvent *result = 0 ;
20339 int val1 ;
20340 int ecode1 = 0 ;
20341 int val2 ;
20342 int ecode2 = 0 ;
20343 int val3 ;
20344 int ecode3 = 0 ;
20345 int val4 ;
20346 int ecode4 = 0 ;
20347 PyObject * obj0 = 0 ;
20348 PyObject * obj1 = 0 ;
20349 PyObject * obj2 = 0 ;
20350 PyObject * obj3 = 0 ;
20351 char * kwnames[] = {
20352 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20353 };
20354
20355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20356 if (obj0) {
20357 ecode1 = SWIG_AsVal_int(obj0, &val1);
20358 if (!SWIG_IsOK(ecode1)) {
20359 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20360 }
20361 arg1 = static_cast< wxEventType >(val1);
20362 }
20363 if (obj1) {
20364 ecode2 = SWIG_AsVal_int(obj1, &val2);
20365 if (!SWIG_IsOK(ecode2)) {
20366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20367 }
20368 arg2 = static_cast< int >(val2);
20369 }
20370 if (obj2) {
20371 ecode3 = SWIG_AsVal_int(obj2, &val3);
20372 if (!SWIG_IsOK(ecode3)) {
20373 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20374 }
20375 arg3 = static_cast< int >(val3);
20376 }
20377 if (obj3) {
20378 ecode4 = SWIG_AsVal_int(obj3, &val4);
20379 if (!SWIG_IsOK(ecode4)) {
20380 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20381 }
20382 arg4 = static_cast< int >(val4);
20383 }
20384 {
20385 PyThreadState* __tstate = wxPyBeginAllowThreads();
20386 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20387 wxPyEndAllowThreads(__tstate);
20388 if (PyErr_Occurred()) SWIG_fail;
20389 }
20390 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20391 return resultobj;
20392fail:
20393 return NULL;
d55e5bfc
RD
20394}
20395
20396
1bd55598
RD
20397SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20398 PyObject *resultobj = 0;
20399 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20400 int result;
20401 void *argp1 = 0 ;
20402 int res1 = 0 ;
20403 PyObject *swig_obj[1] ;
20404
20405 if (!args) SWIG_fail;
20406 swig_obj[0] = args;
20407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20408 if (!SWIG_IsOK(res1)) {
20409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20410 }
20411 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20412 {
20413 PyThreadState* __tstate = wxPyBeginAllowThreads();
20414 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20415 wxPyEndAllowThreads(__tstate);
20416 if (PyErr_Occurred()) SWIG_fail;
20417 }
20418 resultobj = SWIG_From_int(static_cast< int >(result));
20419 return resultobj;
20420fail:
20421 return NULL;
20422}
20423
20424
20425SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20426 PyObject *resultobj = 0;
20427 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20428 int arg2 ;
20429 void *argp1 = 0 ;
20430 int res1 = 0 ;
20431 int val2 ;
20432 int ecode2 = 0 ;
20433 PyObject * obj0 = 0 ;
20434 PyObject * obj1 = 0 ;
20435 char * kwnames[] = {
20436 (char *) "self",(char *) "nSel", NULL
20437 };
20438
20439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20441 if (!SWIG_IsOK(res1)) {
20442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20443 }
20444 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20445 ecode2 = SWIG_AsVal_int(obj1, &val2);
20446 if (!SWIG_IsOK(ecode2)) {
20447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20448 }
20449 arg2 = static_cast< int >(val2);
20450 {
20451 PyThreadState* __tstate = wxPyBeginAllowThreads();
20452 (arg1)->SetSelection(arg2);
20453 wxPyEndAllowThreads(__tstate);
20454 if (PyErr_Occurred()) SWIG_fail;
20455 }
20456 resultobj = SWIG_Py_Void();
20457 return resultobj;
20458fail:
20459 return NULL;
d55e5bfc
RD
20460}
20461
20462
1bd55598
RD
20463SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20464 PyObject *resultobj = 0;
20465 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20466 int result;
20467 void *argp1 = 0 ;
20468 int res1 = 0 ;
20469 PyObject *swig_obj[1] ;
20470
20471 if (!args) SWIG_fail;
20472 swig_obj[0] = args;
20473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20474 if (!SWIG_IsOK(res1)) {
20475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20476 }
20477 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20478 {
20479 PyThreadState* __tstate = wxPyBeginAllowThreads();
20480 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20481 wxPyEndAllowThreads(__tstate);
20482 if (PyErr_Occurred()) SWIG_fail;
20483 }
20484 resultobj = SWIG_From_int(static_cast< int >(result));
20485 return resultobj;
20486fail:
20487 return NULL;
20488}
20489
20490
20491SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20492 PyObject *resultobj = 0;
20493 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20494 int arg2 ;
20495 void *argp1 = 0 ;
20496 int res1 = 0 ;
20497 int val2 ;
20498 int ecode2 = 0 ;
20499 PyObject * obj0 = 0 ;
20500 PyObject * obj1 = 0 ;
20501 char * kwnames[] = {
20502 (char *) "self",(char *) "nOldSel", NULL
20503 };
20504
20505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20507 if (!SWIG_IsOK(res1)) {
20508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20509 }
20510 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20511 ecode2 = SWIG_AsVal_int(obj1, &val2);
20512 if (!SWIG_IsOK(ecode2)) {
20513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20514 }
20515 arg2 = static_cast< int >(val2);
20516 {
20517 PyThreadState* __tstate = wxPyBeginAllowThreads();
20518 (arg1)->SetOldSelection(arg2);
20519 wxPyEndAllowThreads(__tstate);
20520 if (PyErr_Occurred()) SWIG_fail;
20521 }
20522 resultobj = SWIG_Py_Void();
20523 return resultobj;
20524fail:
20525 return NULL;
20526}
20527
20528
20529SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20530 PyObject *obj;
20531 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20532 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20533 return SWIG_Py_Void();
20534}
20535
20536SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20537 return SWIG_Python_InitShadowInstance(args);
20538}
20539
20540SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20541 PyObject *resultobj = 0;
20542 wxWindow *arg1 = (wxWindow *) 0 ;
20543 int arg2 = (int) -1 ;
20544 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20545 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20546 wxSize const &arg4_defvalue = wxDefaultSize ;
20547 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20548 long arg5 = (long) 0 ;
20549 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20550 wxString *arg6 = (wxString *) &arg6_defvalue ;
20551 wxNotebook *result = 0 ;
20552 void *argp1 = 0 ;
20553 int res1 = 0 ;
20554 int val2 ;
20555 int ecode2 = 0 ;
20556 wxPoint temp3 ;
20557 wxSize temp4 ;
20558 long val5 ;
20559 int ecode5 = 0 ;
20560 bool temp6 = false ;
20561 PyObject * obj0 = 0 ;
20562 PyObject * obj1 = 0 ;
20563 PyObject * obj2 = 0 ;
20564 PyObject * obj3 = 0 ;
20565 PyObject * obj4 = 0 ;
20566 PyObject * obj5 = 0 ;
20567 char * kwnames[] = {
20568 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20569 };
20570
20571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20573 if (!SWIG_IsOK(res1)) {
20574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20575 }
20576 arg1 = reinterpret_cast< wxWindow * >(argp1);
20577 if (obj1) {
20578 ecode2 = SWIG_AsVal_int(obj1, &val2);
20579 if (!SWIG_IsOK(ecode2)) {
20580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20581 }
20582 arg2 = static_cast< int >(val2);
20583 }
20584 if (obj2) {
20585 {
20586 arg3 = &temp3;
20587 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 20588 }
1bd55598
RD
20589 }
20590 if (obj3) {
d55e5bfc 20591 {
1bd55598
RD
20592 arg4 = &temp4;
20593 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20594 }
1bd55598
RD
20595 }
20596 if (obj4) {
20597 ecode5 = SWIG_AsVal_long(obj4, &val5);
20598 if (!SWIG_IsOK(ecode5)) {
20599 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20600 }
20601 arg5 = static_cast< long >(val5);
20602 }
20603 if (obj5) {
d55e5bfc 20604 {
1bd55598
RD
20605 arg6 = wxString_in_helper(obj5);
20606 if (arg6 == NULL) SWIG_fail;
20607 temp6 = true;
d55e5bfc 20608 }
1bd55598
RD
20609 }
20610 {
20611 if (!wxPyCheckForApp()) SWIG_fail;
20612 PyThreadState* __tstate = wxPyBeginAllowThreads();
20613 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20614 wxPyEndAllowThreads(__tstate);
20615 if (PyErr_Occurred()) SWIG_fail;
20616 }
20617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20618 {
20619 if (temp6)
20620 delete arg6;
20621 }
20622 return resultobj;
20623fail:
20624 {
20625 if (temp6)
20626 delete arg6;
20627 }
20628 return NULL;
20629}
20630
20631
20632SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20633 PyObject *resultobj = 0;
20634 wxNotebook *result = 0 ;
20635
20636 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20637 {
20638 if (!wxPyCheckForApp()) SWIG_fail;
20639 PyThreadState* __tstate = wxPyBeginAllowThreads();
20640 result = (wxNotebook *)new wxNotebook();
20641 wxPyEndAllowThreads(__tstate);
20642 if (PyErr_Occurred()) SWIG_fail;
20643 }
20644 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20645 return resultobj;
20646fail:
20647 return NULL;
20648}
20649
20650
20651SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20652 PyObject *resultobj = 0;
20653 wxNotebook *arg1 = (wxNotebook *) 0 ;
20654 wxWindow *arg2 = (wxWindow *) 0 ;
20655 int arg3 = (int) -1 ;
20656 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20657 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20658 wxSize const &arg5_defvalue = wxDefaultSize ;
20659 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20660 long arg6 = (long) 0 ;
20661 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20662 wxString *arg7 = (wxString *) &arg7_defvalue ;
20663 bool result;
20664 void *argp1 = 0 ;
20665 int res1 = 0 ;
20666 void *argp2 = 0 ;
20667 int res2 = 0 ;
20668 int val3 ;
20669 int ecode3 = 0 ;
20670 wxPoint temp4 ;
20671 wxSize temp5 ;
20672 long val6 ;
20673 int ecode6 = 0 ;
20674 bool temp7 = false ;
20675 PyObject * obj0 = 0 ;
20676 PyObject * obj1 = 0 ;
20677 PyObject * obj2 = 0 ;
20678 PyObject * obj3 = 0 ;
20679 PyObject * obj4 = 0 ;
20680 PyObject * obj5 = 0 ;
20681 PyObject * obj6 = 0 ;
20682 char * kwnames[] = {
20683 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20684 };
20685
20686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20688 if (!SWIG_IsOK(res1)) {
20689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20690 }
20691 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20692 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20693 if (!SWIG_IsOK(res2)) {
20694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20695 }
20696 arg2 = reinterpret_cast< wxWindow * >(argp2);
20697 if (obj2) {
20698 ecode3 = SWIG_AsVal_int(obj2, &val3);
20699 if (!SWIG_IsOK(ecode3)) {
20700 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20701 }
20702 arg3 = static_cast< int >(val3);
20703 }
20704 if (obj3) {
d55e5bfc 20705 {
1bd55598
RD
20706 arg4 = &temp4;
20707 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20708 }
1bd55598
RD
20709 }
20710 if (obj4) {
d55e5bfc 20711 {
1bd55598
RD
20712 arg5 = &temp5;
20713 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 20714 }
1bd55598
RD
20715 }
20716 if (obj5) {
20717 ecode6 = SWIG_AsVal_long(obj5, &val6);
20718 if (!SWIG_IsOK(ecode6)) {
20719 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20720 }
20721 arg6 = static_cast< long >(val6);
20722 }
20723 if (obj6) {
d55e5bfc 20724 {
1bd55598
RD
20725 arg7 = wxString_in_helper(obj6);
20726 if (arg7 == NULL) SWIG_fail;
20727 temp7 = true;
d55e5bfc 20728 }
1bd55598
RD
20729 }
20730 {
20731 PyThreadState* __tstate = wxPyBeginAllowThreads();
20732 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20733 wxPyEndAllowThreads(__tstate);
20734 if (PyErr_Occurred()) SWIG_fail;
20735 }
20736 {
20737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20738 }
20739 {
20740 if (temp7)
20741 delete arg7;
20742 }
20743 return resultobj;
20744fail:
20745 {
20746 if (temp7)
20747 delete arg7;
20748 }
20749 return NULL;
d55e5bfc
RD
20750}
20751
20752
1bd55598
RD
20753SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20754 PyObject *resultobj = 0;
20755 wxNotebook *arg1 = (wxNotebook *) 0 ;
20756 int result;
20757 void *argp1 = 0 ;
20758 int res1 = 0 ;
20759 PyObject *swig_obj[1] ;
20760
20761 if (!args) SWIG_fail;
20762 swig_obj[0] = args;
20763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20764 if (!SWIG_IsOK(res1)) {
20765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20766 }
20767 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20768 {
20769 PyThreadState* __tstate = wxPyBeginAllowThreads();
20770 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20771 wxPyEndAllowThreads(__tstate);
20772 if (PyErr_Occurred()) SWIG_fail;
20773 }
20774 resultobj = SWIG_From_int(static_cast< int >(result));
20775 return resultobj;
20776fail:
20777 return NULL;
20778}
20779
20780
20781SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20782 PyObject *resultobj = 0;
20783 wxNotebook *arg1 = (wxNotebook *) 0 ;
20784 wxSize *arg2 = 0 ;
20785 void *argp1 = 0 ;
20786 int res1 = 0 ;
20787 wxSize temp2 ;
20788 PyObject * obj0 = 0 ;
20789 PyObject * obj1 = 0 ;
20790 char * kwnames[] = {
20791 (char *) "self",(char *) "padding", NULL
20792 };
20793
20794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20796 if (!SWIG_IsOK(res1)) {
20797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20798 }
20799 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20800 {
20801 arg2 = &temp2;
20802 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20803 }
20804 {
20805 PyThreadState* __tstate = wxPyBeginAllowThreads();
20806 (arg1)->SetPadding((wxSize const &)*arg2);
20807 wxPyEndAllowThreads(__tstate);
20808 if (PyErr_Occurred()) SWIG_fail;
20809 }
20810 resultobj = SWIG_Py_Void();
20811 return resultobj;
20812fail:
20813 return NULL;
20814}
20815
20816
20817SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20818 PyObject *resultobj = 0;
20819 wxNotebook *arg1 = (wxNotebook *) 0 ;
20820 wxSize *arg2 = 0 ;
20821 void *argp1 = 0 ;
20822 int res1 = 0 ;
20823 wxSize temp2 ;
20824 PyObject * obj0 = 0 ;
20825 PyObject * obj1 = 0 ;
20826 char * kwnames[] = {
20827 (char *) "self",(char *) "sz", NULL
20828 };
20829
20830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20832 if (!SWIG_IsOK(res1)) {
20833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20834 }
20835 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20836 {
20837 arg2 = &temp2;
20838 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20839 }
20840 {
20841 PyThreadState* __tstate = wxPyBeginAllowThreads();
20842 (arg1)->SetTabSize((wxSize const &)*arg2);
20843 wxPyEndAllowThreads(__tstate);
20844 if (PyErr_Occurred()) SWIG_fail;
20845 }
20846 resultobj = SWIG_Py_Void();
20847 return resultobj;
20848fail:
20849 return NULL;
20850}
20851
20852
1bd55598
RD
20853SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20854 PyObject *resultobj = 0;
20855 wxNotebook *arg1 = (wxNotebook *) 0 ;
20856 wxColour result;
20857 void *argp1 = 0 ;
20858 int res1 = 0 ;
20859 PyObject *swig_obj[1] ;
20860
20861 if (!args) SWIG_fail;
20862 swig_obj[0] = args;
20863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20864 if (!SWIG_IsOK(res1)) {
20865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20866 }
20867 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20868 {
20869 PyThreadState* __tstate = wxPyBeginAllowThreads();
20870 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20871 wxPyEndAllowThreads(__tstate);
20872 if (PyErr_Occurred()) SWIG_fail;
20873 }
20874 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20875 return resultobj;
20876fail:
20877 return NULL;
20878}
20879
20880
20881SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20882 PyObject *resultobj = 0;
20883 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20884 SwigValueWrapper<wxVisualAttributes > result;
20885 int val1 ;
20886 int ecode1 = 0 ;
20887 PyObject * obj0 = 0 ;
20888 char * kwnames[] = {
20889 (char *) "variant", NULL
20890 };
20891
20892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20893 if (obj0) {
20894 ecode1 = SWIG_AsVal_int(obj0, &val1);
20895 if (!SWIG_IsOK(ecode1)) {
20896 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20897 }
20898 arg1 = static_cast< wxWindowVariant >(val1);
20899 }
20900 {
20901 if (!wxPyCheckForApp()) SWIG_fail;
20902 PyThreadState* __tstate = wxPyBeginAllowThreads();
20903 result = wxNotebook::GetClassDefaultAttributes(arg1);
20904 wxPyEndAllowThreads(__tstate);
20905 if (PyErr_Occurred()) SWIG_fail;
20906 }
20907 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20908 return resultobj;
20909fail:
20910 return NULL;
20911}
20912
20913
b39fe951
RD
20914SWIGINTERN PyObject *_wrap_Notebook_SendPageChangingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20915 PyObject *resultobj = 0;
20916 wxNotebook *arg1 = (wxNotebook *) 0 ;
20917 int arg2 ;
20918 bool result;
20919 void *argp1 = 0 ;
20920 int res1 = 0 ;
20921 int val2 ;
20922 int ecode2 = 0 ;
20923 PyObject * obj0 = 0 ;
20924 PyObject * obj1 = 0 ;
20925 char * kwnames[] = {
20926 (char *) "self",(char *) "nPage", NULL
20927 };
20928
20929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SendPageChangingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
20930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20931 if (!SWIG_IsOK(res1)) {
20932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
20933 }
20934 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20935 ecode2 = SWIG_AsVal_int(obj1, &val2);
20936 if (!SWIG_IsOK(ecode2)) {
20937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangingEvent" "', expected argument " "2"" of type '" "int""'");
20938 }
20939 arg2 = static_cast< int >(val2);
20940 {
20941 PyThreadState* __tstate = wxPyBeginAllowThreads();
20942 result = (bool)(arg1)->SendPageChangingEvent(arg2);
20943 wxPyEndAllowThreads(__tstate);
20944 if (PyErr_Occurred()) SWIG_fail;
20945 }
20946 {
20947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20948 }
20949 return resultobj;
20950fail:
20951 return NULL;
20952}
20953
20954
20955SWIGINTERN PyObject *_wrap_Notebook_SendPageChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20956 PyObject *resultobj = 0;
20957 wxNotebook *arg1 = (wxNotebook *) 0 ;
20958 int arg2 ;
20959 int arg3 = (int) -1 ;
20960 void *argp1 = 0 ;
20961 int res1 = 0 ;
20962 int val2 ;
20963 int ecode2 = 0 ;
20964 int val3 ;
20965 int ecode3 = 0 ;
20966 PyObject * obj0 = 0 ;
20967 PyObject * obj1 = 0 ;
20968 PyObject * obj2 = 0 ;
20969 char * kwnames[] = {
20970 (char *) "self",(char *) "nPageOld",(char *) "nPageNew", NULL
20971 };
20972
20973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Notebook_SendPageChangedEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20975 if (!SWIG_IsOK(res1)) {
20976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "1"" of type '" "wxNotebook *""'");
20977 }
20978 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20979 ecode2 = SWIG_AsVal_int(obj1, &val2);
20980 if (!SWIG_IsOK(ecode2)) {
20981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "2"" of type '" "int""'");
20982 }
20983 arg2 = static_cast< int >(val2);
20984 if (obj2) {
20985 ecode3 = SWIG_AsVal_int(obj2, &val3);
20986 if (!SWIG_IsOK(ecode3)) {
20987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_SendPageChangedEvent" "', expected argument " "3"" of type '" "int""'");
20988 }
20989 arg3 = static_cast< int >(val3);
20990 }
20991 {
20992 PyThreadState* __tstate = wxPyBeginAllowThreads();
20993 (arg1)->SendPageChangedEvent(arg2,arg3);
20994 wxPyEndAllowThreads(__tstate);
20995 if (PyErr_Occurred()) SWIG_fail;
20996 }
20997 resultobj = SWIG_Py_Void();
20998 return resultobj;
20999fail:
21000 return NULL;
21001}
21002
21003
1bd55598
RD
21004SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21005 PyObject *obj;
21006 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21007 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
21008 return SWIG_Py_Void();
21009}
21010
21011SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21012 return SWIG_Python_InitShadowInstance(args);
21013}
21014
21015SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21016 PyObject *resultobj = 0;
21017 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21018 int arg2 = (int) 0 ;
21019 int arg3 = (int) -1 ;
21020 int arg4 = (int) -1 ;
21021 wxNotebookEvent *result = 0 ;
21022 int val1 ;
21023 int ecode1 = 0 ;
21024 int val2 ;
21025 int ecode2 = 0 ;
21026 int val3 ;
21027 int ecode3 = 0 ;
21028 int val4 ;
21029 int ecode4 = 0 ;
21030 PyObject * obj0 = 0 ;
21031 PyObject * obj1 = 0 ;
21032 PyObject * obj2 = 0 ;
21033 PyObject * obj3 = 0 ;
21034 char * kwnames[] = {
21035 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21036 };
21037
21038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21039 if (obj0) {
21040 ecode1 = SWIG_AsVal_int(obj0, &val1);
21041 if (!SWIG_IsOK(ecode1)) {
21042 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21043 }
21044 arg1 = static_cast< wxEventType >(val1);
21045 }
21046 if (obj1) {
21047 ecode2 = SWIG_AsVal_int(obj1, &val2);
21048 if (!SWIG_IsOK(ecode2)) {
21049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
21050 }
21051 arg2 = static_cast< int >(val2);
21052 }
21053 if (obj2) {
21054 ecode3 = SWIG_AsVal_int(obj2, &val3);
21055 if (!SWIG_IsOK(ecode3)) {
21056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
21057 }
21058 arg3 = static_cast< int >(val3);
21059 }
21060 if (obj3) {
21061 ecode4 = SWIG_AsVal_int(obj3, &val4);
21062 if (!SWIG_IsOK(ecode4)) {
21063 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
21064 }
21065 arg4 = static_cast< int >(val4);
21066 }
21067 {
21068 PyThreadState* __tstate = wxPyBeginAllowThreads();
21069 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
21070 wxPyEndAllowThreads(__tstate);
21071 if (PyErr_Occurred()) SWIG_fail;
21072 }
21073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
21074 return resultobj;
21075fail:
21076 return NULL;
21077}
21078
21079
21080SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21081 PyObject *obj;
21082 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21083 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
21084 return SWIG_Py_Void();
21085}
21086
21087SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21088 return SWIG_Python_InitShadowInstance(args);
21089}
21090
21091SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21092 PyObject *resultobj = 0;
21093 wxWindow *arg1 = (wxWindow *) 0 ;
21094 int arg2 = (int) -1 ;
21095 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21096 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21097 wxSize const &arg4_defvalue = wxDefaultSize ;
21098 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21099 long arg5 = (long) 0 ;
21100 wxString const &arg6_defvalue = wxPyEmptyString ;
21101 wxString *arg6 = (wxString *) &arg6_defvalue ;
21102 wxListbook *result = 0 ;
21103 void *argp1 = 0 ;
21104 int res1 = 0 ;
21105 int val2 ;
21106 int ecode2 = 0 ;
21107 wxPoint temp3 ;
21108 wxSize temp4 ;
21109 long val5 ;
21110 int ecode5 = 0 ;
21111 bool temp6 = false ;
21112 PyObject * obj0 = 0 ;
21113 PyObject * obj1 = 0 ;
21114 PyObject * obj2 = 0 ;
21115 PyObject * obj3 = 0 ;
21116 PyObject * obj4 = 0 ;
21117 PyObject * obj5 = 0 ;
21118 char * kwnames[] = {
21119 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21120 };
21121
21122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21124 if (!SWIG_IsOK(res1)) {
21125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
21126 }
21127 arg1 = reinterpret_cast< wxWindow * >(argp1);
21128 if (obj1) {
21129 ecode2 = SWIG_AsVal_int(obj1, &val2);
21130 if (!SWIG_IsOK(ecode2)) {
21131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
21132 }
21133 arg2 = static_cast< int >(val2);
21134 }
21135 if (obj2) {
d55e5bfc 21136 {
1bd55598
RD
21137 arg3 = &temp3;
21138 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 21139 }
1bd55598
RD
21140 }
21141 if (obj3) {
d55e5bfc 21142 {
1bd55598
RD
21143 arg4 = &temp4;
21144 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21145 }
1bd55598
RD
21146 }
21147 if (obj4) {
21148 ecode5 = SWIG_AsVal_long(obj4, &val5);
21149 if (!SWIG_IsOK(ecode5)) {
21150 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
21151 }
21152 arg5 = static_cast< long >(val5);
21153 }
21154 if (obj5) {
d55e5bfc 21155 {
1bd55598
RD
21156 arg6 = wxString_in_helper(obj5);
21157 if (arg6 == NULL) SWIG_fail;
21158 temp6 = true;
d55e5bfc 21159 }
1bd55598
RD
21160 }
21161 {
21162 if (!wxPyCheckForApp()) SWIG_fail;
21163 PyThreadState* __tstate = wxPyBeginAllowThreads();
21164 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21165 wxPyEndAllowThreads(__tstate);
21166 if (PyErr_Occurred()) SWIG_fail;
21167 }
21168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
21169 {
21170 if (temp6)
21171 delete arg6;
21172 }
21173 return resultobj;
21174fail:
21175 {
21176 if (temp6)
21177 delete arg6;
21178 }
21179 return NULL;
21180}
21181
21182
21183SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21184 PyObject *resultobj = 0;
21185 wxListbook *result = 0 ;
21186
21187 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
21188 {
21189 if (!wxPyCheckForApp()) SWIG_fail;
21190 PyThreadState* __tstate = wxPyBeginAllowThreads();
21191 result = (wxListbook *)new wxListbook();
21192 wxPyEndAllowThreads(__tstate);
21193 if (PyErr_Occurred()) SWIG_fail;
21194 }
21195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
21196 return resultobj;
21197fail:
21198 return NULL;
21199}
21200
21201
21202SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21203 PyObject *resultobj = 0;
21204 wxListbook *arg1 = (wxListbook *) 0 ;
21205 wxWindow *arg2 = (wxWindow *) 0 ;
21206 int arg3 = (int) -1 ;
21207 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21208 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21209 wxSize const &arg5_defvalue = wxDefaultSize ;
21210 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21211 long arg6 = (long) 0 ;
21212 wxString const &arg7_defvalue = wxPyEmptyString ;
21213 wxString *arg7 = (wxString *) &arg7_defvalue ;
21214 bool result;
21215 void *argp1 = 0 ;
21216 int res1 = 0 ;
21217 void *argp2 = 0 ;
21218 int res2 = 0 ;
21219 int val3 ;
21220 int ecode3 = 0 ;
21221 wxPoint temp4 ;
21222 wxSize temp5 ;
21223 long val6 ;
21224 int ecode6 = 0 ;
21225 bool temp7 = false ;
21226 PyObject * obj0 = 0 ;
21227 PyObject * obj1 = 0 ;
21228 PyObject * obj2 = 0 ;
21229 PyObject * obj3 = 0 ;
21230 PyObject * obj4 = 0 ;
21231 PyObject * obj5 = 0 ;
21232 PyObject * obj6 = 0 ;
21233 char * kwnames[] = {
21234 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21235 };
21236
21237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21239 if (!SWIG_IsOK(res1)) {
21240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
21241 }
21242 arg1 = reinterpret_cast< wxListbook * >(argp1);
21243 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21244 if (!SWIG_IsOK(res2)) {
21245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21246 }
21247 arg2 = reinterpret_cast< wxWindow * >(argp2);
21248 if (obj2) {
21249 ecode3 = SWIG_AsVal_int(obj2, &val3);
21250 if (!SWIG_IsOK(ecode3)) {
21251 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
21252 }
21253 arg3 = static_cast< int >(val3);
21254 }
21255 if (obj3) {
d55e5bfc 21256 {
1bd55598
RD
21257 arg4 = &temp4;
21258 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21259 }
1bd55598
RD
21260 }
21261 if (obj4) {
d55e5bfc 21262 {
1bd55598
RD
21263 arg5 = &temp5;
21264 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21265 }
1bd55598
RD
21266 }
21267 if (obj5) {
21268 ecode6 = SWIG_AsVal_long(obj5, &val6);
21269 if (!SWIG_IsOK(ecode6)) {
21270 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21271 }
21272 arg6 = static_cast< long >(val6);
21273 }
21274 if (obj6) {
d55e5bfc 21275 {
1bd55598
RD
21276 arg7 = wxString_in_helper(obj6);
21277 if (arg7 == NULL) SWIG_fail;
21278 temp7 = true;
d55e5bfc 21279 }
1bd55598
RD
21280 }
21281 {
21282 PyThreadState* __tstate = wxPyBeginAllowThreads();
21283 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21284 wxPyEndAllowThreads(__tstate);
21285 if (PyErr_Occurred()) SWIG_fail;
21286 }
21287 {
21288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21289 }
21290 {
21291 if (temp7)
21292 delete arg7;
21293 }
21294 return resultobj;
21295fail:
21296 {
21297 if (temp7)
21298 delete arg7;
21299 }
21300 return NULL;
d55e5bfc
RD
21301}
21302
21303
1bd55598
RD
21304SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21305 PyObject *resultobj = 0;
21306 wxListbook *arg1 = (wxListbook *) 0 ;
21307 wxListView *result = 0 ;
21308 void *argp1 = 0 ;
21309 int res1 = 0 ;
21310 PyObject *swig_obj[1] ;
21311
21312 if (!args) SWIG_fail;
21313 swig_obj[0] = args;
21314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21315 if (!SWIG_IsOK(res1)) {
21316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21317 }
21318 arg1 = reinterpret_cast< wxListbook * >(argp1);
21319 {
21320 PyThreadState* __tstate = wxPyBeginAllowThreads();
21321 result = (wxListView *)(arg1)->GetListView();
21322 wxPyEndAllowThreads(__tstate);
21323 if (PyErr_Occurred()) SWIG_fail;
21324 }
21325 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21326 return resultobj;
21327fail:
21328 return NULL;
21329}
21330
21331
21332SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21333 PyObject *obj;
21334 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21335 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21336 return SWIG_Py_Void();
21337}
21338
21339SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21340 return SWIG_Python_InitShadowInstance(args);
21341}
21342
21343SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21344 PyObject *resultobj = 0;
21345 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21346 int arg2 = (int) 0 ;
21347 int arg3 = (int) -1 ;
21348 int arg4 = (int) -1 ;
21349 wxListbookEvent *result = 0 ;
21350 int val1 ;
21351 int ecode1 = 0 ;
21352 int val2 ;
21353 int ecode2 = 0 ;
21354 int val3 ;
21355 int ecode3 = 0 ;
21356 int val4 ;
21357 int ecode4 = 0 ;
21358 PyObject * obj0 = 0 ;
21359 PyObject * obj1 = 0 ;
21360 PyObject * obj2 = 0 ;
21361 PyObject * obj3 = 0 ;
21362 char * kwnames[] = {
21363 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21364 };
21365
21366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21367 if (obj0) {
21368 ecode1 = SWIG_AsVal_int(obj0, &val1);
21369 if (!SWIG_IsOK(ecode1)) {
21370 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21371 }
21372 arg1 = static_cast< wxEventType >(val1);
21373 }
21374 if (obj1) {
21375 ecode2 = SWIG_AsVal_int(obj1, &val2);
21376 if (!SWIG_IsOK(ecode2)) {
21377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21378 }
21379 arg2 = static_cast< int >(val2);
21380 }
21381 if (obj2) {
21382 ecode3 = SWIG_AsVal_int(obj2, &val3);
21383 if (!SWIG_IsOK(ecode3)) {
21384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21385 }
21386 arg3 = static_cast< int >(val3);
21387 }
21388 if (obj3) {
21389 ecode4 = SWIG_AsVal_int(obj3, &val4);
21390 if (!SWIG_IsOK(ecode4)) {
21391 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21392 }
21393 arg4 = static_cast< int >(val4);
21394 }
21395 {
21396 PyThreadState* __tstate = wxPyBeginAllowThreads();
21397 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21398 wxPyEndAllowThreads(__tstate);
21399 if (PyErr_Occurred()) SWIG_fail;
21400 }
21401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21402 return resultobj;
21403fail:
21404 return NULL;
21405}
21406
21407
21408SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21409 PyObject *obj;
21410 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21411 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21412 return SWIG_Py_Void();
21413}
21414
21415SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21416 return SWIG_Python_InitShadowInstance(args);
21417}
21418
21419SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21420 PyObject *resultobj = 0;
21421 wxWindow *arg1 = (wxWindow *) 0 ;
21422 int arg2 ;
21423 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21424 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21425 wxSize const &arg4_defvalue = wxDefaultSize ;
21426 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21427 long arg5 = (long) 0 ;
21428 wxString const &arg6_defvalue = wxPyEmptyString ;
21429 wxString *arg6 = (wxString *) &arg6_defvalue ;
21430 wxChoicebook *result = 0 ;
21431 void *argp1 = 0 ;
21432 int res1 = 0 ;
21433 int val2 ;
21434 int ecode2 = 0 ;
21435 wxPoint temp3 ;
21436 wxSize temp4 ;
21437 long val5 ;
21438 int ecode5 = 0 ;
21439 bool temp6 = false ;
21440 PyObject * obj0 = 0 ;
21441 PyObject * obj1 = 0 ;
21442 PyObject * obj2 = 0 ;
21443 PyObject * obj3 = 0 ;
21444 PyObject * obj4 = 0 ;
21445 PyObject * obj5 = 0 ;
21446 char * kwnames[] = {
21447 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21448 };
21449
21450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21452 if (!SWIG_IsOK(res1)) {
21453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21454 }
21455 arg1 = reinterpret_cast< wxWindow * >(argp1);
21456 ecode2 = SWIG_AsVal_int(obj1, &val2);
21457 if (!SWIG_IsOK(ecode2)) {
21458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21459 }
21460 arg2 = static_cast< int >(val2);
21461 if (obj2) {
36ed4f51 21462 {
1bd55598
RD
21463 arg3 = &temp3;
21464 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21465 }
1bd55598
RD
21466 }
21467 if (obj3) {
36ed4f51 21468 {
1bd55598
RD
21469 arg4 = &temp4;
21470 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21471 }
1bd55598
RD
21472 }
21473 if (obj4) {
21474 ecode5 = SWIG_AsVal_long(obj4, &val5);
21475 if (!SWIG_IsOK(ecode5)) {
21476 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21477 }
21478 arg5 = static_cast< long >(val5);
21479 }
21480 if (obj5) {
d55e5bfc 21481 {
1bd55598
RD
21482 arg6 = wxString_in_helper(obj5);
21483 if (arg6 == NULL) SWIG_fail;
21484 temp6 = true;
d55e5bfc 21485 }
1bd55598
RD
21486 }
21487 {
21488 if (!wxPyCheckForApp()) SWIG_fail;
21489 PyThreadState* __tstate = wxPyBeginAllowThreads();
21490 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21491 wxPyEndAllowThreads(__tstate);
21492 if (PyErr_Occurred()) SWIG_fail;
21493 }
21494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21495 {
21496 if (temp6)
21497 delete arg6;
21498 }
21499 return resultobj;
21500fail:
21501 {
21502 if (temp6)
21503 delete arg6;
21504 }
21505 return NULL;
d55e5bfc
RD
21506}
21507
21508
1bd55598
RD
21509SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21510 PyObject *resultobj = 0;
21511 wxChoicebook *result = 0 ;
21512
21513 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21514 {
21515 if (!wxPyCheckForApp()) SWIG_fail;
21516 PyThreadState* __tstate = wxPyBeginAllowThreads();
21517 result = (wxChoicebook *)new wxChoicebook();
21518 wxPyEndAllowThreads(__tstate);
21519 if (PyErr_Occurred()) SWIG_fail;
21520 }
21521 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21522 return resultobj;
21523fail:
21524 return NULL;
21525}
21526
21527
21528SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21529 PyObject *resultobj = 0;
21530 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21531 wxWindow *arg2 = (wxWindow *) 0 ;
21532 int arg3 ;
21533 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21534 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21535 wxSize const &arg5_defvalue = wxDefaultSize ;
21536 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21537 long arg6 = (long) 0 ;
21538 wxString const &arg7_defvalue = wxPyEmptyString ;
21539 wxString *arg7 = (wxString *) &arg7_defvalue ;
21540 bool result;
21541 void *argp1 = 0 ;
21542 int res1 = 0 ;
21543 void *argp2 = 0 ;
21544 int res2 = 0 ;
21545 int val3 ;
21546 int ecode3 = 0 ;
21547 wxPoint temp4 ;
21548 wxSize temp5 ;
21549 long val6 ;
21550 int ecode6 = 0 ;
21551 bool temp7 = false ;
21552 PyObject * obj0 = 0 ;
21553 PyObject * obj1 = 0 ;
21554 PyObject * obj2 = 0 ;
21555 PyObject * obj3 = 0 ;
21556 PyObject * obj4 = 0 ;
21557 PyObject * obj5 = 0 ;
21558 PyObject * obj6 = 0 ;
21559 char * kwnames[] = {
21560 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21561 };
21562
21563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21565 if (!SWIG_IsOK(res1)) {
21566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21567 }
21568 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21569 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21570 if (!SWIG_IsOK(res2)) {
21571 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21572 }
21573 arg2 = reinterpret_cast< wxWindow * >(argp2);
21574 ecode3 = SWIG_AsVal_int(obj2, &val3);
21575 if (!SWIG_IsOK(ecode3)) {
21576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21577 }
21578 arg3 = static_cast< int >(val3);
21579 if (obj3) {
d55e5bfc 21580 {
1bd55598
RD
21581 arg4 = &temp4;
21582 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21583 }
1bd55598
RD
21584 }
21585 if (obj4) {
d55e5bfc 21586 {
1bd55598
RD
21587 arg5 = &temp5;
21588 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21589 }
1bd55598
RD
21590 }
21591 if (obj5) {
21592 ecode6 = SWIG_AsVal_long(obj5, &val6);
21593 if (!SWIG_IsOK(ecode6)) {
21594 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21595 }
21596 arg6 = static_cast< long >(val6);
21597 }
21598 if (obj6) {
d55e5bfc 21599 {
1bd55598
RD
21600 arg7 = wxString_in_helper(obj6);
21601 if (arg7 == NULL) SWIG_fail;
21602 temp7 = true;
d55e5bfc 21603 }
1bd55598
RD
21604 }
21605 {
21606 PyThreadState* __tstate = wxPyBeginAllowThreads();
21607 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21608 wxPyEndAllowThreads(__tstate);
21609 if (PyErr_Occurred()) SWIG_fail;
21610 }
21611 {
21612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21613 }
21614 {
21615 if (temp7)
21616 delete arg7;
21617 }
21618 return resultobj;
21619fail:
21620 {
21621 if (temp7)
21622 delete arg7;
21623 }
21624 return NULL;
d55e5bfc
RD
21625}
21626
21627
1bd55598
RD
21628SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21629 PyObject *resultobj = 0;
21630 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21631 wxChoice *result = 0 ;
21632 void *argp1 = 0 ;
21633 int res1 = 0 ;
21634 PyObject *swig_obj[1] ;
21635
21636 if (!args) SWIG_fail;
21637 swig_obj[0] = args;
21638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21639 if (!SWIG_IsOK(res1)) {
21640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21641 }
21642 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21643 {
21644 PyThreadState* __tstate = wxPyBeginAllowThreads();
21645 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21646 wxPyEndAllowThreads(__tstate);
21647 if (PyErr_Occurred()) SWIG_fail;
21648 }
21649 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21650 return resultobj;
21651fail:
21652 return NULL;
21653}
21654
21655
21656SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21657 PyObject *obj;
21658 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21659 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21660 return SWIG_Py_Void();
21661}
21662
21663SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21664 return SWIG_Python_InitShadowInstance(args);
21665}
21666
21667SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21668 PyObject *resultobj = 0;
21669 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21670 int arg2 = (int) 0 ;
21671 int arg3 = (int) -1 ;
21672 int arg4 = (int) -1 ;
21673 wxChoicebookEvent *result = 0 ;
21674 int val1 ;
21675 int ecode1 = 0 ;
21676 int val2 ;
21677 int ecode2 = 0 ;
21678 int val3 ;
21679 int ecode3 = 0 ;
21680 int val4 ;
21681 int ecode4 = 0 ;
21682 PyObject * obj0 = 0 ;
21683 PyObject * obj1 = 0 ;
21684 PyObject * obj2 = 0 ;
21685 PyObject * obj3 = 0 ;
21686 char * kwnames[] = {
21687 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21688 };
21689
21690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21691 if (obj0) {
21692 ecode1 = SWIG_AsVal_int(obj0, &val1);
21693 if (!SWIG_IsOK(ecode1)) {
21694 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21695 }
21696 arg1 = static_cast< wxEventType >(val1);
21697 }
21698 if (obj1) {
21699 ecode2 = SWIG_AsVal_int(obj1, &val2);
21700 if (!SWIG_IsOK(ecode2)) {
21701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21702 }
21703 arg2 = static_cast< int >(val2);
21704 }
21705 if (obj2) {
21706 ecode3 = SWIG_AsVal_int(obj2, &val3);
21707 if (!SWIG_IsOK(ecode3)) {
21708 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21709 }
21710 arg3 = static_cast< int >(val3);
21711 }
21712 if (obj3) {
21713 ecode4 = SWIG_AsVal_int(obj3, &val4);
21714 if (!SWIG_IsOK(ecode4)) {
21715 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21716 }
21717 arg4 = static_cast< int >(val4);
21718 }
21719 {
21720 PyThreadState* __tstate = wxPyBeginAllowThreads();
21721 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21722 wxPyEndAllowThreads(__tstate);
21723 if (PyErr_Occurred()) SWIG_fail;
21724 }
21725 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21726 return resultobj;
21727fail:
21728 return NULL;
21729}
21730
21731
21732SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21733 PyObject *obj;
21734 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21735 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21736 return SWIG_Py_Void();
21737}
21738
21739SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21740 return SWIG_Python_InitShadowInstance(args);
21741}
21742
21743SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21744 PyObject *resultobj = 0;
21745 wxWindow *arg1 = (wxWindow *) 0 ;
21746 int arg2 ;
21747 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21748 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21749 wxSize const &arg4_defvalue = wxDefaultSize ;
21750 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21751 long arg5 = (long) wxBK_DEFAULT ;
21752 wxString const &arg6_defvalue = wxPyEmptyString ;
21753 wxString *arg6 = (wxString *) &arg6_defvalue ;
21754 wxTreebook *result = 0 ;
21755 void *argp1 = 0 ;
21756 int res1 = 0 ;
21757 int val2 ;
21758 int ecode2 = 0 ;
21759 wxPoint temp3 ;
21760 wxSize temp4 ;
21761 long val5 ;
21762 int ecode5 = 0 ;
21763 bool temp6 = false ;
21764 PyObject * obj0 = 0 ;
21765 PyObject * obj1 = 0 ;
21766 PyObject * obj2 = 0 ;
21767 PyObject * obj3 = 0 ;
21768 PyObject * obj4 = 0 ;
21769 PyObject * obj5 = 0 ;
21770 char * kwnames[] = {
21771 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21772 };
21773
21774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21776 if (!SWIG_IsOK(res1)) {
21777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21778 }
21779 arg1 = reinterpret_cast< wxWindow * >(argp1);
21780 ecode2 = SWIG_AsVal_int(obj1, &val2);
21781 if (!SWIG_IsOK(ecode2)) {
21782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21783 }
21784 arg2 = static_cast< int >(val2);
21785 if (obj2) {
36ed4f51 21786 {
1bd55598
RD
21787 arg3 = &temp3;
21788 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21789 }
1bd55598
RD
21790 }
21791 if (obj3) {
36ed4f51 21792 {
1bd55598
RD
21793 arg4 = &temp4;
21794 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21795 }
1bd55598
RD
21796 }
21797 if (obj4) {
21798 ecode5 = SWIG_AsVal_long(obj4, &val5);
21799 if (!SWIG_IsOK(ecode5)) {
21800 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21801 }
21802 arg5 = static_cast< long >(val5);
21803 }
21804 if (obj5) {
d55e5bfc 21805 {
1bd55598
RD
21806 arg6 = wxString_in_helper(obj5);
21807 if (arg6 == NULL) SWIG_fail;
21808 temp6 = true;
d55e5bfc 21809 }
1bd55598
RD
21810 }
21811 {
21812 if (!wxPyCheckForApp()) SWIG_fail;
21813 PyThreadState* __tstate = wxPyBeginAllowThreads();
21814 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21815 wxPyEndAllowThreads(__tstate);
21816 if (PyErr_Occurred()) SWIG_fail;
21817 }
21818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21819 {
21820 if (temp6)
21821 delete arg6;
21822 }
21823 return resultobj;
21824fail:
21825 {
21826 if (temp6)
21827 delete arg6;
21828 }
21829 return NULL;
d55e5bfc
RD
21830}
21831
21832
1bd55598
RD
21833SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21834 PyObject *resultobj = 0;
21835 wxTreebook *result = 0 ;
21836
21837 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21838 {
21839 if (!wxPyCheckForApp()) SWIG_fail;
21840 PyThreadState* __tstate = wxPyBeginAllowThreads();
21841 result = (wxTreebook *)new wxTreebook();
21842 wxPyEndAllowThreads(__tstate);
21843 if (PyErr_Occurred()) SWIG_fail;
21844 }
21845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21846 return resultobj;
21847fail:
21848 return NULL;
21849}
21850
21851
21852SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21853 PyObject *resultobj = 0;
21854 wxTreebook *arg1 = (wxTreebook *) 0 ;
21855 wxWindow *arg2 = (wxWindow *) 0 ;
21856 int arg3 ;
21857 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21858 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21859 wxSize const &arg5_defvalue = wxDefaultSize ;
21860 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21861 long arg6 = (long) wxBK_DEFAULT ;
21862 wxString const &arg7_defvalue = wxPyEmptyString ;
21863 wxString *arg7 = (wxString *) &arg7_defvalue ;
21864 bool result;
21865 void *argp1 = 0 ;
21866 int res1 = 0 ;
21867 void *argp2 = 0 ;
21868 int res2 = 0 ;
21869 int val3 ;
21870 int ecode3 = 0 ;
21871 wxPoint temp4 ;
21872 wxSize temp5 ;
21873 long val6 ;
21874 int ecode6 = 0 ;
21875 bool temp7 = false ;
21876 PyObject * obj0 = 0 ;
21877 PyObject * obj1 = 0 ;
21878 PyObject * obj2 = 0 ;
21879 PyObject * obj3 = 0 ;
21880 PyObject * obj4 = 0 ;
21881 PyObject * obj5 = 0 ;
21882 PyObject * obj6 = 0 ;
21883 char * kwnames[] = {
21884 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21885 };
21886
21887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21889 if (!SWIG_IsOK(res1)) {
21890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21891 }
21892 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21893 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21894 if (!SWIG_IsOK(res2)) {
21895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21896 }
21897 arg2 = reinterpret_cast< wxWindow * >(argp2);
21898 ecode3 = SWIG_AsVal_int(obj2, &val3);
21899 if (!SWIG_IsOK(ecode3)) {
21900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21901 }
21902 arg3 = static_cast< int >(val3);
21903 if (obj3) {
36ed4f51 21904 {
1bd55598
RD
21905 arg4 = &temp4;
21906 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21907 }
1bd55598
RD
21908 }
21909 if (obj4) {
d55e5bfc 21910 {
1bd55598
RD
21911 arg5 = &temp5;
21912 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21913 }
1bd55598
RD
21914 }
21915 if (obj5) {
21916 ecode6 = SWIG_AsVal_long(obj5, &val6);
21917 if (!SWIG_IsOK(ecode6)) {
21918 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21919 }
21920 arg6 = static_cast< long >(val6);
21921 }
21922 if (obj6) {
36ed4f51 21923 {
1bd55598
RD
21924 arg7 = wxString_in_helper(obj6);
21925 if (arg7 == NULL) SWIG_fail;
21926 temp7 = true;
36ed4f51 21927 }
1bd55598
RD
21928 }
21929 {
21930 PyThreadState* __tstate = wxPyBeginAllowThreads();
21931 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21932 wxPyEndAllowThreads(__tstate);
21933 if (PyErr_Occurred()) SWIG_fail;
21934 }
21935 {
21936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21937 }
21938 {
21939 if (temp7)
21940 delete arg7;
21941 }
21942 return resultobj;
21943fail:
21944 {
21945 if (temp7)
21946 delete arg7;
21947 }
21948 return NULL;
21949}
21950
21951
21952SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21953 PyObject *resultobj = 0;
21954 wxTreebook *arg1 = (wxTreebook *) 0 ;
21955 size_t arg2 ;
21956 wxWindow *arg3 = (wxWindow *) 0 ;
21957 wxString *arg4 = 0 ;
21958 bool arg5 = (bool) false ;
21959 int arg6 = (int) wxNOT_FOUND ;
21960 bool result;
21961 void *argp1 = 0 ;
21962 int res1 = 0 ;
21963 size_t val2 ;
21964 int ecode2 = 0 ;
21965 void *argp3 = 0 ;
21966 int res3 = 0 ;
21967 bool temp4 = false ;
21968 bool val5 ;
21969 int ecode5 = 0 ;
21970 int val6 ;
21971 int ecode6 = 0 ;
21972 PyObject * obj0 = 0 ;
21973 PyObject * obj1 = 0 ;
21974 PyObject * obj2 = 0 ;
21975 PyObject * obj3 = 0 ;
21976 PyObject * obj4 = 0 ;
21977 PyObject * obj5 = 0 ;
21978 char * kwnames[] = {
21979 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21980 };
21981
21982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21984 if (!SWIG_IsOK(res1)) {
21985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21986 }
21987 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21988 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21989 if (!SWIG_IsOK(ecode2)) {
21990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21991 }
21992 arg2 = static_cast< size_t >(val2);
21993 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21994 if (!SWIG_IsOK(res3)) {
21995 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21996 }
21997 arg3 = reinterpret_cast< wxWindow * >(argp3);
21998 {
21999 arg4 = wxString_in_helper(obj3);
22000 if (arg4 == NULL) SWIG_fail;
22001 temp4 = true;
22002 }
22003 if (obj4) {
22004 ecode5 = SWIG_AsVal_bool(obj4, &val5);
22005 if (!SWIG_IsOK(ecode5)) {
22006 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
22007 }
22008 arg5 = static_cast< bool >(val5);
22009 }
22010 if (obj5) {
22011 ecode6 = SWIG_AsVal_int(obj5, &val6);
22012 if (!SWIG_IsOK(ecode6)) {
22013 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
22014 }
22015 arg6 = static_cast< int >(val6);
22016 }
22017 {
22018 PyThreadState* __tstate = wxPyBeginAllowThreads();
22019 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
22020 wxPyEndAllowThreads(__tstate);
22021 if (PyErr_Occurred()) SWIG_fail;
22022 }
22023 {
22024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22025 }
22026 {
22027 if (temp4)
22028 delete arg4;
22029 }
22030 return resultobj;
22031fail:
22032 {
22033 if (temp4)
22034 delete arg4;
22035 }
22036 return NULL;
22037}
22038
22039
22040SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22041 PyObject *resultobj = 0;
22042 wxTreebook *arg1 = (wxTreebook *) 0 ;
22043 wxWindow *arg2 = (wxWindow *) 0 ;
22044 wxString *arg3 = 0 ;
22045 bool arg4 = (bool) false ;
22046 int arg5 = (int) wxNOT_FOUND ;
22047 bool result;
22048 void *argp1 = 0 ;
22049 int res1 = 0 ;
22050 void *argp2 = 0 ;
22051 int res2 = 0 ;
22052 bool temp3 = false ;
22053 bool val4 ;
22054 int ecode4 = 0 ;
22055 int val5 ;
22056 int ecode5 = 0 ;
22057 PyObject * obj0 = 0 ;
22058 PyObject * obj1 = 0 ;
22059 PyObject * obj2 = 0 ;
22060 PyObject * obj3 = 0 ;
22061 PyObject * obj4 = 0 ;
22062 char * kwnames[] = {
22063 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
22064 };
22065
22066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22068 if (!SWIG_IsOK(res1)) {
22069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
22070 }
22071 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22072 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22073 if (!SWIG_IsOK(res2)) {
22074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
22075 }
22076 arg2 = reinterpret_cast< wxWindow * >(argp2);
22077 {
22078 arg3 = wxString_in_helper(obj2);
22079 if (arg3 == NULL) SWIG_fail;
22080 temp3 = true;
22081 }
22082 if (obj3) {
22083 ecode4 = SWIG_AsVal_bool(obj3, &val4);
22084 if (!SWIG_IsOK(ecode4)) {
22085 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
22086 }
22087 arg4 = static_cast< bool >(val4);
22088 }
22089 if (obj4) {
22090 ecode5 = SWIG_AsVal_int(obj4, &val5);
22091 if (!SWIG_IsOK(ecode5)) {
22092 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
22093 }
22094 arg5 = static_cast< int >(val5);
22095 }
22096 {
22097 PyThreadState* __tstate = wxPyBeginAllowThreads();
22098 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
22099 wxPyEndAllowThreads(__tstate);
22100 if (PyErr_Occurred()) SWIG_fail;
22101 }
22102 {
22103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22104 }
22105 {
22106 if (temp3)
22107 delete arg3;
22108 }
22109 return resultobj;
22110fail:
22111 {
22112 if (temp3)
22113 delete arg3;
22114 }
22115 return NULL;
22116}
22117
22118
22119SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22120 PyObject *resultobj = 0;
22121 wxTreebook *arg1 = (wxTreebook *) 0 ;
22122 size_t arg2 ;
22123 bool result;
22124 void *argp1 = 0 ;
22125 int res1 = 0 ;
22126 size_t val2 ;
22127 int ecode2 = 0 ;
22128 PyObject * obj0 = 0 ;
22129 PyObject * obj1 = 0 ;
22130 char * kwnames[] = {
22131 (char *) "self",(char *) "pos", NULL
22132 };
22133
22134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
22135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22136 if (!SWIG_IsOK(res1)) {
22137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22138 }
22139 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22140 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22141 if (!SWIG_IsOK(ecode2)) {
22142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
22143 }
22144 arg2 = static_cast< size_t >(val2);
22145 {
22146 PyThreadState* __tstate = wxPyBeginAllowThreads();
22147 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
22148 wxPyEndAllowThreads(__tstate);
22149 if (PyErr_Occurred()) SWIG_fail;
22150 }
22151 {
22152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22153 }
22154 return resultobj;
22155fail:
22156 return NULL;
22157}
22158
22159
22160SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22161 PyObject *resultobj = 0;
22162 wxTreebook *arg1 = (wxTreebook *) 0 ;
22163 size_t arg2 ;
22164 bool arg3 = (bool) true ;
22165 bool result;
22166 void *argp1 = 0 ;
22167 int res1 = 0 ;
22168 size_t val2 ;
22169 int ecode2 = 0 ;
22170 bool val3 ;
22171 int ecode3 = 0 ;
22172 PyObject * obj0 = 0 ;
22173 PyObject * obj1 = 0 ;
22174 PyObject * obj2 = 0 ;
22175 char * kwnames[] = {
22176 (char *) "self",(char *) "pos",(char *) "expand", NULL
22177 };
22178
22179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22181 if (!SWIG_IsOK(res1)) {
22182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22183 }
22184 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22185 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22186 if (!SWIG_IsOK(ecode2)) {
22187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
22188 }
22189 arg2 = static_cast< size_t >(val2);
22190 if (obj2) {
22191 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22192 if (!SWIG_IsOK(ecode3)) {
22193 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
22194 }
22195 arg3 = static_cast< bool >(val3);
22196 }
22197 {
22198 PyThreadState* __tstate = wxPyBeginAllowThreads();
22199 result = (bool)(arg1)->ExpandNode(arg2,arg3);
22200 wxPyEndAllowThreads(__tstate);
22201 if (PyErr_Occurred()) SWIG_fail;
22202 }
22203 {
22204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22205 }
22206 return resultobj;
22207fail:
22208 return NULL;
22209}
22210
22211
22212SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22213 PyObject *resultobj = 0;
22214 wxTreebook *arg1 = (wxTreebook *) 0 ;
22215 size_t arg2 ;
22216 bool result;
22217 void *argp1 = 0 ;
22218 int res1 = 0 ;
22219 size_t val2 ;
22220 int ecode2 = 0 ;
22221 PyObject * obj0 = 0 ;
22222 PyObject * obj1 = 0 ;
22223 char * kwnames[] = {
22224 (char *) "self",(char *) "pos", NULL
22225 };
22226
22227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
22228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22229 if (!SWIG_IsOK(res1)) {
22230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
22231 }
22232 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22233 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22234 if (!SWIG_IsOK(ecode2)) {
22235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
22236 }
22237 arg2 = static_cast< size_t >(val2);
22238 {
22239 PyThreadState* __tstate = wxPyBeginAllowThreads();
22240 result = (bool)(arg1)->CollapseNode(arg2);
22241 wxPyEndAllowThreads(__tstate);
22242 if (PyErr_Occurred()) SWIG_fail;
22243 }
22244 {
22245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22246 }
22247 return resultobj;
22248fail:
22249 return NULL;
22250}
22251
22252
22253SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22254 PyObject *resultobj = 0;
22255 wxTreebook *arg1 = (wxTreebook *) 0 ;
22256 size_t arg2 ;
22257 int result;
22258 void *argp1 = 0 ;
22259 int res1 = 0 ;
22260 size_t val2 ;
22261 int ecode2 = 0 ;
22262 PyObject * obj0 = 0 ;
22263 PyObject * obj1 = 0 ;
22264 char * kwnames[] = {
22265 (char *) "self",(char *) "pos", NULL
22266 };
22267
22268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22270 if (!SWIG_IsOK(res1)) {
22271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22272 }
22273 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22274 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22275 if (!SWIG_IsOK(ecode2)) {
22276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22277 }
22278 arg2 = static_cast< size_t >(val2);
22279 {
22280 PyThreadState* __tstate = wxPyBeginAllowThreads();
22281 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22282 wxPyEndAllowThreads(__tstate);
22283 if (PyErr_Occurred()) SWIG_fail;
22284 }
22285 resultobj = SWIG_From_int(static_cast< int >(result));
22286 return resultobj;
22287fail:
22288 return NULL;
d55e5bfc
RD
22289}
22290
22291
1bd55598
RD
22292SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22293 PyObject *resultobj = 0;
22294 wxTreebook *arg1 = (wxTreebook *) 0 ;
10044bf1 22295 wxPyTreeCtrl *result = 0 ;
1bd55598
RD
22296 void *argp1 = 0 ;
22297 int res1 = 0 ;
22298 PyObject *swig_obj[1] ;
22299
22300 if (!args) SWIG_fail;
22301 swig_obj[0] = args;
22302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22303 if (!SWIG_IsOK(res1)) {
22304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22305 }
22306 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22307 {
22308 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044bf1 22309 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
1bd55598
RD
22310 wxPyEndAllowThreads(__tstate);
22311 if (PyErr_Occurred()) SWIG_fail;
22312 }
10044bf1
RD
22313 {
22314 resultobj = wxPyMake_wxObject(result, (bool)0);
22315 }
1bd55598
RD
22316 return resultobj;
22317fail:
22318 return NULL;
22319}
22320
22321
22322SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22323 PyObject *obj;
22324 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22325 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22326 return SWIG_Py_Void();
22327}
22328
22329SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22330 return SWIG_Python_InitShadowInstance(args);
22331}
22332
22333SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22334 PyObject *resultobj = 0;
22335 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22336 int arg2 = (int) 0 ;
22337 int arg3 = (int) wxNOT_FOUND ;
22338 int arg4 = (int) wxNOT_FOUND ;
22339 wxTreebookEvent *result = 0 ;
22340 int val1 ;
22341 int ecode1 = 0 ;
22342 int val2 ;
22343 int ecode2 = 0 ;
22344 int val3 ;
22345 int ecode3 = 0 ;
22346 int val4 ;
22347 int ecode4 = 0 ;
22348 PyObject * obj0 = 0 ;
22349 PyObject * obj1 = 0 ;
22350 PyObject * obj2 = 0 ;
22351 PyObject * obj3 = 0 ;
22352 char * kwnames[] = {
22353 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22354 };
22355
22356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22357 if (obj0) {
22358 ecode1 = SWIG_AsVal_int(obj0, &val1);
22359 if (!SWIG_IsOK(ecode1)) {
22360 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22361 }
22362 arg1 = static_cast< wxEventType >(val1);
22363 }
22364 if (obj1) {
22365 ecode2 = SWIG_AsVal_int(obj1, &val2);
22366 if (!SWIG_IsOK(ecode2)) {
22367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22368 }
22369 arg2 = static_cast< int >(val2);
22370 }
22371 if (obj2) {
22372 ecode3 = SWIG_AsVal_int(obj2, &val3);
22373 if (!SWIG_IsOK(ecode3)) {
22374 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22375 }
22376 arg3 = static_cast< int >(val3);
22377 }
22378 if (obj3) {
22379 ecode4 = SWIG_AsVal_int(obj3, &val4);
22380 if (!SWIG_IsOK(ecode4)) {
22381 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22382 }
22383 arg4 = static_cast< int >(val4);
22384 }
22385 {
22386 PyThreadState* __tstate = wxPyBeginAllowThreads();
22387 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22388 wxPyEndAllowThreads(__tstate);
22389 if (PyErr_Occurred()) SWIG_fail;
22390 }
22391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22392 return resultobj;
22393fail:
22394 return NULL;
22395}
22396
22397
22398SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22399 PyObject *obj;
22400 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22401 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22402 return SWIG_Py_Void();
22403}
22404
22405SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22406 return SWIG_Python_InitShadowInstance(args);
22407}
22408
22409SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22410 PyObject *resultobj = 0;
22411 wxWindow *arg1 = (wxWindow *) 0 ;
22412 int arg2 ;
22413 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22414 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22415 wxSize const &arg4_defvalue = wxDefaultSize ;
22416 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22417 long arg5 = (long) wxBK_DEFAULT ;
22418 wxString const &arg6_defvalue = wxPyEmptyString ;
22419 wxString *arg6 = (wxString *) &arg6_defvalue ;
22420 wxToolbook *result = 0 ;
22421 void *argp1 = 0 ;
22422 int res1 = 0 ;
22423 int val2 ;
22424 int ecode2 = 0 ;
22425 wxPoint temp3 ;
22426 wxSize temp4 ;
22427 long val5 ;
22428 int ecode5 = 0 ;
22429 bool temp6 = false ;
22430 PyObject * obj0 = 0 ;
22431 PyObject * obj1 = 0 ;
22432 PyObject * obj2 = 0 ;
22433 PyObject * obj3 = 0 ;
22434 PyObject * obj4 = 0 ;
22435 PyObject * obj5 = 0 ;
22436 char * kwnames[] = {
22437 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22438 };
22439
22440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22442 if (!SWIG_IsOK(res1)) {
22443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22444 }
22445 arg1 = reinterpret_cast< wxWindow * >(argp1);
22446 ecode2 = SWIG_AsVal_int(obj1, &val2);
22447 if (!SWIG_IsOK(ecode2)) {
22448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22449 }
22450 arg2 = static_cast< int >(val2);
22451 if (obj2) {
36ed4f51 22452 {
1bd55598
RD
22453 arg3 = &temp3;
22454 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 22455 }
1bd55598
RD
22456 }
22457 if (obj3) {
36ed4f51 22458 {
1bd55598
RD
22459 arg4 = &temp4;
22460 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 22461 }
1bd55598
RD
22462 }
22463 if (obj4) {
22464 ecode5 = SWIG_AsVal_long(obj4, &val5);
22465 if (!SWIG_IsOK(ecode5)) {
22466 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22467 }
22468 arg5 = static_cast< long >(val5);
22469 }
22470 if (obj5) {
d55e5bfc 22471 {
1bd55598
RD
22472 arg6 = wxString_in_helper(obj5);
22473 if (arg6 == NULL) SWIG_fail;
22474 temp6 = true;
d55e5bfc 22475 }
1bd55598
RD
22476 }
22477 {
22478 PyThreadState* __tstate = wxPyBeginAllowThreads();
22479 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22480 wxPyEndAllowThreads(__tstate);
22481 if (PyErr_Occurred()) SWIG_fail;
22482 }
22483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22484 {
22485 if (temp6)
22486 delete arg6;
22487 }
22488 return resultobj;
22489fail:
22490 {
22491 if (temp6)
22492 delete arg6;
22493 }
22494 return NULL;
d55e5bfc
RD
22495}
22496
22497
1bd55598
RD
22498SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22499 PyObject *resultobj = 0;
22500 wxToolbook *result = 0 ;
22501
22502 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22503 {
22504 PyThreadState* __tstate = wxPyBeginAllowThreads();
22505 result = (wxToolbook *)new wxToolbook();
22506 wxPyEndAllowThreads(__tstate);
22507 if (PyErr_Occurred()) SWIG_fail;
22508 }
22509 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22510 return resultobj;
22511fail:
22512 return NULL;
22513}
22514
22515
22516SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22517 PyObject *resultobj = 0;
22518 wxToolbook *arg1 = (wxToolbook *) 0 ;
22519 wxWindow *arg2 = (wxWindow *) 0 ;
22520 int arg3 ;
22521 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22522 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22523 wxSize const &arg5_defvalue = wxDefaultSize ;
22524 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22525 long arg6 = (long) 0 ;
22526 wxString const &arg7_defvalue = wxEmptyString ;
22527 wxString *arg7 = (wxString *) &arg7_defvalue ;
22528 bool result;
22529 void *argp1 = 0 ;
22530 int res1 = 0 ;
22531 void *argp2 = 0 ;
22532 int res2 = 0 ;
22533 int val3 ;
22534 int ecode3 = 0 ;
22535 wxPoint temp4 ;
22536 wxSize temp5 ;
22537 long val6 ;
22538 int ecode6 = 0 ;
22539 bool temp7 = false ;
22540 PyObject * obj0 = 0 ;
22541 PyObject * obj1 = 0 ;
22542 PyObject * obj2 = 0 ;
22543 PyObject * obj3 = 0 ;
22544 PyObject * obj4 = 0 ;
22545 PyObject * obj5 = 0 ;
22546 PyObject * obj6 = 0 ;
22547 char * kwnames[] = {
22548 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22549 };
22550
22551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22553 if (!SWIG_IsOK(res1)) {
22554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22555 }
22556 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22557 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22558 if (!SWIG_IsOK(res2)) {
22559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22560 }
22561 arg2 = reinterpret_cast< wxWindow * >(argp2);
22562 ecode3 = SWIG_AsVal_int(obj2, &val3);
22563 if (!SWIG_IsOK(ecode3)) {
22564 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22565 }
22566 arg3 = static_cast< int >(val3);
22567 if (obj3) {
22568 {
22569 arg4 = &temp4;
22570 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 22571 }
1bd55598
RD
22572 }
22573 if (obj4) {
f20a2e1f 22574 {
1bd55598
RD
22575 arg5 = &temp5;
22576 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 22577 }
1bd55598
RD
22578 }
22579 if (obj5) {
22580 ecode6 = SWIG_AsVal_long(obj5, &val6);
22581 if (!SWIG_IsOK(ecode6)) {
22582 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22583 }
22584 arg6 = static_cast< long >(val6);
22585 }
22586 if (obj6) {
f20a2e1f 22587 {
1bd55598
RD
22588 arg7 = wxString_in_helper(obj6);
22589 if (arg7 == NULL) SWIG_fail;
22590 temp7 = true;
f20a2e1f 22591 }
1bd55598
RD
22592 }
22593 {
22594 PyThreadState* __tstate = wxPyBeginAllowThreads();
22595 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22596 wxPyEndAllowThreads(__tstate);
22597 if (PyErr_Occurred()) SWIG_fail;
22598 }
22599 {
22600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22601 }
22602 {
22603 if (temp7)
22604 delete arg7;
22605 }
22606 return resultobj;
22607fail:
22608 {
22609 if (temp7)
22610 delete arg7;
22611 }
22612 return NULL;
f20a2e1f
RD
22613}
22614
22615
1bd55598
RD
22616SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22617 PyObject *resultobj = 0;
22618 wxToolbook *arg1 = (wxToolbook *) 0 ;
22619 wxToolBarBase *result = 0 ;
22620 void *argp1 = 0 ;
22621 int res1 = 0 ;
22622 PyObject *swig_obj[1] ;
22623
22624 if (!args) SWIG_fail;
22625 swig_obj[0] = args;
22626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22627 if (!SWIG_IsOK(res1)) {
22628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22629 }
22630 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22631 {
22632 PyThreadState* __tstate = wxPyBeginAllowThreads();
22633 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22634 wxPyEndAllowThreads(__tstate);
22635 if (PyErr_Occurred()) SWIG_fail;
22636 }
22637 {
22638 resultobj = wxPyMake_wxObject(result, (bool)0);
22639 }
22640 return resultobj;
22641fail:
22642 return NULL;
d55e5bfc
RD
22643}
22644
22645
1bd55598
RD
22646SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22647 PyObject *resultobj = 0;
22648 wxToolbook *arg1 = (wxToolbook *) 0 ;
22649 void *argp1 = 0 ;
22650 int res1 = 0 ;
22651 PyObject *swig_obj[1] ;
22652
22653 if (!args) SWIG_fail;
22654 swig_obj[0] = args;
22655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22656 if (!SWIG_IsOK(res1)) {
22657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22658 }
22659 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22660 {
22661 PyThreadState* __tstate = wxPyBeginAllowThreads();
22662 (arg1)->Realize();
22663 wxPyEndAllowThreads(__tstate);
22664 if (PyErr_Occurred()) SWIG_fail;
22665 }
22666 resultobj = SWIG_Py_Void();
22667 return resultobj;
22668fail:
22669 return NULL;
22670}
22671
22672
22673SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22674 PyObject *obj;
22675 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22676 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22677 return SWIG_Py_Void();
22678}
22679
22680SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22681 return SWIG_Python_InitShadowInstance(args);
22682}
22683
22684SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22685 PyObject *resultobj = 0;
22686 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22687 int arg2 = (int) 0 ;
22688 int arg3 = (int) wxNOT_FOUND ;
22689 int arg4 = (int) wxNOT_FOUND ;
22690 wxToolbookEvent *result = 0 ;
22691 int val1 ;
22692 int ecode1 = 0 ;
22693 int val2 ;
22694 int ecode2 = 0 ;
22695 int val3 ;
22696 int ecode3 = 0 ;
22697 int val4 ;
22698 int ecode4 = 0 ;
22699 PyObject * obj0 = 0 ;
22700 PyObject * obj1 = 0 ;
22701 PyObject * obj2 = 0 ;
22702 PyObject * obj3 = 0 ;
22703 char * kwnames[] = {
22704 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22705 };
22706
22707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22708 if (obj0) {
22709 ecode1 = SWIG_AsVal_int(obj0, &val1);
22710 if (!SWIG_IsOK(ecode1)) {
22711 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22712 }
22713 arg1 = static_cast< wxEventType >(val1);
22714 }
22715 if (obj1) {
22716 ecode2 = SWIG_AsVal_int(obj1, &val2);
22717 if (!SWIG_IsOK(ecode2)) {
22718 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22719 }
22720 arg2 = static_cast< int >(val2);
22721 }
22722 if (obj2) {
22723 ecode3 = SWIG_AsVal_int(obj2, &val3);
22724 if (!SWIG_IsOK(ecode3)) {
22725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22726 }
22727 arg3 = static_cast< int >(val3);
22728 }
22729 if (obj3) {
22730 ecode4 = SWIG_AsVal_int(obj3, &val4);
22731 if (!SWIG_IsOK(ecode4)) {
22732 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22733 }
22734 arg4 = static_cast< int >(val4);
22735 }
22736 {
22737 PyThreadState* __tstate = wxPyBeginAllowThreads();
22738 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22739 wxPyEndAllowThreads(__tstate);
22740 if (PyErr_Occurred()) SWIG_fail;
22741 }
22742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22743 return resultobj;
22744fail:
22745 return NULL;
d55e5bfc
RD
22746}
22747
22748
1bd55598
RD
22749SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22750 PyObject *obj;
22751 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22752 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22753 return SWIG_Py_Void();
d55e5bfc
RD
22754}
22755
1bd55598
RD
22756SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22757 return SWIG_Python_InitShadowInstance(args);
22758}
d55e5bfc 22759
1bd55598
RD
22760SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22761 PyObject *resultobj = 0;
22762 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22763 int result;
22764 void *argp1 = 0 ;
22765 int res1 = 0 ;
22766 PyObject *swig_obj[1] ;
22767
22768 if (!args) SWIG_fail;
22769 swig_obj[0] = args;
22770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22771 if (!SWIG_IsOK(res1)) {
22772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22773 }
22774 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22775 {
22776 PyThreadState* __tstate = wxPyBeginAllowThreads();
22777 result = (int)(arg1)->GetId();
22778 wxPyEndAllowThreads(__tstate);
22779 if (PyErr_Occurred()) SWIG_fail;
22780 }
22781 resultobj = SWIG_From_int(static_cast< int >(result));
22782 return resultobj;
22783fail:
22784 return NULL;
d55e5bfc 22785}
1bd55598
RD
22786
22787
22788SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22789 PyObject *resultobj = 0;
22790 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22791 wxControl *result = 0 ;
22792 void *argp1 = 0 ;
22793 int res1 = 0 ;
22794 PyObject *swig_obj[1] ;
22795
22796 if (!args) SWIG_fail;
22797 swig_obj[0] = args;
22798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22799 if (!SWIG_IsOK(res1)) {
22800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22801 }
22802 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22803 {
22804 PyThreadState* __tstate = wxPyBeginAllowThreads();
22805 result = (wxControl *)(arg1)->GetControl();
22806 wxPyEndAllowThreads(__tstate);
22807 if (PyErr_Occurred()) SWIG_fail;
22808 }
22809 {
22810 resultobj = wxPyMake_wxObject(result, 0);
22811 }
22812 return resultobj;
22813fail:
22814 return NULL;
d55e5bfc
RD
22815}
22816
22817
1bd55598
RD
22818SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22819 PyObject *resultobj = 0;
22820 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22821 wxToolBarBase *result = 0 ;
22822 void *argp1 = 0 ;
22823 int res1 = 0 ;
22824 PyObject *swig_obj[1] ;
22825
22826 if (!args) SWIG_fail;
22827 swig_obj[0] = args;
22828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22829 if (!SWIG_IsOK(res1)) {
22830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22831 }
22832 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22833 {
22834 PyThreadState* __tstate = wxPyBeginAllowThreads();
22835 result = (wxToolBarBase *)(arg1)->GetToolBar();
22836 wxPyEndAllowThreads(__tstate);
22837 if (PyErr_Occurred()) SWIG_fail;
22838 }
22839 {
22840 resultobj = wxPyMake_wxObject(result, (bool)0);
22841 }
22842 return resultobj;
22843fail:
22844 return NULL;
d55e5bfc
RD
22845}
22846
22847
1bd55598
RD
22848SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22849 PyObject *resultobj = 0;
22850 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22851 int result;
22852 void *argp1 = 0 ;
22853 int res1 = 0 ;
22854 PyObject *swig_obj[1] ;
22855
22856 if (!args) SWIG_fail;
22857 swig_obj[0] = args;
22858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22859 if (!SWIG_IsOK(res1)) {
22860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22861 }
22862 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22863 {
22864 PyThreadState* __tstate = wxPyBeginAllowThreads();
22865 result = (int)(arg1)->IsButton();
22866 wxPyEndAllowThreads(__tstate);
22867 if (PyErr_Occurred()) SWIG_fail;
22868 }
22869 resultobj = SWIG_From_int(static_cast< int >(result));
22870 return resultobj;
22871fail:
22872 return NULL;
d55e5bfc
RD
22873}
22874
22875
1bd55598
RD
22876SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22877 PyObject *resultobj = 0;
22878 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22879 int result;
22880 void *argp1 = 0 ;
22881 int res1 = 0 ;
22882 PyObject *swig_obj[1] ;
22883
22884 if (!args) SWIG_fail;
22885 swig_obj[0] = args;
22886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22887 if (!SWIG_IsOK(res1)) {
22888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22889 }
22890 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22891 {
22892 PyThreadState* __tstate = wxPyBeginAllowThreads();
22893 result = (int)(arg1)->IsControl();
22894 wxPyEndAllowThreads(__tstate);
22895 if (PyErr_Occurred()) SWIG_fail;
22896 }
22897 resultobj = SWIG_From_int(static_cast< int >(result));
22898 return resultobj;
22899fail:
22900 return NULL;
d55e5bfc
RD
22901}
22902
22903
1bd55598
RD
22904SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22905 PyObject *resultobj = 0;
22906 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22907 int result;
22908 void *argp1 = 0 ;
22909 int res1 = 0 ;
22910 PyObject *swig_obj[1] ;
22911
22912 if (!args) SWIG_fail;
22913 swig_obj[0] = args;
22914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22915 if (!SWIG_IsOK(res1)) {
22916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22917 }
22918 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22919 {
22920 PyThreadState* __tstate = wxPyBeginAllowThreads();
22921 result = (int)(arg1)->IsSeparator();
22922 wxPyEndAllowThreads(__tstate);
22923 if (PyErr_Occurred()) SWIG_fail;
22924 }
22925 resultobj = SWIG_From_int(static_cast< int >(result));
22926 return resultobj;
22927fail:
22928 return NULL;
d55e5bfc
RD
22929}
22930
22931
1bd55598
RD
22932SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22933 PyObject *resultobj = 0;
22934 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22935 int result;
22936 void *argp1 = 0 ;
22937 int res1 = 0 ;
22938 PyObject *swig_obj[1] ;
22939
22940 if (!args) SWIG_fail;
22941 swig_obj[0] = args;
22942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22943 if (!SWIG_IsOK(res1)) {
22944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22945 }
22946 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22947 {
22948 PyThreadState* __tstate = wxPyBeginAllowThreads();
22949 result = (int)(arg1)->GetStyle();
22950 wxPyEndAllowThreads(__tstate);
22951 if (PyErr_Occurred()) SWIG_fail;
22952 }
22953 resultobj = SWIG_From_int(static_cast< int >(result));
22954 return resultobj;
22955fail:
22956 return NULL;
d55e5bfc
RD
22957}
22958
22959
1bd55598
RD
22960SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22961 PyObject *resultobj = 0;
22962 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22963 wxItemKind result;
22964 void *argp1 = 0 ;
22965 int res1 = 0 ;
22966 PyObject *swig_obj[1] ;
22967
22968 if (!args) SWIG_fail;
22969 swig_obj[0] = args;
22970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22971 if (!SWIG_IsOK(res1)) {
22972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22973 }
22974 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22975 {
22976 PyThreadState* __tstate = wxPyBeginAllowThreads();
22977 result = (wxItemKind)(arg1)->GetKind();
22978 wxPyEndAllowThreads(__tstate);
22979 if (PyErr_Occurred()) SWIG_fail;
22980 }
22981 resultobj = SWIG_From_int(static_cast< int >(result));
22982 return resultobj;
22983fail:
22984 return NULL;
d55e5bfc
RD
22985}
22986
22987
1bd55598
RD
22988SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22989 PyObject *resultobj = 0;
22990 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22991 bool result;
22992 void *argp1 = 0 ;
22993 int res1 = 0 ;
22994 PyObject *swig_obj[1] ;
22995
22996 if (!args) SWIG_fail;
22997 swig_obj[0] = args;
22998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22999 if (!SWIG_IsOK(res1)) {
23000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23001 }
23002 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23003 {
23004 PyThreadState* __tstate = wxPyBeginAllowThreads();
23005 result = (bool)(arg1)->IsEnabled();
23006 wxPyEndAllowThreads(__tstate);
23007 if (PyErr_Occurred()) SWIG_fail;
23008 }
23009 {
23010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23011 }
23012 return resultobj;
23013fail:
23014 return NULL;
d55e5bfc
RD
23015}
23016
23017
1bd55598
RD
23018SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23019 PyObject *resultobj = 0;
23020 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23021 bool result;
23022 void *argp1 = 0 ;
23023 int res1 = 0 ;
23024 PyObject *swig_obj[1] ;
23025
23026 if (!args) SWIG_fail;
23027 swig_obj[0] = args;
23028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23029 if (!SWIG_IsOK(res1)) {
23030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23031 }
23032 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23033 {
23034 PyThreadState* __tstate = wxPyBeginAllowThreads();
23035 result = (bool)(arg1)->IsToggled();
23036 wxPyEndAllowThreads(__tstate);
23037 if (PyErr_Occurred()) SWIG_fail;
23038 }
23039 {
23040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23041 }
23042 return resultobj;
23043fail:
23044 return NULL;
d55e5bfc
RD
23045}
23046
23047
1bd55598
RD
23048SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23049 PyObject *resultobj = 0;
23050 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23051 bool result;
23052 void *argp1 = 0 ;
23053 int res1 = 0 ;
23054 PyObject *swig_obj[1] ;
23055
23056 if (!args) SWIG_fail;
23057 swig_obj[0] = args;
23058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23059 if (!SWIG_IsOK(res1)) {
23060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23061 }
23062 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23063 {
23064 PyThreadState* __tstate = wxPyBeginAllowThreads();
23065 result = (bool)(arg1)->CanBeToggled();
23066 wxPyEndAllowThreads(__tstate);
23067 if (PyErr_Occurred()) SWIG_fail;
23068 }
23069 {
23070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23071 }
23072 return resultobj;
23073fail:
23074 return NULL;
d55e5bfc
RD
23075}
23076
23077
1bd55598
RD
23078SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23079 PyObject *resultobj = 0;
23080 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23081 wxBitmap *result = 0 ;
23082 void *argp1 = 0 ;
23083 int res1 = 0 ;
23084 PyObject *swig_obj[1] ;
23085
23086 if (!args) SWIG_fail;
23087 swig_obj[0] = args;
23088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23089 if (!SWIG_IsOK(res1)) {
23090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23091 }
23092 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23093 {
23094 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 23095 {
1bd55598
RD
23096 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
23097 result = (wxBitmap *) &_result_ref;
36ed4f51 23098 }
1bd55598
RD
23099 wxPyEndAllowThreads(__tstate);
23100 if (PyErr_Occurred()) SWIG_fail;
23101 }
23102 {
23103 wxBitmap* resultptr = new wxBitmap(*result);
23104 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23105 }
23106 return resultobj;
23107fail:
23108 return NULL;
d55e5bfc
RD
23109}
23110
23111
1bd55598
RD
23112SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23113 PyObject *resultobj = 0;
23114 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23115 wxBitmap *result = 0 ;
23116 void *argp1 = 0 ;
23117 int res1 = 0 ;
23118 PyObject *swig_obj[1] ;
23119
23120 if (!args) SWIG_fail;
23121 swig_obj[0] = args;
23122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23123 if (!SWIG_IsOK(res1)) {
23124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23125 }
23126 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23127 {
23128 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 23129 {
1bd55598
RD
23130 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
23131 result = (wxBitmap *) &_result_ref;
d55e5bfc 23132 }
1bd55598
RD
23133 wxPyEndAllowThreads(__tstate);
23134 if (PyErr_Occurred()) SWIG_fail;
23135 }
23136 {
23137 wxBitmap* resultptr = new wxBitmap(*result);
23138 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
23139 }
23140 return resultobj;
23141fail:
23142 return NULL;
d55e5bfc
RD
23143}
23144
23145
1bd55598
RD
23146SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23147 PyObject *resultobj = 0;
23148 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23149 wxBitmap result;
23150 void *argp1 = 0 ;
23151 int res1 = 0 ;
23152 PyObject *swig_obj[1] ;
23153
23154 if (!args) SWIG_fail;
23155 swig_obj[0] = args;
23156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23157 if (!SWIG_IsOK(res1)) {
23158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23159 }
23160 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23161 {
23162 PyThreadState* __tstate = wxPyBeginAllowThreads();
23163 result = (arg1)->GetBitmap();
23164 wxPyEndAllowThreads(__tstate);
23165 if (PyErr_Occurred()) SWIG_fail;
23166 }
23167 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
23168 return resultobj;
23169fail:
23170 return NULL;
d55e5bfc
RD
23171}
23172
23173
1bd55598
RD
23174SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23175 PyObject *resultobj = 0;
23176 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23177 wxString result;
23178 void *argp1 = 0 ;
23179 int res1 = 0 ;
23180 PyObject *swig_obj[1] ;
23181
23182 if (!args) SWIG_fail;
23183 swig_obj[0] = args;
23184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23185 if (!SWIG_IsOK(res1)) {
23186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23187 }
23188 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23189 {
23190 PyThreadState* __tstate = wxPyBeginAllowThreads();
23191 result = (arg1)->GetLabel();
23192 wxPyEndAllowThreads(__tstate);
23193 if (PyErr_Occurred()) SWIG_fail;
23194 }
23195 {
23196#if wxUSE_UNICODE
23197 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23198#else
23199 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23200#endif
23201 }
23202 return resultobj;
23203fail:
23204 return NULL;
d55e5bfc
RD
23205}
23206
23207
1bd55598
RD
23208SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23209 PyObject *resultobj = 0;
23210 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23211 wxString result;
23212 void *argp1 = 0 ;
23213 int res1 = 0 ;
23214 PyObject *swig_obj[1] ;
23215
23216 if (!args) SWIG_fail;
23217 swig_obj[0] = args;
23218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23219 if (!SWIG_IsOK(res1)) {
23220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23221 }
23222 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23223 {
23224 PyThreadState* __tstate = wxPyBeginAllowThreads();
23225 result = (arg1)->GetShortHelp();
23226 wxPyEndAllowThreads(__tstate);
23227 if (PyErr_Occurred()) SWIG_fail;
23228 }
23229 {
23230#if wxUSE_UNICODE
23231 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23232#else
23233 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23234#endif
23235 }
23236 return resultobj;
23237fail:
23238 return NULL;
d55e5bfc
RD
23239}
23240
23241
1bd55598
RD
23242SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23243 PyObject *resultobj = 0;
23244 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23245 wxString result;
23246 void *argp1 = 0 ;
23247 int res1 = 0 ;
23248 PyObject *swig_obj[1] ;
23249
23250 if (!args) SWIG_fail;
23251 swig_obj[0] = args;
23252 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23253 if (!SWIG_IsOK(res1)) {
23254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23255 }
23256 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23257 {
23258 PyThreadState* __tstate = wxPyBeginAllowThreads();
23259 result = (arg1)->GetLongHelp();
23260 wxPyEndAllowThreads(__tstate);
23261 if (PyErr_Occurred()) SWIG_fail;
23262 }
23263 {
23264#if wxUSE_UNICODE
23265 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23266#else
23267 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23268#endif
23269 }
23270 return resultobj;
23271fail:
23272 return NULL;
23273}
23274
23275
23276SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23277 PyObject *resultobj = 0;
23278 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23279 bool arg2 ;
23280 bool result;
23281 void *argp1 = 0 ;
23282 int res1 = 0 ;
23283 bool val2 ;
23284 int ecode2 = 0 ;
23285 PyObject * obj0 = 0 ;
23286 PyObject * obj1 = 0 ;
23287 char * kwnames[] = {
23288 (char *) "self",(char *) "enable", NULL
23289 };
23290
23291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23293 if (!SWIG_IsOK(res1)) {
23294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23295 }
23296 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23297 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23298 if (!SWIG_IsOK(ecode2)) {
23299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23300 }
23301 arg2 = static_cast< bool >(val2);
23302 {
23303 PyThreadState* __tstate = wxPyBeginAllowThreads();
23304 result = (bool)(arg1)->Enable(arg2);
23305 wxPyEndAllowThreads(__tstate);
23306 if (PyErr_Occurred()) SWIG_fail;
23307 }
23308 {
23309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23310 }
23311 return resultobj;
23312fail:
23313 return NULL;
d55e5bfc
RD
23314}
23315
23316
1bd55598
RD
23317SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23318 PyObject *resultobj = 0;
23319 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23320 void *argp1 = 0 ;
23321 int res1 = 0 ;
23322 PyObject *swig_obj[1] ;
23323
23324 if (!args) SWIG_fail;
23325 swig_obj[0] = args;
23326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23327 if (!SWIG_IsOK(res1)) {
23328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23329 }
23330 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23331 {
23332 PyThreadState* __tstate = wxPyBeginAllowThreads();
23333 (arg1)->Toggle();
23334 wxPyEndAllowThreads(__tstate);
23335 if (PyErr_Occurred()) SWIG_fail;
23336 }
23337 resultobj = SWIG_Py_Void();
23338 return resultobj;
23339fail:
23340 return NULL;
23341}
23342
23343
23344SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23345 PyObject *resultobj = 0;
23346 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23347 bool arg2 ;
23348 bool result;
23349 void *argp1 = 0 ;
23350 int res1 = 0 ;
23351 bool val2 ;
23352 int ecode2 = 0 ;
23353 PyObject * obj0 = 0 ;
23354 PyObject * obj1 = 0 ;
23355 char * kwnames[] = {
23356 (char *) "self",(char *) "toggle", NULL
23357 };
23358
23359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23361 if (!SWIG_IsOK(res1)) {
23362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23363 }
23364 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23365 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23366 if (!SWIG_IsOK(ecode2)) {
23367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23368 }
23369 arg2 = static_cast< bool >(val2);
23370 {
23371 PyThreadState* __tstate = wxPyBeginAllowThreads();
23372 result = (bool)(arg1)->SetToggle(arg2);
23373 wxPyEndAllowThreads(__tstate);
23374 if (PyErr_Occurred()) SWIG_fail;
23375 }
23376 {
23377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23378 }
23379 return resultobj;
23380fail:
23381 return NULL;
23382}
23383
23384
23385SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23386 PyObject *resultobj = 0;
23387 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23388 wxString *arg2 = 0 ;
23389 bool result;
23390 void *argp1 = 0 ;
23391 int res1 = 0 ;
23392 bool temp2 = false ;
23393 PyObject * obj0 = 0 ;
23394 PyObject * obj1 = 0 ;
23395 char * kwnames[] = {
23396 (char *) "self",(char *) "help", NULL
23397 };
23398
23399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23401 if (!SWIG_IsOK(res1)) {
23402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23403 }
23404 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23405 {
23406 arg2 = wxString_in_helper(obj1);
23407 if (arg2 == NULL) SWIG_fail;
23408 temp2 = true;
23409 }
23410 {
23411 PyThreadState* __tstate = wxPyBeginAllowThreads();
23412 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23413 wxPyEndAllowThreads(__tstate);
23414 if (PyErr_Occurred()) SWIG_fail;
23415 }
23416 {
23417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23418 }
23419 {
23420 if (temp2)
23421 delete arg2;
23422 }
23423 return resultobj;
23424fail:
23425 {
23426 if (temp2)
23427 delete arg2;
23428 }
23429 return NULL;
23430}
23431
23432
23433SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23434 PyObject *resultobj = 0;
23435 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23436 wxString *arg2 = 0 ;
23437 bool result;
23438 void *argp1 = 0 ;
23439 int res1 = 0 ;
23440 bool temp2 = false ;
23441 PyObject * obj0 = 0 ;
23442 PyObject * obj1 = 0 ;
23443 char * kwnames[] = {
23444 (char *) "self",(char *) "help", NULL
23445 };
23446
23447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23449 if (!SWIG_IsOK(res1)) {
23450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23451 }
23452 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23453 {
23454 arg2 = wxString_in_helper(obj1);
23455 if (arg2 == NULL) SWIG_fail;
23456 temp2 = true;
23457 }
23458 {
23459 PyThreadState* __tstate = wxPyBeginAllowThreads();
23460 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23461 wxPyEndAllowThreads(__tstate);
23462 if (PyErr_Occurred()) SWIG_fail;
23463 }
23464 {
23465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23466 }
23467 {
23468 if (temp2)
23469 delete arg2;
23470 }
23471 return resultobj;
23472fail:
23473 {
23474 if (temp2)
23475 delete arg2;
23476 }
23477 return NULL;
23478}
23479
23480
23481SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23482 PyObject *resultobj = 0;
23483 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23484 wxBitmap *arg2 = 0 ;
23485 void *argp1 = 0 ;
23486 int res1 = 0 ;
23487 void *argp2 = 0 ;
23488 int res2 = 0 ;
23489 PyObject * obj0 = 0 ;
23490 PyObject * obj1 = 0 ;
23491 char * kwnames[] = {
23492 (char *) "self",(char *) "bmp", NULL
23493 };
23494
23495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23497 if (!SWIG_IsOK(res1)) {
23498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23499 }
23500 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23501 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23502 if (!SWIG_IsOK(res2)) {
23503 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23504 }
23505 if (!argp2) {
23506 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23507 }
23508 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23509 {
23510 PyThreadState* __tstate = wxPyBeginAllowThreads();
23511 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23512 wxPyEndAllowThreads(__tstate);
23513 if (PyErr_Occurred()) SWIG_fail;
23514 }
23515 resultobj = SWIG_Py_Void();
23516 return resultobj;
23517fail:
23518 return NULL;
23519}
23520
23521
23522SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23523 PyObject *resultobj = 0;
23524 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23525 wxBitmap *arg2 = 0 ;
23526 void *argp1 = 0 ;
23527 int res1 = 0 ;
23528 void *argp2 = 0 ;
23529 int res2 = 0 ;
23530 PyObject * obj0 = 0 ;
23531 PyObject * obj1 = 0 ;
23532 char * kwnames[] = {
23533 (char *) "self",(char *) "bmp", NULL
23534 };
23535
23536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23538 if (!SWIG_IsOK(res1)) {
23539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23540 }
23541 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23542 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23543 if (!SWIG_IsOK(res2)) {
23544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23545 }
23546 if (!argp2) {
23547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23548 }
23549 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23550 {
23551 PyThreadState* __tstate = wxPyBeginAllowThreads();
23552 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23553 wxPyEndAllowThreads(__tstate);
23554 if (PyErr_Occurred()) SWIG_fail;
23555 }
23556 resultobj = SWIG_Py_Void();
23557 return resultobj;
23558fail:
23559 return NULL;
23560}
23561
23562
23563SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23564 PyObject *resultobj = 0;
23565 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23566 wxString *arg2 = 0 ;
23567 void *argp1 = 0 ;
23568 int res1 = 0 ;
23569 bool temp2 = false ;
23570 PyObject * obj0 = 0 ;
23571 PyObject * obj1 = 0 ;
23572 char * kwnames[] = {
23573 (char *) "self",(char *) "label", NULL
23574 };
23575
23576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23578 if (!SWIG_IsOK(res1)) {
23579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23580 }
23581 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23582 {
23583 arg2 = wxString_in_helper(obj1);
23584 if (arg2 == NULL) SWIG_fail;
23585 temp2 = true;
23586 }
23587 {
23588 PyThreadState* __tstate = wxPyBeginAllowThreads();
23589 (arg1)->SetLabel((wxString const &)*arg2);
23590 wxPyEndAllowThreads(__tstate);
23591 if (PyErr_Occurred()) SWIG_fail;
23592 }
23593 resultobj = SWIG_Py_Void();
23594 {
23595 if (temp2)
23596 delete arg2;
23597 }
23598 return resultobj;
23599fail:
23600 {
23601 if (temp2)
23602 delete arg2;
23603 }
23604 return NULL;
d55e5bfc
RD
23605}
23606
23607
1bd55598
RD
23608SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23609 PyObject *resultobj = 0;
23610 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23611 void *argp1 = 0 ;
23612 int res1 = 0 ;
23613 PyObject *swig_obj[1] ;
23614
23615 if (!args) SWIG_fail;
23616 swig_obj[0] = args;
23617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23618 if (!SWIG_IsOK(res1)) {
23619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23620 }
23621 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23622 {
23623 PyThreadState* __tstate = wxPyBeginAllowThreads();
23624 (arg1)->Detach();
23625 wxPyEndAllowThreads(__tstate);
23626 if (PyErr_Occurred()) SWIG_fail;
23627 }
23628 resultobj = SWIG_Py_Void();
23629 return resultobj;
23630fail:
23631 return NULL;
23632}
23633
23634
23635SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23636 PyObject *resultobj = 0;
23637 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23638 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23639 void *argp1 = 0 ;
23640 int res1 = 0 ;
23641 void *argp2 = 0 ;
23642 int res2 = 0 ;
23643 PyObject * obj0 = 0 ;
23644 PyObject * obj1 = 0 ;
23645 char * kwnames[] = {
23646 (char *) "self",(char *) "tbar", NULL
23647 };
23648
23649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23651 if (!SWIG_IsOK(res1)) {
23652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23653 }
23654 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23655 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23656 if (!SWIG_IsOK(res2)) {
23657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23658 }
23659 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23660 {
23661 PyThreadState* __tstate = wxPyBeginAllowThreads();
23662 (arg1)->Attach(arg2);
23663 wxPyEndAllowThreads(__tstate);
23664 if (PyErr_Occurred()) SWIG_fail;
23665 }
23666 resultobj = SWIG_Py_Void();
23667 return resultobj;
23668fail:
23669 return NULL;
d55e5bfc
RD
23670}
23671
23672
1bd55598
RD
23673SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23674 PyObject *resultobj = 0;
23675 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23676 PyObject *result = 0 ;
23677 void *argp1 = 0 ;
23678 int res1 = 0 ;
23679 PyObject *swig_obj[1] ;
23680
23681 if (!args) SWIG_fail;
23682 swig_obj[0] = args;
23683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23684 if (!SWIG_IsOK(res1)) {
23685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23686 }
23687 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23688 {
23689 PyThreadState* __tstate = wxPyBeginAllowThreads();
23690 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23691 wxPyEndAllowThreads(__tstate);
23692 if (PyErr_Occurred()) SWIG_fail;
23693 }
23694 resultobj = result;
23695 return resultobj;
23696fail:
23697 return NULL;
23698}
23699
23700
23701SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23702 PyObject *resultobj = 0;
23703 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23704 PyObject *arg2 = (PyObject *) 0 ;
23705 void *argp1 = 0 ;
23706 int res1 = 0 ;
23707 PyObject * obj0 = 0 ;
23708 PyObject * obj1 = 0 ;
23709 char * kwnames[] = {
23710 (char *) "self",(char *) "clientData", NULL
23711 };
23712
23713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23715 if (!SWIG_IsOK(res1)) {
23716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23717 }
23718 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23719 arg2 = obj1;
23720 {
23721 PyThreadState* __tstate = wxPyBeginAllowThreads();
23722 wxToolBarToolBase_SetClientData(arg1,arg2);
23723 wxPyEndAllowThreads(__tstate);
23724 if (PyErr_Occurred()) SWIG_fail;
23725 }
23726 resultobj = SWIG_Py_Void();
23727 return resultobj;
23728fail:
23729 return NULL;
23730}
23731
23732
23733SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23734 PyObject *obj;
23735 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23736 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23737 return SWIG_Py_Void();
23738}
23739
23740SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23741 PyObject *resultobj = 0;
23742 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23743 int arg2 ;
23744 wxString *arg3 = 0 ;
23745 wxBitmap *arg4 = 0 ;
23746 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23747 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23748 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23749 wxString const &arg7_defvalue = wxPyEmptyString ;
23750 wxString *arg7 = (wxString *) &arg7_defvalue ;
23751 wxString const &arg8_defvalue = wxPyEmptyString ;
23752 wxString *arg8 = (wxString *) &arg8_defvalue ;
23753 PyObject *arg9 = (PyObject *) NULL ;
23754 wxToolBarToolBase *result = 0 ;
23755 void *argp1 = 0 ;
23756 int res1 = 0 ;
23757 int val2 ;
23758 int ecode2 = 0 ;
23759 bool temp3 = false ;
23760 void *argp4 = 0 ;
23761 int res4 = 0 ;
23762 void *argp5 = 0 ;
23763 int res5 = 0 ;
23764 int val6 ;
23765 int ecode6 = 0 ;
23766 bool temp7 = false ;
23767 bool temp8 = false ;
23768 PyObject * obj0 = 0 ;
23769 PyObject * obj1 = 0 ;
23770 PyObject * obj2 = 0 ;
23771 PyObject * obj3 = 0 ;
23772 PyObject * obj4 = 0 ;
23773 PyObject * obj5 = 0 ;
23774 PyObject * obj6 = 0 ;
23775 PyObject * obj7 = 0 ;
23776 PyObject * obj8 = 0 ;
23777 char * kwnames[] = {
23778 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23779 };
23780
23781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23783 if (!SWIG_IsOK(res1)) {
23784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23785 }
23786 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23787 ecode2 = SWIG_AsVal_int(obj1, &val2);
23788 if (!SWIG_IsOK(ecode2)) {
23789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23790 }
23791 arg2 = static_cast< int >(val2);
23792 {
23793 arg3 = wxString_in_helper(obj2);
23794 if (arg3 == NULL) SWIG_fail;
23795 temp3 = true;
23796 }
23797 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23798 if (!SWIG_IsOK(res4)) {
23799 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23800 }
23801 if (!argp4) {
23802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23803 }
23804 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23805 if (obj4) {
23806 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23807 if (!SWIG_IsOK(res5)) {
23808 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
36ed4f51 23809 }
1bd55598
RD
23810 if (!argp5) {
23811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
f20a2e1f 23812 }
1bd55598
RD
23813 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23814 }
23815 if (obj5) {
23816 ecode6 = SWIG_AsVal_int(obj5, &val6);
23817 if (!SWIG_IsOK(ecode6)) {
23818 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23819 }
23820 arg6 = static_cast< wxItemKind >(val6);
23821 }
23822 if (obj6) {
f20a2e1f 23823 {
1bd55598
RD
23824 arg7 = wxString_in_helper(obj6);
23825 if (arg7 == NULL) SWIG_fail;
23826 temp7 = true;
f20a2e1f 23827 }
1bd55598
RD
23828 }
23829 if (obj7) {
f20a2e1f 23830 {
1bd55598
RD
23831 arg8 = wxString_in_helper(obj7);
23832 if (arg8 == NULL) SWIG_fail;
23833 temp8 = true;
d55e5bfc 23834 }
1bd55598
RD
23835 }
23836 if (obj8) {
23837 arg9 = obj8;
23838 }
23839 {
23840 PyThreadState* __tstate = wxPyBeginAllowThreads();
23841 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23842 wxPyEndAllowThreads(__tstate);
23843 if (PyErr_Occurred()) SWIG_fail;
23844 }
23845 {
23846 resultobj = wxPyMake_wxObject(result, (bool)0);
23847 }
23848 {
23849 if (temp3)
23850 delete arg3;
23851 }
23852 {
23853 if (temp7)
23854 delete arg7;
23855 }
23856 {
23857 if (temp8)
23858 delete arg8;
23859 }
23860 return resultobj;
23861fail:
23862 {
23863 if (temp3)
23864 delete arg3;
23865 }
23866 {
23867 if (temp7)
23868 delete arg7;
23869 }
23870 {
23871 if (temp8)
23872 delete arg8;
23873 }
23874 return NULL;
23875}
23876
23877
23878SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23879 PyObject *resultobj = 0;
23880 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23881 size_t arg2 ;
23882 int arg3 ;
23883 wxString *arg4 = 0 ;
23884 wxBitmap *arg5 = 0 ;
23885 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23886 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23887 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23888 wxString const &arg8_defvalue = wxPyEmptyString ;
23889 wxString *arg8 = (wxString *) &arg8_defvalue ;
23890 wxString const &arg9_defvalue = wxPyEmptyString ;
23891 wxString *arg9 = (wxString *) &arg9_defvalue ;
23892 PyObject *arg10 = (PyObject *) NULL ;
23893 wxToolBarToolBase *result = 0 ;
23894 void *argp1 = 0 ;
23895 int res1 = 0 ;
23896 size_t val2 ;
23897 int ecode2 = 0 ;
23898 int val3 ;
23899 int ecode3 = 0 ;
23900 bool temp4 = false ;
23901 void *argp5 = 0 ;
23902 int res5 = 0 ;
23903 void *argp6 = 0 ;
23904 int res6 = 0 ;
23905 int val7 ;
23906 int ecode7 = 0 ;
23907 bool temp8 = false ;
23908 bool temp9 = false ;
23909 PyObject * obj0 = 0 ;
23910 PyObject * obj1 = 0 ;
23911 PyObject * obj2 = 0 ;
23912 PyObject * obj3 = 0 ;
23913 PyObject * obj4 = 0 ;
23914 PyObject * obj5 = 0 ;
23915 PyObject * obj6 = 0 ;
23916 PyObject * obj7 = 0 ;
23917 PyObject * obj8 = 0 ;
23918 PyObject * obj9 = 0 ;
23919 char * kwnames[] = {
23920 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23921 };
23922
23923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23925 if (!SWIG_IsOK(res1)) {
23926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23927 }
23928 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23929 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23930 if (!SWIG_IsOK(ecode2)) {
23931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23932 }
23933 arg2 = static_cast< size_t >(val2);
23934 ecode3 = SWIG_AsVal_int(obj2, &val3);
23935 if (!SWIG_IsOK(ecode3)) {
23936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23937 }
23938 arg3 = static_cast< int >(val3);
23939 {
23940 arg4 = wxString_in_helper(obj3);
23941 if (arg4 == NULL) SWIG_fail;
23942 temp4 = true;
23943 }
23944 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23945 if (!SWIG_IsOK(res5)) {
23946 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23947 }
23948 if (!argp5) {
23949 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23950 }
23951 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23952 if (obj5) {
23953 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23954 if (!SWIG_IsOK(res6)) {
23955 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23956 }
1bd55598
RD
23957 if (!argp6) {
23958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23959 }
1bd55598
RD
23960 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23961 }
23962 if (obj6) {
23963 ecode7 = SWIG_AsVal_int(obj6, &val7);
23964 if (!SWIG_IsOK(ecode7)) {
23965 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23966 }
23967 arg7 = static_cast< wxItemKind >(val7);
23968 }
23969 if (obj7) {
d55e5bfc 23970 {
1bd55598
RD
23971 arg8 = wxString_in_helper(obj7);
23972 if (arg8 == NULL) SWIG_fail;
23973 temp8 = true;
d55e5bfc 23974 }
1bd55598
RD
23975 }
23976 if (obj8) {
d55e5bfc 23977 {
1bd55598
RD
23978 arg9 = wxString_in_helper(obj8);
23979 if (arg9 == NULL) SWIG_fail;
23980 temp9 = true;
d55e5bfc 23981 }
1bd55598
RD
23982 }
23983 if (obj9) {
23984 arg10 = obj9;
23985 }
23986 {
23987 PyThreadState* __tstate = wxPyBeginAllowThreads();
23988 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23989 wxPyEndAllowThreads(__tstate);
23990 if (PyErr_Occurred()) SWIG_fail;
23991 }
23992 {
23993 resultobj = wxPyMake_wxObject(result, (bool)0);
23994 }
23995 {
23996 if (temp4)
23997 delete arg4;
23998 }
23999 {
24000 if (temp8)
24001 delete arg8;
24002 }
24003 {
24004 if (temp9)
24005 delete arg9;
24006 }
24007 return resultobj;
24008fail:
24009 {
24010 if (temp4)
24011 delete arg4;
24012 }
24013 {
24014 if (temp8)
24015 delete arg8;
24016 }
24017 {
24018 if (temp9)
24019 delete arg9;
24020 }
24021 return NULL;
24022}
24023
24024
24025SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24026 PyObject *resultobj = 0;
24027 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24028 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
24029 wxToolBarToolBase *result = 0 ;
24030 void *argp1 = 0 ;
24031 int res1 = 0 ;
24032 void *argp2 = 0 ;
24033 int res2 = 0 ;
24034 PyObject * obj0 = 0 ;
24035 PyObject * obj1 = 0 ;
24036 char * kwnames[] = {
24037 (char *) "self",(char *) "tool", NULL
24038 };
24039
24040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
24041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24042 if (!SWIG_IsOK(res1)) {
24043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24044 }
24045 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24046 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24047 if (!SWIG_IsOK(res2)) {
24048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
24049 }
24050 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
24051 {
24052 PyThreadState* __tstate = wxPyBeginAllowThreads();
24053 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
24054 wxPyEndAllowThreads(__tstate);
24055 if (PyErr_Occurred()) SWIG_fail;
24056 }
24057 {
24058 resultobj = wxPyMake_wxObject(result, (bool)0);
24059 }
24060 return resultobj;
24061fail:
24062 return NULL;
24063}
24064
24065
24066SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24067 PyObject *resultobj = 0;
24068 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24069 size_t arg2 ;
24070 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
24071 wxToolBarToolBase *result = 0 ;
24072 void *argp1 = 0 ;
24073 int res1 = 0 ;
24074 size_t val2 ;
24075 int ecode2 = 0 ;
24076 void *argp3 = 0 ;
24077 int res3 = 0 ;
24078 PyObject * obj0 = 0 ;
24079 PyObject * obj1 = 0 ;
24080 PyObject * obj2 = 0 ;
24081 char * kwnames[] = {
24082 (char *) "self",(char *) "pos",(char *) "tool", NULL
24083 };
24084
24085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24087 if (!SWIG_IsOK(res1)) {
24088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24089 }
24090 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24091 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24092 if (!SWIG_IsOK(ecode2)) {
24093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
24094 }
24095 arg2 = static_cast< size_t >(val2);
24096 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
24097 if (!SWIG_IsOK(res3)) {
24098 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
24099 }
24100 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
24101 {
24102 PyThreadState* __tstate = wxPyBeginAllowThreads();
24103 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
24104 wxPyEndAllowThreads(__tstate);
24105 if (PyErr_Occurred()) SWIG_fail;
24106 }
24107 {
24108 resultobj = wxPyMake_wxObject(result, (bool)0);
24109 }
24110 return resultobj;
24111fail:
24112 return NULL;
24113}
24114
24115
24116SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24117 PyObject *resultobj = 0;
24118 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24119 wxControl *arg2 = (wxControl *) 0 ;
24120 wxToolBarToolBase *result = 0 ;
24121 void *argp1 = 0 ;
24122 int res1 = 0 ;
24123 void *argp2 = 0 ;
24124 int res2 = 0 ;
24125 PyObject * obj0 = 0 ;
24126 PyObject * obj1 = 0 ;
24127 char * kwnames[] = {
24128 (char *) "self",(char *) "control", NULL
24129 };
24130
24131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
24132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24133 if (!SWIG_IsOK(res1)) {
24134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24135 }
24136 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24137 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
24138 if (!SWIG_IsOK(res2)) {
24139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
24140 }
24141 arg2 = reinterpret_cast< wxControl * >(argp2);
24142 {
24143 PyThreadState* __tstate = wxPyBeginAllowThreads();
24144 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
24145 wxPyEndAllowThreads(__tstate);
24146 if (PyErr_Occurred()) SWIG_fail;
24147 }
24148 {
24149 resultobj = wxPyMake_wxObject(result, (bool)0);
24150 }
24151 return resultobj;
24152fail:
24153 return NULL;
24154}
24155
24156
24157SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24158 PyObject *resultobj = 0;
24159 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24160 size_t arg2 ;
24161 wxControl *arg3 = (wxControl *) 0 ;
24162 wxToolBarToolBase *result = 0 ;
24163 void *argp1 = 0 ;
24164 int res1 = 0 ;
24165 size_t val2 ;
24166 int ecode2 = 0 ;
24167 void *argp3 = 0 ;
24168 int res3 = 0 ;
24169 PyObject * obj0 = 0 ;
24170 PyObject * obj1 = 0 ;
24171 PyObject * obj2 = 0 ;
24172 char * kwnames[] = {
24173 (char *) "self",(char *) "pos",(char *) "control", NULL
24174 };
24175
24176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24178 if (!SWIG_IsOK(res1)) {
24179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24180 }
24181 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24182 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24183 if (!SWIG_IsOK(ecode2)) {
24184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
24185 }
24186 arg2 = static_cast< size_t >(val2);
24187 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
24188 if (!SWIG_IsOK(res3)) {
24189 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
24190 }
24191 arg3 = reinterpret_cast< wxControl * >(argp3);
24192 {
24193 PyThreadState* __tstate = wxPyBeginAllowThreads();
24194 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
24195 wxPyEndAllowThreads(__tstate);
24196 if (PyErr_Occurred()) SWIG_fail;
24197 }
24198 {
24199 resultobj = wxPyMake_wxObject(result, (bool)0);
24200 }
24201 return resultobj;
24202fail:
24203 return NULL;
24204}
24205
24206
24207SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24208 PyObject *resultobj = 0;
24209 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24210 int arg2 ;
24211 wxControl *result = 0 ;
24212 void *argp1 = 0 ;
24213 int res1 = 0 ;
24214 int val2 ;
24215 int ecode2 = 0 ;
24216 PyObject * obj0 = 0 ;
24217 PyObject * obj1 = 0 ;
24218 char * kwnames[] = {
24219 (char *) "self",(char *) "id", NULL
24220 };
24221
24222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
24223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24224 if (!SWIG_IsOK(res1)) {
24225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24226 }
24227 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24228 ecode2 = SWIG_AsVal_int(obj1, &val2);
24229 if (!SWIG_IsOK(ecode2)) {
24230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
24231 }
24232 arg2 = static_cast< int >(val2);
24233 {
24234 PyThreadState* __tstate = wxPyBeginAllowThreads();
24235 result = (wxControl *)(arg1)->FindControl(arg2);
24236 wxPyEndAllowThreads(__tstate);
24237 if (PyErr_Occurred()) SWIG_fail;
24238 }
24239 {
24240 resultobj = wxPyMake_wxObject(result, 0);
24241 }
24242 return resultobj;
24243fail:
24244 return NULL;
d55e5bfc
RD
24245}
24246
24247
1bd55598
RD
24248SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24249 PyObject *resultobj = 0;
24250 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24251 wxToolBarToolBase *result = 0 ;
24252 void *argp1 = 0 ;
24253 int res1 = 0 ;
24254 PyObject *swig_obj[1] ;
24255
24256 if (!args) SWIG_fail;
24257 swig_obj[0] = args;
24258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24259 if (!SWIG_IsOK(res1)) {
24260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24261 }
24262 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24263 {
24264 PyThreadState* __tstate = wxPyBeginAllowThreads();
24265 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24266 wxPyEndAllowThreads(__tstate);
24267 if (PyErr_Occurred()) SWIG_fail;
24268 }
24269 {
24270 resultobj = wxPyMake_wxObject(result, (bool)0);
24271 }
24272 return resultobj;
24273fail:
24274 return NULL;
24275}
24276
24277
24278SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24279 PyObject *resultobj = 0;
24280 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24281 size_t arg2 ;
24282 wxToolBarToolBase *result = 0 ;
24283 void *argp1 = 0 ;
24284 int res1 = 0 ;
24285 size_t val2 ;
24286 int ecode2 = 0 ;
24287 PyObject * obj0 = 0 ;
24288 PyObject * obj1 = 0 ;
24289 char * kwnames[] = {
24290 (char *) "self",(char *) "pos", NULL
24291 };
24292
24293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24295 if (!SWIG_IsOK(res1)) {
24296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24297 }
24298 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24299 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24300 if (!SWIG_IsOK(ecode2)) {
24301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24302 }
24303 arg2 = static_cast< size_t >(val2);
24304 {
24305 PyThreadState* __tstate = wxPyBeginAllowThreads();
24306 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24307 wxPyEndAllowThreads(__tstate);
24308 if (PyErr_Occurred()) SWIG_fail;
24309 }
24310 {
24311 resultobj = wxPyMake_wxObject(result, (bool)0);
24312 }
24313 return resultobj;
24314fail:
24315 return NULL;
24316}
24317
24318
24319SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24320 PyObject *resultobj = 0;
24321 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24322 int arg2 ;
24323 wxToolBarToolBase *result = 0 ;
24324 void *argp1 = 0 ;
24325 int res1 = 0 ;
24326 int val2 ;
24327 int ecode2 = 0 ;
24328 PyObject * obj0 = 0 ;
24329 PyObject * obj1 = 0 ;
24330 char * kwnames[] = {
24331 (char *) "self",(char *) "id", NULL
24332 };
24333
24334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24336 if (!SWIG_IsOK(res1)) {
24337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24338 }
24339 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24340 ecode2 = SWIG_AsVal_int(obj1, &val2);
24341 if (!SWIG_IsOK(ecode2)) {
24342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24343 }
24344 arg2 = static_cast< int >(val2);
24345 {
24346 PyThreadState* __tstate = wxPyBeginAllowThreads();
24347 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24348 wxPyEndAllowThreads(__tstate);
24349 if (PyErr_Occurred()) SWIG_fail;
24350 }
24351 {
24352 resultobj = wxPyMake_wxObject(result, (bool)0);
24353 }
24354 return resultobj;
24355fail:
24356 return NULL;
24357}
24358
24359
24360SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24361 PyObject *resultobj = 0;
24362 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24363 size_t arg2 ;
24364 bool result;
24365 void *argp1 = 0 ;
24366 int res1 = 0 ;
24367 size_t val2 ;
24368 int ecode2 = 0 ;
24369 PyObject * obj0 = 0 ;
24370 PyObject * obj1 = 0 ;
24371 char * kwnames[] = {
24372 (char *) "self",(char *) "pos", NULL
24373 };
24374
24375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24377 if (!SWIG_IsOK(res1)) {
24378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24379 }
24380 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24381 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24382 if (!SWIG_IsOK(ecode2)) {
24383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24384 }
24385 arg2 = static_cast< size_t >(val2);
24386 {
24387 PyThreadState* __tstate = wxPyBeginAllowThreads();
24388 result = (bool)(arg1)->DeleteToolByPos(arg2);
24389 wxPyEndAllowThreads(__tstate);
24390 if (PyErr_Occurred()) SWIG_fail;
24391 }
24392 {
24393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24394 }
24395 return resultobj;
24396fail:
24397 return NULL;
24398}
24399
24400
24401SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24402 PyObject *resultobj = 0;
24403 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24404 int arg2 ;
24405 bool result;
24406 void *argp1 = 0 ;
24407 int res1 = 0 ;
24408 int val2 ;
24409 int ecode2 = 0 ;
24410 PyObject * obj0 = 0 ;
24411 PyObject * obj1 = 0 ;
24412 char * kwnames[] = {
24413 (char *) "self",(char *) "id", NULL
24414 };
24415
24416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24418 if (!SWIG_IsOK(res1)) {
24419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24420 }
24421 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24422 ecode2 = SWIG_AsVal_int(obj1, &val2);
24423 if (!SWIG_IsOK(ecode2)) {
24424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24425 }
24426 arg2 = static_cast< int >(val2);
24427 {
24428 PyThreadState* __tstate = wxPyBeginAllowThreads();
24429 result = (bool)(arg1)->DeleteTool(arg2);
24430 wxPyEndAllowThreads(__tstate);
24431 if (PyErr_Occurred()) SWIG_fail;
24432 }
24433 {
24434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24435 }
24436 return resultobj;
24437fail:
24438 return NULL;
d55e5bfc
RD
24439}
24440
24441
1bd55598
RD
24442SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24443 PyObject *resultobj = 0;
24444 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24445 void *argp1 = 0 ;
24446 int res1 = 0 ;
24447 PyObject *swig_obj[1] ;
24448
24449 if (!args) SWIG_fail;
24450 swig_obj[0] = args;
24451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24452 if (!SWIG_IsOK(res1)) {
24453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24454 }
24455 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24456 {
24457 PyThreadState* __tstate = wxPyBeginAllowThreads();
24458 (arg1)->ClearTools();
24459 wxPyEndAllowThreads(__tstate);
24460 if (PyErr_Occurred()) SWIG_fail;
24461 }
24462 resultobj = SWIG_Py_Void();
24463 return resultobj;
24464fail:
24465 return NULL;
d55e5bfc
RD
24466}
24467
24468
1bd55598
RD
24469SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24470 PyObject *resultobj = 0;
24471 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24472 bool result;
24473 void *argp1 = 0 ;
24474 int res1 = 0 ;
24475 PyObject *swig_obj[1] ;
24476
24477 if (!args) SWIG_fail;
24478 swig_obj[0] = args;
24479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24480 if (!SWIG_IsOK(res1)) {
24481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24482 }
24483 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24484 {
24485 PyThreadState* __tstate = wxPyBeginAllowThreads();
24486 result = (bool)(arg1)->Realize();
24487 wxPyEndAllowThreads(__tstate);
24488 if (PyErr_Occurred()) SWIG_fail;
24489 }
24490 {
24491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24492 }
24493 return resultobj;
24494fail:
24495 return NULL;
24496}
24497
24498
24499SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24500 PyObject *resultobj = 0;
24501 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24502 int arg2 ;
24503 bool arg3 ;
24504 void *argp1 = 0 ;
24505 int res1 = 0 ;
24506 int val2 ;
24507 int ecode2 = 0 ;
24508 bool val3 ;
24509 int ecode3 = 0 ;
24510 PyObject * obj0 = 0 ;
24511 PyObject * obj1 = 0 ;
24512 PyObject * obj2 = 0 ;
24513 char * kwnames[] = {
24514 (char *) "self",(char *) "id",(char *) "enable", NULL
24515 };
24516
24517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24519 if (!SWIG_IsOK(res1)) {
24520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24521 }
24522 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24523 ecode2 = SWIG_AsVal_int(obj1, &val2);
24524 if (!SWIG_IsOK(ecode2)) {
24525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24526 }
24527 arg2 = static_cast< int >(val2);
24528 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24529 if (!SWIG_IsOK(ecode3)) {
24530 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24531 }
24532 arg3 = static_cast< bool >(val3);
24533 {
24534 PyThreadState* __tstate = wxPyBeginAllowThreads();
24535 (arg1)->EnableTool(arg2,arg3);
24536 wxPyEndAllowThreads(__tstate);
24537 if (PyErr_Occurred()) SWIG_fail;
24538 }
24539 resultobj = SWIG_Py_Void();
24540 return resultobj;
24541fail:
24542 return NULL;
24543}
24544
24545
24546SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24547 PyObject *resultobj = 0;
24548 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24549 int arg2 ;
24550 bool arg3 ;
24551 void *argp1 = 0 ;
24552 int res1 = 0 ;
24553 int val2 ;
24554 int ecode2 = 0 ;
24555 bool val3 ;
24556 int ecode3 = 0 ;
24557 PyObject * obj0 = 0 ;
24558 PyObject * obj1 = 0 ;
24559 PyObject * obj2 = 0 ;
24560 char * kwnames[] = {
24561 (char *) "self",(char *) "id",(char *) "toggle", NULL
24562 };
24563
24564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24566 if (!SWIG_IsOK(res1)) {
24567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24568 }
24569 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24570 ecode2 = SWIG_AsVal_int(obj1, &val2);
24571 if (!SWIG_IsOK(ecode2)) {
24572 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24573 }
24574 arg2 = static_cast< int >(val2);
24575 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24576 if (!SWIG_IsOK(ecode3)) {
24577 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24578 }
24579 arg3 = static_cast< bool >(val3);
24580 {
24581 PyThreadState* __tstate = wxPyBeginAllowThreads();
24582 (arg1)->ToggleTool(arg2,arg3);
24583 wxPyEndAllowThreads(__tstate);
24584 if (PyErr_Occurred()) SWIG_fail;
24585 }
24586 resultobj = SWIG_Py_Void();
24587 return resultobj;
24588fail:
24589 return NULL;
24590}
24591
24592
24593SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24594 PyObject *resultobj = 0;
24595 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24596 int arg2 ;
24597 bool arg3 ;
24598 void *argp1 = 0 ;
24599 int res1 = 0 ;
24600 int val2 ;
24601 int ecode2 = 0 ;
24602 bool val3 ;
24603 int ecode3 = 0 ;
24604 PyObject * obj0 = 0 ;
24605 PyObject * obj1 = 0 ;
24606 PyObject * obj2 = 0 ;
24607 char * kwnames[] = {
24608 (char *) "self",(char *) "id",(char *) "toggle", NULL
24609 };
24610
24611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24613 if (!SWIG_IsOK(res1)) {
24614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24615 }
24616 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24617 ecode2 = SWIG_AsVal_int(obj1, &val2);
24618 if (!SWIG_IsOK(ecode2)) {
24619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24620 }
24621 arg2 = static_cast< int >(val2);
24622 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24623 if (!SWIG_IsOK(ecode3)) {
24624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24625 }
24626 arg3 = static_cast< bool >(val3);
24627 {
24628 PyThreadState* __tstate = wxPyBeginAllowThreads();
24629 (arg1)->SetToggle(arg2,arg3);
24630 wxPyEndAllowThreads(__tstate);
24631 if (PyErr_Occurred()) SWIG_fail;
24632 }
24633 resultobj = SWIG_Py_Void();
24634 return resultobj;
24635fail:
24636 return NULL;
24637}
24638
24639
24640SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24641 PyObject *resultobj = 0;
24642 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24643 int arg2 ;
24644 PyObject *result = 0 ;
24645 void *argp1 = 0 ;
24646 int res1 = 0 ;
24647 int val2 ;
24648 int ecode2 = 0 ;
24649 PyObject * obj0 = 0 ;
24650 PyObject * obj1 = 0 ;
24651 char * kwnames[] = {
24652 (char *) "self",(char *) "id", NULL
24653 };
24654
24655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24657 if (!SWIG_IsOK(res1)) {
24658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24659 }
24660 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24661 ecode2 = SWIG_AsVal_int(obj1, &val2);
24662 if (!SWIG_IsOK(ecode2)) {
24663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24664 }
24665 arg2 = static_cast< int >(val2);
24666 {
24667 PyThreadState* __tstate = wxPyBeginAllowThreads();
24668 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24669 wxPyEndAllowThreads(__tstate);
24670 if (PyErr_Occurred()) SWIG_fail;
24671 }
24672 resultobj = result;
24673 return resultobj;
24674fail:
24675 return NULL;
24676}
24677
24678
24679SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24680 PyObject *resultobj = 0;
24681 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24682 int arg2 ;
24683 PyObject *arg3 = (PyObject *) 0 ;
24684 void *argp1 = 0 ;
24685 int res1 = 0 ;
24686 int val2 ;
24687 int ecode2 = 0 ;
24688 PyObject * obj0 = 0 ;
24689 PyObject * obj1 = 0 ;
24690 PyObject * obj2 = 0 ;
24691 char * kwnames[] = {
24692 (char *) "self",(char *) "id",(char *) "clientData", NULL
24693 };
24694
24695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24697 if (!SWIG_IsOK(res1)) {
24698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24699 }
24700 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24701 ecode2 = SWIG_AsVal_int(obj1, &val2);
24702 if (!SWIG_IsOK(ecode2)) {
24703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24704 }
24705 arg2 = static_cast< int >(val2);
24706 arg3 = obj2;
24707 {
24708 PyThreadState* __tstate = wxPyBeginAllowThreads();
24709 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24710 wxPyEndAllowThreads(__tstate);
24711 if (PyErr_Occurred()) SWIG_fail;
24712 }
24713 resultobj = SWIG_Py_Void();
24714 return resultobj;
24715fail:
24716 return NULL;
24717}
24718
24719
24720SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24721 PyObject *resultobj = 0;
24722 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24723 int arg2 ;
24724 int result;
24725 void *argp1 = 0 ;
24726 int res1 = 0 ;
24727 int val2 ;
24728 int ecode2 = 0 ;
24729 PyObject * obj0 = 0 ;
24730 PyObject * obj1 = 0 ;
24731 char * kwnames[] = {
24732 (char *) "self",(char *) "id", NULL
24733 };
24734
24735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24737 if (!SWIG_IsOK(res1)) {
24738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24739 }
24740 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24741 ecode2 = SWIG_AsVal_int(obj1, &val2);
24742 if (!SWIG_IsOK(ecode2)) {
24743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24744 }
24745 arg2 = static_cast< int >(val2);
24746 {
24747 PyThreadState* __tstate = wxPyBeginAllowThreads();
24748 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24749 wxPyEndAllowThreads(__tstate);
24750 if (PyErr_Occurred()) SWIG_fail;
24751 }
24752 resultobj = SWIG_From_int(static_cast< int >(result));
24753 return resultobj;
24754fail:
24755 return NULL;
24756}
24757
24758
24759SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24760 PyObject *resultobj = 0;
24761 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24762 int arg2 ;
24763 bool result;
24764 void *argp1 = 0 ;
24765 int res1 = 0 ;
24766 int val2 ;
24767 int ecode2 = 0 ;
24768 PyObject * obj0 = 0 ;
24769 PyObject * obj1 = 0 ;
24770 char * kwnames[] = {
24771 (char *) "self",(char *) "id", NULL
24772 };
24773
24774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24776 if (!SWIG_IsOK(res1)) {
24777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24778 }
24779 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24780 ecode2 = SWIG_AsVal_int(obj1, &val2);
24781 if (!SWIG_IsOK(ecode2)) {
24782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24783 }
24784 arg2 = static_cast< int >(val2);
24785 {
24786 PyThreadState* __tstate = wxPyBeginAllowThreads();
24787 result = (bool)(arg1)->GetToolState(arg2);
24788 wxPyEndAllowThreads(__tstate);
24789 if (PyErr_Occurred()) SWIG_fail;
24790 }
24791 {
24792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24793 }
24794 return resultobj;
24795fail:
24796 return NULL;
24797}
24798
24799
24800SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24801 PyObject *resultobj = 0;
24802 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24803 int arg2 ;
24804 bool result;
24805 void *argp1 = 0 ;
24806 int res1 = 0 ;
24807 int val2 ;
24808 int ecode2 = 0 ;
24809 PyObject * obj0 = 0 ;
24810 PyObject * obj1 = 0 ;
24811 char * kwnames[] = {
24812 (char *) "self",(char *) "id", NULL
24813 };
24814
24815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24817 if (!SWIG_IsOK(res1)) {
24818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24819 }
24820 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24821 ecode2 = SWIG_AsVal_int(obj1, &val2);
24822 if (!SWIG_IsOK(ecode2)) {
24823 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24824 }
24825 arg2 = static_cast< int >(val2);
24826 {
24827 PyThreadState* __tstate = wxPyBeginAllowThreads();
24828 result = (bool)(arg1)->GetToolEnabled(arg2);
24829 wxPyEndAllowThreads(__tstate);
24830 if (PyErr_Occurred()) SWIG_fail;
24831 }
24832 {
24833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24834 }
24835 return resultobj;
24836fail:
24837 return NULL;
24838}
24839
24840
24841SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24842 PyObject *resultobj = 0;
24843 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24844 int arg2 ;
24845 wxString *arg3 = 0 ;
24846 void *argp1 = 0 ;
24847 int res1 = 0 ;
24848 int val2 ;
24849 int ecode2 = 0 ;
24850 bool temp3 = false ;
24851 PyObject * obj0 = 0 ;
24852 PyObject * obj1 = 0 ;
24853 PyObject * obj2 = 0 ;
24854 char * kwnames[] = {
24855 (char *) "self",(char *) "id",(char *) "helpString", NULL
24856 };
24857
24858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24860 if (!SWIG_IsOK(res1)) {
24861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24862 }
24863 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24864 ecode2 = SWIG_AsVal_int(obj1, &val2);
24865 if (!SWIG_IsOK(ecode2)) {
24866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24867 }
24868 arg2 = static_cast< int >(val2);
24869 {
24870 arg3 = wxString_in_helper(obj2);
24871 if (arg3 == NULL) SWIG_fail;
24872 temp3 = true;
24873 }
24874 {
24875 PyThreadState* __tstate = wxPyBeginAllowThreads();
24876 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24877 wxPyEndAllowThreads(__tstate);
24878 if (PyErr_Occurred()) SWIG_fail;
24879 }
24880 resultobj = SWIG_Py_Void();
24881 {
24882 if (temp3)
24883 delete arg3;
24884 }
24885 return resultobj;
24886fail:
24887 {
24888 if (temp3)
24889 delete arg3;
24890 }
24891 return NULL;
24892}
24893
24894
24895SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24896 PyObject *resultobj = 0;
24897 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24898 int arg2 ;
24899 wxString result;
24900 void *argp1 = 0 ;
24901 int res1 = 0 ;
24902 int val2 ;
24903 int ecode2 = 0 ;
24904 PyObject * obj0 = 0 ;
24905 PyObject * obj1 = 0 ;
24906 char * kwnames[] = {
24907 (char *) "self",(char *) "id", NULL
24908 };
24909
24910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24912 if (!SWIG_IsOK(res1)) {
24913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24914 }
24915 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24916 ecode2 = SWIG_AsVal_int(obj1, &val2);
24917 if (!SWIG_IsOK(ecode2)) {
24918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24919 }
24920 arg2 = static_cast< int >(val2);
24921 {
24922 PyThreadState* __tstate = wxPyBeginAllowThreads();
24923 result = (arg1)->GetToolShortHelp(arg2);
24924 wxPyEndAllowThreads(__tstate);
24925 if (PyErr_Occurred()) SWIG_fail;
24926 }
24927 {
24928#if wxUSE_UNICODE
24929 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24930#else
24931 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24932#endif
24933 }
24934 return resultobj;
24935fail:
24936 return NULL;
24937}
24938
24939
24940SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24941 PyObject *resultobj = 0;
24942 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24943 int arg2 ;
24944 wxString *arg3 = 0 ;
24945 void *argp1 = 0 ;
24946 int res1 = 0 ;
24947 int val2 ;
24948 int ecode2 = 0 ;
24949 bool temp3 = false ;
24950 PyObject * obj0 = 0 ;
24951 PyObject * obj1 = 0 ;
24952 PyObject * obj2 = 0 ;
24953 char * kwnames[] = {
24954 (char *) "self",(char *) "id",(char *) "helpString", NULL
24955 };
24956
24957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24959 if (!SWIG_IsOK(res1)) {
24960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24961 }
24962 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24963 ecode2 = SWIG_AsVal_int(obj1, &val2);
24964 if (!SWIG_IsOK(ecode2)) {
24965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24966 }
24967 arg2 = static_cast< int >(val2);
24968 {
24969 arg3 = wxString_in_helper(obj2);
24970 if (arg3 == NULL) SWIG_fail;
24971 temp3 = true;
24972 }
24973 {
24974 PyThreadState* __tstate = wxPyBeginAllowThreads();
24975 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24976 wxPyEndAllowThreads(__tstate);
24977 if (PyErr_Occurred()) SWIG_fail;
24978 }
24979 resultobj = SWIG_Py_Void();
24980 {
24981 if (temp3)
24982 delete arg3;
24983 }
24984 return resultobj;
24985fail:
24986 {
24987 if (temp3)
24988 delete arg3;
24989 }
24990 return NULL;
24991}
24992
24993
24994SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24995 PyObject *resultobj = 0;
24996 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24997 int arg2 ;
24998 wxString result;
24999 void *argp1 = 0 ;
25000 int res1 = 0 ;
25001 int val2 ;
25002 int ecode2 = 0 ;
25003 PyObject * obj0 = 0 ;
25004 PyObject * obj1 = 0 ;
25005 char * kwnames[] = {
25006 (char *) "self",(char *) "id", NULL
25007 };
25008
25009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
25010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25011 if (!SWIG_IsOK(res1)) {
25012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25013 }
25014 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25015 ecode2 = SWIG_AsVal_int(obj1, &val2);
25016 if (!SWIG_IsOK(ecode2)) {
25017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
25018 }
25019 arg2 = static_cast< int >(val2);
25020 {
25021 PyThreadState* __tstate = wxPyBeginAllowThreads();
25022 result = (arg1)->GetToolLongHelp(arg2);
25023 wxPyEndAllowThreads(__tstate);
25024 if (PyErr_Occurred()) SWIG_fail;
25025 }
25026 {
25027#if wxUSE_UNICODE
25028 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25029#else
25030 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25031#endif
25032 }
25033 return resultobj;
25034fail:
25035 return NULL;
25036}
25037
25038
25039SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25040 PyObject *resultobj = 0;
25041 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25042 int arg2 ;
25043 int arg3 ;
25044 void *argp1 = 0 ;
25045 int res1 = 0 ;
25046 int val2 ;
25047 int ecode2 = 0 ;
25048 int val3 ;
25049 int ecode3 = 0 ;
25050 PyObject * obj0 = 0 ;
25051 PyObject * obj1 = 0 ;
25052 PyObject * obj2 = 0 ;
25053 char * kwnames[] = {
25054 (char *) "self",(char *) "x",(char *) "y", NULL
25055 };
25056
25057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25059 if (!SWIG_IsOK(res1)) {
25060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25061 }
25062 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25063 ecode2 = SWIG_AsVal_int(obj1, &val2);
25064 if (!SWIG_IsOK(ecode2)) {
25065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
25066 }
25067 arg2 = static_cast< int >(val2);
25068 ecode3 = SWIG_AsVal_int(obj2, &val3);
25069 if (!SWIG_IsOK(ecode3)) {
25070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
25071 }
25072 arg3 = static_cast< int >(val3);
25073 {
25074 PyThreadState* __tstate = wxPyBeginAllowThreads();
25075 (arg1)->SetMargins(arg2,arg3);
25076 wxPyEndAllowThreads(__tstate);
25077 if (PyErr_Occurred()) SWIG_fail;
25078 }
25079 resultobj = SWIG_Py_Void();
25080 return resultobj;
25081fail:
25082 return NULL;
25083}
25084
25085
25086SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25087 PyObject *resultobj = 0;
25088 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25089 wxSize *arg2 = 0 ;
25090 void *argp1 = 0 ;
25091 int res1 = 0 ;
25092 wxSize temp2 ;
25093 PyObject * obj0 = 0 ;
25094 PyObject * obj1 = 0 ;
25095 char * kwnames[] = {
25096 (char *) "self",(char *) "size", NULL
25097 };
25098
25099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
25100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25101 if (!SWIG_IsOK(res1)) {
25102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25103 }
25104 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25105 {
25106 arg2 = &temp2;
25107 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25108 }
25109 {
25110 PyThreadState* __tstate = wxPyBeginAllowThreads();
25111 (arg1)->SetMargins((wxSize const &)*arg2);
25112 wxPyEndAllowThreads(__tstate);
25113 if (PyErr_Occurred()) SWIG_fail;
25114 }
25115 resultobj = SWIG_Py_Void();
25116 return resultobj;
25117fail:
25118 return NULL;
25119}
25120
25121
25122SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25123 PyObject *resultobj = 0;
25124 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25125 int arg2 ;
25126 void *argp1 = 0 ;
25127 int res1 = 0 ;
25128 int val2 ;
25129 int ecode2 = 0 ;
25130 PyObject * obj0 = 0 ;
25131 PyObject * obj1 = 0 ;
25132 char * kwnames[] = {
25133 (char *) "self",(char *) "packing", NULL
25134 };
25135
25136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
25137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25138 if (!SWIG_IsOK(res1)) {
25139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25140 }
25141 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25142 ecode2 = SWIG_AsVal_int(obj1, &val2);
25143 if (!SWIG_IsOK(ecode2)) {
25144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
25145 }
25146 arg2 = static_cast< int >(val2);
25147 {
25148 PyThreadState* __tstate = wxPyBeginAllowThreads();
25149 (arg1)->SetToolPacking(arg2);
25150 wxPyEndAllowThreads(__tstate);
25151 if (PyErr_Occurred()) SWIG_fail;
25152 }
25153 resultobj = SWIG_Py_Void();
25154 return resultobj;
25155fail:
25156 return NULL;
25157}
25158
25159
25160SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25161 PyObject *resultobj = 0;
25162 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25163 int arg2 ;
25164 void *argp1 = 0 ;
25165 int res1 = 0 ;
25166 int val2 ;
25167 int ecode2 = 0 ;
25168 PyObject * obj0 = 0 ;
25169 PyObject * obj1 = 0 ;
25170 char * kwnames[] = {
25171 (char *) "self",(char *) "separation", NULL
25172 };
25173
25174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
25175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25176 if (!SWIG_IsOK(res1)) {
25177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25178 }
25179 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25180 ecode2 = SWIG_AsVal_int(obj1, &val2);
25181 if (!SWIG_IsOK(ecode2)) {
25182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
25183 }
25184 arg2 = static_cast< int >(val2);
25185 {
25186 PyThreadState* __tstate = wxPyBeginAllowThreads();
25187 (arg1)->SetToolSeparation(arg2);
25188 wxPyEndAllowThreads(__tstate);
25189 if (PyErr_Occurred()) SWIG_fail;
25190 }
25191 resultobj = SWIG_Py_Void();
25192 return resultobj;
25193fail:
25194 return NULL;
d55e5bfc
RD
25195}
25196
25197
1bd55598
RD
25198SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25199 PyObject *resultobj = 0;
25200 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25201 wxSize result;
25202 void *argp1 = 0 ;
25203 int res1 = 0 ;
25204 PyObject *swig_obj[1] ;
25205
25206 if (!args) SWIG_fail;
25207 swig_obj[0] = args;
25208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25209 if (!SWIG_IsOK(res1)) {
25210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25211 }
25212 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25213 {
25214 PyThreadState* __tstate = wxPyBeginAllowThreads();
25215 result = (arg1)->GetToolMargins();
25216 wxPyEndAllowThreads(__tstate);
25217 if (PyErr_Occurred()) SWIG_fail;
25218 }
25219 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25220 return resultobj;
25221fail:
25222 return NULL;
d55e5bfc
RD
25223}
25224
25225
1bd55598
RD
25226SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25227 PyObject *resultobj = 0;
25228 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25229 wxSize result;
25230 void *argp1 = 0 ;
25231 int res1 = 0 ;
25232 PyObject *swig_obj[1] ;
25233
25234 if (!args) SWIG_fail;
25235 swig_obj[0] = args;
25236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25237 if (!SWIG_IsOK(res1)) {
25238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25239 }
25240 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25241 {
25242 PyThreadState* __tstate = wxPyBeginAllowThreads();
25243 result = (arg1)->GetMargins();
25244 wxPyEndAllowThreads(__tstate);
25245 if (PyErr_Occurred()) SWIG_fail;
25246 }
25247 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25248 return resultobj;
25249fail:
25250 return NULL;
d55e5bfc
RD
25251}
25252
25253
1bd55598
RD
25254SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25255 PyObject *resultobj = 0;
25256 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25257 int result;
25258 void *argp1 = 0 ;
25259 int res1 = 0 ;
25260 PyObject *swig_obj[1] ;
25261
25262 if (!args) SWIG_fail;
25263 swig_obj[0] = args;
25264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25265 if (!SWIG_IsOK(res1)) {
25266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25267 }
25268 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25269 {
25270 PyThreadState* __tstate = wxPyBeginAllowThreads();
25271 result = (int)(arg1)->GetToolPacking();
25272 wxPyEndAllowThreads(__tstate);
25273 if (PyErr_Occurred()) SWIG_fail;
25274 }
25275 resultobj = SWIG_From_int(static_cast< int >(result));
25276 return resultobj;
25277fail:
25278 return NULL;
d55e5bfc
RD
25279}
25280
25281
1bd55598
RD
25282SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25283 PyObject *resultobj = 0;
25284 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25285 int result;
25286 void *argp1 = 0 ;
25287 int res1 = 0 ;
25288 PyObject *swig_obj[1] ;
25289
25290 if (!args) SWIG_fail;
25291 swig_obj[0] = args;
25292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25293 if (!SWIG_IsOK(res1)) {
25294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25295 }
25296 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25297 {
25298 PyThreadState* __tstate = wxPyBeginAllowThreads();
25299 result = (int)(arg1)->GetToolSeparation();
25300 wxPyEndAllowThreads(__tstate);
25301 if (PyErr_Occurred()) SWIG_fail;
25302 }
25303 resultobj = SWIG_From_int(static_cast< int >(result));
25304 return resultobj;
25305fail:
25306 return NULL;
25307}
25308
25309
25310SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25311 PyObject *resultobj = 0;
25312 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25313 int arg2 ;
25314 void *argp1 = 0 ;
25315 int res1 = 0 ;
25316 int val2 ;
25317 int ecode2 = 0 ;
25318 PyObject * obj0 = 0 ;
25319 PyObject * obj1 = 0 ;
25320 char * kwnames[] = {
25321 (char *) "self",(char *) "nRows", NULL
25322 };
25323
25324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25326 if (!SWIG_IsOK(res1)) {
25327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25328 }
25329 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25330 ecode2 = SWIG_AsVal_int(obj1, &val2);
25331 if (!SWIG_IsOK(ecode2)) {
25332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25333 }
25334 arg2 = static_cast< int >(val2);
25335 {
25336 PyThreadState* __tstate = wxPyBeginAllowThreads();
25337 (arg1)->SetRows(arg2);
25338 wxPyEndAllowThreads(__tstate);
25339 if (PyErr_Occurred()) SWIG_fail;
25340 }
25341 resultobj = SWIG_Py_Void();
25342 return resultobj;
25343fail:
25344 return NULL;
25345}
25346
25347
25348SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25349 PyObject *resultobj = 0;
25350 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25351 int arg2 ;
25352 int arg3 ;
25353 void *argp1 = 0 ;
25354 int res1 = 0 ;
25355 int val2 ;
25356 int ecode2 = 0 ;
25357 int val3 ;
25358 int ecode3 = 0 ;
25359 PyObject * obj0 = 0 ;
25360 PyObject * obj1 = 0 ;
25361 PyObject * obj2 = 0 ;
25362 char * kwnames[] = {
25363 (char *) "self",(char *) "rows",(char *) "cols", NULL
25364 };
25365
25366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25368 if (!SWIG_IsOK(res1)) {
25369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25370 }
25371 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25372 ecode2 = SWIG_AsVal_int(obj1, &val2);
25373 if (!SWIG_IsOK(ecode2)) {
25374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25375 }
25376 arg2 = static_cast< int >(val2);
25377 ecode3 = SWIG_AsVal_int(obj2, &val3);
25378 if (!SWIG_IsOK(ecode3)) {
25379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25380 }
25381 arg3 = static_cast< int >(val3);
25382 {
25383 PyThreadState* __tstate = wxPyBeginAllowThreads();
25384 (arg1)->SetMaxRowsCols(arg2,arg3);
25385 wxPyEndAllowThreads(__tstate);
25386 if (PyErr_Occurred()) SWIG_fail;
25387 }
25388 resultobj = SWIG_Py_Void();
25389 return resultobj;
25390fail:
25391 return NULL;
d55e5bfc
RD
25392}
25393
25394
1bd55598
RD
25395SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25396 PyObject *resultobj = 0;
25397 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25398 int result;
25399 void *argp1 = 0 ;
25400 int res1 = 0 ;
25401 PyObject *swig_obj[1] ;
25402
25403 if (!args) SWIG_fail;
25404 swig_obj[0] = args;
25405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25406 if (!SWIG_IsOK(res1)) {
25407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25408 }
25409 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25410 {
25411 PyThreadState* __tstate = wxPyBeginAllowThreads();
25412 result = (int)(arg1)->GetMaxRows();
25413 wxPyEndAllowThreads(__tstate);
25414 if (PyErr_Occurred()) SWIG_fail;
25415 }
25416 resultobj = SWIG_From_int(static_cast< int >(result));
25417 return resultobj;
25418fail:
25419 return NULL;
d55e5bfc
RD
25420}
25421
25422
1bd55598
RD
25423SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25424 PyObject *resultobj = 0;
25425 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25426 int result;
25427 void *argp1 = 0 ;
25428 int res1 = 0 ;
25429 PyObject *swig_obj[1] ;
25430
25431 if (!args) SWIG_fail;
25432 swig_obj[0] = args;
25433 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25434 if (!SWIG_IsOK(res1)) {
25435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25436 }
25437 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25438 {
25439 PyThreadState* __tstate = wxPyBeginAllowThreads();
25440 result = (int)(arg1)->GetMaxCols();
25441 wxPyEndAllowThreads(__tstate);
25442 if (PyErr_Occurred()) SWIG_fail;
25443 }
25444 resultobj = SWIG_From_int(static_cast< int >(result));
25445 return resultobj;
25446fail:
25447 return NULL;
25448}
25449
25450
25451SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25452 PyObject *resultobj = 0;
25453 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25454 wxSize *arg2 = 0 ;
25455 void *argp1 = 0 ;
25456 int res1 = 0 ;
25457 wxSize temp2 ;
25458 PyObject * obj0 = 0 ;
25459 PyObject * obj1 = 0 ;
25460 char * kwnames[] = {
25461 (char *) "self",(char *) "size", NULL
25462 };
25463
25464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25466 if (!SWIG_IsOK(res1)) {
25467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25468 }
25469 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25470 {
25471 arg2 = &temp2;
25472 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25473 }
25474 {
25475 PyThreadState* __tstate = wxPyBeginAllowThreads();
25476 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25477 wxPyEndAllowThreads(__tstate);
25478 if (PyErr_Occurred()) SWIG_fail;
25479 }
25480 resultobj = SWIG_Py_Void();
25481 return resultobj;
25482fail:
25483 return NULL;
d55e5bfc
RD
25484}
25485
25486
1bd55598
RD
25487SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25488 PyObject *resultobj = 0;
25489 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25490 wxSize result;
25491 void *argp1 = 0 ;
25492 int res1 = 0 ;
25493 PyObject *swig_obj[1] ;
25494
25495 if (!args) SWIG_fail;
25496 swig_obj[0] = args;
25497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25498 if (!SWIG_IsOK(res1)) {
25499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25500 }
25501 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25502 {
25503 PyThreadState* __tstate = wxPyBeginAllowThreads();
25504 result = (arg1)->GetToolBitmapSize();
25505 wxPyEndAllowThreads(__tstate);
25506 if (PyErr_Occurred()) SWIG_fail;
25507 }
25508 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25509 return resultobj;
25510fail:
25511 return NULL;
d55e5bfc
RD
25512}
25513
25514
1bd55598
RD
25515SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25516 PyObject *resultobj = 0;
25517 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25518 wxSize result;
25519 void *argp1 = 0 ;
25520 int res1 = 0 ;
25521 PyObject *swig_obj[1] ;
25522
25523 if (!args) SWIG_fail;
25524 swig_obj[0] = args;
25525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25526 if (!SWIG_IsOK(res1)) {
25527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25528 }
25529 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25530 {
25531 PyThreadState* __tstate = wxPyBeginAllowThreads();
25532 result = (arg1)->GetToolSize();
25533 wxPyEndAllowThreads(__tstate);
25534 if (PyErr_Occurred()) SWIG_fail;
25535 }
25536 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25537 return resultobj;
25538fail:
25539 return NULL;
25540}
25541
25542
25543SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25544 PyObject *resultobj = 0;
25545 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25546 int arg2 ;
25547 int arg3 ;
25548 wxToolBarToolBase *result = 0 ;
25549 void *argp1 = 0 ;
25550 int res1 = 0 ;
25551 int val2 ;
25552 int ecode2 = 0 ;
25553 int val3 ;
25554 int ecode3 = 0 ;
25555 PyObject * obj0 = 0 ;
25556 PyObject * obj1 = 0 ;
25557 PyObject * obj2 = 0 ;
25558 char * kwnames[] = {
25559 (char *) "self",(char *) "x",(char *) "y", NULL
25560 };
25561
25562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25564 if (!SWIG_IsOK(res1)) {
25565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25566 }
25567 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25568 ecode2 = SWIG_AsVal_int(obj1, &val2);
25569 if (!SWIG_IsOK(ecode2)) {
25570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25571 }
25572 arg2 = static_cast< int >(val2);
25573 ecode3 = SWIG_AsVal_int(obj2, &val3);
25574 if (!SWIG_IsOK(ecode3)) {
25575 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25576 }
25577 arg3 = static_cast< int >(val3);
25578 {
25579 PyThreadState* __tstate = wxPyBeginAllowThreads();
25580 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25581 wxPyEndAllowThreads(__tstate);
25582 if (PyErr_Occurred()) SWIG_fail;
25583 }
25584 {
25585 resultobj = wxPyMake_wxObject(result, (bool)0);
25586 }
25587 return resultobj;
25588fail:
25589 return NULL;
25590}
25591
25592
25593SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25594 PyObject *resultobj = 0;
25595 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25596 int arg2 ;
25597 wxToolBarToolBase *result = 0 ;
25598 void *argp1 = 0 ;
25599 int res1 = 0 ;
25600 int val2 ;
25601 int ecode2 = 0 ;
25602 PyObject * obj0 = 0 ;
25603 PyObject * obj1 = 0 ;
25604 char * kwnames[] = {
25605 (char *) "self",(char *) "toolid", NULL
25606 };
25607
25608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25610 if (!SWIG_IsOK(res1)) {
25611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25612 }
25613 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25614 ecode2 = SWIG_AsVal_int(obj1, &val2);
25615 if (!SWIG_IsOK(ecode2)) {
25616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25617 }
25618 arg2 = static_cast< int >(val2);
25619 {
25620 PyThreadState* __tstate = wxPyBeginAllowThreads();
25621 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25622 wxPyEndAllowThreads(__tstate);
25623 if (PyErr_Occurred()) SWIG_fail;
25624 }
25625 {
25626 resultobj = wxPyMake_wxObject(result, (bool)0);
25627 }
25628 return resultobj;
25629fail:
25630 return NULL;
d55e5bfc
RD
25631}
25632
25633
1bd55598
RD
25634SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25635 PyObject *resultobj = 0;
25636 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25637 bool result;
25638 void *argp1 = 0 ;
25639 int res1 = 0 ;
25640 PyObject *swig_obj[1] ;
25641
25642 if (!args) SWIG_fail;
25643 swig_obj[0] = args;
25644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25645 if (!SWIG_IsOK(res1)) {
25646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25647 }
25648 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25649 {
25650 PyThreadState* __tstate = wxPyBeginAllowThreads();
25651 result = (bool)(arg1)->IsVertical();
25652 wxPyEndAllowThreads(__tstate);
25653 if (PyErr_Occurred()) SWIG_fail;
25654 }
25655 {
25656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25657 }
25658 return resultobj;
25659fail:
25660 return NULL;
d55e5bfc
RD
25661}
25662
25663
1bd55598
RD
25664SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25665 PyObject *resultobj = 0;
25666 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25667 size_t result;
25668 void *argp1 = 0 ;
25669 int res1 = 0 ;
25670 PyObject *swig_obj[1] ;
25671
25672 if (!args) SWIG_fail;
25673 swig_obj[0] = args;
25674 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25675 if (!SWIG_IsOK(res1)) {
25676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25677 }
25678 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25679 {
25680 PyThreadState* __tstate = wxPyBeginAllowThreads();
25681 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25682 wxPyEndAllowThreads(__tstate);
25683 if (PyErr_Occurred()) SWIG_fail;
25684 }
25685 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25686 return resultobj;
25687fail:
25688 return NULL;
25689}
25690
25691
25692SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25693 PyObject *obj;
25694 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25695 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25696 return SWIG_Py_Void();
25697}
25698
25699SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25700 PyObject *resultobj = 0;
25701 wxWindow *arg1 = (wxWindow *) 0 ;
25702 int arg2 = (int) -1 ;
25703 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25704 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25705 wxSize const &arg4_defvalue = wxDefaultSize ;
25706 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25707 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25708 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25709 wxString *arg6 = (wxString *) &arg6_defvalue ;
25710 wxToolBar *result = 0 ;
25711 void *argp1 = 0 ;
25712 int res1 = 0 ;
25713 int val2 ;
25714 int ecode2 = 0 ;
25715 wxPoint temp3 ;
25716 wxSize temp4 ;
25717 long val5 ;
25718 int ecode5 = 0 ;
25719 bool temp6 = false ;
25720 PyObject * obj0 = 0 ;
25721 PyObject * obj1 = 0 ;
25722 PyObject * obj2 = 0 ;
25723 PyObject * obj3 = 0 ;
25724 PyObject * obj4 = 0 ;
25725 PyObject * obj5 = 0 ;
25726 char * kwnames[] = {
25727 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25728 };
25729
25730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25732 if (!SWIG_IsOK(res1)) {
25733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25734 }
25735 arg1 = reinterpret_cast< wxWindow * >(argp1);
25736 if (obj1) {
25737 ecode2 = SWIG_AsVal_int(obj1, &val2);
25738 if (!SWIG_IsOK(ecode2)) {
25739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25740 }
25741 arg2 = static_cast< int >(val2);
25742 }
25743 if (obj2) {
d55e5bfc 25744 {
1bd55598
RD
25745 arg3 = &temp3;
25746 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 25747 }
1bd55598
RD
25748 }
25749 if (obj3) {
d55e5bfc 25750 {
1bd55598
RD
25751 arg4 = &temp4;
25752 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25753 }
1bd55598
RD
25754 }
25755 if (obj4) {
25756 ecode5 = SWIG_AsVal_long(obj4, &val5);
25757 if (!SWIG_IsOK(ecode5)) {
25758 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25759 }
25760 arg5 = static_cast< long >(val5);
25761 }
25762 if (obj5) {
36ed4f51 25763 {
1bd55598
RD
25764 arg6 = wxString_in_helper(obj5);
25765 if (arg6 == NULL) SWIG_fail;
25766 temp6 = true;
36ed4f51 25767 }
1bd55598
RD
25768 }
25769 {
25770 if (!wxPyCheckForApp()) SWIG_fail;
25771 PyThreadState* __tstate = wxPyBeginAllowThreads();
25772 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25773 wxPyEndAllowThreads(__tstate);
25774 if (PyErr_Occurred()) SWIG_fail;
25775 }
25776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25777 {
25778 if (temp6)
25779 delete arg6;
25780 }
25781 return resultobj;
25782fail:
25783 {
25784 if (temp6)
25785 delete arg6;
25786 }
25787 return NULL;
d55e5bfc
RD
25788}
25789
25790
1bd55598
RD
25791SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25792 PyObject *resultobj = 0;
25793 wxToolBar *result = 0 ;
25794
25795 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25796 {
25797 if (!wxPyCheckForApp()) SWIG_fail;
25798 PyThreadState* __tstate = wxPyBeginAllowThreads();
25799 result = (wxToolBar *)new wxToolBar();
25800 wxPyEndAllowThreads(__tstate);
25801 if (PyErr_Occurred()) SWIG_fail;
25802 }
25803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25804 return resultobj;
25805fail:
25806 return NULL;
25807}
25808
25809
25810SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25811 PyObject *resultobj = 0;
25812 wxToolBar *arg1 = (wxToolBar *) 0 ;
25813 wxWindow *arg2 = (wxWindow *) 0 ;
25814 int arg3 = (int) -1 ;
25815 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25816 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25817 wxSize const &arg5_defvalue = wxDefaultSize ;
25818 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25819 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25820 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25821 wxString *arg7 = (wxString *) &arg7_defvalue ;
25822 bool result;
25823 void *argp1 = 0 ;
25824 int res1 = 0 ;
25825 void *argp2 = 0 ;
25826 int res2 = 0 ;
25827 int val3 ;
25828 int ecode3 = 0 ;
25829 wxPoint temp4 ;
25830 wxSize temp5 ;
25831 long val6 ;
25832 int ecode6 = 0 ;
25833 bool temp7 = false ;
25834 PyObject * obj0 = 0 ;
25835 PyObject * obj1 = 0 ;
25836 PyObject * obj2 = 0 ;
25837 PyObject * obj3 = 0 ;
25838 PyObject * obj4 = 0 ;
25839 PyObject * obj5 = 0 ;
25840 PyObject * obj6 = 0 ;
25841 char * kwnames[] = {
25842 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25843 };
25844
25845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25847 if (!SWIG_IsOK(res1)) {
25848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25849 }
25850 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25851 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25852 if (!SWIG_IsOK(res2)) {
25853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25854 }
25855 arg2 = reinterpret_cast< wxWindow * >(argp2);
25856 if (obj2) {
25857 ecode3 = SWIG_AsVal_int(obj2, &val3);
25858 if (!SWIG_IsOK(ecode3)) {
25859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25860 }
25861 arg3 = static_cast< int >(val3);
25862 }
25863 if (obj3) {
d55e5bfc 25864 {
1bd55598
RD
25865 arg4 = &temp4;
25866 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25867 }
1bd55598
RD
25868 }
25869 if (obj4) {
d55e5bfc 25870 {
1bd55598
RD
25871 arg5 = &temp5;
25872 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 25873 }
1bd55598
RD
25874 }
25875 if (obj5) {
25876 ecode6 = SWIG_AsVal_long(obj5, &val6);
25877 if (!SWIG_IsOK(ecode6)) {
25878 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25879 }
25880 arg6 = static_cast< long >(val6);
25881 }
25882 if (obj6) {
36ed4f51 25883 {
1bd55598
RD
25884 arg7 = wxString_in_helper(obj6);
25885 if (arg7 == NULL) SWIG_fail;
25886 temp7 = true;
36ed4f51 25887 }
1bd55598
RD
25888 }
25889 {
25890 PyThreadState* __tstate = wxPyBeginAllowThreads();
25891 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25892 wxPyEndAllowThreads(__tstate);
25893 if (PyErr_Occurred()) SWIG_fail;
25894 }
25895 {
25896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25897 }
25898 {
25899 if (temp7)
25900 delete arg7;
25901 }
25902 return resultobj;
25903fail:
25904 {
25905 if (temp7)
25906 delete arg7;
25907 }
25908 return NULL;
25909}
25910
25911
1bd55598
RD
25912SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25913 PyObject *resultobj = 0;
25914 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25915 SwigValueWrapper<wxVisualAttributes > result;
25916 int val1 ;
25917 int ecode1 = 0 ;
25918 PyObject * obj0 = 0 ;
25919 char * kwnames[] = {
25920 (char *) "variant", NULL
25921 };
25922
25923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25924 if (obj0) {
25925 ecode1 = SWIG_AsVal_int(obj0, &val1);
25926 if (!SWIG_IsOK(ecode1)) {
25927 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25928 }
25929 arg1 = static_cast< wxWindowVariant >(val1);
25930 }
25931 {
25932 if (!wxPyCheckForApp()) SWIG_fail;
25933 PyThreadState* __tstate = wxPyBeginAllowThreads();
25934 result = wxToolBar::GetClassDefaultAttributes(arg1);
25935 wxPyEndAllowThreads(__tstate);
25936 if (PyErr_Occurred()) SWIG_fail;
25937 }
25938 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25939 return resultobj;
25940fail:
25941 return NULL;
d55e5bfc
RD
25942}
25943
25944
1bd55598
RD
25945SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25946 PyObject *obj;
25947 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25948 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25949 return SWIG_Py_Void();
d55e5bfc
RD
25950}
25951
1bd55598
RD
25952SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25953 return SWIG_Python_InitShadowInstance(args);
25954}
d55e5bfc 25955
1bd55598
RD
25956SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25957 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25958 return 1;
d55e5bfc
RD
25959}
25960
25961
1bd55598
RD
25962SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25963 PyObject *pyobj = 0;
25964
25965 {
25966#if wxUSE_UNICODE
25967 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25968#else
25969 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25970#endif
25971 }
25972 return pyobj;
25973}
25974
25975
25976SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25977 PyObject *resultobj = 0;
25978 wxColour const &arg1_defvalue = wxNullColour ;
25979 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25980 wxColour const &arg2_defvalue = wxNullColour ;
25981 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25982 wxFont const &arg3_defvalue = wxNullFont ;
25983 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25984 wxListItemAttr *result = 0 ;
25985 wxColour temp1 ;
25986 wxColour temp2 ;
25987 void *argp3 = 0 ;
25988 int res3 = 0 ;
25989 PyObject * obj0 = 0 ;
25990 PyObject * obj1 = 0 ;
25991 PyObject * obj2 = 0 ;
25992 char * kwnames[] = {
25993 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25994 };
25995
25996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25997 if (obj0) {
d55e5bfc 25998 {
1bd55598
RD
25999 arg1 = &temp1;
26000 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 26001 }
1bd55598
RD
26002 }
26003 if (obj1) {
36ed4f51 26004 {
1bd55598
RD
26005 arg2 = &temp2;
26006 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
36ed4f51 26007 }
1bd55598
RD
26008 }
26009 if (obj2) {
26010 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
26011 if (!SWIG_IsOK(res3)) {
26012 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 26013 }
1bd55598
RD
26014 if (!argp3) {
26015 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
36ed4f51 26016 }
1bd55598
RD
26017 arg3 = reinterpret_cast< wxFont * >(argp3);
26018 }
26019 {
26020 PyThreadState* __tstate = wxPyBeginAllowThreads();
26021 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
26022 wxPyEndAllowThreads(__tstate);
26023 if (PyErr_Occurred()) SWIG_fail;
26024 }
26025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
26026 return resultobj;
26027fail:
26028 return NULL;
d55e5bfc
RD
26029}
26030
26031
1bd55598
RD
26032SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26033 PyObject *resultobj = 0;
26034 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26035 void *argp1 = 0 ;
26036 int res1 = 0 ;
26037 PyObject *swig_obj[1] ;
26038
26039 if (!args) SWIG_fail;
26040 swig_obj[0] = args;
26041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
26042 if (!SWIG_IsOK(res1)) {
26043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26044 }
26045 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26046 {
26047 PyThreadState* __tstate = wxPyBeginAllowThreads();
26048 delete arg1;
d55e5bfc 26049
1bd55598
RD
26050 wxPyEndAllowThreads(__tstate);
26051 if (PyErr_Occurred()) SWIG_fail;
26052 }
26053 resultobj = SWIG_Py_Void();
26054 return resultobj;
26055fail:
26056 return NULL;
26057}
26058
26059
26060SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26061 PyObject *resultobj = 0;
26062 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26063 wxColour *arg2 = 0 ;
26064 void *argp1 = 0 ;
26065 int res1 = 0 ;
26066 wxColour temp2 ;
26067 PyObject * obj0 = 0 ;
26068 PyObject * obj1 = 0 ;
26069 char * kwnames[] = {
26070 (char *) "self",(char *) "colText", NULL
26071 };
26072
26073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26075 if (!SWIG_IsOK(res1)) {
26076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26077 }
26078 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26079 {
26080 arg2 = &temp2;
26081 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26082 }
26083 {
26084 PyThreadState* __tstate = wxPyBeginAllowThreads();
26085 (arg1)->SetTextColour((wxColour const &)*arg2);
26086 wxPyEndAllowThreads(__tstate);
26087 if (PyErr_Occurred()) SWIG_fail;
26088 }
26089 resultobj = SWIG_Py_Void();
26090 return resultobj;
26091fail:
26092 return NULL;
26093}
26094
26095
26096SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26097 PyObject *resultobj = 0;
26098 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26099 wxColour *arg2 = 0 ;
26100 void *argp1 = 0 ;
26101 int res1 = 0 ;
26102 wxColour temp2 ;
26103 PyObject * obj0 = 0 ;
26104 PyObject * obj1 = 0 ;
26105 char * kwnames[] = {
26106 (char *) "self",(char *) "colBack", NULL
26107 };
26108
26109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26111 if (!SWIG_IsOK(res1)) {
26112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26113 }
26114 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26115 {
26116 arg2 = &temp2;
26117 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26118 }
26119 {
26120 PyThreadState* __tstate = wxPyBeginAllowThreads();
26121 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26122 wxPyEndAllowThreads(__tstate);
26123 if (PyErr_Occurred()) SWIG_fail;
26124 }
26125 resultobj = SWIG_Py_Void();
26126 return resultobj;
26127fail:
26128 return NULL;
26129}
26130
26131
26132SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26133 PyObject *resultobj = 0;
26134 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26135 wxFont *arg2 = 0 ;
26136 void *argp1 = 0 ;
26137 int res1 = 0 ;
26138 void *argp2 = 0 ;
26139 int res2 = 0 ;
26140 PyObject * obj0 = 0 ;
26141 PyObject * obj1 = 0 ;
26142 char * kwnames[] = {
26143 (char *) "self",(char *) "font", NULL
26144 };
26145
26146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26148 if (!SWIG_IsOK(res1)) {
26149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26150 }
26151 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26152 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26153 if (!SWIG_IsOK(res2)) {
26154 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26155 }
26156 if (!argp2) {
26157 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26158 }
26159 arg2 = reinterpret_cast< wxFont * >(argp2);
26160 {
26161 PyThreadState* __tstate = wxPyBeginAllowThreads();
26162 (arg1)->SetFont((wxFont const &)*arg2);
26163 wxPyEndAllowThreads(__tstate);
26164 if (PyErr_Occurred()) SWIG_fail;
26165 }
26166 resultobj = SWIG_Py_Void();
26167 return resultobj;
26168fail:
26169 return NULL;
d55e5bfc
RD
26170}
26171
26172
1bd55598
RD
26173SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26174 PyObject *resultobj = 0;
26175 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26176 bool result;
26177 void *argp1 = 0 ;
26178 int res1 = 0 ;
26179 PyObject *swig_obj[1] ;
26180
26181 if (!args) SWIG_fail;
26182 swig_obj[0] = args;
26183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26184 if (!SWIG_IsOK(res1)) {
26185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26186 }
26187 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26188 {
26189 PyThreadState* __tstate = wxPyBeginAllowThreads();
26190 result = (bool)(arg1)->HasTextColour();
26191 wxPyEndAllowThreads(__tstate);
26192 if (PyErr_Occurred()) SWIG_fail;
26193 }
26194 {
26195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26196 }
26197 return resultobj;
26198fail:
26199 return NULL;
f20a2e1f
RD
26200}
26201
26202
1bd55598
RD
26203SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26204 PyObject *resultobj = 0;
26205 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26206 bool result;
26207 void *argp1 = 0 ;
26208 int res1 = 0 ;
26209 PyObject *swig_obj[1] ;
26210
26211 if (!args) SWIG_fail;
26212 swig_obj[0] = args;
26213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26214 if (!SWIG_IsOK(res1)) {
26215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26216 }
26217 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26218 {
26219 PyThreadState* __tstate = wxPyBeginAllowThreads();
26220 result = (bool)(arg1)->HasBackgroundColour();
26221 wxPyEndAllowThreads(__tstate);
26222 if (PyErr_Occurred()) SWIG_fail;
26223 }
26224 {
26225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26226 }
26227 return resultobj;
26228fail:
26229 return NULL;
d55e5bfc 26230}
1bd55598
RD
26231
26232
26233SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26234 PyObject *resultobj = 0;
26235 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26236 bool result;
26237 void *argp1 = 0 ;
26238 int res1 = 0 ;
26239 PyObject *swig_obj[1] ;
26240
26241 if (!args) SWIG_fail;
26242 swig_obj[0] = args;
26243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26244 if (!SWIG_IsOK(res1)) {
26245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26246 }
26247 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26248 {
26249 PyThreadState* __tstate = wxPyBeginAllowThreads();
26250 result = (bool)(arg1)->HasFont();
26251 wxPyEndAllowThreads(__tstate);
26252 if (PyErr_Occurred()) SWIG_fail;
26253 }
26254 {
26255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26256 }
26257 return resultobj;
26258fail:
26259 return NULL;
d55e5bfc
RD
26260}
26261
26262
1bd55598
RD
26263SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26264 PyObject *resultobj = 0;
26265 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26266 wxColour result;
26267 void *argp1 = 0 ;
26268 int res1 = 0 ;
26269 PyObject *swig_obj[1] ;
26270
26271 if (!args) SWIG_fail;
26272 swig_obj[0] = args;
26273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26274 if (!SWIG_IsOK(res1)) {
26275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26276 }
26277 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26278 {
26279 PyThreadState* __tstate = wxPyBeginAllowThreads();
26280 result = (arg1)->GetTextColour();
26281 wxPyEndAllowThreads(__tstate);
26282 if (PyErr_Occurred()) SWIG_fail;
26283 }
26284 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26285 return resultobj;
26286fail:
26287 return NULL;
d55e5bfc
RD
26288}
26289
26290
1bd55598
RD
26291SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26292 PyObject *resultobj = 0;
26293 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26294 wxColour result;
26295 void *argp1 = 0 ;
26296 int res1 = 0 ;
26297 PyObject *swig_obj[1] ;
26298
26299 if (!args) SWIG_fail;
26300 swig_obj[0] = args;
26301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26302 if (!SWIG_IsOK(res1)) {
26303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26304 }
26305 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26306 {
26307 PyThreadState* __tstate = wxPyBeginAllowThreads();
26308 result = (arg1)->GetBackgroundColour();
26309 wxPyEndAllowThreads(__tstate);
26310 if (PyErr_Occurred()) SWIG_fail;
26311 }
26312 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26313 return resultobj;
26314fail:
26315 return NULL;
d55e5bfc
RD
26316}
26317
26318
1bd55598
RD
26319SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26320 PyObject *resultobj = 0;
26321 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26322 wxFont result;
26323 void *argp1 = 0 ;
26324 int res1 = 0 ;
26325 PyObject *swig_obj[1] ;
26326
26327 if (!args) SWIG_fail;
26328 swig_obj[0] = args;
26329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26330 if (!SWIG_IsOK(res1)) {
26331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26332 }
26333 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26334 {
26335 PyThreadState* __tstate = wxPyBeginAllowThreads();
26336 result = (arg1)->GetFont();
26337 wxPyEndAllowThreads(__tstate);
26338 if (PyErr_Occurred()) SWIG_fail;
26339 }
26340 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26341 return resultobj;
26342fail:
26343 return NULL;
26344}
26345
26346
26347SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26348 PyObject *resultobj = 0;
26349 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26350 wxListItemAttr *arg2 = 0 ;
26351 void *argp1 = 0 ;
26352 int res1 = 0 ;
26353 void *argp2 = 0 ;
26354 int res2 = 0 ;
26355 PyObject * obj0 = 0 ;
26356 PyObject * obj1 = 0 ;
26357 char * kwnames[] = {
26358 (char *) "self",(char *) "source", NULL
26359 };
26360
26361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26363 if (!SWIG_IsOK(res1)) {
26364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26365 }
26366 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26367 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26368 if (!SWIG_IsOK(res2)) {
26369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26370 }
26371 if (!argp2) {
26372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26373 }
26374 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26375 {
26376 PyThreadState* __tstate = wxPyBeginAllowThreads();
26377 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26378 wxPyEndAllowThreads(__tstate);
26379 if (PyErr_Occurred()) SWIG_fail;
26380 }
26381 resultobj = SWIG_Py_Void();
26382 return resultobj;
26383fail:
26384 return NULL;
121b9a67
RD
26385}
26386
26387
1bd55598
RD
26388SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26389 PyObject *resultobj = 0;
26390 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26391 void *argp1 = 0 ;
26392 int res1 = 0 ;
26393 PyObject *swig_obj[1] ;
26394
26395 if (!args) SWIG_fail;
26396 swig_obj[0] = args;
26397 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26398 if (!SWIG_IsOK(res1)) {
26399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26400 }
26401 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26402 {
26403 PyThreadState* __tstate = wxPyBeginAllowThreads();
26404 wxListItemAttr_Destroy(arg1);
26405 wxPyEndAllowThreads(__tstate);
26406 if (PyErr_Occurred()) SWIG_fail;
26407 }
26408 resultobj = SWIG_Py_Void();
26409 return resultobj;
26410fail:
26411 return NULL;
121b9a67
RD
26412}
26413
26414
1bd55598
RD
26415SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26416 PyObject *obj;
26417 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26418 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26419 return SWIG_Py_Void();
121b9a67
RD
26420}
26421
1bd55598
RD
26422SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26423 return SWIG_Python_InitShadowInstance(args);
26424}
121b9a67 26425
1bd55598
RD
26426SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26427 PyObject *resultobj = 0;
26428 wxListItem *result = 0 ;
26429
26430 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26431 {
26432 PyThreadState* __tstate = wxPyBeginAllowThreads();
26433 result = (wxListItem *)new wxListItem();
26434 wxPyEndAllowThreads(__tstate);
26435 if (PyErr_Occurred()) SWIG_fail;
26436 }
3ecece7e 26437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, SWIG_POINTER_NEW | 0 );
1bd55598
RD
26438 return resultobj;
26439fail:
26440 return NULL;
121b9a67
RD
26441}
26442
26443
1bd55598
RD
26444SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26445 PyObject *resultobj = 0;
26446 wxListItem *arg1 = (wxListItem *) 0 ;
26447 void *argp1 = 0 ;
26448 int res1 = 0 ;
26449 PyObject *swig_obj[1] ;
26450
26451 if (!args) SWIG_fail;
26452 swig_obj[0] = args;
26453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26454 if (!SWIG_IsOK(res1)) {
26455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26456 }
26457 arg1 = reinterpret_cast< wxListItem * >(argp1);
26458 {
26459 PyThreadState* __tstate = wxPyBeginAllowThreads();
26460 delete arg1;
f20a2e1f 26461
1bd55598
RD
26462 wxPyEndAllowThreads(__tstate);
26463 if (PyErr_Occurred()) SWIG_fail;
26464 }
26465 resultobj = SWIG_Py_Void();
26466 return resultobj;
26467fail:
26468 return NULL;
f20a2e1f
RD
26469}
26470
26471
1bd55598
RD
26472SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26473 PyObject *resultobj = 0;
26474 wxListItem *arg1 = (wxListItem *) 0 ;
26475 void *argp1 = 0 ;
26476 int res1 = 0 ;
26477 PyObject *swig_obj[1] ;
26478
26479 if (!args) SWIG_fail;
26480 swig_obj[0] = args;
26481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26482 if (!SWIG_IsOK(res1)) {
26483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26484 }
26485 arg1 = reinterpret_cast< wxListItem * >(argp1);
26486 {
26487 PyThreadState* __tstate = wxPyBeginAllowThreads();
26488 (arg1)->Clear();
26489 wxPyEndAllowThreads(__tstate);
26490 if (PyErr_Occurred()) SWIG_fail;
26491 }
26492 resultobj = SWIG_Py_Void();
26493 return resultobj;
26494fail:
26495 return NULL;
d55e5bfc 26496}
1bd55598
RD
26497
26498
26499SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26500 PyObject *resultobj = 0;
26501 wxListItem *arg1 = (wxListItem *) 0 ;
26502 void *argp1 = 0 ;
26503 int res1 = 0 ;
26504 PyObject *swig_obj[1] ;
26505
26506 if (!args) SWIG_fail;
26507 swig_obj[0] = args;
26508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26509 if (!SWIG_IsOK(res1)) {
26510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26511 }
26512 arg1 = reinterpret_cast< wxListItem * >(argp1);
26513 {
26514 PyThreadState* __tstate = wxPyBeginAllowThreads();
26515 (arg1)->ClearAttributes();
26516 wxPyEndAllowThreads(__tstate);
26517 if (PyErr_Occurred()) SWIG_fail;
26518 }
26519 resultobj = SWIG_Py_Void();
26520 return resultobj;
26521fail:
26522 return NULL;
26523}
26524
26525
26526SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26527 PyObject *resultobj = 0;
26528 wxListItem *arg1 = (wxListItem *) 0 ;
26529 long arg2 ;
26530 void *argp1 = 0 ;
26531 int res1 = 0 ;
26532 long val2 ;
26533 int ecode2 = 0 ;
26534 PyObject * obj0 = 0 ;
26535 PyObject * obj1 = 0 ;
26536 char * kwnames[] = {
26537 (char *) "self",(char *) "mask", NULL
26538 };
26539
26540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26542 if (!SWIG_IsOK(res1)) {
26543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26544 }
26545 arg1 = reinterpret_cast< wxListItem * >(argp1);
26546 ecode2 = SWIG_AsVal_long(obj1, &val2);
26547 if (!SWIG_IsOK(ecode2)) {
26548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26549 }
26550 arg2 = static_cast< long >(val2);
26551 {
26552 PyThreadState* __tstate = wxPyBeginAllowThreads();
26553 (arg1)->SetMask(arg2);
26554 wxPyEndAllowThreads(__tstate);
26555 if (PyErr_Occurred()) SWIG_fail;
26556 }
26557 resultobj = SWIG_Py_Void();
26558 return resultobj;
26559fail:
26560 return NULL;
26561}
26562
26563
26564SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26565 PyObject *resultobj = 0;
26566 wxListItem *arg1 = (wxListItem *) 0 ;
26567 long arg2 ;
26568 void *argp1 = 0 ;
26569 int res1 = 0 ;
26570 long val2 ;
26571 int ecode2 = 0 ;
26572 PyObject * obj0 = 0 ;
26573 PyObject * obj1 = 0 ;
26574 char * kwnames[] = {
26575 (char *) "self",(char *) "id", NULL
26576 };
26577
26578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26580 if (!SWIG_IsOK(res1)) {
26581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26582 }
26583 arg1 = reinterpret_cast< wxListItem * >(argp1);
26584 ecode2 = SWIG_AsVal_long(obj1, &val2);
26585 if (!SWIG_IsOK(ecode2)) {
26586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26587 }
26588 arg2 = static_cast< long >(val2);
26589 {
26590 PyThreadState* __tstate = wxPyBeginAllowThreads();
26591 (arg1)->SetId(arg2);
26592 wxPyEndAllowThreads(__tstate);
26593 if (PyErr_Occurred()) SWIG_fail;
26594 }
26595 resultobj = SWIG_Py_Void();
26596 return resultobj;
26597fail:
26598 return NULL;
26599}
26600
26601
26602SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26603 PyObject *resultobj = 0;
26604 wxListItem *arg1 = (wxListItem *) 0 ;
26605 int arg2 ;
26606 void *argp1 = 0 ;
26607 int res1 = 0 ;
26608 int val2 ;
26609 int ecode2 = 0 ;
26610 PyObject * obj0 = 0 ;
26611 PyObject * obj1 = 0 ;
26612 char * kwnames[] = {
26613 (char *) "self",(char *) "col", NULL
26614 };
26615
26616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26618 if (!SWIG_IsOK(res1)) {
26619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26620 }
26621 arg1 = reinterpret_cast< wxListItem * >(argp1);
26622 ecode2 = SWIG_AsVal_int(obj1, &val2);
26623 if (!SWIG_IsOK(ecode2)) {
26624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26625 }
26626 arg2 = static_cast< int >(val2);
26627 {
26628 PyThreadState* __tstate = wxPyBeginAllowThreads();
26629 (arg1)->SetColumn(arg2);
26630 wxPyEndAllowThreads(__tstate);
26631 if (PyErr_Occurred()) SWIG_fail;
26632 }
26633 resultobj = SWIG_Py_Void();
26634 return resultobj;
26635fail:
26636 return NULL;
26637}
26638
26639
26640SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26641 PyObject *resultobj = 0;
26642 wxListItem *arg1 = (wxListItem *) 0 ;
26643 long arg2 ;
26644 void *argp1 = 0 ;
26645 int res1 = 0 ;
26646 long val2 ;
26647 int ecode2 = 0 ;
26648 PyObject * obj0 = 0 ;
26649 PyObject * obj1 = 0 ;
26650 char * kwnames[] = {
26651 (char *) "self",(char *) "state", NULL
26652 };
26653
26654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26656 if (!SWIG_IsOK(res1)) {
26657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26658 }
26659 arg1 = reinterpret_cast< wxListItem * >(argp1);
26660 ecode2 = SWIG_AsVal_long(obj1, &val2);
26661 if (!SWIG_IsOK(ecode2)) {
26662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26663 }
26664 arg2 = static_cast< long >(val2);
26665 {
26666 PyThreadState* __tstate = wxPyBeginAllowThreads();
26667 (arg1)->SetState(arg2);
26668 wxPyEndAllowThreads(__tstate);
26669 if (PyErr_Occurred()) SWIG_fail;
26670 }
26671 resultobj = SWIG_Py_Void();
26672 return resultobj;
26673fail:
26674 return NULL;
26675}
26676
26677
26678SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26679 PyObject *resultobj = 0;
26680 wxListItem *arg1 = (wxListItem *) 0 ;
26681 long arg2 ;
26682 void *argp1 = 0 ;
26683 int res1 = 0 ;
26684 long val2 ;
26685 int ecode2 = 0 ;
26686 PyObject * obj0 = 0 ;
26687 PyObject * obj1 = 0 ;
26688 char * kwnames[] = {
26689 (char *) "self",(char *) "stateMask", NULL
26690 };
26691
26692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26694 if (!SWIG_IsOK(res1)) {
26695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26696 }
26697 arg1 = reinterpret_cast< wxListItem * >(argp1);
26698 ecode2 = SWIG_AsVal_long(obj1, &val2);
26699 if (!SWIG_IsOK(ecode2)) {
26700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26701 }
26702 arg2 = static_cast< long >(val2);
26703 {
26704 PyThreadState* __tstate = wxPyBeginAllowThreads();
26705 (arg1)->SetStateMask(arg2);
26706 wxPyEndAllowThreads(__tstate);
26707 if (PyErr_Occurred()) SWIG_fail;
26708 }
26709 resultobj = SWIG_Py_Void();
26710 return resultobj;
26711fail:
26712 return NULL;
26713}
26714
26715
26716SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26717 PyObject *resultobj = 0;
26718 wxListItem *arg1 = (wxListItem *) 0 ;
26719 wxString *arg2 = 0 ;
26720 void *argp1 = 0 ;
26721 int res1 = 0 ;
26722 bool temp2 = false ;
26723 PyObject * obj0 = 0 ;
26724 PyObject * obj1 = 0 ;
26725 char * kwnames[] = {
26726 (char *) "self",(char *) "text", NULL
26727 };
26728
26729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26731 if (!SWIG_IsOK(res1)) {
26732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26733 }
26734 arg1 = reinterpret_cast< wxListItem * >(argp1);
26735 {
26736 arg2 = wxString_in_helper(obj1);
26737 if (arg2 == NULL) SWIG_fail;
26738 temp2 = true;
26739 }
26740 {
26741 PyThreadState* __tstate = wxPyBeginAllowThreads();
26742 (arg1)->SetText((wxString const &)*arg2);
26743 wxPyEndAllowThreads(__tstate);
26744 if (PyErr_Occurred()) SWIG_fail;
26745 }
26746 resultobj = SWIG_Py_Void();
26747 {
26748 if (temp2)
26749 delete arg2;
26750 }
26751 return resultobj;
26752fail:
26753 {
26754 if (temp2)
26755 delete arg2;
26756 }
26757 return NULL;
26758}
26759
26760
26761SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26762 PyObject *resultobj = 0;
26763 wxListItem *arg1 = (wxListItem *) 0 ;
26764 int arg2 ;
26765 void *argp1 = 0 ;
26766 int res1 = 0 ;
26767 int val2 ;
26768 int ecode2 = 0 ;
26769 PyObject * obj0 = 0 ;
26770 PyObject * obj1 = 0 ;
26771 char * kwnames[] = {
26772 (char *) "self",(char *) "image", NULL
26773 };
26774
26775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26777 if (!SWIG_IsOK(res1)) {
26778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26779 }
26780 arg1 = reinterpret_cast< wxListItem * >(argp1);
26781 ecode2 = SWIG_AsVal_int(obj1, &val2);
26782 if (!SWIG_IsOK(ecode2)) {
26783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26784 }
26785 arg2 = static_cast< int >(val2);
26786 {
26787 PyThreadState* __tstate = wxPyBeginAllowThreads();
26788 (arg1)->SetImage(arg2);
26789 wxPyEndAllowThreads(__tstate);
26790 if (PyErr_Occurred()) SWIG_fail;
26791 }
26792 resultobj = SWIG_Py_Void();
26793 return resultobj;
26794fail:
26795 return NULL;
26796}
26797
26798
26799SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26800 PyObject *resultobj = 0;
26801 wxListItem *arg1 = (wxListItem *) 0 ;
26802 long arg2 ;
26803 void *argp1 = 0 ;
26804 int res1 = 0 ;
26805 long val2 ;
26806 int ecode2 = 0 ;
26807 PyObject * obj0 = 0 ;
26808 PyObject * obj1 = 0 ;
26809 char * kwnames[] = {
26810 (char *) "self",(char *) "data", NULL
26811 };
26812
26813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26815 if (!SWIG_IsOK(res1)) {
26816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26817 }
26818 arg1 = reinterpret_cast< wxListItem * >(argp1);
26819 ecode2 = SWIG_AsVal_long(obj1, &val2);
26820 if (!SWIG_IsOK(ecode2)) {
26821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26822 }
26823 arg2 = static_cast< long >(val2);
26824 {
26825 PyThreadState* __tstate = wxPyBeginAllowThreads();
26826 (arg1)->SetData(arg2);
26827 wxPyEndAllowThreads(__tstate);
26828 if (PyErr_Occurred()) SWIG_fail;
26829 }
26830 resultobj = SWIG_Py_Void();
26831 return resultobj;
26832fail:
26833 return NULL;
26834}
26835
26836
26837SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26838 PyObject *resultobj = 0;
26839 wxListItem *arg1 = (wxListItem *) 0 ;
26840 int arg2 ;
26841 void *argp1 = 0 ;
26842 int res1 = 0 ;
26843 int val2 ;
26844 int ecode2 = 0 ;
26845 PyObject * obj0 = 0 ;
26846 PyObject * obj1 = 0 ;
26847 char * kwnames[] = {
26848 (char *) "self",(char *) "width", NULL
26849 };
26850
26851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26853 if (!SWIG_IsOK(res1)) {
26854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26855 }
26856 arg1 = reinterpret_cast< wxListItem * >(argp1);
26857 ecode2 = SWIG_AsVal_int(obj1, &val2);
26858 if (!SWIG_IsOK(ecode2)) {
26859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26860 }
26861 arg2 = static_cast< int >(val2);
26862 {
26863 PyThreadState* __tstate = wxPyBeginAllowThreads();
26864 (arg1)->SetWidth(arg2);
26865 wxPyEndAllowThreads(__tstate);
26866 if (PyErr_Occurred()) SWIG_fail;
26867 }
26868 resultobj = SWIG_Py_Void();
26869 return resultobj;
26870fail:
26871 return NULL;
26872}
26873
26874
26875SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26876 PyObject *resultobj = 0;
26877 wxListItem *arg1 = (wxListItem *) 0 ;
26878 wxListColumnFormat arg2 ;
26879 void *argp1 = 0 ;
26880 int res1 = 0 ;
26881 int val2 ;
26882 int ecode2 = 0 ;
26883 PyObject * obj0 = 0 ;
26884 PyObject * obj1 = 0 ;
26885 char * kwnames[] = {
26886 (char *) "self",(char *) "align", NULL
26887 };
26888
26889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26891 if (!SWIG_IsOK(res1)) {
26892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26893 }
26894 arg1 = reinterpret_cast< wxListItem * >(argp1);
26895 ecode2 = SWIG_AsVal_int(obj1, &val2);
26896 if (!SWIG_IsOK(ecode2)) {
26897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26898 }
26899 arg2 = static_cast< wxListColumnFormat >(val2);
26900 {
26901 PyThreadState* __tstate = wxPyBeginAllowThreads();
26902 (arg1)->SetAlign(arg2);
26903 wxPyEndAllowThreads(__tstate);
26904 if (PyErr_Occurred()) SWIG_fail;
26905 }
26906 resultobj = SWIG_Py_Void();
26907 return resultobj;
26908fail:
26909 return NULL;
26910}
26911
26912
26913SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26914 PyObject *resultobj = 0;
26915 wxListItem *arg1 = (wxListItem *) 0 ;
26916 wxColour *arg2 = 0 ;
26917 void *argp1 = 0 ;
26918 int res1 = 0 ;
26919 wxColour temp2 ;
26920 PyObject * obj0 = 0 ;
26921 PyObject * obj1 = 0 ;
26922 char * kwnames[] = {
26923 (char *) "self",(char *) "colText", NULL
26924 };
26925
26926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26928 if (!SWIG_IsOK(res1)) {
26929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26930 }
26931 arg1 = reinterpret_cast< wxListItem * >(argp1);
26932 {
26933 arg2 = &temp2;
26934 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26935 }
26936 {
26937 PyThreadState* __tstate = wxPyBeginAllowThreads();
26938 (arg1)->SetTextColour((wxColour const &)*arg2);
26939 wxPyEndAllowThreads(__tstate);
26940 if (PyErr_Occurred()) SWIG_fail;
26941 }
26942 resultobj = SWIG_Py_Void();
26943 return resultobj;
26944fail:
26945 return NULL;
26946}
26947
26948
26949SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26950 PyObject *resultobj = 0;
26951 wxListItem *arg1 = (wxListItem *) 0 ;
26952 wxColour *arg2 = 0 ;
26953 void *argp1 = 0 ;
26954 int res1 = 0 ;
26955 wxColour temp2 ;
26956 PyObject * obj0 = 0 ;
26957 PyObject * obj1 = 0 ;
26958 char * kwnames[] = {
26959 (char *) "self",(char *) "colBack", NULL
26960 };
26961
26962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26964 if (!SWIG_IsOK(res1)) {
26965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26966 }
26967 arg1 = reinterpret_cast< wxListItem * >(argp1);
26968 {
26969 arg2 = &temp2;
26970 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26971 }
26972 {
26973 PyThreadState* __tstate = wxPyBeginAllowThreads();
26974 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26975 wxPyEndAllowThreads(__tstate);
26976 if (PyErr_Occurred()) SWIG_fail;
26977 }
26978 resultobj = SWIG_Py_Void();
26979 return resultobj;
26980fail:
26981 return NULL;
26982}
26983
26984
26985SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26986 PyObject *resultobj = 0;
26987 wxListItem *arg1 = (wxListItem *) 0 ;
26988 wxFont *arg2 = 0 ;
26989 void *argp1 = 0 ;
26990 int res1 = 0 ;
26991 void *argp2 = 0 ;
26992 int res2 = 0 ;
26993 PyObject * obj0 = 0 ;
26994 PyObject * obj1 = 0 ;
26995 char * kwnames[] = {
26996 (char *) "self",(char *) "font", NULL
26997 };
26998
26999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
27000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27001 if (!SWIG_IsOK(res1)) {
27002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
27003 }
27004 arg1 = reinterpret_cast< wxListItem * >(argp1);
27005 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27006 if (!SWIG_IsOK(res2)) {
27007 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27008 }
27009 if (!argp2) {
27010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27011 }
27012 arg2 = reinterpret_cast< wxFont * >(argp2);
27013 {
27014 PyThreadState* __tstate = wxPyBeginAllowThreads();
27015 (arg1)->SetFont((wxFont const &)*arg2);
27016 wxPyEndAllowThreads(__tstate);
27017 if (PyErr_Occurred()) SWIG_fail;
27018 }
27019 resultobj = SWIG_Py_Void();
27020 return resultobj;
27021fail:
27022 return NULL;
d55e5bfc
RD
27023}
27024
27025
1bd55598
RD
27026SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27027 PyObject *resultobj = 0;
27028 wxListItem *arg1 = (wxListItem *) 0 ;
27029 long result;
27030 void *argp1 = 0 ;
27031 int res1 = 0 ;
27032 PyObject *swig_obj[1] ;
27033
27034 if (!args) SWIG_fail;
27035 swig_obj[0] = args;
27036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27037 if (!SWIG_IsOK(res1)) {
27038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
27039 }
27040 arg1 = reinterpret_cast< wxListItem * >(argp1);
27041 {
27042 PyThreadState* __tstate = wxPyBeginAllowThreads();
27043 result = (long)(arg1)->GetMask();
27044 wxPyEndAllowThreads(__tstate);
27045 if (PyErr_Occurred()) SWIG_fail;
27046 }
27047 resultobj = SWIG_From_long(static_cast< long >(result));
27048 return resultobj;
27049fail:
27050 return NULL;
d55e5bfc
RD
27051}
27052
27053
1bd55598
RD
27054SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27055 PyObject *resultobj = 0;
27056 wxListItem *arg1 = (wxListItem *) 0 ;
27057 long result;
27058 void *argp1 = 0 ;
27059 int res1 = 0 ;
27060 PyObject *swig_obj[1] ;
27061
27062 if (!args) SWIG_fail;
27063 swig_obj[0] = args;
27064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27065 if (!SWIG_IsOK(res1)) {
27066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
27067 }
27068 arg1 = reinterpret_cast< wxListItem * >(argp1);
27069 {
27070 PyThreadState* __tstate = wxPyBeginAllowThreads();
27071 result = (long)(arg1)->GetId();
27072 wxPyEndAllowThreads(__tstate);
27073 if (PyErr_Occurred()) SWIG_fail;
27074 }
27075 resultobj = SWIG_From_long(static_cast< long >(result));
27076 return resultobj;
27077fail:
27078 return NULL;
d55e5bfc
RD
27079}
27080
27081
1bd55598
RD
27082SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27083 PyObject *resultobj = 0;
27084 wxListItem *arg1 = (wxListItem *) 0 ;
27085 int result;
27086 void *argp1 = 0 ;
27087 int res1 = 0 ;
27088 PyObject *swig_obj[1] ;
27089
27090 if (!args) SWIG_fail;
27091 swig_obj[0] = args;
27092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27093 if (!SWIG_IsOK(res1)) {
27094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
27095 }
27096 arg1 = reinterpret_cast< wxListItem * >(argp1);
27097 {
27098 PyThreadState* __tstate = wxPyBeginAllowThreads();
27099 result = (int)(arg1)->GetColumn();
27100 wxPyEndAllowThreads(__tstate);
27101 if (PyErr_Occurred()) SWIG_fail;
27102 }
27103 resultobj = SWIG_From_int(static_cast< int >(result));
27104 return resultobj;
27105fail:
27106 return NULL;
d55e5bfc
RD
27107}
27108
27109
1bd55598
RD
27110SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27111 PyObject *resultobj = 0;
27112 wxListItem *arg1 = (wxListItem *) 0 ;
27113 long result;
27114 void *argp1 = 0 ;
27115 int res1 = 0 ;
27116 PyObject *swig_obj[1] ;
27117
27118 if (!args) SWIG_fail;
27119 swig_obj[0] = args;
27120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27121 if (!SWIG_IsOK(res1)) {
27122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
27123 }
27124 arg1 = reinterpret_cast< wxListItem * >(argp1);
27125 {
27126 PyThreadState* __tstate = wxPyBeginAllowThreads();
27127 result = (long)(arg1)->GetState();
27128 wxPyEndAllowThreads(__tstate);
27129 if (PyErr_Occurred()) SWIG_fail;
27130 }
27131 resultobj = SWIG_From_long(static_cast< long >(result));
27132 return resultobj;
27133fail:
27134 return NULL;
8fb0e70a
RD
27135}
27136
27137
1bd55598
RD
27138SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27139 PyObject *resultobj = 0;
27140 wxListItem *arg1 = (wxListItem *) 0 ;
27141 wxString *result = 0 ;
27142 void *argp1 = 0 ;
27143 int res1 = 0 ;
27144 PyObject *swig_obj[1] ;
27145
27146 if (!args) SWIG_fail;
27147 swig_obj[0] = args;
27148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27149 if (!SWIG_IsOK(res1)) {
27150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
27151 }
27152 arg1 = reinterpret_cast< wxListItem * >(argp1);
27153 {
27154 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 27155 {
1bd55598
RD
27156 wxString const &_result_ref = (arg1)->GetText();
27157 result = (wxString *) &_result_ref;
36ed4f51 27158 }
1bd55598
RD
27159 wxPyEndAllowThreads(__tstate);
27160 if (PyErr_Occurred()) SWIG_fail;
27161 }
27162 {
27163#if wxUSE_UNICODE
27164 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27165#else
27166 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27167#endif
27168 }
27169 return resultobj;
27170fail:
27171 return NULL;
d55e5bfc
RD
27172}
27173
27174
1bd55598
RD
27175SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27176 PyObject *resultobj = 0;
27177 wxListItem *arg1 = (wxListItem *) 0 ;
27178 int result;
27179 void *argp1 = 0 ;
27180 int res1 = 0 ;
27181 PyObject *swig_obj[1] ;
27182
27183 if (!args) SWIG_fail;
27184 swig_obj[0] = args;
27185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27186 if (!SWIG_IsOK(res1)) {
27187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
27188 }
27189 arg1 = reinterpret_cast< wxListItem * >(argp1);
27190 {
27191 PyThreadState* __tstate = wxPyBeginAllowThreads();
27192 result = (int)(arg1)->GetImage();
27193 wxPyEndAllowThreads(__tstate);
27194 if (PyErr_Occurred()) SWIG_fail;
27195 }
27196 resultobj = SWIG_From_int(static_cast< int >(result));
27197 return resultobj;
27198fail:
27199 return NULL;
d55e5bfc
RD
27200}
27201
27202
1bd55598
RD
27203SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27204 PyObject *resultobj = 0;
27205 wxListItem *arg1 = (wxListItem *) 0 ;
27206 long result;
27207 void *argp1 = 0 ;
27208 int res1 = 0 ;
27209 PyObject *swig_obj[1] ;
27210
27211 if (!args) SWIG_fail;
27212 swig_obj[0] = args;
27213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27214 if (!SWIG_IsOK(res1)) {
27215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
27216 }
27217 arg1 = reinterpret_cast< wxListItem * >(argp1);
27218 {
27219 PyThreadState* __tstate = wxPyBeginAllowThreads();
27220 result = (long)(arg1)->GetData();
27221 wxPyEndAllowThreads(__tstate);
27222 if (PyErr_Occurred()) SWIG_fail;
27223 }
27224 resultobj = SWIG_From_long(static_cast< long >(result));
27225 return resultobj;
27226fail:
27227 return NULL;
d55e5bfc
RD
27228}
27229
27230
1bd55598
RD
27231SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27232 PyObject *resultobj = 0;
27233 wxListItem *arg1 = (wxListItem *) 0 ;
27234 int result;
27235 void *argp1 = 0 ;
27236 int res1 = 0 ;
27237 PyObject *swig_obj[1] ;
27238
27239 if (!args) SWIG_fail;
27240 swig_obj[0] = args;
27241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27242 if (!SWIG_IsOK(res1)) {
27243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
27244 }
27245 arg1 = reinterpret_cast< wxListItem * >(argp1);
27246 {
27247 PyThreadState* __tstate = wxPyBeginAllowThreads();
27248 result = (int)(arg1)->GetWidth();
27249 wxPyEndAllowThreads(__tstate);
27250 if (PyErr_Occurred()) SWIG_fail;
27251 }
27252 resultobj = SWIG_From_int(static_cast< int >(result));
27253 return resultobj;
27254fail:
27255 return NULL;
d55e5bfc
RD
27256}
27257
27258
1bd55598
RD
27259SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27260 PyObject *resultobj = 0;
27261 wxListItem *arg1 = (wxListItem *) 0 ;
27262 wxListColumnFormat result;
27263 void *argp1 = 0 ;
27264 int res1 = 0 ;
27265 PyObject *swig_obj[1] ;
27266
27267 if (!args) SWIG_fail;
27268 swig_obj[0] = args;
27269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27270 if (!SWIG_IsOK(res1)) {
27271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27272 }
27273 arg1 = reinterpret_cast< wxListItem * >(argp1);
27274 {
27275 PyThreadState* __tstate = wxPyBeginAllowThreads();
27276 result = (wxListColumnFormat)(arg1)->GetAlign();
27277 wxPyEndAllowThreads(__tstate);
27278 if (PyErr_Occurred()) SWIG_fail;
27279 }
27280 resultobj = SWIG_From_int(static_cast< int >(result));
27281 return resultobj;
27282fail:
27283 return NULL;
d55e5bfc
RD
27284}
27285
27286
1bd55598
RD
27287SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27288 PyObject *resultobj = 0;
27289 wxListItem *arg1 = (wxListItem *) 0 ;
27290 wxListItemAttr *result = 0 ;
27291 void *argp1 = 0 ;
27292 int res1 = 0 ;
27293 PyObject *swig_obj[1] ;
27294
27295 if (!args) SWIG_fail;
27296 swig_obj[0] = args;
27297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27298 if (!SWIG_IsOK(res1)) {
27299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27300 }
27301 arg1 = reinterpret_cast< wxListItem * >(argp1);
27302 {
27303 PyThreadState* __tstate = wxPyBeginAllowThreads();
27304 result = (wxListItemAttr *)(arg1)->GetAttributes();
27305 wxPyEndAllowThreads(__tstate);
27306 if (PyErr_Occurred()) SWIG_fail;
27307 }
27308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27309 return resultobj;
27310fail:
27311 return NULL;
d55e5bfc
RD
27312}
27313
27314
1bd55598
RD
27315SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27316 PyObject *resultobj = 0;
27317 wxListItem *arg1 = (wxListItem *) 0 ;
27318 bool result;
27319 void *argp1 = 0 ;
27320 int res1 = 0 ;
27321 PyObject *swig_obj[1] ;
27322
27323 if (!args) SWIG_fail;
27324 swig_obj[0] = args;
27325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27326 if (!SWIG_IsOK(res1)) {
27327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27328 }
27329 arg1 = reinterpret_cast< wxListItem * >(argp1);
27330 {
27331 PyThreadState* __tstate = wxPyBeginAllowThreads();
27332 result = (bool)(arg1)->HasAttributes();
27333 wxPyEndAllowThreads(__tstate);
27334 if (PyErr_Occurred()) SWIG_fail;
27335 }
27336 {
27337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27338 }
27339 return resultobj;
27340fail:
27341 return NULL;
d55e5bfc
RD
27342}
27343
27344
1bd55598
RD
27345SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27346 PyObject *resultobj = 0;
27347 wxListItem *arg1 = (wxListItem *) 0 ;
27348 wxColour result;
27349 void *argp1 = 0 ;
27350 int res1 = 0 ;
27351 PyObject *swig_obj[1] ;
27352
27353 if (!args) SWIG_fail;
27354 swig_obj[0] = args;
27355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27356 if (!SWIG_IsOK(res1)) {
27357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27358 }
27359 arg1 = reinterpret_cast< wxListItem * >(argp1);
27360 {
27361 PyThreadState* __tstate = wxPyBeginAllowThreads();
27362 result = ((wxListItem const *)arg1)->GetTextColour();
27363 wxPyEndAllowThreads(__tstate);
27364 if (PyErr_Occurred()) SWIG_fail;
27365 }
27366 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27367 return resultobj;
27368fail:
27369 return NULL;
d55e5bfc
RD
27370}
27371
27372
1bd55598
RD
27373SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27374 PyObject *resultobj = 0;
27375 wxListItem *arg1 = (wxListItem *) 0 ;
27376 wxColour result;
27377 void *argp1 = 0 ;
27378 int res1 = 0 ;
27379 PyObject *swig_obj[1] ;
27380
27381 if (!args) SWIG_fail;
27382 swig_obj[0] = args;
27383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27384 if (!SWIG_IsOK(res1)) {
27385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27386 }
27387 arg1 = reinterpret_cast< wxListItem * >(argp1);
27388 {
27389 PyThreadState* __tstate = wxPyBeginAllowThreads();
27390 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27391 wxPyEndAllowThreads(__tstate);
27392 if (PyErr_Occurred()) SWIG_fail;
27393 }
27394 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27395 return resultobj;
27396fail:
27397 return NULL;
d55e5bfc
RD
27398}
27399
27400
1bd55598
RD
27401SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27402 PyObject *resultobj = 0;
27403 wxListItem *arg1 = (wxListItem *) 0 ;
27404 wxFont result;
27405 void *argp1 = 0 ;
27406 int res1 = 0 ;
27407 PyObject *swig_obj[1] ;
27408
27409 if (!args) SWIG_fail;
27410 swig_obj[0] = args;
27411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27412 if (!SWIG_IsOK(res1)) {
27413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27414 }
27415 arg1 = reinterpret_cast< wxListItem * >(argp1);
27416 {
27417 PyThreadState* __tstate = wxPyBeginAllowThreads();
27418 result = ((wxListItem const *)arg1)->GetFont();
27419 wxPyEndAllowThreads(__tstate);
27420 if (PyErr_Occurred()) SWIG_fail;
27421 }
27422 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27423 return resultobj;
27424fail:
27425 return NULL;
27426}
27427
27428
27429SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27430 PyObject *resultobj = 0;
27431 wxListItem *arg1 = (wxListItem *) 0 ;
27432 long arg2 ;
27433 void *argp1 = 0 ;
27434 int res1 = 0 ;
27435 long val2 ;
27436 int ecode2 = 0 ;
27437 PyObject *swig_obj[2] ;
27438
27439 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27441 if (!SWIG_IsOK(res1)) {
27442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27443 }
27444 arg1 = reinterpret_cast< wxListItem * >(argp1);
27445 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27446 if (!SWIG_IsOK(ecode2)) {
27447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27448 }
27449 arg2 = static_cast< long >(val2);
27450 if (arg1) (arg1)->m_mask = arg2;
27451
27452 resultobj = SWIG_Py_Void();
27453 return resultobj;
27454fail:
27455 return NULL;
d55e5bfc
RD
27456}
27457
27458
1bd55598
RD
27459SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27460 PyObject *resultobj = 0;
27461 wxListItem *arg1 = (wxListItem *) 0 ;
27462 long result;
27463 void *argp1 = 0 ;
27464 int res1 = 0 ;
27465 PyObject *swig_obj[1] ;
27466
27467 if (!args) SWIG_fail;
27468 swig_obj[0] = args;
27469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27470 if (!SWIG_IsOK(res1)) {
27471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27472 }
27473 arg1 = reinterpret_cast< wxListItem * >(argp1);
27474 result = (long) ((arg1)->m_mask);
27475 resultobj = SWIG_From_long(static_cast< long >(result));
27476 return resultobj;
27477fail:
27478 return NULL;
27479}
27480
27481
27482SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27483 PyObject *resultobj = 0;
27484 wxListItem *arg1 = (wxListItem *) 0 ;
27485 long arg2 ;
27486 void *argp1 = 0 ;
27487 int res1 = 0 ;
27488 long val2 ;
27489 int ecode2 = 0 ;
27490 PyObject *swig_obj[2] ;
27491
27492 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27494 if (!SWIG_IsOK(res1)) {
27495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27496 }
27497 arg1 = reinterpret_cast< wxListItem * >(argp1);
27498 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27499 if (!SWIG_IsOK(ecode2)) {
27500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27501 }
27502 arg2 = static_cast< long >(val2);
27503 if (arg1) (arg1)->m_itemId = arg2;
27504
27505 resultobj = SWIG_Py_Void();
27506 return resultobj;
27507fail:
27508 return NULL;
7e08d4ef
RD
27509}
27510
27511
1bd55598
RD
27512SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27513 PyObject *resultobj = 0;
27514 wxListItem *arg1 = (wxListItem *) 0 ;
27515 long result;
27516 void *argp1 = 0 ;
27517 int res1 = 0 ;
27518 PyObject *swig_obj[1] ;
27519
27520 if (!args) SWIG_fail;
27521 swig_obj[0] = args;
27522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27523 if (!SWIG_IsOK(res1)) {
27524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27525 }
27526 arg1 = reinterpret_cast< wxListItem * >(argp1);
27527 result = (long) ((arg1)->m_itemId);
27528 resultobj = SWIG_From_long(static_cast< long >(result));
27529 return resultobj;
27530fail:
27531 return NULL;
27532}
27533
27534
27535SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27536 PyObject *resultobj = 0;
27537 wxListItem *arg1 = (wxListItem *) 0 ;
27538 int arg2 ;
27539 void *argp1 = 0 ;
27540 int res1 = 0 ;
27541 int val2 ;
27542 int ecode2 = 0 ;
27543 PyObject *swig_obj[2] ;
27544
27545 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27547 if (!SWIG_IsOK(res1)) {
27548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27549 }
27550 arg1 = reinterpret_cast< wxListItem * >(argp1);
27551 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27552 if (!SWIG_IsOK(ecode2)) {
27553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27554 }
27555 arg2 = static_cast< int >(val2);
27556 if (arg1) (arg1)->m_col = arg2;
27557
27558 resultobj = SWIG_Py_Void();
27559 return resultobj;
27560fail:
27561 return NULL;
7e08d4ef
RD
27562}
27563
27564
1bd55598
RD
27565SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27566 PyObject *resultobj = 0;
27567 wxListItem *arg1 = (wxListItem *) 0 ;
27568 int result;
27569 void *argp1 = 0 ;
27570 int res1 = 0 ;
27571 PyObject *swig_obj[1] ;
27572
27573 if (!args) SWIG_fail;
27574 swig_obj[0] = args;
27575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27576 if (!SWIG_IsOK(res1)) {
27577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27578 }
27579 arg1 = reinterpret_cast< wxListItem * >(argp1);
27580 result = (int) ((arg1)->m_col);
27581 resultobj = SWIG_From_int(static_cast< int >(result));
27582 return resultobj;
27583fail:
27584 return NULL;
27585}
27586
27587
27588SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27589 PyObject *resultobj = 0;
27590 wxListItem *arg1 = (wxListItem *) 0 ;
27591 long arg2 ;
27592 void *argp1 = 0 ;
27593 int res1 = 0 ;
27594 long val2 ;
27595 int ecode2 = 0 ;
27596 PyObject *swig_obj[2] ;
27597
27598 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27600 if (!SWIG_IsOK(res1)) {
27601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27602 }
27603 arg1 = reinterpret_cast< wxListItem * >(argp1);
27604 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27605 if (!SWIG_IsOK(ecode2)) {
27606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27607 }
27608 arg2 = static_cast< long >(val2);
27609 if (arg1) (arg1)->m_state = arg2;
27610
27611 resultobj = SWIG_Py_Void();
27612 return resultobj;
27613fail:
27614 return NULL;
7e08d4ef
RD
27615}
27616
27617
1bd55598
RD
27618SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27619 PyObject *resultobj = 0;
27620 wxListItem *arg1 = (wxListItem *) 0 ;
27621 long result;
27622 void *argp1 = 0 ;
27623 int res1 = 0 ;
27624 PyObject *swig_obj[1] ;
27625
27626 if (!args) SWIG_fail;
27627 swig_obj[0] = args;
27628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27629 if (!SWIG_IsOK(res1)) {
27630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27631 }
27632 arg1 = reinterpret_cast< wxListItem * >(argp1);
27633 result = (long) ((arg1)->m_state);
27634 resultobj = SWIG_From_long(static_cast< long >(result));
27635 return resultobj;
27636fail:
27637 return NULL;
27638}
27639
27640
27641SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27642 PyObject *resultobj = 0;
27643 wxListItem *arg1 = (wxListItem *) 0 ;
27644 long arg2 ;
27645 void *argp1 = 0 ;
27646 int res1 = 0 ;
27647 long val2 ;
27648 int ecode2 = 0 ;
27649 PyObject *swig_obj[2] ;
27650
27651 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27653 if (!SWIG_IsOK(res1)) {
27654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27655 }
27656 arg1 = reinterpret_cast< wxListItem * >(argp1);
27657 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27658 if (!SWIG_IsOK(ecode2)) {
27659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27660 }
27661 arg2 = static_cast< long >(val2);
27662 if (arg1) (arg1)->m_stateMask = arg2;
27663
27664 resultobj = SWIG_Py_Void();
27665 return resultobj;
27666fail:
27667 return NULL;
7e08d4ef
RD
27668}
27669
27670
1bd55598
RD
27671SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27672 PyObject *resultobj = 0;
27673 wxListItem *arg1 = (wxListItem *) 0 ;
27674 long result;
27675 void *argp1 = 0 ;
27676 int res1 = 0 ;
27677 PyObject *swig_obj[1] ;
27678
27679 if (!args) SWIG_fail;
27680 swig_obj[0] = args;
27681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27682 if (!SWIG_IsOK(res1)) {
27683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27684 }
27685 arg1 = reinterpret_cast< wxListItem * >(argp1);
27686 result = (long) ((arg1)->m_stateMask);
27687 resultobj = SWIG_From_long(static_cast< long >(result));
27688 return resultobj;
27689fail:
27690 return NULL;
27691}
27692
27693
27694SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27695 PyObject *resultobj = 0;
27696 wxListItem *arg1 = (wxListItem *) 0 ;
27697 wxString *arg2 = (wxString *) 0 ;
27698 void *argp1 = 0 ;
27699 int res1 = 0 ;
27700 bool temp2 = false ;
27701 PyObject *swig_obj[2] ;
27702
27703 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27705 if (!SWIG_IsOK(res1)) {
27706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27707 }
27708 arg1 = reinterpret_cast< wxListItem * >(argp1);
27709 {
27710 arg2 = wxString_in_helper(swig_obj[1]);
27711 if (arg2 == NULL) SWIG_fail;
27712 temp2 = true;
27713 }
27714 if (arg1) (arg1)->m_text = *arg2;
27715
27716 resultobj = SWIG_Py_Void();
27717 {
27718 if (temp2)
27719 delete arg2;
27720 }
27721 return resultobj;
27722fail:
27723 {
27724 if (temp2)
27725 delete arg2;
27726 }
27727 return NULL;
7e08d4ef
RD
27728}
27729
27730
1bd55598
RD
27731SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27732 PyObject *resultobj = 0;
27733 wxListItem *arg1 = (wxListItem *) 0 ;
27734 wxString *result = 0 ;
27735 void *argp1 = 0 ;
27736 int res1 = 0 ;
27737 PyObject *swig_obj[1] ;
27738
27739 if (!args) SWIG_fail;
27740 swig_obj[0] = args;
27741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27742 if (!SWIG_IsOK(res1)) {
27743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27744 }
27745 arg1 = reinterpret_cast< wxListItem * >(argp1);
27746 result = (wxString *)& ((arg1)->m_text);
27747 {
27748#if wxUSE_UNICODE
27749 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27750#else
27751 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27752#endif
27753 }
27754 return resultobj;
27755fail:
27756 return NULL;
d55e5bfc
RD
27757}
27758
27759
1bd55598
RD
27760SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27761 PyObject *resultobj = 0;
27762 wxListItem *arg1 = (wxListItem *) 0 ;
27763 int arg2 ;
27764 void *argp1 = 0 ;
27765 int res1 = 0 ;
27766 int val2 ;
27767 int ecode2 = 0 ;
27768 PyObject *swig_obj[2] ;
27769
27770 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27772 if (!SWIG_IsOK(res1)) {
27773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27774 }
27775 arg1 = reinterpret_cast< wxListItem * >(argp1);
27776 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27777 if (!SWIG_IsOK(ecode2)) {
27778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27779 }
27780 arg2 = static_cast< int >(val2);
27781 if (arg1) (arg1)->m_image = arg2;
27782
27783 resultobj = SWIG_Py_Void();
27784 return resultobj;
27785fail:
27786 return NULL;
d55e5bfc
RD
27787}
27788
27789
1bd55598
RD
27790SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27791 PyObject *resultobj = 0;
27792 wxListItem *arg1 = (wxListItem *) 0 ;
27793 int result;
27794 void *argp1 = 0 ;
27795 int res1 = 0 ;
27796 PyObject *swig_obj[1] ;
27797
27798 if (!args) SWIG_fail;
27799 swig_obj[0] = args;
27800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27801 if (!SWIG_IsOK(res1)) {
27802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27803 }
27804 arg1 = reinterpret_cast< wxListItem * >(argp1);
27805 result = (int) ((arg1)->m_image);
27806 resultobj = SWIG_From_int(static_cast< int >(result));
27807 return resultobj;
27808fail:
27809 return NULL;
27810}
27811
27812
27813SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27814 PyObject *resultobj = 0;
27815 wxListItem *arg1 = (wxListItem *) 0 ;
27816 long arg2 ;
27817 void *argp1 = 0 ;
27818 int res1 = 0 ;
27819 long val2 ;
27820 int ecode2 = 0 ;
27821 PyObject *swig_obj[2] ;
27822
27823 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27825 if (!SWIG_IsOK(res1)) {
27826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27827 }
27828 arg1 = reinterpret_cast< wxListItem * >(argp1);
27829 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27830 if (!SWIG_IsOK(ecode2)) {
27831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27832 }
27833 arg2 = static_cast< long >(val2);
27834 if (arg1) (arg1)->m_data = arg2;
27835
27836 resultobj = SWIG_Py_Void();
27837 return resultobj;
27838fail:
27839 return NULL;
d55e5bfc
RD
27840}
27841
27842
1bd55598
RD
27843SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27844 PyObject *resultobj = 0;
27845 wxListItem *arg1 = (wxListItem *) 0 ;
27846 long result;
27847 void *argp1 = 0 ;
27848 int res1 = 0 ;
27849 PyObject *swig_obj[1] ;
27850
27851 if (!args) SWIG_fail;
27852 swig_obj[0] = args;
27853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27854 if (!SWIG_IsOK(res1)) {
27855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27856 }
27857 arg1 = reinterpret_cast< wxListItem * >(argp1);
27858 result = (long) ((arg1)->m_data);
27859 resultobj = SWIG_From_long(static_cast< long >(result));
27860 return resultobj;
27861fail:
27862 return NULL;
27863}
27864
27865
27866SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27867 PyObject *resultobj = 0;
27868 wxListItem *arg1 = (wxListItem *) 0 ;
27869 int arg2 ;
27870 void *argp1 = 0 ;
27871 int res1 = 0 ;
27872 int val2 ;
27873 int ecode2 = 0 ;
27874 PyObject *swig_obj[2] ;
27875
27876 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27878 if (!SWIG_IsOK(res1)) {
27879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27880 }
27881 arg1 = reinterpret_cast< wxListItem * >(argp1);
27882 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27883 if (!SWIG_IsOK(ecode2)) {
27884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27885 }
27886 arg2 = static_cast< int >(val2);
27887 if (arg1) (arg1)->m_format = arg2;
27888
27889 resultobj = SWIG_Py_Void();
27890 return resultobj;
27891fail:
27892 return NULL;
d55e5bfc
RD
27893}
27894
27895
1bd55598
RD
27896SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27897 PyObject *resultobj = 0;
27898 wxListItem *arg1 = (wxListItem *) 0 ;
27899 int result;
27900 void *argp1 = 0 ;
27901 int res1 = 0 ;
27902 PyObject *swig_obj[1] ;
27903
27904 if (!args) SWIG_fail;
27905 swig_obj[0] = args;
27906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27907 if (!SWIG_IsOK(res1)) {
27908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27909 }
27910 arg1 = reinterpret_cast< wxListItem * >(argp1);
27911 result = (int) ((arg1)->m_format);
27912 resultobj = SWIG_From_int(static_cast< int >(result));
27913 return resultobj;
27914fail:
27915 return NULL;
27916}
27917
27918
27919SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27920 PyObject *resultobj = 0;
27921 wxListItem *arg1 = (wxListItem *) 0 ;
27922 int arg2 ;
27923 void *argp1 = 0 ;
27924 int res1 = 0 ;
27925 int val2 ;
27926 int ecode2 = 0 ;
27927 PyObject *swig_obj[2] ;
27928
27929 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27931 if (!SWIG_IsOK(res1)) {
27932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27933 }
27934 arg1 = reinterpret_cast< wxListItem * >(argp1);
27935 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27936 if (!SWIG_IsOK(ecode2)) {
27937 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27938 }
27939 arg2 = static_cast< int >(val2);
27940 if (arg1) (arg1)->m_width = arg2;
27941
27942 resultobj = SWIG_Py_Void();
27943 return resultobj;
27944fail:
27945 return NULL;
d55e5bfc
RD
27946}
27947
27948
1bd55598
RD
27949SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27950 PyObject *resultobj = 0;
27951 wxListItem *arg1 = (wxListItem *) 0 ;
27952 int result;
27953 void *argp1 = 0 ;
27954 int res1 = 0 ;
27955 PyObject *swig_obj[1] ;
27956
27957 if (!args) SWIG_fail;
27958 swig_obj[0] = args;
27959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27960 if (!SWIG_IsOK(res1)) {
27961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27962 }
27963 arg1 = reinterpret_cast< wxListItem * >(argp1);
27964 result = (int) ((arg1)->m_width);
27965 resultobj = SWIG_From_int(static_cast< int >(result));
27966 return resultobj;
27967fail:
27968 return NULL;
27969}
27970
27971
27972SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27973 PyObject *obj;
27974 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27975 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27976 return SWIG_Py_Void();
27977}
27978
27979SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27980 return SWIG_Python_InitShadowInstance(args);
27981}
27982
27983SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27984 PyObject *resultobj = 0;
27985 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27986 int arg2 = (int) 0 ;
27987 wxListEvent *result = 0 ;
27988 int val1 ;
27989 int ecode1 = 0 ;
27990 int val2 ;
27991 int ecode2 = 0 ;
27992 PyObject * obj0 = 0 ;
27993 PyObject * obj1 = 0 ;
27994 char * kwnames[] = {
27995 (char *) "commandType",(char *) "id", NULL
27996 };
27997
27998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27999 if (obj0) {
28000 ecode1 = SWIG_AsVal_int(obj0, &val1);
28001 if (!SWIG_IsOK(ecode1)) {
28002 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
28003 }
28004 arg1 = static_cast< wxEventType >(val1);
28005 }
28006 if (obj1) {
28007 ecode2 = SWIG_AsVal_int(obj1, &val2);
28008 if (!SWIG_IsOK(ecode2)) {
28009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
28010 }
28011 arg2 = static_cast< int >(val2);
28012 }
28013 {
28014 PyThreadState* __tstate = wxPyBeginAllowThreads();
28015 result = (wxListEvent *)new wxListEvent(arg1,arg2);
28016 wxPyEndAllowThreads(__tstate);
28017 if (PyErr_Occurred()) SWIG_fail;
28018 }
28019 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
28020 return resultobj;
28021fail:
28022 return NULL;
28023}
28024
28025
28026SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28027 PyObject *resultobj = 0;
28028 wxListEvent *arg1 = (wxListEvent *) 0 ;
28029 int arg2 ;
28030 void *argp1 = 0 ;
28031 int res1 = 0 ;
28032 int val2 ;
28033 int ecode2 = 0 ;
28034 PyObject *swig_obj[2] ;
28035
28036 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
28037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28038 if (!SWIG_IsOK(res1)) {
28039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28040 }
28041 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28042 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28043 if (!SWIG_IsOK(ecode2)) {
28044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
28045 }
28046 arg2 = static_cast< int >(val2);
28047 if (arg1) (arg1)->m_code = arg2;
28048
28049 resultobj = SWIG_Py_Void();
28050 return resultobj;
28051fail:
28052 return NULL;
d55e5bfc
RD
28053}
28054
28055
1bd55598
RD
28056SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28057 PyObject *resultobj = 0;
28058 wxListEvent *arg1 = (wxListEvent *) 0 ;
28059 int result;
28060 void *argp1 = 0 ;
28061 int res1 = 0 ;
28062 PyObject *swig_obj[1] ;
28063
28064 if (!args) SWIG_fail;
28065 swig_obj[0] = args;
28066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28067 if (!SWIG_IsOK(res1)) {
28068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28069 }
28070 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28071 result = (int) ((arg1)->m_code);
28072 resultobj = SWIG_From_int(static_cast< int >(result));
28073 return resultobj;
28074fail:
28075 return NULL;
28076}
28077
28078
28079SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28080 PyObject *resultobj = 0;
28081 wxListEvent *arg1 = (wxListEvent *) 0 ;
28082 long arg2 ;
28083 void *argp1 = 0 ;
28084 int res1 = 0 ;
28085 long val2 ;
28086 int ecode2 = 0 ;
28087 PyObject *swig_obj[2] ;
28088
28089 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
28090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28091 if (!SWIG_IsOK(res1)) {
28092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28093 }
28094 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28095 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28096 if (!SWIG_IsOK(ecode2)) {
28097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
28098 }
28099 arg2 = static_cast< long >(val2);
28100 if (arg1) (arg1)->m_oldItemIndex = arg2;
28101
28102 resultobj = SWIG_Py_Void();
28103 return resultobj;
28104fail:
28105 return NULL;
d55e5bfc
RD
28106}
28107
28108
1bd55598
RD
28109SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28110 PyObject *resultobj = 0;
28111 wxListEvent *arg1 = (wxListEvent *) 0 ;
28112 long result;
28113 void *argp1 = 0 ;
28114 int res1 = 0 ;
28115 PyObject *swig_obj[1] ;
28116
28117 if (!args) SWIG_fail;
28118 swig_obj[0] = args;
28119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28120 if (!SWIG_IsOK(res1)) {
28121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28122 }
28123 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28124 result = (long) ((arg1)->m_oldItemIndex);
28125 resultobj = SWIG_From_long(static_cast< long >(result));
28126 return resultobj;
28127fail:
28128 return NULL;
28129}
28130
28131
28132SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28133 PyObject *resultobj = 0;
28134 wxListEvent *arg1 = (wxListEvent *) 0 ;
28135 long arg2 ;
28136 void *argp1 = 0 ;
28137 int res1 = 0 ;
28138 long val2 ;
28139 int ecode2 = 0 ;
28140 PyObject *swig_obj[2] ;
28141
28142 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
28143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28144 if (!SWIG_IsOK(res1)) {
28145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28146 }
28147 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28148 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
28149 if (!SWIG_IsOK(ecode2)) {
28150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
28151 }
28152 arg2 = static_cast< long >(val2);
28153 if (arg1) (arg1)->m_itemIndex = arg2;
28154
28155 resultobj = SWIG_Py_Void();
28156 return resultobj;
28157fail:
28158 return NULL;
f20a2e1f
RD
28159}
28160
28161
1bd55598
RD
28162SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28163 PyObject *resultobj = 0;
28164 wxListEvent *arg1 = (wxListEvent *) 0 ;
28165 long result;
28166 void *argp1 = 0 ;
28167 int res1 = 0 ;
28168 PyObject *swig_obj[1] ;
28169
28170 if (!args) SWIG_fail;
28171 swig_obj[0] = args;
28172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28173 if (!SWIG_IsOK(res1)) {
28174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28175 }
28176 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28177 result = (long) ((arg1)->m_itemIndex);
28178 resultobj = SWIG_From_long(static_cast< long >(result));
28179 return resultobj;
28180fail:
28181 return NULL;
28182}
28183
28184
28185SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28186 PyObject *resultobj = 0;
28187 wxListEvent *arg1 = (wxListEvent *) 0 ;
28188 int arg2 ;
28189 void *argp1 = 0 ;
28190 int res1 = 0 ;
28191 int val2 ;
28192 int ecode2 = 0 ;
28193 PyObject *swig_obj[2] ;
28194
28195 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
28196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28197 if (!SWIG_IsOK(res1)) {
28198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28199 }
28200 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28201 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
28202 if (!SWIG_IsOK(ecode2)) {
28203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
28204 }
28205 arg2 = static_cast< int >(val2);
28206 if (arg1) (arg1)->m_col = arg2;
28207
28208 resultobj = SWIG_Py_Void();
28209 return resultobj;
28210fail:
28211 return NULL;
d55e5bfc
RD
28212}
28213
28214
1bd55598
RD
28215SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28216 PyObject *resultobj = 0;
28217 wxListEvent *arg1 = (wxListEvent *) 0 ;
28218 int result;
28219 void *argp1 = 0 ;
28220 int res1 = 0 ;
28221 PyObject *swig_obj[1] ;
28222
28223 if (!args) SWIG_fail;
28224 swig_obj[0] = args;
28225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28226 if (!SWIG_IsOK(res1)) {
28227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28228 }
28229 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28230 result = (int) ((arg1)->m_col);
28231 resultobj = SWIG_From_int(static_cast< int >(result));
28232 return resultobj;
28233fail:
28234 return NULL;
28235}
28236
28237
28238SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28239 PyObject *resultobj = 0;
28240 wxListEvent *arg1 = (wxListEvent *) 0 ;
28241 wxPoint *arg2 = (wxPoint *) 0 ;
28242 void *argp1 = 0 ;
28243 int res1 = 0 ;
28244 void *argp2 = 0 ;
28245 int res2 = 0 ;
28246 PyObject *swig_obj[2] ;
28247
28248 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
28249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28250 if (!SWIG_IsOK(res1)) {
28251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
28252 }
28253 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28254 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
28255 if (!SWIG_IsOK(res2)) {
28256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
28257 }
28258 arg2 = reinterpret_cast< wxPoint * >(argp2);
28259 if (arg1) (arg1)->m_pointDrag = *arg2;
28260
28261 resultobj = SWIG_Py_Void();
28262 return resultobj;
28263fail:
28264 return NULL;
d55e5bfc
RD
28265}
28266
28267
1bd55598
RD
28268SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28269 PyObject *resultobj = 0;
28270 wxListEvent *arg1 = (wxListEvent *) 0 ;
28271 wxPoint *result = 0 ;
28272 void *argp1 = 0 ;
28273 int res1 = 0 ;
28274 PyObject *swig_obj[1] ;
28275
28276 if (!args) SWIG_fail;
28277 swig_obj[0] = args;
28278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28279 if (!SWIG_IsOK(res1)) {
28280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28281 }
28282 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28283 result = (wxPoint *)& ((arg1)->m_pointDrag);
28284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28285 return resultobj;
28286fail:
28287 return NULL;
28288}
28289
28290
28291SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28292 PyObject *resultobj = 0;
28293 wxListEvent *arg1 = (wxListEvent *) 0 ;
28294 wxListItem *result = 0 ;
28295 void *argp1 = 0 ;
28296 int res1 = 0 ;
28297 PyObject *swig_obj[1] ;
28298
28299 if (!args) SWIG_fail;
28300 swig_obj[0] = args;
28301 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28302 if (!SWIG_IsOK(res1)) {
28303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28304 }
28305 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28306 result = (wxListItem *)& ((arg1)->m_item);
28307 {
3ecece7e 28308 resultobj = wxPyMake_wxObject(result, 0);
1bd55598
RD
28309 }
28310 return resultobj;
28311fail:
28312 return NULL;
d55e5bfc
RD
28313}
28314
28315
1bd55598
RD
28316SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28317 PyObject *resultobj = 0;
28318 wxListEvent *arg1 = (wxListEvent *) 0 ;
28319 int result;
28320 void *argp1 = 0 ;
28321 int res1 = 0 ;
28322 PyObject *swig_obj[1] ;
28323
28324 if (!args) SWIG_fail;
28325 swig_obj[0] = args;
28326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28327 if (!SWIG_IsOK(res1)) {
28328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28329 }
28330 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28331 {
28332 PyThreadState* __tstate = wxPyBeginAllowThreads();
28333 result = (int)(arg1)->GetKeyCode();
28334 wxPyEndAllowThreads(__tstate);
28335 if (PyErr_Occurred()) SWIG_fail;
28336 }
28337 resultobj = SWIG_From_int(static_cast< int >(result));
28338 return resultobj;
28339fail:
28340 return NULL;
d55e5bfc
RD
28341}
28342
28343
1bd55598
RD
28344SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28345 PyObject *resultobj = 0;
28346 wxListEvent *arg1 = (wxListEvent *) 0 ;
28347 long result;
28348 void *argp1 = 0 ;
28349 int res1 = 0 ;
28350 PyObject *swig_obj[1] ;
28351
28352 if (!args) SWIG_fail;
28353 swig_obj[0] = args;
28354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28355 if (!SWIG_IsOK(res1)) {
28356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28357 }
28358 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28359 {
28360 PyThreadState* __tstate = wxPyBeginAllowThreads();
28361 result = (long)(arg1)->GetIndex();
28362 wxPyEndAllowThreads(__tstate);
28363 if (PyErr_Occurred()) SWIG_fail;
28364 }
28365 resultobj = SWIG_From_long(static_cast< long >(result));
28366 return resultobj;
28367fail:
28368 return NULL;
d55e5bfc
RD
28369}
28370
28371
1bd55598
RD
28372SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28373 PyObject *resultobj = 0;
28374 wxListEvent *arg1 = (wxListEvent *) 0 ;
28375 int result;
28376 void *argp1 = 0 ;
28377 int res1 = 0 ;
28378 PyObject *swig_obj[1] ;
28379
28380 if (!args) SWIG_fail;
28381 swig_obj[0] = args;
28382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28383 if (!SWIG_IsOK(res1)) {
28384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28385 }
28386 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28387 {
28388 PyThreadState* __tstate = wxPyBeginAllowThreads();
28389 result = (int)(arg1)->GetColumn();
28390 wxPyEndAllowThreads(__tstate);
28391 if (PyErr_Occurred()) SWIG_fail;
28392 }
28393 resultobj = SWIG_From_int(static_cast< int >(result));
28394 return resultobj;
28395fail:
28396 return NULL;
d55e5bfc
RD
28397}
28398
28399
1bd55598
RD
28400SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28401 PyObject *resultobj = 0;
28402 wxListEvent *arg1 = (wxListEvent *) 0 ;
28403 wxPoint result;
28404 void *argp1 = 0 ;
28405 int res1 = 0 ;
28406 PyObject *swig_obj[1] ;
28407
28408 if (!args) SWIG_fail;
28409 swig_obj[0] = args;
28410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28411 if (!SWIG_IsOK(res1)) {
28412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28413 }
28414 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28415 {
28416 PyThreadState* __tstate = wxPyBeginAllowThreads();
28417 result = (arg1)->GetPoint();
28418 wxPyEndAllowThreads(__tstate);
28419 if (PyErr_Occurred()) SWIG_fail;
28420 }
28421 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28422 return resultobj;
28423fail:
28424 return NULL;
d55e5bfc
RD
28425}
28426
28427
1bd55598
RD
28428SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28429 PyObject *resultobj = 0;
28430 wxListEvent *arg1 = (wxListEvent *) 0 ;
28431 wxString *result = 0 ;
28432 void *argp1 = 0 ;
28433 int res1 = 0 ;
28434 PyObject *swig_obj[1] ;
28435
28436 if (!args) SWIG_fail;
28437 swig_obj[0] = args;
28438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28439 if (!SWIG_IsOK(res1)) {
28440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28441 }
28442 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28443 {
28444 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28445 {
1bd55598
RD
28446 wxString const &_result_ref = (arg1)->GetLabel();
28447 result = (wxString *) &_result_ref;
d55e5bfc 28448 }
1bd55598
RD
28449 wxPyEndAllowThreads(__tstate);
28450 if (PyErr_Occurred()) SWIG_fail;
28451 }
28452 {
28453#if wxUSE_UNICODE
28454 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28455#else
28456 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28457#endif
28458 }
28459 return resultobj;
28460fail:
28461 return NULL;
d55e5bfc
RD
28462}
28463
28464
1bd55598
RD
28465SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28466 PyObject *resultobj = 0;
28467 wxListEvent *arg1 = (wxListEvent *) 0 ;
28468 wxString *result = 0 ;
28469 void *argp1 = 0 ;
28470 int res1 = 0 ;
28471 PyObject *swig_obj[1] ;
28472
28473 if (!args) SWIG_fail;
28474 swig_obj[0] = args;
28475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28476 if (!SWIG_IsOK(res1)) {
28477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28478 }
28479 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28480 {
28481 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 28482 {
1bd55598
RD
28483 wxString const &_result_ref = (arg1)->GetText();
28484 result = (wxString *) &_result_ref;
36ed4f51 28485 }
1bd55598
RD
28486 wxPyEndAllowThreads(__tstate);
28487 if (PyErr_Occurred()) SWIG_fail;
28488 }
28489 {
28490#if wxUSE_UNICODE
28491 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28492#else
28493 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28494#endif
28495 }
28496 return resultobj;
28497fail:
28498 return NULL;
d55e5bfc
RD
28499}
28500
28501
1bd55598
RD
28502SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28503 PyObject *resultobj = 0;
28504 wxListEvent *arg1 = (wxListEvent *) 0 ;
28505 int result;
28506 void *argp1 = 0 ;
28507 int res1 = 0 ;
28508 PyObject *swig_obj[1] ;
28509
28510 if (!args) SWIG_fail;
28511 swig_obj[0] = args;
28512 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28513 if (!SWIG_IsOK(res1)) {
28514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28515 }
28516 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28517 {
28518 PyThreadState* __tstate = wxPyBeginAllowThreads();
28519 result = (int)(arg1)->GetImage();
28520 wxPyEndAllowThreads(__tstate);
28521 if (PyErr_Occurred()) SWIG_fail;
28522 }
28523 resultobj = SWIG_From_int(static_cast< int >(result));
28524 return resultobj;
28525fail:
28526 return NULL;
d55e5bfc
RD
28527}
28528
28529
1bd55598
RD
28530SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28531 PyObject *resultobj = 0;
28532 wxListEvent *arg1 = (wxListEvent *) 0 ;
28533 long result;
28534 void *argp1 = 0 ;
28535 int res1 = 0 ;
28536 PyObject *swig_obj[1] ;
28537
28538 if (!args) SWIG_fail;
28539 swig_obj[0] = args;
28540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28541 if (!SWIG_IsOK(res1)) {
28542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28543 }
28544 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28545 {
28546 PyThreadState* __tstate = wxPyBeginAllowThreads();
28547 result = (long)(arg1)->GetData();
28548 wxPyEndAllowThreads(__tstate);
28549 if (PyErr_Occurred()) SWIG_fail;
28550 }
28551 resultobj = SWIG_From_long(static_cast< long >(result));
28552 return resultobj;
28553fail:
28554 return NULL;
d55e5bfc
RD
28555}
28556
28557
1bd55598
RD
28558SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28559 PyObject *resultobj = 0;
28560 wxListEvent *arg1 = (wxListEvent *) 0 ;
28561 long result;
28562 void *argp1 = 0 ;
28563 int res1 = 0 ;
28564 PyObject *swig_obj[1] ;
28565
28566 if (!args) SWIG_fail;
28567 swig_obj[0] = args;
28568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28569 if (!SWIG_IsOK(res1)) {
28570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28571 }
28572 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28573 {
28574 PyThreadState* __tstate = wxPyBeginAllowThreads();
28575 result = (long)(arg1)->GetMask();
28576 wxPyEndAllowThreads(__tstate);
28577 if (PyErr_Occurred()) SWIG_fail;
28578 }
28579 resultobj = SWIG_From_long(static_cast< long >(result));
28580 return resultobj;
28581fail:
28582 return NULL;
d55e5bfc
RD
28583}
28584
28585
1bd55598
RD
28586SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28587 PyObject *resultobj = 0;
28588 wxListEvent *arg1 = (wxListEvent *) 0 ;
28589 wxListItem *result = 0 ;
28590 void *argp1 = 0 ;
28591 int res1 = 0 ;
28592 PyObject *swig_obj[1] ;
28593
28594 if (!args) SWIG_fail;
28595 swig_obj[0] = args;
28596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28597 if (!SWIG_IsOK(res1)) {
28598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28599 }
28600 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28601 {
28602 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28603 {
1bd55598
RD
28604 wxListItem const &_result_ref = (arg1)->GetItem();
28605 result = (wxListItem *) &_result_ref;
d55e5bfc 28606 }
1bd55598
RD
28607 wxPyEndAllowThreads(__tstate);
28608 if (PyErr_Occurred()) SWIG_fail;
28609 }
28610 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28611 return resultobj;
28612fail:
28613 return NULL;
d55e5bfc
RD
28614}
28615
28616
1bd55598
RD
28617SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28618 PyObject *resultobj = 0;
28619 wxListEvent *arg1 = (wxListEvent *) 0 ;
28620 long result;
28621 void *argp1 = 0 ;
28622 int res1 = 0 ;
28623 PyObject *swig_obj[1] ;
28624
28625 if (!args) SWIG_fail;
28626 swig_obj[0] = args;
28627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28628 if (!SWIG_IsOK(res1)) {
28629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28630 }
28631 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28632 {
28633 PyThreadState* __tstate = wxPyBeginAllowThreads();
28634 result = (long)(arg1)->GetCacheFrom();
28635 wxPyEndAllowThreads(__tstate);
28636 if (PyErr_Occurred()) SWIG_fail;
28637 }
28638 resultobj = SWIG_From_long(static_cast< long >(result));
28639 return resultobj;
28640fail:
28641 return NULL;
d55e5bfc
RD
28642}
28643
28644
1bd55598
RD
28645SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28646 PyObject *resultobj = 0;
28647 wxListEvent *arg1 = (wxListEvent *) 0 ;
28648 long result;
28649 void *argp1 = 0 ;
28650 int res1 = 0 ;
28651 PyObject *swig_obj[1] ;
28652
28653 if (!args) SWIG_fail;
28654 swig_obj[0] = args;
28655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28656 if (!SWIG_IsOK(res1)) {
28657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28658 }
28659 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28660 {
28661 PyThreadState* __tstate = wxPyBeginAllowThreads();
28662 result = (long)(arg1)->GetCacheTo();
28663 wxPyEndAllowThreads(__tstate);
28664 if (PyErr_Occurred()) SWIG_fail;
28665 }
28666 resultobj = SWIG_From_long(static_cast< long >(result));
28667 return resultobj;
28668fail:
28669 return NULL;
7e08d4ef
RD
28670}
28671
28672
1bd55598
RD
28673SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28674 PyObject *resultobj = 0;
28675 wxListEvent *arg1 = (wxListEvent *) 0 ;
28676 bool result;
28677 void *argp1 = 0 ;
28678 int res1 = 0 ;
28679 PyObject *swig_obj[1] ;
28680
28681 if (!args) SWIG_fail;
28682 swig_obj[0] = args;
28683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28684 if (!SWIG_IsOK(res1)) {
28685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28686 }
28687 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28688 {
28689 PyThreadState* __tstate = wxPyBeginAllowThreads();
28690 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28691 wxPyEndAllowThreads(__tstate);
28692 if (PyErr_Occurred()) SWIG_fail;
28693 }
28694 {
28695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28696 }
28697 return resultobj;
28698fail:
28699 return NULL;
28700}
28701
28702
28703SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28704 PyObject *resultobj = 0;
28705 wxListEvent *arg1 = (wxListEvent *) 0 ;
28706 bool arg2 ;
28707 void *argp1 = 0 ;
28708 int res1 = 0 ;
28709 bool val2 ;
28710 int ecode2 = 0 ;
28711 PyObject * obj0 = 0 ;
28712 PyObject * obj1 = 0 ;
28713 char * kwnames[] = {
28714 (char *) "self",(char *) "editCancelled", NULL
28715 };
28716
28717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28719 if (!SWIG_IsOK(res1)) {
28720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28721 }
28722 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28723 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28724 if (!SWIG_IsOK(ecode2)) {
28725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28726 }
28727 arg2 = static_cast< bool >(val2);
28728 {
28729 PyThreadState* __tstate = wxPyBeginAllowThreads();
28730 (arg1)->SetEditCanceled(arg2);
28731 wxPyEndAllowThreads(__tstate);
28732 if (PyErr_Occurred()) SWIG_fail;
28733 }
28734 resultobj = SWIG_Py_Void();
28735 return resultobj;
28736fail:
28737 return NULL;
28738}
28739
28740
28741SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28742 PyObject *obj;
28743 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28744 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28745 return SWIG_Py_Void();
28746}
28747
28748SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28749 return SWIG_Python_InitShadowInstance(args);
28750}
28751
28752SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28753 PyObject *resultobj = 0;
28754 wxWindow *arg1 = (wxWindow *) 0 ;
28755 int arg2 = (int) -1 ;
28756 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28757 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28758 wxSize const &arg4_defvalue = wxDefaultSize ;
28759 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28760 long arg5 = (long) wxLC_ICON ;
28761 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28762 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28763 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28764 wxString *arg7 = (wxString *) &arg7_defvalue ;
28765 wxPyListCtrl *result = 0 ;
28766 void *argp1 = 0 ;
28767 int res1 = 0 ;
28768 int val2 ;
28769 int ecode2 = 0 ;
28770 wxPoint temp3 ;
28771 wxSize temp4 ;
28772 long val5 ;
28773 int ecode5 = 0 ;
28774 void *argp6 = 0 ;
28775 int res6 = 0 ;
28776 bool temp7 = false ;
28777 PyObject * obj0 = 0 ;
28778 PyObject * obj1 = 0 ;
28779 PyObject * obj2 = 0 ;
28780 PyObject * obj3 = 0 ;
28781 PyObject * obj4 = 0 ;
28782 PyObject * obj5 = 0 ;
28783 PyObject * obj6 = 0 ;
28784 char * kwnames[] = {
28785 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28786 };
28787
28788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28790 if (!SWIG_IsOK(res1)) {
28791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28792 }
28793 arg1 = reinterpret_cast< wxWindow * >(argp1);
28794 if (obj1) {
28795 ecode2 = SWIG_AsVal_int(obj1, &val2);
28796 if (!SWIG_IsOK(ecode2)) {
28797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28798 }
28799 arg2 = static_cast< int >(val2);
28800 }
28801 if (obj2) {
7e08d4ef 28802 {
1bd55598
RD
28803 arg3 = &temp3;
28804 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 28805 }
1bd55598
RD
28806 }
28807 if (obj3) {
7e08d4ef 28808 {
1bd55598
RD
28809 arg4 = &temp4;
28810 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28811 }
1bd55598
RD
28812 }
28813 if (obj4) {
28814 ecode5 = SWIG_AsVal_long(obj4, &val5);
28815 if (!SWIG_IsOK(ecode5)) {
28816 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28817 }
28818 arg5 = static_cast< long >(val5);
28819 }
28820 if (obj5) {
28821 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28822 if (!SWIG_IsOK(res6)) {
28823 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28824 }
1bd55598
RD
28825 if (!argp6) {
28826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28827 }
1bd55598
RD
28828 arg6 = reinterpret_cast< wxValidator * >(argp6);
28829 }
28830 if (obj6) {
7e08d4ef 28831 {
1bd55598
RD
28832 arg7 = wxString_in_helper(obj6);
28833 if (arg7 == NULL) SWIG_fail;
28834 temp7 = true;
7e08d4ef 28835 }
1bd55598
RD
28836 }
28837 {
28838 if (!wxPyCheckForApp()) SWIG_fail;
28839 PyThreadState* __tstate = wxPyBeginAllowThreads();
28840 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28841 wxPyEndAllowThreads(__tstate);
28842 if (PyErr_Occurred()) SWIG_fail;
28843 }
28844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28845 {
28846 if (temp7)
28847 delete arg7;
28848 }
28849 return resultobj;
28850fail:
28851 {
28852 if (temp7)
28853 delete arg7;
28854 }
28855 return NULL;
7e08d4ef
RD
28856}
28857
28858
1bd55598
RD
28859SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28860 PyObject *resultobj = 0;
28861 wxPyListCtrl *result = 0 ;
28862
28863 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28864 {
28865 if (!wxPyCheckForApp()) SWIG_fail;
28866 PyThreadState* __tstate = wxPyBeginAllowThreads();
28867 result = (wxPyListCtrl *)new wxPyListCtrl();
28868 wxPyEndAllowThreads(__tstate);
28869 if (PyErr_Occurred()) SWIG_fail;
28870 }
28871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28872 return resultobj;
28873fail:
28874 return NULL;
28875}
28876
28877
28878SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28879 PyObject *resultobj = 0;
28880 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28881 wxWindow *arg2 = (wxWindow *) 0 ;
28882 int arg3 = (int) -1 ;
28883 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28884 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28885 wxSize const &arg5_defvalue = wxDefaultSize ;
28886 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28887 long arg6 = (long) wxLC_ICON ;
28888 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28889 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28890 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28891 wxString *arg8 = (wxString *) &arg8_defvalue ;
28892 bool result;
28893 void *argp1 = 0 ;
28894 int res1 = 0 ;
28895 void *argp2 = 0 ;
28896 int res2 = 0 ;
28897 int val3 ;
28898 int ecode3 = 0 ;
28899 wxPoint temp4 ;
28900 wxSize temp5 ;
28901 long val6 ;
28902 int ecode6 = 0 ;
28903 void *argp7 = 0 ;
28904 int res7 = 0 ;
28905 bool temp8 = false ;
28906 PyObject * obj0 = 0 ;
28907 PyObject * obj1 = 0 ;
28908 PyObject * obj2 = 0 ;
28909 PyObject * obj3 = 0 ;
28910 PyObject * obj4 = 0 ;
28911 PyObject * obj5 = 0 ;
28912 PyObject * obj6 = 0 ;
28913 PyObject * obj7 = 0 ;
28914 char * kwnames[] = {
28915 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28916 };
28917
28918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28920 if (!SWIG_IsOK(res1)) {
28921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28922 }
28923 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28924 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28925 if (!SWIG_IsOK(res2)) {
28926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28927 }
28928 arg2 = reinterpret_cast< wxWindow * >(argp2);
28929 if (obj2) {
28930 ecode3 = SWIG_AsVal_int(obj2, &val3);
28931 if (!SWIG_IsOK(ecode3)) {
28932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28933 }
28934 arg3 = static_cast< int >(val3);
28935 }
28936 if (obj3) {
7e08d4ef 28937 {
1bd55598
RD
28938 arg4 = &temp4;
28939 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28940 }
1bd55598
RD
28941 }
28942 if (obj4) {
7e08d4ef 28943 {
1bd55598
RD
28944 arg5 = &temp5;
28945 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 28946 }
1bd55598
RD
28947 }
28948 if (obj5) {
28949 ecode6 = SWIG_AsVal_long(obj5, &val6);
28950 if (!SWIG_IsOK(ecode6)) {
28951 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28952 }
28953 arg6 = static_cast< long >(val6);
28954 }
28955 if (obj6) {
28956 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28957 if (!SWIG_IsOK(res7)) {
28958 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 28959 }
1bd55598
RD
28960 if (!argp7) {
28961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 28962 }
1bd55598
RD
28963 arg7 = reinterpret_cast< wxValidator * >(argp7);
28964 }
28965 if (obj7) {
7e08d4ef 28966 {
1bd55598
RD
28967 arg8 = wxString_in_helper(obj7);
28968 if (arg8 == NULL) SWIG_fail;
28969 temp8 = true;
7e08d4ef 28970 }
1bd55598
RD
28971 }
28972 {
28973 PyThreadState* __tstate = wxPyBeginAllowThreads();
28974 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28975 wxPyEndAllowThreads(__tstate);
28976 if (PyErr_Occurred()) SWIG_fail;
28977 }
28978 {
28979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28980 }
28981 {
28982 if (temp8)
28983 delete arg8;
28984 }
28985 return resultobj;
28986fail:
28987 {
28988 if (temp8)
28989 delete arg8;
28990 }
28991 return NULL;
28992}
28993
28994
28995SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28996 PyObject *resultobj = 0;
28997 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28998 PyObject *arg2 = (PyObject *) 0 ;
28999 PyObject *arg3 = (PyObject *) 0 ;
29000 void *argp1 = 0 ;
29001 int res1 = 0 ;
29002 PyObject * obj0 = 0 ;
29003 PyObject * obj1 = 0 ;
29004 PyObject * obj2 = 0 ;
29005 char * kwnames[] = {
29006 (char *) "self",(char *) "self",(char *) "_class", NULL
29007 };
29008
29009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29011 if (!SWIG_IsOK(res1)) {
29012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29013 }
29014 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29015 arg2 = obj1;
29016 arg3 = obj2;
29017 {
29018 PyThreadState* __tstate = wxPyBeginAllowThreads();
29019 (arg1)->_setCallbackInfo(arg2,arg3);
29020 wxPyEndAllowThreads(__tstate);
29021 if (PyErr_Occurred()) SWIG_fail;
29022 }
29023 resultobj = SWIG_Py_Void();
29024 return resultobj;
29025fail:
29026 return NULL;
29027}
29028
29029
29030SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29031 PyObject *resultobj = 0;
29032 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29033 int arg2 ;
29034 wxListItem *result = 0 ;
29035 void *argp1 = 0 ;
29036 int res1 = 0 ;
29037 int val2 ;
29038 int ecode2 = 0 ;
29039 PyObject * obj0 = 0 ;
29040 PyObject * obj1 = 0 ;
29041 char * kwnames[] = {
29042 (char *) "self",(char *) "col", NULL
29043 };
29044
29045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
29046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29047 if (!SWIG_IsOK(res1)) {
29048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29049 }
29050 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29051 ecode2 = SWIG_AsVal_int(obj1, &val2);
29052 if (!SWIG_IsOK(ecode2)) {
29053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
29054 }
29055 arg2 = static_cast< int >(val2);
29056 {
29057 PyThreadState* __tstate = wxPyBeginAllowThreads();
29058 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
29059 wxPyEndAllowThreads(__tstate);
29060 if (PyErr_Occurred()) SWIG_fail;
29061 }
29062 {
3ecece7e 29063 resultobj = wxPyMake_wxObject(result, 0);
1bd55598
RD
29064 }
29065 return resultobj;
29066fail:
29067 return NULL;
29068}
29069
29070
29071SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29072 PyObject *resultobj = 0;
29073 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29074 int arg2 ;
29075 wxListItem *arg3 = 0 ;
29076 bool result;
29077 void *argp1 = 0 ;
29078 int res1 = 0 ;
29079 int val2 ;
29080 int ecode2 = 0 ;
29081 void *argp3 = 0 ;
29082 int res3 = 0 ;
29083 PyObject * obj0 = 0 ;
29084 PyObject * obj1 = 0 ;
29085 PyObject * obj2 = 0 ;
29086 char * kwnames[] = {
29087 (char *) "self",(char *) "col",(char *) "item", NULL
29088 };
29089
29090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29092 if (!SWIG_IsOK(res1)) {
29093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29094 }
29095 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29096 ecode2 = SWIG_AsVal_int(obj1, &val2);
29097 if (!SWIG_IsOK(ecode2)) {
29098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
29099 }
29100 arg2 = static_cast< int >(val2);
29101 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
29102 if (!SWIG_IsOK(res3)) {
29103 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29104 }
29105 if (!argp3) {
29106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
29107 }
29108 arg3 = reinterpret_cast< wxListItem * >(argp3);
29109 {
29110 PyThreadState* __tstate = wxPyBeginAllowThreads();
29111 result = (bool)(arg1)->SetColumn(arg2,*arg3);
29112 wxPyEndAllowThreads(__tstate);
29113 if (PyErr_Occurred()) SWIG_fail;
29114 }
29115 {
29116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29117 }
29118 return resultobj;
29119fail:
29120 return NULL;
29121}
29122
29123
29124SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29125 PyObject *resultobj = 0;
29126 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29127 int arg2 ;
29128 int result;
29129 void *argp1 = 0 ;
29130 int res1 = 0 ;
29131 int val2 ;
29132 int ecode2 = 0 ;
29133 PyObject * obj0 = 0 ;
29134 PyObject * obj1 = 0 ;
29135 char * kwnames[] = {
29136 (char *) "self",(char *) "col", NULL
29137 };
29138
29139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
29140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29141 if (!SWIG_IsOK(res1)) {
29142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29143 }
29144 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29145 ecode2 = SWIG_AsVal_int(obj1, &val2);
29146 if (!SWIG_IsOK(ecode2)) {
29147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29148 }
29149 arg2 = static_cast< int >(val2);
29150 {
29151 PyThreadState* __tstate = wxPyBeginAllowThreads();
29152 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
29153 wxPyEndAllowThreads(__tstate);
29154 if (PyErr_Occurred()) SWIG_fail;
29155 }
29156 resultobj = SWIG_From_int(static_cast< int >(result));
29157 return resultobj;
29158fail:
29159 return NULL;
29160}
29161
29162
29163SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29164 PyObject *resultobj = 0;
29165 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29166 int arg2 ;
29167 int arg3 ;
29168 bool result;
29169 void *argp1 = 0 ;
29170 int res1 = 0 ;
29171 int val2 ;
29172 int ecode2 = 0 ;
29173 int val3 ;
29174 int ecode3 = 0 ;
29175 PyObject * obj0 = 0 ;
29176 PyObject * obj1 = 0 ;
29177 PyObject * obj2 = 0 ;
29178 char * kwnames[] = {
29179 (char *) "self",(char *) "col",(char *) "width", NULL
29180 };
29181
29182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29184 if (!SWIG_IsOK(res1)) {
29185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29186 }
29187 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29188 ecode2 = SWIG_AsVal_int(obj1, &val2);
29189 if (!SWIG_IsOK(ecode2)) {
29190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
29191 }
29192 arg2 = static_cast< int >(val2);
29193 ecode3 = SWIG_AsVal_int(obj2, &val3);
29194 if (!SWIG_IsOK(ecode3)) {
29195 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
29196 }
29197 arg3 = static_cast< int >(val3);
29198 {
29199 PyThreadState* __tstate = wxPyBeginAllowThreads();
29200 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
29201 wxPyEndAllowThreads(__tstate);
29202 if (PyErr_Occurred()) SWIG_fail;
29203 }
29204 {
29205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29206 }
29207 return resultobj;
29208fail:
29209 return NULL;
7e08d4ef
RD
29210}
29211
29212
1bd55598
RD
29213SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29214 PyObject *resultobj = 0;
29215 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29216 int result;
29217 void *argp1 = 0 ;
29218 int res1 = 0 ;
29219 PyObject *swig_obj[1] ;
29220
29221 if (!args) SWIG_fail;
29222 swig_obj[0] = args;
29223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29224 if (!SWIG_IsOK(res1)) {
29225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29226 }
29227 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29228 {
29229 PyThreadState* __tstate = wxPyBeginAllowThreads();
29230 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
29231 wxPyEndAllowThreads(__tstate);
29232 if (PyErr_Occurred()) SWIG_fail;
29233 }
29234 resultobj = SWIG_From_int(static_cast< int >(result));
29235 return resultobj;
29236fail:
29237 return NULL;
7e08d4ef
RD
29238}
29239
29240
1bd55598
RD
29241SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29242 PyObject *resultobj = 0;
29243 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29244 wxRect result;
29245 void *argp1 = 0 ;
29246 int res1 = 0 ;
29247 PyObject *swig_obj[1] ;
29248
29249 if (!args) SWIG_fail;
29250 swig_obj[0] = args;
29251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29252 if (!SWIG_IsOK(res1)) {
29253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29254 }
29255 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29256 {
29257 PyThreadState* __tstate = wxPyBeginAllowThreads();
29258 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
29259 wxPyEndAllowThreads(__tstate);
29260 if (PyErr_Occurred()) SWIG_fail;
29261 }
29262 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29263 return resultobj;
29264fail:
29265 return NULL;
7e08d4ef
RD
29266}
29267
29268
1bd55598
RD
29269SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29270 PyObject *resultobj = 0;
29271 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29272 wxTextCtrl *result = 0 ;
29273 void *argp1 = 0 ;
29274 int res1 = 0 ;
29275 PyObject *swig_obj[1] ;
29276
29277 if (!args) SWIG_fail;
29278 swig_obj[0] = args;
29279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29280 if (!SWIG_IsOK(res1)) {
29281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29282 }
29283 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29284 {
29285 PyThreadState* __tstate = wxPyBeginAllowThreads();
29286 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29287 wxPyEndAllowThreads(__tstate);
29288 if (PyErr_Occurred()) SWIG_fail;
29289 }
29290 {
29291 resultobj = wxPyMake_wxObject(result, 0);
29292 }
29293 return resultobj;
29294fail:
29295 return NULL;
29296}
29297
29298
29299SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29300 PyObject *resultobj = 0;
29301 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29302 long arg2 ;
29303 int arg3 = (int) 0 ;
29304 wxListItem *result = 0 ;
29305 void *argp1 = 0 ;
29306 int res1 = 0 ;
29307 long val2 ;
29308 int ecode2 = 0 ;
29309 int val3 ;
29310 int ecode3 = 0 ;
29311 PyObject * obj0 = 0 ;
29312 PyObject * obj1 = 0 ;
29313 PyObject * obj2 = 0 ;
29314 char * kwnames[] = {
29315 (char *) "self",(char *) "itemId",(char *) "col", NULL
29316 };
29317
29318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29320 if (!SWIG_IsOK(res1)) {
29321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29322 }
29323 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29324 ecode2 = SWIG_AsVal_long(obj1, &val2);
29325 if (!SWIG_IsOK(ecode2)) {
29326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29327 }
29328 arg2 = static_cast< long >(val2);
29329 if (obj2) {
29330 ecode3 = SWIG_AsVal_int(obj2, &val3);
29331 if (!SWIG_IsOK(ecode3)) {
29332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29333 }
29334 arg3 = static_cast< int >(val3);
29335 }
29336 {
29337 PyThreadState* __tstate = wxPyBeginAllowThreads();
29338 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29339 wxPyEndAllowThreads(__tstate);
29340 if (PyErr_Occurred()) SWIG_fail;
29341 }
29342 {
3ecece7e 29343 resultobj = wxPyMake_wxObject(result, 0);
1bd55598
RD
29344 }
29345 return resultobj;
29346fail:
29347 return NULL;
29348}
29349
29350
29351SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29352 PyObject *resultobj = 0;
29353 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29354 wxListItem *arg2 = 0 ;
29355 bool result;
29356 void *argp1 = 0 ;
29357 int res1 = 0 ;
29358 void *argp2 = 0 ;
29359 int res2 = 0 ;
29360 PyObject * obj0 = 0 ;
29361 PyObject * obj1 = 0 ;
29362 char * kwnames[] = {
29363 (char *) "self",(char *) "info", NULL
29364 };
29365
29366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29368 if (!SWIG_IsOK(res1)) {
29369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29370 }
29371 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29373 if (!SWIG_IsOK(res2)) {
29374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29375 }
29376 if (!argp2) {
29377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29378 }
29379 arg2 = reinterpret_cast< wxListItem * >(argp2);
29380 {
29381 PyThreadState* __tstate = wxPyBeginAllowThreads();
29382 result = (bool)(arg1)->SetItem(*arg2);
29383 wxPyEndAllowThreads(__tstate);
29384 if (PyErr_Occurred()) SWIG_fail;
29385 }
29386 {
29387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29388 }
29389 return resultobj;
29390fail:
29391 return NULL;
29392}
29393
29394
29395SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29396 PyObject *resultobj = 0;
29397 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29398 long arg2 ;
29399 int arg3 ;
29400 wxString *arg4 = 0 ;
29401 int arg5 = (int) -1 ;
29402 long result;
29403 void *argp1 = 0 ;
29404 int res1 = 0 ;
29405 long val2 ;
29406 int ecode2 = 0 ;
29407 int val3 ;
29408 int ecode3 = 0 ;
29409 bool temp4 = false ;
29410 int val5 ;
29411 int ecode5 = 0 ;
29412 PyObject * obj0 = 0 ;
29413 PyObject * obj1 = 0 ;
29414 PyObject * obj2 = 0 ;
29415 PyObject * obj3 = 0 ;
29416 PyObject * obj4 = 0 ;
29417 char * kwnames[] = {
29418 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29419 };
29420
29421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29423 if (!SWIG_IsOK(res1)) {
29424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29425 }
29426 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29427 ecode2 = SWIG_AsVal_long(obj1, &val2);
29428 if (!SWIG_IsOK(ecode2)) {
29429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29430 }
29431 arg2 = static_cast< long >(val2);
29432 ecode3 = SWIG_AsVal_int(obj2, &val3);
29433 if (!SWIG_IsOK(ecode3)) {
29434 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29435 }
29436 arg3 = static_cast< int >(val3);
29437 {
29438 arg4 = wxString_in_helper(obj3);
29439 if (arg4 == NULL) SWIG_fail;
29440 temp4 = true;
29441 }
29442 if (obj4) {
29443 ecode5 = SWIG_AsVal_int(obj4, &val5);
29444 if (!SWIG_IsOK(ecode5)) {
29445 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29446 }
29447 arg5 = static_cast< int >(val5);
29448 }
29449 {
29450 PyThreadState* __tstate = wxPyBeginAllowThreads();
29451 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29452 wxPyEndAllowThreads(__tstate);
29453 if (PyErr_Occurred()) SWIG_fail;
29454 }
29455 resultobj = SWIG_From_long(static_cast< long >(result));
29456 {
29457 if (temp4)
29458 delete arg4;
29459 }
29460 return resultobj;
29461fail:
29462 {
29463 if (temp4)
29464 delete arg4;
29465 }
29466 return NULL;
29467}
29468
29469
29470SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29471 PyObject *resultobj = 0;
29472 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29473 long arg2 ;
29474 long arg3 ;
29475 int result;
29476 void *argp1 = 0 ;
29477 int res1 = 0 ;
29478 long val2 ;
29479 int ecode2 = 0 ;
29480 long val3 ;
29481 int ecode3 = 0 ;
29482 PyObject * obj0 = 0 ;
29483 PyObject * obj1 = 0 ;
29484 PyObject * obj2 = 0 ;
29485 char * kwnames[] = {
29486 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29487 };
29488
29489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29491 if (!SWIG_IsOK(res1)) {
29492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29493 }
29494 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29495 ecode2 = SWIG_AsVal_long(obj1, &val2);
29496 if (!SWIG_IsOK(ecode2)) {
29497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29498 }
29499 arg2 = static_cast< long >(val2);
29500 ecode3 = SWIG_AsVal_long(obj2, &val3);
29501 if (!SWIG_IsOK(ecode3)) {
29502 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29503 }
29504 arg3 = static_cast< long >(val3);
29505 {
29506 PyThreadState* __tstate = wxPyBeginAllowThreads();
29507 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29508 wxPyEndAllowThreads(__tstate);
29509 if (PyErr_Occurred()) SWIG_fail;
29510 }
29511 resultobj = SWIG_From_int(static_cast< int >(result));
29512 return resultobj;
29513fail:
29514 return NULL;
29515}
29516
29517
29518SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29519 PyObject *resultobj = 0;
29520 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29521 long arg2 ;
29522 long arg3 ;
29523 long arg4 ;
29524 bool result;
29525 void *argp1 = 0 ;
29526 int res1 = 0 ;
29527 long val2 ;
29528 int ecode2 = 0 ;
29529 long val3 ;
29530 int ecode3 = 0 ;
29531 long val4 ;
29532 int ecode4 = 0 ;
29533 PyObject * obj0 = 0 ;
29534 PyObject * obj1 = 0 ;
29535 PyObject * obj2 = 0 ;
29536 PyObject * obj3 = 0 ;
29537 char * kwnames[] = {
29538 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29539 };
29540
29541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29543 if (!SWIG_IsOK(res1)) {
29544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29545 }
29546 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29547 ecode2 = SWIG_AsVal_long(obj1, &val2);
29548 if (!SWIG_IsOK(ecode2)) {
29549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29550 }
29551 arg2 = static_cast< long >(val2);
29552 ecode3 = SWIG_AsVal_long(obj2, &val3);
29553 if (!SWIG_IsOK(ecode3)) {
29554 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29555 }
29556 arg3 = static_cast< long >(val3);
29557 ecode4 = SWIG_AsVal_long(obj3, &val4);
29558 if (!SWIG_IsOK(ecode4)) {
29559 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29560 }
29561 arg4 = static_cast< long >(val4);
29562 {
29563 PyThreadState* __tstate = wxPyBeginAllowThreads();
29564 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29565 wxPyEndAllowThreads(__tstate);
29566 if (PyErr_Occurred()) SWIG_fail;
29567 }
29568 {
29569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29570 }
29571 return resultobj;
29572fail:
29573 return NULL;
29574}
29575
29576
29577SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29578 PyObject *resultobj = 0;
29579 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29580 long arg2 ;
29581 int arg3 ;
29582 int arg4 = (int) -1 ;
29583 bool result;
29584 void *argp1 = 0 ;
29585 int res1 = 0 ;
29586 long val2 ;
29587 int ecode2 = 0 ;
29588 int val3 ;
29589 int ecode3 = 0 ;
29590 int val4 ;
29591 int ecode4 = 0 ;
29592 PyObject * obj0 = 0 ;
29593 PyObject * obj1 = 0 ;
29594 PyObject * obj2 = 0 ;
29595 PyObject * obj3 = 0 ;
29596 char * kwnames[] = {
29597 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29598 };
29599
29600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29602 if (!SWIG_IsOK(res1)) {
29603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29604 }
29605 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29606 ecode2 = SWIG_AsVal_long(obj1, &val2);
29607 if (!SWIG_IsOK(ecode2)) {
29608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29609 }
29610 arg2 = static_cast< long >(val2);
29611 ecode3 = SWIG_AsVal_int(obj2, &val3);
29612 if (!SWIG_IsOK(ecode3)) {
29613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29614 }
29615 arg3 = static_cast< int >(val3);
29616 if (obj3) {
29617 ecode4 = SWIG_AsVal_int(obj3, &val4);
29618 if (!SWIG_IsOK(ecode4)) {
29619 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29620 }
29621 arg4 = static_cast< int >(val4);
29622 }
29623 {
29624 PyThreadState* __tstate = wxPyBeginAllowThreads();
29625 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29626 wxPyEndAllowThreads(__tstate);
29627 if (PyErr_Occurred()) SWIG_fail;
29628 }
29629 {
29630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29631 }
29632 return resultobj;
29633fail:
29634 return NULL;
29635}
29636
29637
29638SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29639 PyObject *resultobj = 0;
29640 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29641 long arg2 ;
29642 long arg3 ;
29643 int arg4 ;
29644 bool result;
29645 void *argp1 = 0 ;
29646 int res1 = 0 ;
29647 long val2 ;
29648 int ecode2 = 0 ;
29649 long val3 ;
29650 int ecode3 = 0 ;
29651 int val4 ;
29652 int ecode4 = 0 ;
29653 PyObject * obj0 = 0 ;
29654 PyObject * obj1 = 0 ;
29655 PyObject * obj2 = 0 ;
29656 PyObject * obj3 = 0 ;
29657 char * kwnames[] = {
29658 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29659 };
29660
29661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29663 if (!SWIG_IsOK(res1)) {
29664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29665 }
29666 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29667 ecode2 = SWIG_AsVal_long(obj1, &val2);
29668 if (!SWIG_IsOK(ecode2)) {
29669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29670 }
29671 arg2 = static_cast< long >(val2);
29672 ecode3 = SWIG_AsVal_long(obj2, &val3);
29673 if (!SWIG_IsOK(ecode3)) {
29674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29675 }
29676 arg3 = static_cast< long >(val3);
29677 ecode4 = SWIG_AsVal_int(obj3, &val4);
29678 if (!SWIG_IsOK(ecode4)) {
29679 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29680 }
29681 arg4 = static_cast< int >(val4);
29682 {
29683 PyThreadState* __tstate = wxPyBeginAllowThreads();
29684 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29685 wxPyEndAllowThreads(__tstate);
29686 if (PyErr_Occurred()) SWIG_fail;
29687 }
29688 {
29689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29690 }
29691 return resultobj;
29692fail:
29693 return NULL;
29694}
29695
29696
29697SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29698 PyObject *resultobj = 0;
29699 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29700 long arg2 ;
29701 wxString result;
29702 void *argp1 = 0 ;
29703 int res1 = 0 ;
29704 long val2 ;
29705 int ecode2 = 0 ;
29706 PyObject * obj0 = 0 ;
29707 PyObject * obj1 = 0 ;
29708 char * kwnames[] = {
29709 (char *) "self",(char *) "item", NULL
29710 };
29711
29712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29714 if (!SWIG_IsOK(res1)) {
29715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29716 }
29717 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29718 ecode2 = SWIG_AsVal_long(obj1, &val2);
29719 if (!SWIG_IsOK(ecode2)) {
29720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29721 }
29722 arg2 = static_cast< long >(val2);
29723 {
29724 PyThreadState* __tstate = wxPyBeginAllowThreads();
29725 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29726 wxPyEndAllowThreads(__tstate);
29727 if (PyErr_Occurred()) SWIG_fail;
29728 }
29729 {
29730#if wxUSE_UNICODE
29731 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29732#else
29733 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29734#endif
29735 }
29736 return resultobj;
29737fail:
29738 return NULL;
29739}
29740
29741
29742SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29743 PyObject *resultobj = 0;
29744 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29745 long arg2 ;
29746 wxString *arg3 = 0 ;
29747 void *argp1 = 0 ;
29748 int res1 = 0 ;
29749 long val2 ;
29750 int ecode2 = 0 ;
29751 bool temp3 = false ;
29752 PyObject * obj0 = 0 ;
29753 PyObject * obj1 = 0 ;
29754 PyObject * obj2 = 0 ;
29755 char * kwnames[] = {
29756 (char *) "self",(char *) "item",(char *) "str", NULL
29757 };
29758
29759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29761 if (!SWIG_IsOK(res1)) {
29762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29763 }
29764 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29765 ecode2 = SWIG_AsVal_long(obj1, &val2);
29766 if (!SWIG_IsOK(ecode2)) {
29767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29768 }
29769 arg2 = static_cast< long >(val2);
29770 {
29771 arg3 = wxString_in_helper(obj2);
29772 if (arg3 == NULL) SWIG_fail;
29773 temp3 = true;
29774 }
29775 {
29776 PyThreadState* __tstate = wxPyBeginAllowThreads();
29777 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29778 wxPyEndAllowThreads(__tstate);
29779 if (PyErr_Occurred()) SWIG_fail;
29780 }
29781 resultobj = SWIG_Py_Void();
29782 {
29783 if (temp3)
29784 delete arg3;
29785 }
29786 return resultobj;
29787fail:
29788 {
29789 if (temp3)
29790 delete arg3;
29791 }
29792 return NULL;
29793}
29794
29795
29796SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29797 PyObject *resultobj = 0;
29798 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29799 long arg2 ;
29800 long result;
29801 void *argp1 = 0 ;
29802 int res1 = 0 ;
29803 long val2 ;
29804 int ecode2 = 0 ;
29805 PyObject * obj0 = 0 ;
29806 PyObject * obj1 = 0 ;
29807 char * kwnames[] = {
29808 (char *) "self",(char *) "item", NULL
29809 };
29810
29811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29813 if (!SWIG_IsOK(res1)) {
29814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29815 }
29816 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29817 ecode2 = SWIG_AsVal_long(obj1, &val2);
29818 if (!SWIG_IsOK(ecode2)) {
29819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29820 }
29821 arg2 = static_cast< long >(val2);
29822 {
29823 PyThreadState* __tstate = wxPyBeginAllowThreads();
29824 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29825 wxPyEndAllowThreads(__tstate);
29826 if (PyErr_Occurred()) SWIG_fail;
29827 }
29828 resultobj = SWIG_From_long(static_cast< long >(result));
29829 return resultobj;
29830fail:
29831 return NULL;
29832}
29833
29834
29835SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29836 PyObject *resultobj = 0;
29837 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29838 long arg2 ;
29839 long arg3 ;
29840 bool result;
29841 void *argp1 = 0 ;
29842 int res1 = 0 ;
29843 long val2 ;
29844 int ecode2 = 0 ;
29845 long val3 ;
29846 int ecode3 = 0 ;
29847 PyObject * obj0 = 0 ;
29848 PyObject * obj1 = 0 ;
29849 PyObject * obj2 = 0 ;
29850 char * kwnames[] = {
29851 (char *) "self",(char *) "item",(char *) "data", NULL
29852 };
29853
29854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29856 if (!SWIG_IsOK(res1)) {
29857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29858 }
29859 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29860 ecode2 = SWIG_AsVal_long(obj1, &val2);
29861 if (!SWIG_IsOK(ecode2)) {
29862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29863 }
29864 arg2 = static_cast< long >(val2);
29865 ecode3 = SWIG_AsVal_long(obj2, &val3);
29866 if (!SWIG_IsOK(ecode3)) {
29867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29868 }
29869 arg3 = static_cast< long >(val3);
29870 {
29871 PyThreadState* __tstate = wxPyBeginAllowThreads();
29872 result = (bool)(arg1)->SetItemData(arg2,arg3);
29873 wxPyEndAllowThreads(__tstate);
29874 if (PyErr_Occurred()) SWIG_fail;
29875 }
29876 {
29877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29878 }
29879 return resultobj;
29880fail:
29881 return NULL;
29882}
29883
29884
29885SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29886 PyObject *resultobj = 0;
29887 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29888 long arg2 ;
29889 wxPoint result;
29890 void *argp1 = 0 ;
29891 int res1 = 0 ;
29892 long val2 ;
29893 int ecode2 = 0 ;
29894 PyObject * obj0 = 0 ;
29895 PyObject * obj1 = 0 ;
29896 char * kwnames[] = {
29897 (char *) "self",(char *) "item", NULL
29898 };
29899
29900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29902 if (!SWIG_IsOK(res1)) {
29903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29904 }
29905 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29906 ecode2 = SWIG_AsVal_long(obj1, &val2);
29907 if (!SWIG_IsOK(ecode2)) {
29908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29909 }
29910 arg2 = static_cast< long >(val2);
29911 {
29912 PyThreadState* __tstate = wxPyBeginAllowThreads();
29913 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29914 wxPyEndAllowThreads(__tstate);
29915 if (PyErr_Occurred()) SWIG_fail;
29916 }
29917 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29918 return resultobj;
29919fail:
29920 return NULL;
29921}
29922
29923
29924SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29925 PyObject *resultobj = 0;
29926 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29927 long arg2 ;
29928 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29929 wxRect result;
29930 void *argp1 = 0 ;
29931 int res1 = 0 ;
29932 long val2 ;
29933 int ecode2 = 0 ;
29934 int val3 ;
29935 int ecode3 = 0 ;
29936 PyObject * obj0 = 0 ;
29937 PyObject * obj1 = 0 ;
29938 PyObject * obj2 = 0 ;
29939 char * kwnames[] = {
29940 (char *) "self",(char *) "item",(char *) "code", NULL
29941 };
29942
29943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29945 if (!SWIG_IsOK(res1)) {
29946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29947 }
29948 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29949 ecode2 = SWIG_AsVal_long(obj1, &val2);
29950 if (!SWIG_IsOK(ecode2)) {
29951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29952 }
29953 arg2 = static_cast< long >(val2);
29954 if (obj2) {
29955 ecode3 = SWIG_AsVal_int(obj2, &val3);
29956 if (!SWIG_IsOK(ecode3)) {
29957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29958 }
29959 arg3 = static_cast< int >(val3);
29960 }
29961 {
29962 PyThreadState* __tstate = wxPyBeginAllowThreads();
29963 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29964 wxPyEndAllowThreads(__tstate);
29965 if (PyErr_Occurred()) SWIG_fail;
29966 }
29967 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29968 return resultobj;
29969fail:
29970 return NULL;
29971}
29972
29973
29974SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29975 PyObject *resultobj = 0;
29976 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29977 long arg2 ;
29978 wxPoint *arg3 = 0 ;
29979 bool result;
29980 void *argp1 = 0 ;
29981 int res1 = 0 ;
29982 long val2 ;
29983 int ecode2 = 0 ;
29984 wxPoint temp3 ;
29985 PyObject * obj0 = 0 ;
29986 PyObject * obj1 = 0 ;
29987 PyObject * obj2 = 0 ;
29988 char * kwnames[] = {
29989 (char *) "self",(char *) "item",(char *) "pos", NULL
29990 };
29991
29992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29994 if (!SWIG_IsOK(res1)) {
29995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29996 }
29997 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29998 ecode2 = SWIG_AsVal_long(obj1, &val2);
29999 if (!SWIG_IsOK(ecode2)) {
30000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
30001 }
30002 arg2 = static_cast< long >(val2);
30003 {
30004 arg3 = &temp3;
30005 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30006 }
30007 {
30008 PyThreadState* __tstate = wxPyBeginAllowThreads();
30009 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
30010 wxPyEndAllowThreads(__tstate);
30011 if (PyErr_Occurred()) SWIG_fail;
30012 }
30013 {
30014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30015 }
30016 return resultobj;
30017fail:
30018 return NULL;
7e08d4ef
RD
30019}
30020
30021
1bd55598
RD
30022SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30023 PyObject *resultobj = 0;
30024 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30025 int result;
30026 void *argp1 = 0 ;
30027 int res1 = 0 ;
30028 PyObject *swig_obj[1] ;
30029
30030 if (!args) SWIG_fail;
30031 swig_obj[0] = args;
30032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30033 if (!SWIG_IsOK(res1)) {
30034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30035 }
30036 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30037 {
30038 PyThreadState* __tstate = wxPyBeginAllowThreads();
30039 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
30040 wxPyEndAllowThreads(__tstate);
30041 if (PyErr_Occurred()) SWIG_fail;
30042 }
30043 resultobj = SWIG_From_int(static_cast< int >(result));
30044 return resultobj;
30045fail:
30046 return NULL;
7e08d4ef
RD
30047}
30048
30049
1bd55598
RD
30050SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30051 PyObject *resultobj = 0;
30052 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30053 int result;
30054 void *argp1 = 0 ;
30055 int res1 = 0 ;
30056 PyObject *swig_obj[1] ;
30057
30058 if (!args) SWIG_fail;
30059 swig_obj[0] = args;
30060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30061 if (!SWIG_IsOK(res1)) {
30062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30063 }
30064 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30065 {
30066 PyThreadState* __tstate = wxPyBeginAllowThreads();
30067 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
30068 wxPyEndAllowThreads(__tstate);
30069 if (PyErr_Occurred()) SWIG_fail;
30070 }
30071 resultobj = SWIG_From_int(static_cast< int >(result));
30072 return resultobj;
30073fail:
30074 return NULL;
7e08d4ef
RD
30075}
30076
30077
1bd55598
RD
30078SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30079 PyObject *resultobj = 0;
30080 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30081 wxSize result;
30082 void *argp1 = 0 ;
30083 int res1 = 0 ;
30084 PyObject *swig_obj[1] ;
30085
30086 if (!args) SWIG_fail;
30087 swig_obj[0] = args;
30088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30089 if (!SWIG_IsOK(res1)) {
30090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30091 }
30092 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30093 {
30094 PyThreadState* __tstate = wxPyBeginAllowThreads();
30095 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
30096 wxPyEndAllowThreads(__tstate);
30097 if (PyErr_Occurred()) SWIG_fail;
30098 }
30099 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
30100 return resultobj;
30101fail:
30102 return NULL;
30103}
30104
30105
30106SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30107 PyObject *resultobj = 0;
30108 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30109 int arg2 ;
30110 bool arg3 = (bool) false ;
30111 void *argp1 = 0 ;
30112 int res1 = 0 ;
30113 int val2 ;
30114 int ecode2 = 0 ;
30115 bool val3 ;
30116 int ecode3 = 0 ;
30117 PyObject * obj0 = 0 ;
30118 PyObject * obj1 = 0 ;
30119 PyObject * obj2 = 0 ;
30120 char * kwnames[] = {
30121 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
30122 };
30123
30124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30126 if (!SWIG_IsOK(res1)) {
30127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30128 }
30129 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30130 ecode2 = SWIG_AsVal_int(obj1, &val2);
30131 if (!SWIG_IsOK(ecode2)) {
30132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
30133 }
30134 arg2 = static_cast< int >(val2);
30135 if (obj2) {
30136 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30137 if (!SWIG_IsOK(ecode3)) {
30138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
30139 }
30140 arg3 = static_cast< bool >(val3);
30141 }
30142 {
30143 PyThreadState* __tstate = wxPyBeginAllowThreads();
30144 (arg1)->SetItemSpacing(arg2,arg3);
30145 wxPyEndAllowThreads(__tstate);
30146 if (PyErr_Occurred()) SWIG_fail;
30147 }
30148 resultobj = SWIG_Py_Void();
30149 return resultobj;
30150fail:
30151 return NULL;
7e08d4ef
RD
30152}
30153
30154
1bd55598
RD
30155SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30156 PyObject *resultobj = 0;
30157 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30158 int result;
30159 void *argp1 = 0 ;
30160 int res1 = 0 ;
30161 PyObject *swig_obj[1] ;
30162
30163 if (!args) SWIG_fail;
30164 swig_obj[0] = args;
30165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30166 if (!SWIG_IsOK(res1)) {
30167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30168 }
30169 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30170 {
30171 PyThreadState* __tstate = wxPyBeginAllowThreads();
30172 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
30173 wxPyEndAllowThreads(__tstate);
30174 if (PyErr_Occurred()) SWIG_fail;
30175 }
30176 resultobj = SWIG_From_int(static_cast< int >(result));
30177 return resultobj;
30178fail:
30179 return NULL;
7e08d4ef
RD
30180}
30181
30182
1bd55598
RD
30183SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30184 PyObject *resultobj = 0;
30185 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30186 wxColour result;
30187 void *argp1 = 0 ;
30188 int res1 = 0 ;
30189 PyObject *swig_obj[1] ;
30190
30191 if (!args) SWIG_fail;
30192 swig_obj[0] = args;
30193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30194 if (!SWIG_IsOK(res1)) {
30195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30196 }
30197 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30198 {
30199 PyThreadState* __tstate = wxPyBeginAllowThreads();
30200 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
30201 wxPyEndAllowThreads(__tstate);
30202 if (PyErr_Occurred()) SWIG_fail;
30203 }
30204 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
30205 return resultobj;
30206fail:
30207 return NULL;
30208}
30209
30210
30211SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30212 PyObject *resultobj = 0;
30213 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30214 wxColour *arg2 = 0 ;
30215 void *argp1 = 0 ;
30216 int res1 = 0 ;
30217 wxColour temp2 ;
30218 PyObject * obj0 = 0 ;
30219 PyObject * obj1 = 0 ;
30220 char * kwnames[] = {
30221 (char *) "self",(char *) "col", NULL
30222 };
30223
30224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
30225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30226 if (!SWIG_IsOK(res1)) {
30227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30228 }
30229 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30230 {
30231 arg2 = &temp2;
30232 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30233 }
30234 {
30235 PyThreadState* __tstate = wxPyBeginAllowThreads();
30236 (arg1)->SetTextColour((wxColour const &)*arg2);
30237 wxPyEndAllowThreads(__tstate);
30238 if (PyErr_Occurred()) SWIG_fail;
30239 }
30240 resultobj = SWIG_Py_Void();
30241 return resultobj;
30242fail:
30243 return NULL;
7e08d4ef
RD
30244}
30245
30246
1bd55598
RD
30247SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30248 PyObject *resultobj = 0;
30249 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30250 long result;
30251 void *argp1 = 0 ;
30252 int res1 = 0 ;
30253 PyObject *swig_obj[1] ;
30254
30255 if (!args) SWIG_fail;
30256 swig_obj[0] = args;
30257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30258 if (!SWIG_IsOK(res1)) {
30259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30260 }
30261 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30262 {
30263 PyThreadState* __tstate = wxPyBeginAllowThreads();
30264 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30265 wxPyEndAllowThreads(__tstate);
30266 if (PyErr_Occurred()) SWIG_fail;
30267 }
30268 resultobj = SWIG_From_long(static_cast< long >(result));
30269 return resultobj;
30270fail:
30271 return NULL;
30272}
30273
30274
30275SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30276 PyObject *resultobj = 0;
30277 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30278 long arg2 ;
30279 bool arg3 = (bool) true ;
30280 void *argp1 = 0 ;
30281 int res1 = 0 ;
30282 long val2 ;
30283 int ecode2 = 0 ;
30284 bool val3 ;
30285 int ecode3 = 0 ;
30286 PyObject * obj0 = 0 ;
30287 PyObject * obj1 = 0 ;
30288 PyObject * obj2 = 0 ;
30289 char * kwnames[] = {
30290 (char *) "self",(char *) "style",(char *) "add", NULL
30291 };
30292
30293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30295 if (!SWIG_IsOK(res1)) {
30296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30297 }
30298 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30299 ecode2 = SWIG_AsVal_long(obj1, &val2);
30300 if (!SWIG_IsOK(ecode2)) {
30301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30302 }
30303 arg2 = static_cast< long >(val2);
30304 if (obj2) {
30305 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30306 if (!SWIG_IsOK(ecode3)) {
30307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30308 }
30309 arg3 = static_cast< bool >(val3);
30310 }
30311 {
30312 PyThreadState* __tstate = wxPyBeginAllowThreads();
30313 (arg1)->SetSingleStyle(arg2,arg3);
30314 wxPyEndAllowThreads(__tstate);
30315 if (PyErr_Occurred()) SWIG_fail;
30316 }
30317 resultobj = SWIG_Py_Void();
30318 return resultobj;
30319fail:
30320 return NULL;
30321}
30322
30323
30324SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30325 PyObject *resultobj = 0;
30326 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30327 long arg2 ;
30328 int arg3 = (int) wxLIST_NEXT_ALL ;
30329 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30330 long result;
30331 void *argp1 = 0 ;
30332 int res1 = 0 ;
30333 long val2 ;
30334 int ecode2 = 0 ;
30335 int val3 ;
30336 int ecode3 = 0 ;
30337 int val4 ;
30338 int ecode4 = 0 ;
30339 PyObject * obj0 = 0 ;
30340 PyObject * obj1 = 0 ;
30341 PyObject * obj2 = 0 ;
30342 PyObject * obj3 = 0 ;
30343 char * kwnames[] = {
30344 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30345 };
30346
30347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30349 if (!SWIG_IsOK(res1)) {
30350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30351 }
30352 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30353 ecode2 = SWIG_AsVal_long(obj1, &val2);
30354 if (!SWIG_IsOK(ecode2)) {
30355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30356 }
30357 arg2 = static_cast< long >(val2);
30358 if (obj2) {
30359 ecode3 = SWIG_AsVal_int(obj2, &val3);
30360 if (!SWIG_IsOK(ecode3)) {
30361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30362 }
30363 arg3 = static_cast< int >(val3);
30364 }
30365 if (obj3) {
30366 ecode4 = SWIG_AsVal_int(obj3, &val4);
30367 if (!SWIG_IsOK(ecode4)) {
30368 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30369 }
30370 arg4 = static_cast< int >(val4);
30371 }
30372 {
30373 PyThreadState* __tstate = wxPyBeginAllowThreads();
30374 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30375 wxPyEndAllowThreads(__tstate);
30376 if (PyErr_Occurred()) SWIG_fail;
30377 }
30378 resultobj = SWIG_From_long(static_cast< long >(result));
30379 return resultobj;
30380fail:
30381 return NULL;
30382}
30383
30384
30385SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30386 PyObject *resultobj = 0;
30387 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30388 int arg2 ;
30389 wxImageList *result = 0 ;
30390 void *argp1 = 0 ;
30391 int res1 = 0 ;
30392 int val2 ;
30393 int ecode2 = 0 ;
30394 PyObject * obj0 = 0 ;
30395 PyObject * obj1 = 0 ;
30396 char * kwnames[] = {
30397 (char *) "self",(char *) "which", NULL
30398 };
30399
30400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30402 if (!SWIG_IsOK(res1)) {
30403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30404 }
30405 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30406 ecode2 = SWIG_AsVal_int(obj1, &val2);
30407 if (!SWIG_IsOK(ecode2)) {
30408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30409 }
30410 arg2 = static_cast< int >(val2);
30411 {
30412 PyThreadState* __tstate = wxPyBeginAllowThreads();
30413 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30414 wxPyEndAllowThreads(__tstate);
30415 if (PyErr_Occurred()) SWIG_fail;
30416 }
3ecece7e
RD
30417 {
30418 resultobj = wxPyMake_wxObject(result, (bool)0);
30419 }
1bd55598
RD
30420 return resultobj;
30421fail:
30422 return NULL;
30423}
30424
30425
30426SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30427 PyObject *resultobj = 0;
30428 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30429 wxImageList *arg2 = (wxImageList *) 0 ;
30430 int arg3 ;
30431 void *argp1 = 0 ;
30432 int res1 = 0 ;
30433 void *argp2 = 0 ;
30434 int res2 = 0 ;
30435 int val3 ;
30436 int ecode3 = 0 ;
30437 PyObject * obj0 = 0 ;
30438 PyObject * obj1 = 0 ;
30439 PyObject * obj2 = 0 ;
30440 char * kwnames[] = {
30441 (char *) "self",(char *) "imageList",(char *) "which", NULL
30442 };
30443
30444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30446 if (!SWIG_IsOK(res1)) {
30447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30448 }
30449 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30450 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30451 if (!SWIG_IsOK(res2)) {
30452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30453 }
30454 arg2 = reinterpret_cast< wxImageList * >(argp2);
30455 ecode3 = SWIG_AsVal_int(obj2, &val3);
30456 if (!SWIG_IsOK(ecode3)) {
30457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30458 }
30459 arg3 = static_cast< int >(val3);
30460 {
30461 PyThreadState* __tstate = wxPyBeginAllowThreads();
30462 (arg1)->SetImageList(arg2,arg3);
30463 wxPyEndAllowThreads(__tstate);
30464 if (PyErr_Occurred()) SWIG_fail;
30465 }
30466 resultobj = SWIG_Py_Void();
30467 return resultobj;
30468fail:
30469 return NULL;
30470}
30471
30472
30473SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30474 PyObject *resultobj = 0;
30475 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30476 wxImageList *arg2 = (wxImageList *) 0 ;
30477 int arg3 ;
30478 void *argp1 = 0 ;
30479 int res1 = 0 ;
30480 int res2 = 0 ;
30481 int val3 ;
30482 int ecode3 = 0 ;
30483 PyObject * obj0 = 0 ;
30484 PyObject * obj1 = 0 ;
30485 PyObject * obj2 = 0 ;
30486 char * kwnames[] = {
30487 (char *) "self",(char *) "imageList",(char *) "which", NULL
30488 };
30489
30490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30492 if (!SWIG_IsOK(res1)) {
30493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30494 }
30495 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30496 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30497 if (!SWIG_IsOK(res2)) {
30498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30499 }
30500 ecode3 = SWIG_AsVal_int(obj2, &val3);
30501 if (!SWIG_IsOK(ecode3)) {
30502 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30503 }
30504 arg3 = static_cast< int >(val3);
30505 {
30506 PyThreadState* __tstate = wxPyBeginAllowThreads();
30507 (arg1)->AssignImageList(arg2,arg3);
30508 wxPyEndAllowThreads(__tstate);
30509 if (PyErr_Occurred()) SWIG_fail;
30510 }
30511 resultobj = SWIG_Py_Void();
30512 return resultobj;
30513fail:
30514 return NULL;
7e08d4ef
RD
30515}
30516
30517
1bd55598
RD
30518SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30519 PyObject *resultobj = 0;
30520 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30521 bool result;
30522 void *argp1 = 0 ;
30523 int res1 = 0 ;
30524 PyObject *swig_obj[1] ;
30525
30526 if (!args) SWIG_fail;
30527 swig_obj[0] = args;
30528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30529 if (!SWIG_IsOK(res1)) {
30530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30531 }
30532 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30533 {
30534 PyThreadState* __tstate = wxPyBeginAllowThreads();
30535 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30536 wxPyEndAllowThreads(__tstate);
30537 if (PyErr_Occurred()) SWIG_fail;
30538 }
30539 {
30540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30541 }
30542 return resultobj;
30543fail:
30544 return NULL;
44bf767a
RD
30545}
30546
30547
1bd55598
RD
30548SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30549 PyObject *resultobj = 0;
30550 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30551 bool result;
30552 void *argp1 = 0 ;
30553 int res1 = 0 ;
30554 PyObject *swig_obj[1] ;
30555
30556 if (!args) SWIG_fail;
30557 swig_obj[0] = args;
30558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30559 if (!SWIG_IsOK(res1)) {
30560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30561 }
30562 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30563 {
30564 PyThreadState* __tstate = wxPyBeginAllowThreads();
30565 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30566 wxPyEndAllowThreads(__tstate);
30567 if (PyErr_Occurred()) SWIG_fail;
30568 }
30569 {
30570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30571 }
30572 return resultobj;
30573fail:
30574 return NULL;
30575}
30576
30577
30578SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30579 PyObject *resultobj = 0;
30580 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30581 long arg2 ;
30582 void *argp1 = 0 ;
30583 int res1 = 0 ;
30584 long val2 ;
30585 int ecode2 = 0 ;
30586 PyObject * obj0 = 0 ;
30587 PyObject * obj1 = 0 ;
30588 char * kwnames[] = {
30589 (char *) "self",(char *) "item", NULL
30590 };
30591
30592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30594 if (!SWIG_IsOK(res1)) {
30595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30596 }
30597 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30598 ecode2 = SWIG_AsVal_long(obj1, &val2);
30599 if (!SWIG_IsOK(ecode2)) {
30600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30601 }
30602 arg2 = static_cast< long >(val2);
30603 {
30604 PyThreadState* __tstate = wxPyBeginAllowThreads();
30605 (arg1)->RefreshItem(arg2);
30606 wxPyEndAllowThreads(__tstate);
30607 if (PyErr_Occurred()) SWIG_fail;
30608 }
30609 resultobj = SWIG_Py_Void();
30610 return resultobj;
30611fail:
30612 return NULL;
30613}
30614
30615
30616SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30617 PyObject *resultobj = 0;
30618 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30619 long arg2 ;
30620 long arg3 ;
30621 void *argp1 = 0 ;
30622 int res1 = 0 ;
30623 long val2 ;
30624 int ecode2 = 0 ;
30625 long val3 ;
30626 int ecode3 = 0 ;
30627 PyObject * obj0 = 0 ;
30628 PyObject * obj1 = 0 ;
30629 PyObject * obj2 = 0 ;
30630 char * kwnames[] = {
30631 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30632 };
30633
30634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30636 if (!SWIG_IsOK(res1)) {
30637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30638 }
30639 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30640 ecode2 = SWIG_AsVal_long(obj1, &val2);
30641 if (!SWIG_IsOK(ecode2)) {
30642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30643 }
30644 arg2 = static_cast< long >(val2);
30645 ecode3 = SWIG_AsVal_long(obj2, &val3);
30646 if (!SWIG_IsOK(ecode3)) {
30647 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30648 }
30649 arg3 = static_cast< long >(val3);
30650 {
30651 PyThreadState* __tstate = wxPyBeginAllowThreads();
30652 (arg1)->RefreshItems(arg2,arg3);
30653 wxPyEndAllowThreads(__tstate);
30654 if (PyErr_Occurred()) SWIG_fail;
30655 }
30656 resultobj = SWIG_Py_Void();
30657 return resultobj;
30658fail:
30659 return NULL;
30660}
30661
30662
30663SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30664 PyObject *resultobj = 0;
30665 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30666 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30667 bool result;
30668 void *argp1 = 0 ;
30669 int res1 = 0 ;
30670 int val2 ;
30671 int ecode2 = 0 ;
30672 PyObject * obj0 = 0 ;
30673 PyObject * obj1 = 0 ;
30674 char * kwnames[] = {
30675 (char *) "self",(char *) "flag", NULL
30676 };
30677
30678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30680 if (!SWIG_IsOK(res1)) {
30681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30682 }
30683 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30684 if (obj1) {
30685 ecode2 = SWIG_AsVal_int(obj1, &val2);
30686 if (!SWIG_IsOK(ecode2)) {
30687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30688 }
30689 arg2 = static_cast< int >(val2);
30690 }
30691 {
30692 PyThreadState* __tstate = wxPyBeginAllowThreads();
30693 result = (bool)(arg1)->Arrange(arg2);
30694 wxPyEndAllowThreads(__tstate);
30695 if (PyErr_Occurred()) SWIG_fail;
30696 }
30697 {
30698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30699 }
30700 return resultobj;
30701fail:
30702 return NULL;
30703}
30704
30705
30706SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30707 PyObject *resultobj = 0;
30708 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30709 long arg2 ;
30710 bool result;
30711 void *argp1 = 0 ;
30712 int res1 = 0 ;
30713 long val2 ;
30714 int ecode2 = 0 ;
30715 PyObject * obj0 = 0 ;
30716 PyObject * obj1 = 0 ;
30717 char * kwnames[] = {
30718 (char *) "self",(char *) "item", NULL
30719 };
30720
30721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30723 if (!SWIG_IsOK(res1)) {
30724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30725 }
30726 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30727 ecode2 = SWIG_AsVal_long(obj1, &val2);
30728 if (!SWIG_IsOK(ecode2)) {
30729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30730 }
30731 arg2 = static_cast< long >(val2);
30732 {
30733 PyThreadState* __tstate = wxPyBeginAllowThreads();
30734 result = (bool)(arg1)->DeleteItem(arg2);
30735 wxPyEndAllowThreads(__tstate);
30736 if (PyErr_Occurred()) SWIG_fail;
30737 }
30738 {
30739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30740 }
30741 return resultobj;
30742fail:
30743 return NULL;
d55e5bfc
RD
30744}
30745
30746
1bd55598
RD
30747SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30748 PyObject *resultobj = 0;
30749 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30750 bool result;
30751 void *argp1 = 0 ;
30752 int res1 = 0 ;
30753 PyObject *swig_obj[1] ;
30754
30755 if (!args) SWIG_fail;
30756 swig_obj[0] = args;
30757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30758 if (!SWIG_IsOK(res1)) {
30759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30760 }
30761 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30762 {
30763 PyThreadState* __tstate = wxPyBeginAllowThreads();
30764 result = (bool)(arg1)->DeleteAllItems();
30765 wxPyEndAllowThreads(__tstate);
30766 if (PyErr_Occurred()) SWIG_fail;
30767 }
30768 {
30769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30770 }
30771 return resultobj;
30772fail:
30773 return NULL;
30774}
30775
30776
30777SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30778 PyObject *resultobj = 0;
30779 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30780 int arg2 ;
30781 bool result;
30782 void *argp1 = 0 ;
30783 int res1 = 0 ;
30784 int val2 ;
30785 int ecode2 = 0 ;
30786 PyObject * obj0 = 0 ;
30787 PyObject * obj1 = 0 ;
30788 char * kwnames[] = {
30789 (char *) "self",(char *) "col", NULL
30790 };
30791
30792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30794 if (!SWIG_IsOK(res1)) {
30795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30796 }
30797 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30798 ecode2 = SWIG_AsVal_int(obj1, &val2);
30799 if (!SWIG_IsOK(ecode2)) {
30800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30801 }
30802 arg2 = static_cast< int >(val2);
30803 {
30804 PyThreadState* __tstate = wxPyBeginAllowThreads();
30805 result = (bool)(arg1)->DeleteColumn(arg2);
30806 wxPyEndAllowThreads(__tstate);
30807 if (PyErr_Occurred()) SWIG_fail;
30808 }
30809 {
30810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30811 }
30812 return resultobj;
30813fail:
30814 return NULL;
b411df4a
RD
30815}
30816
30817
1bd55598
RD
30818SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30819 PyObject *resultobj = 0;
30820 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30821 bool result;
30822 void *argp1 = 0 ;
30823 int res1 = 0 ;
30824 PyObject *swig_obj[1] ;
30825
30826 if (!args) SWIG_fail;
30827 swig_obj[0] = args;
30828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30829 if (!SWIG_IsOK(res1)) {
30830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30831 }
30832 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30833 {
30834 PyThreadState* __tstate = wxPyBeginAllowThreads();
30835 result = (bool)(arg1)->DeleteAllColumns();
30836 wxPyEndAllowThreads(__tstate);
30837 if (PyErr_Occurred()) SWIG_fail;
30838 }
30839 {
30840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30841 }
30842 return resultobj;
30843fail:
30844 return NULL;
b411df4a
RD
30845}
30846
30847
1bd55598
RD
30848SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30849 PyObject *resultobj = 0;
30850 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30851 void *argp1 = 0 ;
30852 int res1 = 0 ;
30853 PyObject *swig_obj[1] ;
30854
30855 if (!args) SWIG_fail;
30856 swig_obj[0] = args;
30857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30858 if (!SWIG_IsOK(res1)) {
30859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30860 }
30861 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30862 {
30863 PyThreadState* __tstate = wxPyBeginAllowThreads();
30864 (arg1)->ClearAll();
30865 wxPyEndAllowThreads(__tstate);
30866 if (PyErr_Occurred()) SWIG_fail;
30867 }
30868 resultobj = SWIG_Py_Void();
30869 return resultobj;
30870fail:
30871 return NULL;
30872}
30873
30874
30875SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30876 PyObject *resultobj = 0;
30877 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30878 long arg2 ;
30879 void *argp1 = 0 ;
30880 int res1 = 0 ;
30881 long val2 ;
30882 int ecode2 = 0 ;
30883 PyObject * obj0 = 0 ;
30884 PyObject * obj1 = 0 ;
30885 char * kwnames[] = {
30886 (char *) "self",(char *) "item", NULL
30887 };
30888
30889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30890 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30891 if (!SWIG_IsOK(res1)) {
30892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30893 }
30894 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30895 ecode2 = SWIG_AsVal_long(obj1, &val2);
30896 if (!SWIG_IsOK(ecode2)) {
30897 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30898 }
30899 arg2 = static_cast< long >(val2);
30900 {
30901 PyThreadState* __tstate = wxPyBeginAllowThreads();
30902 (arg1)->EditLabel(arg2);
30903 wxPyEndAllowThreads(__tstate);
30904 if (PyErr_Occurred()) SWIG_fail;
30905 }
30906 resultobj = SWIG_Py_Void();
30907 return resultobj;
30908fail:
30909 return NULL;
30910}
30911
30912
30913SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30914 PyObject *resultobj = 0;
30915 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30916 long arg2 ;
30917 bool result;
30918 void *argp1 = 0 ;
30919 int res1 = 0 ;
30920 long val2 ;
30921 int ecode2 = 0 ;
30922 PyObject * obj0 = 0 ;
30923 PyObject * obj1 = 0 ;
30924 char * kwnames[] = {
30925 (char *) "self",(char *) "item", NULL
30926 };
30927
30928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30930 if (!SWIG_IsOK(res1)) {
30931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30932 }
30933 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30934 ecode2 = SWIG_AsVal_long(obj1, &val2);
30935 if (!SWIG_IsOK(ecode2)) {
30936 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30937 }
30938 arg2 = static_cast< long >(val2);
30939 {
30940 PyThreadState* __tstate = wxPyBeginAllowThreads();
30941 result = (bool)(arg1)->EnsureVisible(arg2);
30942 wxPyEndAllowThreads(__tstate);
30943 if (PyErr_Occurred()) SWIG_fail;
30944 }
30945 {
30946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30947 }
30948 return resultobj;
30949fail:
30950 return NULL;
30951}
30952
30953
30954SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30955 PyObject *resultobj = 0;
30956 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30957 long arg2 ;
30958 wxString *arg3 = 0 ;
30959 bool arg4 = (bool) false ;
30960 long result;
30961 void *argp1 = 0 ;
30962 int res1 = 0 ;
30963 long val2 ;
30964 int ecode2 = 0 ;
30965 bool temp3 = false ;
30966 bool val4 ;
30967 int ecode4 = 0 ;
30968 PyObject * obj0 = 0 ;
30969 PyObject * obj1 = 0 ;
30970 PyObject * obj2 = 0 ;
30971 PyObject * obj3 = 0 ;
30972 char * kwnames[] = {
30973 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30974 };
30975
30976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30978 if (!SWIG_IsOK(res1)) {
30979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30980 }
30981 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30982 ecode2 = SWIG_AsVal_long(obj1, &val2);
30983 if (!SWIG_IsOK(ecode2)) {
30984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30985 }
30986 arg2 = static_cast< long >(val2);
30987 {
30988 arg3 = wxString_in_helper(obj2);
30989 if (arg3 == NULL) SWIG_fail;
30990 temp3 = true;
30991 }
30992 if (obj3) {
30993 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30994 if (!SWIG_IsOK(ecode4)) {
30995 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30996 }
30997 arg4 = static_cast< bool >(val4);
30998 }
30999 {
31000 PyThreadState* __tstate = wxPyBeginAllowThreads();
31001 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
31002 wxPyEndAllowThreads(__tstate);
31003 if (PyErr_Occurred()) SWIG_fail;
31004 }
31005 resultobj = SWIG_From_long(static_cast< long >(result));
31006 {
31007 if (temp3)
31008 delete arg3;
31009 }
31010 return resultobj;
31011fail:
31012 {
31013 if (temp3)
31014 delete arg3;
31015 }
31016 return NULL;
31017}
31018
31019
31020SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31021 PyObject *resultobj = 0;
31022 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31023 long arg2 ;
31024 long arg3 ;
31025 long result;
31026 void *argp1 = 0 ;
31027 int res1 = 0 ;
31028 long val2 ;
31029 int ecode2 = 0 ;
31030 long val3 ;
31031 int ecode3 = 0 ;
31032 PyObject * obj0 = 0 ;
31033 PyObject * obj1 = 0 ;
31034 PyObject * obj2 = 0 ;
31035 char * kwnames[] = {
31036 (char *) "self",(char *) "start",(char *) "data", NULL
31037 };
31038
31039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31041 if (!SWIG_IsOK(res1)) {
31042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31043 }
31044 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31045 ecode2 = SWIG_AsVal_long(obj1, &val2);
31046 if (!SWIG_IsOK(ecode2)) {
31047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
31048 }
31049 arg2 = static_cast< long >(val2);
31050 ecode3 = SWIG_AsVal_long(obj2, &val3);
31051 if (!SWIG_IsOK(ecode3)) {
31052 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
31053 }
31054 arg3 = static_cast< long >(val3);
31055 {
31056 PyThreadState* __tstate = wxPyBeginAllowThreads();
31057 result = (long)(arg1)->FindItem(arg2,arg3);
31058 wxPyEndAllowThreads(__tstate);
31059 if (PyErr_Occurred()) SWIG_fail;
31060 }
31061 resultobj = SWIG_From_long(static_cast< long >(result));
31062 return resultobj;
31063fail:
31064 return NULL;
31065}
31066
31067
31068SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31069 PyObject *resultobj = 0;
31070 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31071 long arg2 ;
31072 wxPoint *arg3 = 0 ;
31073 int arg4 ;
31074 long result;
31075 void *argp1 = 0 ;
31076 int res1 = 0 ;
31077 long val2 ;
31078 int ecode2 = 0 ;
31079 wxPoint temp3 ;
31080 int val4 ;
31081 int ecode4 = 0 ;
31082 PyObject * obj0 = 0 ;
31083 PyObject * obj1 = 0 ;
31084 PyObject * obj2 = 0 ;
31085 PyObject * obj3 = 0 ;
31086 char * kwnames[] = {
31087 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
31088 };
31089
31090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31092 if (!SWIG_IsOK(res1)) {
31093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31094 }
31095 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31096 ecode2 = SWIG_AsVal_long(obj1, &val2);
31097 if (!SWIG_IsOK(ecode2)) {
31098 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
31099 }
31100 arg2 = static_cast< long >(val2);
31101 {
31102 arg3 = &temp3;
31103 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31104 }
31105 ecode4 = SWIG_AsVal_int(obj3, &val4);
31106 if (!SWIG_IsOK(ecode4)) {
31107 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
31108 }
31109 arg4 = static_cast< int >(val4);
31110 {
31111 PyThreadState* __tstate = wxPyBeginAllowThreads();
31112 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
31113 wxPyEndAllowThreads(__tstate);
31114 if (PyErr_Occurred()) SWIG_fail;
31115 }
31116 resultobj = SWIG_From_long(static_cast< long >(result));
31117 return resultobj;
31118fail:
31119 return NULL;
31120}
31121
31122
31123SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31124 PyObject *resultobj = 0;
31125 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31126 wxPoint *arg2 = 0 ;
31127 int *arg3 = 0 ;
31128 long result;
31129 void *argp1 = 0 ;
31130 int res1 = 0 ;
31131 wxPoint temp2 ;
31132 int temp3 ;
31133 int res3 = SWIG_TMPOBJ ;
31134 PyObject * obj0 = 0 ;
31135 PyObject * obj1 = 0 ;
31136 char * kwnames[] = {
31137 (char *) "self",(char *) "point", NULL
31138 };
31139
31140 arg3 = &temp3;
31141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
31142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31143 if (!SWIG_IsOK(res1)) {
31144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31145 }
31146 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31147 {
31148 arg2 = &temp2;
31149 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31150 }
31151 {
31152 PyThreadState* __tstate = wxPyBeginAllowThreads();
31153 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
31154 wxPyEndAllowThreads(__tstate);
31155 if (PyErr_Occurred()) SWIG_fail;
31156 }
31157 resultobj = SWIG_From_long(static_cast< long >(result));
31158 if (SWIG_IsTmpObj(res3)) {
31159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31160 } else {
31161 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31163 }
31164 return resultobj;
31165fail:
31166 return NULL;
31167}
31168
31169
704eda0c
RD
31170SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31171 PyObject *resultobj = 0;
31172 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31173 wxPoint *arg2 = 0 ;
31174 int *arg3 = 0 ;
31175 long *arg4 = (long *) 0 ;
31176 long result;
31177 void *argp1 = 0 ;
31178 int res1 = 0 ;
31179 wxPoint temp2 ;
31180 int temp3 ;
31181 int res3 = SWIG_TMPOBJ ;
31182 long temp4 ;
31183 int res4 = SWIG_TMPOBJ ;
31184 PyObject * obj0 = 0 ;
31185 PyObject * obj1 = 0 ;
31186 char * kwnames[] = {
31187 (char *) "self",(char *) "point", NULL
31188 };
31189
31190 arg3 = &temp3;
31191 arg4 = &temp4;
31192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
31193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31194 if (!SWIG_IsOK(res1)) {
31195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31196 }
31197 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31198 {
31199 arg2 = &temp2;
31200 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31201 }
31202 {
31203 PyThreadState* __tstate = wxPyBeginAllowThreads();
31204 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
31205 wxPyEndAllowThreads(__tstate);
31206 if (PyErr_Occurred()) SWIG_fail;
31207 }
31208 resultobj = SWIG_From_long(static_cast< long >(result));
31209 if (SWIG_IsTmpObj(res3)) {
31210 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
31211 } else {
31212 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31213 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
31214 }
31215 if (SWIG_IsTmpObj(res4)) {
31216 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
31217 } else {
31218 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
31219 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
31220 }
31221 return resultobj;
31222fail:
31223 return NULL;
31224}
31225
31226
1bd55598
RD
31227SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31228 PyObject *resultobj = 0;
31229 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31230 wxListItem *arg2 = 0 ;
31231 long result;
31232 void *argp1 = 0 ;
31233 int res1 = 0 ;
31234 void *argp2 = 0 ;
31235 int res2 = 0 ;
31236 PyObject * obj0 = 0 ;
31237 PyObject * obj1 = 0 ;
31238 char * kwnames[] = {
31239 (char *) "self",(char *) "info", NULL
31240 };
31241
31242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
31243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31244 if (!SWIG_IsOK(res1)) {
31245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31246 }
31247 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31248 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
31249 if (!SWIG_IsOK(res2)) {
31250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31251 }
31252 if (!argp2) {
31253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
31254 }
31255 arg2 = reinterpret_cast< wxListItem * >(argp2);
31256 {
31257 PyThreadState* __tstate = wxPyBeginAllowThreads();
31258 result = (long)(arg1)->InsertItem(*arg2);
31259 wxPyEndAllowThreads(__tstate);
31260 if (PyErr_Occurred()) SWIG_fail;
31261 }
31262 resultobj = SWIG_From_long(static_cast< long >(result));
31263 return resultobj;
31264fail:
31265 return NULL;
31266}
31267
31268
31269SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31270 PyObject *resultobj = 0;
31271 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31272 long arg2 ;
31273 wxString *arg3 = 0 ;
31274 int arg4 = (int) -1 ;
31275 long result;
31276 void *argp1 = 0 ;
31277 int res1 = 0 ;
31278 long val2 ;
31279 int ecode2 = 0 ;
31280 bool temp3 = false ;
31281 int val4 ;
31282 int ecode4 = 0 ;
31283 PyObject * obj0 = 0 ;
31284 PyObject * obj1 = 0 ;
31285 PyObject * obj2 = 0 ;
31286 PyObject * obj3 = 0 ;
31287 char * kwnames[] = {
31288 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31289 };
31290
31291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31293 if (!SWIG_IsOK(res1)) {
31294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31295 }
31296 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31297 ecode2 = SWIG_AsVal_long(obj1, &val2);
31298 if (!SWIG_IsOK(ecode2)) {
31299 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31300 }
31301 arg2 = static_cast< long >(val2);
31302 {
31303 arg3 = wxString_in_helper(obj2);
31304 if (arg3 == NULL) SWIG_fail;
31305 temp3 = true;
31306 }
31307 if (obj3) {
31308 ecode4 = SWIG_AsVal_int(obj3, &val4);
31309 if (!SWIG_IsOK(ecode4)) {
31310 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31311 }
31312 arg4 = static_cast< int >(val4);
31313 }
31314 {
31315 PyThreadState* __tstate = wxPyBeginAllowThreads();
31316 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31317 wxPyEndAllowThreads(__tstate);
31318 if (PyErr_Occurred()) SWIG_fail;
31319 }
31320 resultobj = SWIG_From_long(static_cast< long >(result));
31321 {
31322 if (temp3)
31323 delete arg3;
31324 }
31325 return resultobj;
31326fail:
31327 {
31328 if (temp3)
31329 delete arg3;
31330 }
31331 return NULL;
31332}
31333
31334
31335SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31336 PyObject *resultobj = 0;
31337 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31338 long arg2 ;
31339 int arg3 ;
31340 long result;
31341 void *argp1 = 0 ;
31342 int res1 = 0 ;
31343 long val2 ;
31344 int ecode2 = 0 ;
31345 int val3 ;
31346 int ecode3 = 0 ;
31347 PyObject * obj0 = 0 ;
31348 PyObject * obj1 = 0 ;
31349 PyObject * obj2 = 0 ;
31350 char * kwnames[] = {
31351 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31352 };
31353
31354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31356 if (!SWIG_IsOK(res1)) {
31357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31358 }
31359 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31360 ecode2 = SWIG_AsVal_long(obj1, &val2);
31361 if (!SWIG_IsOK(ecode2)) {
31362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31363 }
31364 arg2 = static_cast< long >(val2);
31365 ecode3 = SWIG_AsVal_int(obj2, &val3);
31366 if (!SWIG_IsOK(ecode3)) {
31367 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31368 }
31369 arg3 = static_cast< int >(val3);
31370 {
31371 PyThreadState* __tstate = wxPyBeginAllowThreads();
31372 result = (long)(arg1)->InsertItem(arg2,arg3);
31373 wxPyEndAllowThreads(__tstate);
31374 if (PyErr_Occurred()) SWIG_fail;
31375 }
31376 resultobj = SWIG_From_long(static_cast< long >(result));
31377 return resultobj;
31378fail:
31379 return NULL;
31380}
31381
31382
31383SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31384 PyObject *resultobj = 0;
31385 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31386 long arg2 ;
31387 wxString *arg3 = 0 ;
31388 int arg4 ;
31389 long result;
31390 void *argp1 = 0 ;
31391 int res1 = 0 ;
31392 long val2 ;
31393 int ecode2 = 0 ;
31394 bool temp3 = false ;
31395 int val4 ;
31396 int ecode4 = 0 ;
31397 PyObject * obj0 = 0 ;
31398 PyObject * obj1 = 0 ;
31399 PyObject * obj2 = 0 ;
31400 PyObject * obj3 = 0 ;
31401 char * kwnames[] = {
31402 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31403 };
31404
31405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31407 if (!SWIG_IsOK(res1)) {
31408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31409 }
31410 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31411 ecode2 = SWIG_AsVal_long(obj1, &val2);
31412 if (!SWIG_IsOK(ecode2)) {
31413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31414 }
31415 arg2 = static_cast< long >(val2);
31416 {
31417 arg3 = wxString_in_helper(obj2);
31418 if (arg3 == NULL) SWIG_fail;
31419 temp3 = true;
31420 }
31421 ecode4 = SWIG_AsVal_int(obj3, &val4);
31422 if (!SWIG_IsOK(ecode4)) {
31423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31424 }
31425 arg4 = static_cast< int >(val4);
31426 {
31427 PyThreadState* __tstate = wxPyBeginAllowThreads();
31428 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31429 wxPyEndAllowThreads(__tstate);
31430 if (PyErr_Occurred()) SWIG_fail;
31431 }
31432 resultobj = SWIG_From_long(static_cast< long >(result));
31433 {
31434 if (temp3)
31435 delete arg3;
31436 }
31437 return resultobj;
31438fail:
31439 {
31440 if (temp3)
31441 delete arg3;
31442 }
31443 return NULL;
31444}
31445
31446
31447SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31448 PyObject *resultobj = 0;
31449 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31450 long arg2 ;
31451 wxListItem *arg3 = 0 ;
31452 long result;
31453 void *argp1 = 0 ;
31454 int res1 = 0 ;
31455 long val2 ;
31456 int ecode2 = 0 ;
31457 void *argp3 = 0 ;
31458 int res3 = 0 ;
31459 PyObject * obj0 = 0 ;
31460 PyObject * obj1 = 0 ;
31461 PyObject * obj2 = 0 ;
31462 char * kwnames[] = {
31463 (char *) "self",(char *) "col",(char *) "info", NULL
31464 };
31465
31466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31468 if (!SWIG_IsOK(res1)) {
31469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31470 }
31471 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31472 ecode2 = SWIG_AsVal_long(obj1, &val2);
31473 if (!SWIG_IsOK(ecode2)) {
31474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31475 }
31476 arg2 = static_cast< long >(val2);
31477 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31478 if (!SWIG_IsOK(res3)) {
31479 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31480 }
31481 if (!argp3) {
31482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31483 }
31484 arg3 = reinterpret_cast< wxListItem * >(argp3);
31485 {
31486 PyThreadState* __tstate = wxPyBeginAllowThreads();
31487 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31488 wxPyEndAllowThreads(__tstate);
31489 if (PyErr_Occurred()) SWIG_fail;
31490 }
31491 resultobj = SWIG_From_long(static_cast< long >(result));
31492 return resultobj;
31493fail:
31494 return NULL;
31495}
31496
31497
31498SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31499 PyObject *resultobj = 0;
31500 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31501 long arg2 ;
31502 wxString *arg3 = 0 ;
31503 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31504 int arg5 = (int) -1 ;
31505 long result;
31506 void *argp1 = 0 ;
31507 int res1 = 0 ;
31508 long val2 ;
31509 int ecode2 = 0 ;
31510 bool temp3 = false ;
31511 int val4 ;
31512 int ecode4 = 0 ;
31513 int val5 ;
31514 int ecode5 = 0 ;
31515 PyObject * obj0 = 0 ;
31516 PyObject * obj1 = 0 ;
31517 PyObject * obj2 = 0 ;
31518 PyObject * obj3 = 0 ;
31519 PyObject * obj4 = 0 ;
31520 char * kwnames[] = {
31521 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31522 };
31523
31524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31526 if (!SWIG_IsOK(res1)) {
31527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31528 }
31529 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31530 ecode2 = SWIG_AsVal_long(obj1, &val2);
31531 if (!SWIG_IsOK(ecode2)) {
31532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31533 }
31534 arg2 = static_cast< long >(val2);
31535 {
31536 arg3 = wxString_in_helper(obj2);
31537 if (arg3 == NULL) SWIG_fail;
31538 temp3 = true;
31539 }
31540 if (obj3) {
31541 ecode4 = SWIG_AsVal_int(obj3, &val4);
31542 if (!SWIG_IsOK(ecode4)) {
31543 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31544 }
31545 arg4 = static_cast< int >(val4);
31546 }
31547 if (obj4) {
31548 ecode5 = SWIG_AsVal_int(obj4, &val5);
31549 if (!SWIG_IsOK(ecode5)) {
31550 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31551 }
31552 arg5 = static_cast< int >(val5);
31553 }
31554 {
31555 PyThreadState* __tstate = wxPyBeginAllowThreads();
31556 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31557 wxPyEndAllowThreads(__tstate);
31558 if (PyErr_Occurred()) SWIG_fail;
31559 }
31560 resultobj = SWIG_From_long(static_cast< long >(result));
31561 {
31562 if (temp3)
31563 delete arg3;
31564 }
31565 return resultobj;
31566fail:
31567 {
31568 if (temp3)
31569 delete arg3;
31570 }
31571 return NULL;
31572}
31573
31574
31575SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31576 PyObject *resultobj = 0;
31577 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31578 long arg2 ;
31579 void *argp1 = 0 ;
31580 int res1 = 0 ;
31581 long val2 ;
31582 int ecode2 = 0 ;
31583 PyObject * obj0 = 0 ;
31584 PyObject * obj1 = 0 ;
31585 char * kwnames[] = {
31586 (char *) "self",(char *) "count", NULL
31587 };
31588
31589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31591 if (!SWIG_IsOK(res1)) {
31592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31593 }
31594 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31595 ecode2 = SWIG_AsVal_long(obj1, &val2);
31596 if (!SWIG_IsOK(ecode2)) {
31597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31598 }
31599 arg2 = static_cast< long >(val2);
31600 {
31601 PyThreadState* __tstate = wxPyBeginAllowThreads();
31602 (arg1)->SetItemCount(arg2);
31603 wxPyEndAllowThreads(__tstate);
31604 if (PyErr_Occurred()) SWIG_fail;
31605 }
31606 resultobj = SWIG_Py_Void();
31607 return resultobj;
31608fail:
31609 return NULL;
31610}
31611
31612
31613SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31614 PyObject *resultobj = 0;
31615 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31616 int arg2 ;
31617 int arg3 ;
31618 bool result;
31619 void *argp1 = 0 ;
31620 int res1 = 0 ;
31621 int val2 ;
31622 int ecode2 = 0 ;
31623 int val3 ;
31624 int ecode3 = 0 ;
31625 PyObject * obj0 = 0 ;
31626 PyObject * obj1 = 0 ;
31627 PyObject * obj2 = 0 ;
31628 char * kwnames[] = {
31629 (char *) "self",(char *) "dx",(char *) "dy", NULL
31630 };
31631
31632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31634 if (!SWIG_IsOK(res1)) {
31635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31636 }
31637 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31638 ecode2 = SWIG_AsVal_int(obj1, &val2);
31639 if (!SWIG_IsOK(ecode2)) {
31640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31641 }
31642 arg2 = static_cast< int >(val2);
31643 ecode3 = SWIG_AsVal_int(obj2, &val3);
31644 if (!SWIG_IsOK(ecode3)) {
31645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31646 }
31647 arg3 = static_cast< int >(val3);
31648 {
31649 PyThreadState* __tstate = wxPyBeginAllowThreads();
31650 result = (bool)(arg1)->ScrollList(arg2,arg3);
31651 wxPyEndAllowThreads(__tstate);
31652 if (PyErr_Occurred()) SWIG_fail;
31653 }
31654 {
31655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31656 }
31657 return resultobj;
31658fail:
31659 return NULL;
31660}
31661
31662
31663SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31664 PyObject *resultobj = 0;
31665 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31666 long arg2 ;
31667 wxColour *arg3 = 0 ;
31668 void *argp1 = 0 ;
31669 int res1 = 0 ;
31670 long val2 ;
31671 int ecode2 = 0 ;
31672 wxColour temp3 ;
31673 PyObject * obj0 = 0 ;
31674 PyObject * obj1 = 0 ;
31675 PyObject * obj2 = 0 ;
31676 char * kwnames[] = {
31677 (char *) "self",(char *) "item",(char *) "col", NULL
31678 };
31679
31680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31682 if (!SWIG_IsOK(res1)) {
31683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31684 }
31685 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31686 ecode2 = SWIG_AsVal_long(obj1, &val2);
31687 if (!SWIG_IsOK(ecode2)) {
31688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31689 }
31690 arg2 = static_cast< long >(val2);
31691 {
31692 arg3 = &temp3;
31693 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31694 }
31695 {
31696 PyThreadState* __tstate = wxPyBeginAllowThreads();
31697 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31698 wxPyEndAllowThreads(__tstate);
31699 if (PyErr_Occurred()) SWIG_fail;
31700 }
31701 resultobj = SWIG_Py_Void();
31702 return resultobj;
31703fail:
31704 return NULL;
31705}
31706
31707
31708SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31709 PyObject *resultobj = 0;
31710 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31711 long arg2 ;
31712 wxColour result;
31713 void *argp1 = 0 ;
31714 int res1 = 0 ;
31715 long val2 ;
31716 int ecode2 = 0 ;
31717 PyObject * obj0 = 0 ;
31718 PyObject * obj1 = 0 ;
31719 char * kwnames[] = {
31720 (char *) "self",(char *) "item", NULL
31721 };
31722
31723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31725 if (!SWIG_IsOK(res1)) {
31726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31727 }
31728 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31729 ecode2 = SWIG_AsVal_long(obj1, &val2);
31730 if (!SWIG_IsOK(ecode2)) {
31731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31732 }
31733 arg2 = static_cast< long >(val2);
31734 {
31735 PyThreadState* __tstate = wxPyBeginAllowThreads();
31736 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31737 wxPyEndAllowThreads(__tstate);
31738 if (PyErr_Occurred()) SWIG_fail;
31739 }
31740 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31741 return resultobj;
31742fail:
31743 return NULL;
31744}
31745
31746
31747SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31748 PyObject *resultobj = 0;
31749 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31750 long arg2 ;
31751 wxColour *arg3 = 0 ;
31752 void *argp1 = 0 ;
31753 int res1 = 0 ;
31754 long val2 ;
31755 int ecode2 = 0 ;
31756 wxColour temp3 ;
31757 PyObject * obj0 = 0 ;
31758 PyObject * obj1 = 0 ;
31759 PyObject * obj2 = 0 ;
31760 char * kwnames[] = {
31761 (char *) "self",(char *) "item",(char *) "col", NULL
31762 };
31763
31764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31766 if (!SWIG_IsOK(res1)) {
31767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31768 }
31769 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31770 ecode2 = SWIG_AsVal_long(obj1, &val2);
31771 if (!SWIG_IsOK(ecode2)) {
31772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31773 }
31774 arg2 = static_cast< long >(val2);
31775 {
31776 arg3 = &temp3;
31777 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31778 }
31779 {
31780 PyThreadState* __tstate = wxPyBeginAllowThreads();
31781 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31782 wxPyEndAllowThreads(__tstate);
31783 if (PyErr_Occurred()) SWIG_fail;
31784 }
31785 resultobj = SWIG_Py_Void();
31786 return resultobj;
31787fail:
31788 return NULL;
31789}
31790
31791
31792SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31793 PyObject *resultobj = 0;
31794 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31795 long arg2 ;
31796 wxColour result;
31797 void *argp1 = 0 ;
31798 int res1 = 0 ;
31799 long val2 ;
31800 int ecode2 = 0 ;
31801 PyObject * obj0 = 0 ;
31802 PyObject * obj1 = 0 ;
31803 char * kwnames[] = {
31804 (char *) "self",(char *) "item", NULL
31805 };
31806
31807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31809 if (!SWIG_IsOK(res1)) {
31810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31811 }
31812 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31813 ecode2 = SWIG_AsVal_long(obj1, &val2);
31814 if (!SWIG_IsOK(ecode2)) {
31815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31816 }
31817 arg2 = static_cast< long >(val2);
31818 {
31819 PyThreadState* __tstate = wxPyBeginAllowThreads();
31820 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31821 wxPyEndAllowThreads(__tstate);
31822 if (PyErr_Occurred()) SWIG_fail;
31823 }
31824 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31825 return resultobj;
31826fail:
31827 return NULL;
31828}
31829
31830
31831SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31832 PyObject *resultobj = 0;
31833 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31834 long arg2 ;
31835 wxFont *arg3 = 0 ;
31836 void *argp1 = 0 ;
31837 int res1 = 0 ;
31838 long val2 ;
31839 int ecode2 = 0 ;
31840 void *argp3 = 0 ;
31841 int res3 = 0 ;
31842 PyObject * obj0 = 0 ;
31843 PyObject * obj1 = 0 ;
31844 PyObject * obj2 = 0 ;
31845 char * kwnames[] = {
31846 (char *) "self",(char *) "item",(char *) "f", NULL
31847 };
31848
31849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31851 if (!SWIG_IsOK(res1)) {
31852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31853 }
31854 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31855 ecode2 = SWIG_AsVal_long(obj1, &val2);
31856 if (!SWIG_IsOK(ecode2)) {
31857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31858 }
31859 arg2 = static_cast< long >(val2);
31860 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31861 if (!SWIG_IsOK(res3)) {
31862 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31863 }
31864 if (!argp3) {
31865 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31866 }
31867 arg3 = reinterpret_cast< wxFont * >(argp3);
31868 {
31869 PyThreadState* __tstate = wxPyBeginAllowThreads();
31870 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31871 wxPyEndAllowThreads(__tstate);
31872 if (PyErr_Occurred()) SWIG_fail;
31873 }
31874 resultobj = SWIG_Py_Void();
31875 return resultobj;
31876fail:
31877 return NULL;
31878}
31879
31880
31881SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31882 PyObject *resultobj = 0;
31883 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31884 long arg2 ;
31885 wxFont result;
31886 void *argp1 = 0 ;
31887 int res1 = 0 ;
31888 long val2 ;
31889 int ecode2 = 0 ;
31890 PyObject * obj0 = 0 ;
31891 PyObject * obj1 = 0 ;
31892 char * kwnames[] = {
31893 (char *) "self",(char *) "item", NULL
31894 };
31895
31896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31898 if (!SWIG_IsOK(res1)) {
31899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31900 }
31901 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31902 ecode2 = SWIG_AsVal_long(obj1, &val2);
31903 if (!SWIG_IsOK(ecode2)) {
31904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31905 }
31906 arg2 = static_cast< long >(val2);
31907 {
31908 PyThreadState* __tstate = wxPyBeginAllowThreads();
31909 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31910 wxPyEndAllowThreads(__tstate);
31911 if (PyErr_Occurred()) SWIG_fail;
31912 }
31913 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31914 return resultobj;
31915fail:
31916 return NULL;
31917}
31918
31919
31920SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31921 PyObject *resultobj = 0;
31922 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31923 PyObject *arg2 = (PyObject *) 0 ;
31924 bool result;
31925 void *argp1 = 0 ;
31926 int res1 = 0 ;
31927 PyObject * obj0 = 0 ;
31928 PyObject * obj1 = 0 ;
31929 char * kwnames[] = {
31930 (char *) "self",(char *) "func", NULL
31931 };
31932
31933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31935 if (!SWIG_IsOK(res1)) {
31936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31937 }
31938 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31939 arg2 = obj1;
31940 {
31941 PyThreadState* __tstate = wxPyBeginAllowThreads();
31942 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31943 wxPyEndAllowThreads(__tstate);
31944 if (PyErr_Occurred()) SWIG_fail;
31945 }
31946 {
31947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31948 }
31949 return resultobj;
31950fail:
31951 return NULL;
b411df4a
RD
31952}
31953
31954
1bd55598
RD
31955SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31956 PyObject *resultobj = 0;
31957 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31958 wxWindow *result = 0 ;
31959 void *argp1 = 0 ;
31960 int res1 = 0 ;
31961 PyObject *swig_obj[1] ;
31962
31963 if (!args) SWIG_fail;
31964 swig_obj[0] = args;
31965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31966 if (!SWIG_IsOK(res1)) {
31967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31968 }
31969 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31970 {
31971 PyThreadState* __tstate = wxPyBeginAllowThreads();
31972 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31973 wxPyEndAllowThreads(__tstate);
31974 if (PyErr_Occurred()) SWIG_fail;
31975 }
31976 {
31977 resultobj = wxPyMake_wxObject(result, 0);
31978 }
31979 return resultobj;
31980fail:
31981 return NULL;
7993762b
RD
31982}
31983
31984
1bd55598
RD
31985SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31986 PyObject *resultobj = 0;
31987 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31988 SwigValueWrapper<wxVisualAttributes > result;
31989 int val1 ;
31990 int ecode1 = 0 ;
31991 PyObject * obj0 = 0 ;
31992 char * kwnames[] = {
31993 (char *) "variant", NULL
31994 };
31995
31996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31997 if (obj0) {
31998 ecode1 = SWIG_AsVal_int(obj0, &val1);
31999 if (!SWIG_IsOK(ecode1)) {
32000 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
32001 }
32002 arg1 = static_cast< wxWindowVariant >(val1);
32003 }
32004 {
32005 if (!wxPyCheckForApp()) SWIG_fail;
32006 PyThreadState* __tstate = wxPyBeginAllowThreads();
32007 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
32008 wxPyEndAllowThreads(__tstate);
32009 if (PyErr_Occurred()) SWIG_fail;
32010 }
32011 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
32012 return resultobj;
32013fail:
32014 return NULL;
32015}
32016
32017
32018SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32019 PyObject *obj;
32020 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32021 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
32022 return SWIG_Py_Void();
32023}
32024
32025SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32026 return SWIG_Python_InitShadowInstance(args);
32027}
32028
32029SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32030 PyObject *resultobj = 0;
32031 wxWindow *arg1 = (wxWindow *) 0 ;
32032 int arg2 = (int) -1 ;
32033 wxPoint const &arg3_defvalue = wxDefaultPosition ;
32034 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
32035 wxSize const &arg4_defvalue = wxDefaultSize ;
32036 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
32037 long arg5 = (long) wxLC_REPORT ;
32038 wxValidator const &arg6_defvalue = wxDefaultValidator ;
32039 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
32040 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
32041 wxString *arg7 = (wxString *) &arg7_defvalue ;
32042 wxListView *result = 0 ;
32043 void *argp1 = 0 ;
32044 int res1 = 0 ;
32045 int val2 ;
32046 int ecode2 = 0 ;
32047 wxPoint temp3 ;
32048 wxSize temp4 ;
32049 long val5 ;
32050 int ecode5 = 0 ;
32051 void *argp6 = 0 ;
32052 int res6 = 0 ;
32053 bool temp7 = false ;
32054 PyObject * obj0 = 0 ;
32055 PyObject * obj1 = 0 ;
32056 PyObject * obj2 = 0 ;
32057 PyObject * obj3 = 0 ;
32058 PyObject * obj4 = 0 ;
32059 PyObject * obj5 = 0 ;
32060 PyObject * obj6 = 0 ;
32061 char * kwnames[] = {
32062 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32063 };
32064
32065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
32067 if (!SWIG_IsOK(res1)) {
32068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
32069 }
32070 arg1 = reinterpret_cast< wxWindow * >(argp1);
32071 if (obj1) {
32072 ecode2 = SWIG_AsVal_int(obj1, &val2);
32073 if (!SWIG_IsOK(ecode2)) {
32074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
32075 }
32076 arg2 = static_cast< int >(val2);
32077 }
32078 if (obj2) {
b411df4a 32079 {
1bd55598
RD
32080 arg3 = &temp3;
32081 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
b411df4a 32082 }
1bd55598
RD
32083 }
32084 if (obj3) {
32085 {
32086 arg4 = &temp4;
32087 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
b411df4a 32088 }
1bd55598
RD
32089 }
32090 if (obj4) {
32091 ecode5 = SWIG_AsVal_long(obj4, &val5);
32092 if (!SWIG_IsOK(ecode5)) {
32093 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
32094 }
32095 arg5 = static_cast< long >(val5);
32096 }
32097 if (obj5) {
32098 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
32099 if (!SWIG_IsOK(res6)) {
32100 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 32101 }
1bd55598
RD
32102 if (!argp6) {
32103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 32104 }
1bd55598
RD
32105 arg6 = reinterpret_cast< wxValidator * >(argp6);
32106 }
32107 if (obj6) {
b411df4a 32108 {
1bd55598
RD
32109 arg7 = wxString_in_helper(obj6);
32110 if (arg7 == NULL) SWIG_fail;
32111 temp7 = true;
b411df4a 32112 }
1bd55598
RD
32113 }
32114 {
32115 if (!wxPyCheckForApp()) SWIG_fail;
32116 PyThreadState* __tstate = wxPyBeginAllowThreads();
32117 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
32118 wxPyEndAllowThreads(__tstate);
32119 if (PyErr_Occurred()) SWIG_fail;
32120 }
32121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
32122 {
32123 if (temp7)
32124 delete arg7;
32125 }
32126 return resultobj;
32127fail:
32128 {
32129 if (temp7)
32130 delete arg7;
32131 }
32132 return NULL;
b411df4a
RD
32133}
32134
32135
1bd55598
RD
32136SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32137 PyObject *resultobj = 0;
32138 wxListView *result = 0 ;
32139
32140 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
32141 {
32142 if (!wxPyCheckForApp()) SWIG_fail;
32143 PyThreadState* __tstate = wxPyBeginAllowThreads();
32144 result = (wxListView *)new wxListView();
32145 wxPyEndAllowThreads(__tstate);
32146 if (PyErr_Occurred()) SWIG_fail;
32147 }
32148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
32149 return resultobj;
32150fail:
32151 return NULL;
32152}
32153
32154
32155SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32156 PyObject *resultobj = 0;
32157 wxListView *arg1 = (wxListView *) 0 ;
32158 wxWindow *arg2 = (wxWindow *) 0 ;
32159 int arg3 = (int) -1 ;
32160 wxPoint const &arg4_defvalue = wxDefaultPosition ;
32161 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
32162 wxSize const &arg5_defvalue = wxDefaultSize ;
32163 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
32164 long arg6 = (long) wxLC_REPORT ;
32165 wxValidator const &arg7_defvalue = wxDefaultValidator ;
32166 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
32167 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
32168 wxString *arg8 = (wxString *) &arg8_defvalue ;
32169 bool result;
32170 void *argp1 = 0 ;
32171 int res1 = 0 ;
32172 void *argp2 = 0 ;
32173 int res2 = 0 ;
32174 int val3 ;
32175 int ecode3 = 0 ;
32176 wxPoint temp4 ;
32177 wxSize temp5 ;
32178 long val6 ;
32179 int ecode6 = 0 ;
32180 void *argp7 = 0 ;
32181 int res7 = 0 ;
32182 bool temp8 = false ;
32183 PyObject * obj0 = 0 ;
32184 PyObject * obj1 = 0 ;
32185 PyObject * obj2 = 0 ;
32186 PyObject * obj3 = 0 ;
32187 PyObject * obj4 = 0 ;
32188 PyObject * obj5 = 0 ;
32189 PyObject * obj6 = 0 ;
32190 PyObject * obj7 = 0 ;
32191 char * kwnames[] = {
32192 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
32193 };
32194
32195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
32196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32197 if (!SWIG_IsOK(res1)) {
32198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
32199 }
32200 arg1 = reinterpret_cast< wxListView * >(argp1);
32201 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
32202 if (!SWIG_IsOK(res2)) {
32203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
32204 }
32205 arg2 = reinterpret_cast< wxWindow * >(argp2);
32206 if (obj2) {
32207 ecode3 = SWIG_AsVal_int(obj2, &val3);
32208 if (!SWIG_IsOK(ecode3)) {
32209 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
32210 }
32211 arg3 = static_cast< int >(val3);
32212 }
32213 if (obj3) {
d55e5bfc 32214 {
1bd55598
RD
32215 arg4 = &temp4;
32216 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 32217 }
1bd55598
RD
32218 }
32219 if (obj4) {
36ed4f51 32220 {
1bd55598
RD
32221 arg5 = &temp5;
32222 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 32223 }
1bd55598
RD
32224 }
32225 if (obj5) {
32226 ecode6 = SWIG_AsVal_long(obj5, &val6);
32227 if (!SWIG_IsOK(ecode6)) {
32228 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
32229 }
32230 arg6 = static_cast< long >(val6);
32231 }
32232 if (obj6) {
32233 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
32234 if (!SWIG_IsOK(res7)) {
32235 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 32236 }
1bd55598
RD
32237 if (!argp7) {
32238 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
32239 }
32240 arg7 = reinterpret_cast< wxValidator * >(argp7);
32241 }
32242 if (obj7) {
d55e5bfc 32243 {
1bd55598
RD
32244 arg8 = wxString_in_helper(obj7);
32245 if (arg8 == NULL) SWIG_fail;
32246 temp8 = true;
d55e5bfc 32247 }
1bd55598
RD
32248 }
32249 {
32250 PyThreadState* __tstate = wxPyBeginAllowThreads();
32251 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
32252 wxPyEndAllowThreads(__tstate);
32253 if (PyErr_Occurred()) SWIG_fail;
32254 }
32255 {
32256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32257 }
32258 {
32259 if (temp8)
32260 delete arg8;
32261 }
32262 return resultobj;
32263fail:
32264 {
32265 if (temp8)
32266 delete arg8;
32267 }
32268 return NULL;
32269}
32270
32271
32272SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32273 PyObject *resultobj = 0;
32274 wxListView *arg1 = (wxListView *) 0 ;
32275 long arg2 ;
32276 bool arg3 = (bool) true ;
32277 void *argp1 = 0 ;
32278 int res1 = 0 ;
32279 long val2 ;
32280 int ecode2 = 0 ;
32281 bool val3 ;
32282 int ecode3 = 0 ;
32283 PyObject * obj0 = 0 ;
32284 PyObject * obj1 = 0 ;
32285 PyObject * obj2 = 0 ;
32286 char * kwnames[] = {
32287 (char *) "self",(char *) "n",(char *) "on", NULL
32288 };
32289
32290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32292 if (!SWIG_IsOK(res1)) {
32293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32294 }
32295 arg1 = reinterpret_cast< wxListView * >(argp1);
32296 ecode2 = SWIG_AsVal_long(obj1, &val2);
32297 if (!SWIG_IsOK(ecode2)) {
32298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32299 }
32300 arg2 = static_cast< long >(val2);
32301 if (obj2) {
32302 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32303 if (!SWIG_IsOK(ecode3)) {
32304 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32305 }
32306 arg3 = static_cast< bool >(val3);
32307 }
32308 {
32309 PyThreadState* __tstate = wxPyBeginAllowThreads();
32310 (arg1)->Select(arg2,arg3);
32311 wxPyEndAllowThreads(__tstate);
32312 if (PyErr_Occurred()) SWIG_fail;
32313 }
32314 resultobj = SWIG_Py_Void();
32315 return resultobj;
32316fail:
32317 return NULL;
32318}
32319
32320
32321SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32322 PyObject *resultobj = 0;
32323 wxListView *arg1 = (wxListView *) 0 ;
32324 long arg2 ;
32325 void *argp1 = 0 ;
32326 int res1 = 0 ;
32327 long val2 ;
32328 int ecode2 = 0 ;
32329 PyObject * obj0 = 0 ;
32330 PyObject * obj1 = 0 ;
32331 char * kwnames[] = {
32332 (char *) "self",(char *) "index", NULL
32333 };
32334
32335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32337 if (!SWIG_IsOK(res1)) {
32338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32339 }
32340 arg1 = reinterpret_cast< wxListView * >(argp1);
32341 ecode2 = SWIG_AsVal_long(obj1, &val2);
32342 if (!SWIG_IsOK(ecode2)) {
32343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32344 }
32345 arg2 = static_cast< long >(val2);
32346 {
32347 PyThreadState* __tstate = wxPyBeginAllowThreads();
32348 (arg1)->Focus(arg2);
32349 wxPyEndAllowThreads(__tstate);
32350 if (PyErr_Occurred()) SWIG_fail;
32351 }
32352 resultobj = SWIG_Py_Void();
32353 return resultobj;
32354fail:
32355 return NULL;
d55e5bfc
RD
32356}
32357
32358
1bd55598
RD
32359SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32360 PyObject *resultobj = 0;
32361 wxListView *arg1 = (wxListView *) 0 ;
32362 long result;
32363 void *argp1 = 0 ;
32364 int res1 = 0 ;
32365 PyObject *swig_obj[1] ;
32366
32367 if (!args) SWIG_fail;
32368 swig_obj[0] = args;
32369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32370 if (!SWIG_IsOK(res1)) {
32371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32372 }
32373 arg1 = reinterpret_cast< wxListView * >(argp1);
32374 {
32375 PyThreadState* __tstate = wxPyBeginAllowThreads();
32376 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32377 wxPyEndAllowThreads(__tstate);
32378 if (PyErr_Occurred()) SWIG_fail;
32379 }
32380 resultobj = SWIG_From_long(static_cast< long >(result));
32381 return resultobj;
32382fail:
32383 return NULL;
32384}
32385
32386
32387SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32388 PyObject *resultobj = 0;
32389 wxListView *arg1 = (wxListView *) 0 ;
32390 long arg2 ;
32391 long result;
32392 void *argp1 = 0 ;
32393 int res1 = 0 ;
32394 long val2 ;
32395 int ecode2 = 0 ;
32396 PyObject * obj0 = 0 ;
32397 PyObject * obj1 = 0 ;
32398 char * kwnames[] = {
32399 (char *) "self",(char *) "item", NULL
32400 };
32401
32402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32404 if (!SWIG_IsOK(res1)) {
32405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32406 }
32407 arg1 = reinterpret_cast< wxListView * >(argp1);
32408 ecode2 = SWIG_AsVal_long(obj1, &val2);
32409 if (!SWIG_IsOK(ecode2)) {
32410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32411 }
32412 arg2 = static_cast< long >(val2);
32413 {
32414 PyThreadState* __tstate = wxPyBeginAllowThreads();
32415 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32416 wxPyEndAllowThreads(__tstate);
32417 if (PyErr_Occurred()) SWIG_fail;
32418 }
32419 resultobj = SWIG_From_long(static_cast< long >(result));
32420 return resultobj;
32421fail:
32422 return NULL;
d55e5bfc
RD
32423}
32424
32425
1bd55598
RD
32426SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32427 PyObject *resultobj = 0;
32428 wxListView *arg1 = (wxListView *) 0 ;
32429 long result;
32430 void *argp1 = 0 ;
32431 int res1 = 0 ;
32432 PyObject *swig_obj[1] ;
32433
32434 if (!args) SWIG_fail;
32435 swig_obj[0] = args;
32436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32437 if (!SWIG_IsOK(res1)) {
32438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32439 }
32440 arg1 = reinterpret_cast< wxListView * >(argp1);
32441 {
32442 PyThreadState* __tstate = wxPyBeginAllowThreads();
32443 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32444 wxPyEndAllowThreads(__tstate);
32445 if (PyErr_Occurred()) SWIG_fail;
32446 }
32447 resultobj = SWIG_From_long(static_cast< long >(result));
32448 return resultobj;
32449fail:
32450 return NULL;
32451}
32452
32453
32454SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32455 PyObject *resultobj = 0;
32456 wxListView *arg1 = (wxListView *) 0 ;
32457 long arg2 ;
32458 bool result;
32459 void *argp1 = 0 ;
32460 int res1 = 0 ;
32461 long val2 ;
32462 int ecode2 = 0 ;
32463 PyObject * obj0 = 0 ;
32464 PyObject * obj1 = 0 ;
32465 char * kwnames[] = {
32466 (char *) "self",(char *) "index", NULL
32467 };
32468
32469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32471 if (!SWIG_IsOK(res1)) {
32472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32473 }
32474 arg1 = reinterpret_cast< wxListView * >(argp1);
32475 ecode2 = SWIG_AsVal_long(obj1, &val2);
32476 if (!SWIG_IsOK(ecode2)) {
32477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32478 }
32479 arg2 = static_cast< long >(val2);
32480 {
32481 PyThreadState* __tstate = wxPyBeginAllowThreads();
32482 result = (bool)(arg1)->IsSelected(arg2);
32483 wxPyEndAllowThreads(__tstate);
32484 if (PyErr_Occurred()) SWIG_fail;
32485 }
32486 {
32487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32488 }
32489 return resultobj;
32490fail:
32491 return NULL;
32492}
32493
32494
32495SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32496 PyObject *resultobj = 0;
32497 wxListView *arg1 = (wxListView *) 0 ;
32498 int arg2 ;
32499 int arg3 ;
32500 void *argp1 = 0 ;
32501 int res1 = 0 ;
32502 int val2 ;
32503 int ecode2 = 0 ;
32504 int val3 ;
32505 int ecode3 = 0 ;
32506 PyObject * obj0 = 0 ;
32507 PyObject * obj1 = 0 ;
32508 PyObject * obj2 = 0 ;
32509 char * kwnames[] = {
32510 (char *) "self",(char *) "col",(char *) "image", NULL
32511 };
32512
32513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32515 if (!SWIG_IsOK(res1)) {
32516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32517 }
32518 arg1 = reinterpret_cast< wxListView * >(argp1);
32519 ecode2 = SWIG_AsVal_int(obj1, &val2);
32520 if (!SWIG_IsOK(ecode2)) {
32521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32522 }
32523 arg2 = static_cast< int >(val2);
32524 ecode3 = SWIG_AsVal_int(obj2, &val3);
32525 if (!SWIG_IsOK(ecode3)) {
32526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32527 }
32528 arg3 = static_cast< int >(val3);
32529 {
32530 PyThreadState* __tstate = wxPyBeginAllowThreads();
32531 (arg1)->SetColumnImage(arg2,arg3);
32532 wxPyEndAllowThreads(__tstate);
32533 if (PyErr_Occurred()) SWIG_fail;
32534 }
32535 resultobj = SWIG_Py_Void();
32536 return resultobj;
32537fail:
32538 return NULL;
32539}
32540
32541
32542SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32543 PyObject *resultobj = 0;
32544 wxListView *arg1 = (wxListView *) 0 ;
32545 int arg2 ;
32546 void *argp1 = 0 ;
32547 int res1 = 0 ;
32548 int val2 ;
32549 int ecode2 = 0 ;
32550 PyObject * obj0 = 0 ;
32551 PyObject * obj1 = 0 ;
32552 char * kwnames[] = {
32553 (char *) "self",(char *) "col", NULL
32554 };
32555
32556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32558 if (!SWIG_IsOK(res1)) {
32559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32560 }
32561 arg1 = reinterpret_cast< wxListView * >(argp1);
32562 ecode2 = SWIG_AsVal_int(obj1, &val2);
32563 if (!SWIG_IsOK(ecode2)) {
32564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32565 }
32566 arg2 = static_cast< int >(val2);
32567 {
32568 PyThreadState* __tstate = wxPyBeginAllowThreads();
32569 (arg1)->ClearColumnImage(arg2);
32570 wxPyEndAllowThreads(__tstate);
32571 if (PyErr_Occurred()) SWIG_fail;
32572 }
32573 resultobj = SWIG_Py_Void();
32574 return resultobj;
32575fail:
32576 return NULL;
d55e5bfc
RD
32577}
32578
32579
1bd55598
RD
32580SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32581 PyObject *obj;
32582 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32583 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32584 return SWIG_Py_Void();
d55e5bfc
RD
32585}
32586
1bd55598
RD
32587SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32588 return SWIG_Python_InitShadowInstance(args);
32589}
d55e5bfc 32590
1bd55598
RD
32591SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32592 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32593 return 1;
d55e5bfc
RD
32594}
32595
32596
1bd55598
RD
32597SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32598 PyObject *pyobj = 0;
32599
32600 {
32601#if wxUSE_UNICODE
32602 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32603#else
32604 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32605#endif
32606 }
32607 return pyobj;
d55e5bfc
RD
32608}
32609
32610
1bd55598
RD
32611SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32612 PyObject *resultobj = 0;
32613 wxTreeItemId *result = 0 ;
32614
32615 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32616 {
32617 PyThreadState* __tstate = wxPyBeginAllowThreads();
32618 result = (wxTreeItemId *)new wxTreeItemId();
32619 wxPyEndAllowThreads(__tstate);
32620 if (PyErr_Occurred()) SWIG_fail;
32621 }
32622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32623 return resultobj;
32624fail:
32625 return NULL;
d55e5bfc
RD
32626}
32627
32628
1bd55598
RD
32629SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32630 PyObject *resultobj = 0;
32631 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32632 void *argp1 = 0 ;
32633 int res1 = 0 ;
32634 PyObject *swig_obj[1] ;
32635
32636 if (!args) SWIG_fail;
32637 swig_obj[0] = args;
32638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32639 if (!SWIG_IsOK(res1)) {
32640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32641 }
32642 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32643 {
32644 PyThreadState* __tstate = wxPyBeginAllowThreads();
32645 delete arg1;
d55e5bfc 32646
1bd55598
RD
32647 wxPyEndAllowThreads(__tstate);
32648 if (PyErr_Occurred()) SWIG_fail;
32649 }
32650 resultobj = SWIG_Py_Void();
32651 return resultobj;
32652fail:
32653 return NULL;
d55e5bfc
RD
32654}
32655
32656
1bd55598
RD
32657SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32658 PyObject *resultobj = 0;
32659 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32660 bool result;
32661 void *argp1 = 0 ;
32662 int res1 = 0 ;
32663 PyObject *swig_obj[1] ;
32664
32665 if (!args) SWIG_fail;
32666 swig_obj[0] = args;
32667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32668 if (!SWIG_IsOK(res1)) {
32669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32670 }
32671 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32672 {
32673 PyThreadState* __tstate = wxPyBeginAllowThreads();
32674 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32675 wxPyEndAllowThreads(__tstate);
32676 if (PyErr_Occurred()) SWIG_fail;
32677 }
32678 {
32679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32680 }
32681 return resultobj;
32682fail:
32683 return NULL;
32684}
32685
32686
32687SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32688 PyObject *resultobj = 0;
32689 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32690 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32691 bool result;
32692 void *argp1 = 0 ;
32693 int res1 = 0 ;
32694 void *argp2 = 0 ;
32695 int res2 = 0 ;
32696 PyObject * obj0 = 0 ;
32697 PyObject * obj1 = 0 ;
32698 char * kwnames[] = {
32699 (char *) "self",(char *) "other", NULL
32700 };
32701
32702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32704 if (!SWIG_IsOK(res1)) {
32705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32706 }
32707 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32708 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32709 if (!SWIG_IsOK(res2)) {
32710 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32711 }
32712 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32713 {
32714 PyThreadState* __tstate = wxPyBeginAllowThreads();
32715 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32716 wxPyEndAllowThreads(__tstate);
32717 if (PyErr_Occurred()) SWIG_fail;
32718 }
32719 {
32720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32721 }
32722 return resultobj;
32723fail:
32724 return NULL;
32725}
32726
32727
32728SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32729 PyObject *resultobj = 0;
32730 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32731 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32732 bool result;
32733 void *argp1 = 0 ;
32734 int res1 = 0 ;
32735 void *argp2 = 0 ;
32736 int res2 = 0 ;
32737 PyObject * obj0 = 0 ;
32738 PyObject * obj1 = 0 ;
32739 char * kwnames[] = {
32740 (char *) "self",(char *) "other", NULL
32741 };
32742
32743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32745 if (!SWIG_IsOK(res1)) {
32746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32747 }
32748 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32749 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32750 if (!SWIG_IsOK(res2)) {
32751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32752 }
32753 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32754 {
32755 PyThreadState* __tstate = wxPyBeginAllowThreads();
32756 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32757 wxPyEndAllowThreads(__tstate);
32758 if (PyErr_Occurred()) SWIG_fail;
32759 }
32760 {
32761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32762 }
32763 return resultobj;
32764fail:
32765 return NULL;
d55e5bfc
RD
32766}
32767
32768
1bd55598
RD
32769SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32770 PyObject *resultobj = 0;
32771 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32772 void *arg2 = (void *) 0 ;
32773 void *argp1 = 0 ;
32774 int res1 = 0 ;
32775 int res2 ;
32776 PyObject *swig_obj[2] ;
32777
32778 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32780 if (!SWIG_IsOK(res1)) {
32781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32782 }
32783 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32784 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32785 if (!SWIG_IsOK(res2)) {
32786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32787 }
32788 if (arg1) (arg1)->m_pItem = arg2;
32789
32790 resultobj = SWIG_Py_Void();
32791 return resultobj;
32792fail:
32793 return NULL;
d55e5bfc
RD
32794}
32795
32796
1bd55598
RD
32797SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32798 PyObject *resultobj = 0;
32799 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32800 void *result = 0 ;
32801 void *argp1 = 0 ;
32802 int res1 = 0 ;
32803 PyObject *swig_obj[1] ;
32804
32805 if (!args) SWIG_fail;
32806 swig_obj[0] = args;
32807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32808 if (!SWIG_IsOK(res1)) {
32809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32810 }
32811 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32812 result = (void *) ((arg1)->m_pItem);
32813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32814 return resultobj;
32815fail:
32816 return NULL;
d55e5bfc
RD
32817}
32818
32819
1bd55598
RD
32820SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32821 PyObject *obj;
32822 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32823 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32824 return SWIG_Py_Void();
d55e5bfc
RD
32825}
32826
1bd55598
RD
32827SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32828 return SWIG_Python_InitShadowInstance(args);
32829}
d55e5bfc 32830
1bd55598
RD
32831SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32832 PyObject *resultobj = 0;
32833 PyObject *arg1 = (PyObject *) NULL ;
32834 wxPyTreeItemData *result = 0 ;
32835 PyObject * obj0 = 0 ;
32836 char * kwnames[] = {
32837 (char *) "obj", NULL
32838 };
32839
32840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32841 if (obj0) {
32842 arg1 = obj0;
32843 }
32844 {
32845 PyThreadState* __tstate = wxPyBeginAllowThreads();
32846 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32847 wxPyEndAllowThreads(__tstate);
32848 if (PyErr_Occurred()) SWIG_fail;
32849 }
32850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32851 return resultobj;
32852fail:
32853 return NULL;
d55e5bfc
RD
32854}
32855
32856
1bd55598
RD
32857SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32858 PyObject *resultobj = 0;
32859 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32860 void *argp1 = 0 ;
32861 int res1 = 0 ;
32862 PyObject *swig_obj[1] ;
32863
32864 if (!args) SWIG_fail;
32865 swig_obj[0] = args;
32866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32867 if (!SWIG_IsOK(res1)) {
32868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32869 }
32870 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32871 {
32872 PyThreadState* __tstate = wxPyBeginAllowThreads();
32873 delete arg1;
d55e5bfc 32874
1bd55598
RD
32875 wxPyEndAllowThreads(__tstate);
32876 if (PyErr_Occurred()) SWIG_fail;
32877 }
32878 resultobj = SWIG_Py_Void();
32879 return resultobj;
32880fail:
32881 return NULL;
d55e5bfc
RD
32882}
32883
32884
1bd55598
RD
32885SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32886 PyObject *resultobj = 0;
32887 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32888 PyObject *result = 0 ;
32889 void *argp1 = 0 ;
32890 int res1 = 0 ;
32891 PyObject *swig_obj[1] ;
32892
32893 if (!args) SWIG_fail;
32894 swig_obj[0] = args;
32895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32896 if (!SWIG_IsOK(res1)) {
32897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32898 }
32899 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32900 {
32901 PyThreadState* __tstate = wxPyBeginAllowThreads();
32902 result = (PyObject *)(arg1)->GetData();
32903 wxPyEndAllowThreads(__tstate);
32904 if (PyErr_Occurred()) SWIG_fail;
32905 }
32906 resultobj = result;
32907 return resultobj;
32908fail:
32909 return NULL;
32910}
32911
32912
32913SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32914 PyObject *resultobj = 0;
32915 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32916 PyObject *arg2 = (PyObject *) 0 ;
32917 void *argp1 = 0 ;
32918 int res1 = 0 ;
32919 PyObject * obj0 = 0 ;
32920 PyObject * obj1 = 0 ;
32921 char * kwnames[] = {
32922 (char *) "self",(char *) "obj", NULL
32923 };
32924
32925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32927 if (!SWIG_IsOK(res1)) {
32928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32929 }
32930 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32931 arg2 = obj1;
32932 {
32933 PyThreadState* __tstate = wxPyBeginAllowThreads();
32934 (arg1)->SetData(arg2);
32935 wxPyEndAllowThreads(__tstate);
32936 if (PyErr_Occurred()) SWIG_fail;
32937 }
32938 resultobj = SWIG_Py_Void();
32939 return resultobj;
32940fail:
32941 return NULL;
d55e5bfc
RD
32942}
32943
32944
1bd55598
RD
32945SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32946 PyObject *resultobj = 0;
32947 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32948 wxTreeItemId *result = 0 ;
32949 void *argp1 = 0 ;
32950 int res1 = 0 ;
32951 PyObject *swig_obj[1] ;
32952
32953 if (!args) SWIG_fail;
32954 swig_obj[0] = args;
32955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32956 if (!SWIG_IsOK(res1)) {
32957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32958 }
32959 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32960 {
32961 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 32962 {
1bd55598
RD
32963 wxTreeItemId const &_result_ref = (arg1)->GetId();
32964 result = (wxTreeItemId *) &_result_ref;
d55e5bfc 32965 }
1bd55598
RD
32966 wxPyEndAllowThreads(__tstate);
32967 if (PyErr_Occurred()) SWIG_fail;
32968 }
32969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32970 return resultobj;
32971fail:
32972 return NULL;
32973}
32974
32975
32976SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32977 PyObject *resultobj = 0;
32978 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32979 wxTreeItemId *arg2 = 0 ;
32980 void *argp1 = 0 ;
32981 int res1 = 0 ;
32982 void *argp2 = 0 ;
32983 int res2 = 0 ;
32984 PyObject * obj0 = 0 ;
32985 PyObject * obj1 = 0 ;
32986 char * kwnames[] = {
32987 (char *) "self",(char *) "id", NULL
32988 };
32989
32990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32992 if (!SWIG_IsOK(res1)) {
32993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32994 }
32995 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32996 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32997 if (!SWIG_IsOK(res2)) {
32998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32999 }
33000 if (!argp2) {
33001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33002 }
33003 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33004 {
33005 PyThreadState* __tstate = wxPyBeginAllowThreads();
33006 (arg1)->SetId((wxTreeItemId const &)*arg2);
33007 wxPyEndAllowThreads(__tstate);
33008 if (PyErr_Occurred()) SWIG_fail;
33009 }
33010 resultobj = SWIG_Py_Void();
33011 return resultobj;
33012fail:
33013 return NULL;
d55e5bfc
RD
33014}
33015
33016
1bd55598
RD
33017SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33018 PyObject *resultobj = 0;
33019 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
33020 void *argp1 = 0 ;
33021 int res1 = 0 ;
33022 PyObject *swig_obj[1] ;
33023
33024 if (!args) SWIG_fail;
33025 swig_obj[0] = args;
33026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
33027 if (!SWIG_IsOK(res1)) {
33028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
33029 }
33030 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
33031 {
33032 PyThreadState* __tstate = wxPyBeginAllowThreads();
33033 wxPyTreeItemData_Destroy(arg1);
33034 wxPyEndAllowThreads(__tstate);
33035 if (PyErr_Occurred()) SWIG_fail;
33036 }
33037 resultobj = SWIG_Py_Void();
33038 return resultobj;
33039fail:
33040 return NULL;
d55e5bfc
RD
33041}
33042
33043
1bd55598
RD
33044SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33045 PyObject *obj;
33046 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33047 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
33048 return SWIG_Py_Void();
d55e5bfc
RD
33049}
33050
1bd55598
RD
33051SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33052 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
33053}
33054
b02396e8
RD
33055SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
33056 {
33057 void *argp = 0;
33058 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33059 if (!SWIG_IsOK(res)) {
33060 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33061 }
33062 if (!argp) {
33063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
33064 } else {
33065 wxTreeItemId * temp;
33066 temp = reinterpret_cast< wxTreeItemId * >(argp);
33067 wxNullTreeItemId = *temp;
33068 if (SWIG_IsNewObj(res)) delete temp;
33069 }
33070 }
33071 return 0;
33072fail:
33073 return 1;
33074}
33075
33076
33077SWIGINTERN PyObject *NullTreeItemId_get(void) {
33078 PyObject *pyobj = 0;
33079
33080 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
33081 return pyobj;
33082}
33083
33084
33085SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
33086 PyObject *resultobj = 0;
33087 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
33088 int arg2 = (int) 0 ;
33089 wxTreeEvent *result = 0 ;
33090 int val1 ;
33091 int ecode1 = 0 ;
33092 int val2 ;
33093 int ecode2 = 0 ;
1bd55598 33094
b02396e8
RD
33095 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
33096 if (swig_obj[0]) {
33097 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
1bd55598
RD
33098 if (!SWIG_IsOK(ecode1)) {
33099 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33100 }
33101 arg1 = static_cast< wxEventType >(val1);
33102 }
b02396e8
RD
33103 if (swig_obj[1]) {
33104 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
1bd55598
RD
33105 if (!SWIG_IsOK(ecode2)) {
33106 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
33107 }
33108 arg2 = static_cast< int >(val2);
33109 }
33110 {
33111 PyThreadState* __tstate = wxPyBeginAllowThreads();
33112 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
33113 wxPyEndAllowThreads(__tstate);
33114 if (PyErr_Occurred()) SWIG_fail;
33115 }
33116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33117 return resultobj;
33118fail:
33119 return NULL;
d55e5bfc
RD
33120}
33121
33122
b02396e8
RD
33123SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
33124 PyObject *resultobj = 0;
33125 wxEventType arg1 ;
33126 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
33127 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
33128 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
33129 wxTreeEvent *result = 0 ;
33130 int val1 ;
33131 int ecode1 = 0 ;
33132 void *argp2 = 0 ;
33133 int res2 = 0 ;
33134 void *argp3 = 0 ;
33135 int res3 = 0 ;
33136
33137 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
33138 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
33139 if (!SWIG_IsOK(ecode1)) {
33140 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
33141 }
33142 arg1 = static_cast< wxEventType >(val1);
33143 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33144 if (!SWIG_IsOK(res2)) {
33145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
33146 }
33147 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
33148 if (swig_obj[2]) {
33149 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
33150 if (!SWIG_IsOK(res3)) {
33151 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33152 }
33153 if (!argp3) {
33154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
33155 }
33156 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
33157 }
33158 {
33159 PyThreadState* __tstate = wxPyBeginAllowThreads();
33160 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
33161 wxPyEndAllowThreads(__tstate);
33162 if (PyErr_Occurred()) SWIG_fail;
33163 }
33164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
33165 return resultobj;
33166fail:
33167 return NULL;
33168}
33169
33170
33171SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
33172 int argc;
33173 PyObject *argv[4];
33174
33175 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
33176 --argc;
33177 if ((argc >= 0) && (argc <= 2)) {
33178 int _v = 0;
33179 if (argc > 1) {
33180 {
33181 {
33182 int res = SWIG_AsVal_int(argv[1], NULL);
33183 _v = SWIG_CheckState(res);
33184 }
33185 }
33186 if (!_v) goto check_1;
33187 }
33188 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
33189 }
33190check_1:
33191
33192 if ((argc >= 2) && (argc <= 3)) {
33193 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
33194 }
33195
33196fail:
33197 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
33198 return NULL;
33199}
33200
33201
1bd55598
RD
33202SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33203 PyObject *resultobj = 0;
33204 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33205 wxTreeItemId result;
33206 void *argp1 = 0 ;
33207 int res1 = 0 ;
33208 PyObject *swig_obj[1] ;
33209
33210 if (!args) SWIG_fail;
33211 swig_obj[0] = args;
33212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33213 if (!SWIG_IsOK(res1)) {
33214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33215 }
33216 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33217 {
33218 PyThreadState* __tstate = wxPyBeginAllowThreads();
33219 result = ((wxTreeEvent const *)arg1)->GetItem();
33220 wxPyEndAllowThreads(__tstate);
33221 if (PyErr_Occurred()) SWIG_fail;
33222 }
33223 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33224 return resultobj;
33225fail:
33226 return NULL;
33227}
33228
33229
33230SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33231 PyObject *resultobj = 0;
33232 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33233 wxTreeItemId *arg2 = 0 ;
33234 void *argp1 = 0 ;
33235 int res1 = 0 ;
33236 void *argp2 = 0 ;
33237 int res2 = 0 ;
33238 PyObject * obj0 = 0 ;
33239 PyObject * obj1 = 0 ;
33240 char * kwnames[] = {
33241 (char *) "self",(char *) "item", NULL
33242 };
33243
33244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
33245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33246 if (!SWIG_IsOK(res1)) {
33247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33248 }
33249 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33250 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33251 if (!SWIG_IsOK(res2)) {
33252 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33253 }
33254 if (!argp2) {
33255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33256 }
33257 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33258 {
33259 PyThreadState* __tstate = wxPyBeginAllowThreads();
33260 (arg1)->SetItem((wxTreeItemId const &)*arg2);
33261 wxPyEndAllowThreads(__tstate);
33262 if (PyErr_Occurred()) SWIG_fail;
33263 }
33264 resultobj = SWIG_Py_Void();
33265 return resultobj;
33266fail:
33267 return NULL;
d55e5bfc
RD
33268}
33269
33270
1bd55598
RD
33271SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33272 PyObject *resultobj = 0;
33273 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33274 wxTreeItemId result;
33275 void *argp1 = 0 ;
33276 int res1 = 0 ;
33277 PyObject *swig_obj[1] ;
33278
33279 if (!args) SWIG_fail;
33280 swig_obj[0] = args;
33281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33282 if (!SWIG_IsOK(res1)) {
33283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33284 }
33285 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33286 {
33287 PyThreadState* __tstate = wxPyBeginAllowThreads();
33288 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33289 wxPyEndAllowThreads(__tstate);
33290 if (PyErr_Occurred()) SWIG_fail;
33291 }
33292 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33293 return resultobj;
33294fail:
33295 return NULL;
33296}
33297
33298
33299SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33300 PyObject *resultobj = 0;
33301 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33302 wxTreeItemId *arg2 = 0 ;
33303 void *argp1 = 0 ;
33304 int res1 = 0 ;
33305 void *argp2 = 0 ;
33306 int res2 = 0 ;
33307 PyObject * obj0 = 0 ;
33308 PyObject * obj1 = 0 ;
33309 char * kwnames[] = {
33310 (char *) "self",(char *) "item", NULL
33311 };
33312
33313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33315 if (!SWIG_IsOK(res1)) {
33316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33317 }
33318 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33319 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33320 if (!SWIG_IsOK(res2)) {
33321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33322 }
33323 if (!argp2) {
33324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33325 }
33326 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33327 {
33328 PyThreadState* __tstate = wxPyBeginAllowThreads();
33329 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33330 wxPyEndAllowThreads(__tstate);
33331 if (PyErr_Occurred()) SWIG_fail;
33332 }
33333 resultobj = SWIG_Py_Void();
33334 return resultobj;
33335fail:
33336 return NULL;
d55e5bfc
RD
33337}
33338
33339
1bd55598
RD
33340SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33341 PyObject *resultobj = 0;
33342 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33343 wxPoint result;
33344 void *argp1 = 0 ;
33345 int res1 = 0 ;
33346 PyObject *swig_obj[1] ;
33347
33348 if (!args) SWIG_fail;
33349 swig_obj[0] = args;
33350 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33351 if (!SWIG_IsOK(res1)) {
33352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33353 }
33354 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33355 {
33356 PyThreadState* __tstate = wxPyBeginAllowThreads();
33357 result = ((wxTreeEvent const *)arg1)->GetPoint();
33358 wxPyEndAllowThreads(__tstate);
33359 if (PyErr_Occurred()) SWIG_fail;
33360 }
33361 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33362 return resultobj;
33363fail:
33364 return NULL;
33365}
33366
33367
33368SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33369 PyObject *resultobj = 0;
33370 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33371 wxPoint *arg2 = 0 ;
33372 void *argp1 = 0 ;
33373 int res1 = 0 ;
33374 wxPoint temp2 ;
33375 PyObject * obj0 = 0 ;
33376 PyObject * obj1 = 0 ;
33377 char * kwnames[] = {
33378 (char *) "self",(char *) "pt", NULL
33379 };
33380
33381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33383 if (!SWIG_IsOK(res1)) {
33384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33385 }
33386 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33387 {
33388 arg2 = &temp2;
33389 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33390 }
33391 {
33392 PyThreadState* __tstate = wxPyBeginAllowThreads();
33393 (arg1)->SetPoint((wxPoint const &)*arg2);
33394 wxPyEndAllowThreads(__tstate);
33395 if (PyErr_Occurred()) SWIG_fail;
33396 }
33397 resultobj = SWIG_Py_Void();
33398 return resultobj;
33399fail:
33400 return NULL;
d55e5bfc
RD
33401}
33402
33403
1bd55598
RD
33404SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33405 PyObject *resultobj = 0;
33406 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33407 wxKeyEvent *result = 0 ;
33408 void *argp1 = 0 ;
33409 int res1 = 0 ;
33410 PyObject *swig_obj[1] ;
33411
33412 if (!args) SWIG_fail;
33413 swig_obj[0] = args;
33414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33415 if (!SWIG_IsOK(res1)) {
33416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33417 }
33418 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33419 {
33420 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33421 {
1bd55598
RD
33422 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33423 result = (wxKeyEvent *) &_result_ref;
d55e5bfc 33424 }
1bd55598
RD
33425 wxPyEndAllowThreads(__tstate);
33426 if (PyErr_Occurred()) SWIG_fail;
33427 }
33428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33429 return resultobj;
33430fail:
33431 return NULL;
d55e5bfc
RD
33432}
33433
33434
1bd55598
RD
33435SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33436 PyObject *resultobj = 0;
33437 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33438 int result;
33439 void *argp1 = 0 ;
33440 int res1 = 0 ;
33441 PyObject *swig_obj[1] ;
33442
33443 if (!args) SWIG_fail;
33444 swig_obj[0] = args;
33445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33446 if (!SWIG_IsOK(res1)) {
33447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33448 }
33449 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33450 {
33451 PyThreadState* __tstate = wxPyBeginAllowThreads();
33452 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33453 wxPyEndAllowThreads(__tstate);
33454 if (PyErr_Occurred()) SWIG_fail;
33455 }
33456 resultobj = SWIG_From_int(static_cast< int >(result));
33457 return resultobj;
33458fail:
33459 return NULL;
33460}
33461
33462
33463SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33464 PyObject *resultobj = 0;
33465 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33466 wxKeyEvent *arg2 = 0 ;
33467 void *argp1 = 0 ;
33468 int res1 = 0 ;
33469 void *argp2 = 0 ;
33470 int res2 = 0 ;
33471 PyObject * obj0 = 0 ;
33472 PyObject * obj1 = 0 ;
33473 char * kwnames[] = {
33474 (char *) "self",(char *) "evt", NULL
33475 };
33476
33477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33479 if (!SWIG_IsOK(res1)) {
33480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33481 }
33482 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33483 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33484 if (!SWIG_IsOK(res2)) {
33485 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33486 }
33487 if (!argp2) {
33488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33489 }
33490 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33491 {
33492 PyThreadState* __tstate = wxPyBeginAllowThreads();
33493 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33494 wxPyEndAllowThreads(__tstate);
33495 if (PyErr_Occurred()) SWIG_fail;
33496 }
33497 resultobj = SWIG_Py_Void();
33498 return resultobj;
33499fail:
33500 return NULL;
d55e5bfc
RD
33501}
33502
33503
1bd55598
RD
33504SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33505 PyObject *resultobj = 0;
33506 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33507 wxString *result = 0 ;
33508 void *argp1 = 0 ;
33509 int res1 = 0 ;
33510 PyObject *swig_obj[1] ;
33511
33512 if (!args) SWIG_fail;
33513 swig_obj[0] = args;
33514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33515 if (!SWIG_IsOK(res1)) {
33516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33517 }
33518 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33519 {
33520 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33521 {
1bd55598
RD
33522 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33523 result = (wxString *) &_result_ref;
d55e5bfc 33524 }
1bd55598
RD
33525 wxPyEndAllowThreads(__tstate);
33526 if (PyErr_Occurred()) SWIG_fail;
33527 }
33528 {
33529#if wxUSE_UNICODE
33530 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33531#else
33532 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33533#endif
33534 }
33535 return resultobj;
33536fail:
33537 return NULL;
33538}
33539
33540
33541SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33542 PyObject *resultobj = 0;
33543 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33544 wxString *arg2 = 0 ;
33545 void *argp1 = 0 ;
33546 int res1 = 0 ;
33547 bool temp2 = false ;
33548 PyObject * obj0 = 0 ;
33549 PyObject * obj1 = 0 ;
33550 char * kwnames[] = {
33551 (char *) "self",(char *) "label", NULL
33552 };
33553
33554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33556 if (!SWIG_IsOK(res1)) {
33557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33558 }
33559 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33560 {
33561 arg2 = wxString_in_helper(obj1);
33562 if (arg2 == NULL) SWIG_fail;
33563 temp2 = true;
33564 }
33565 {
33566 PyThreadState* __tstate = wxPyBeginAllowThreads();
33567 (arg1)->SetLabel((wxString const &)*arg2);
33568 wxPyEndAllowThreads(__tstate);
33569 if (PyErr_Occurred()) SWIG_fail;
33570 }
33571 resultobj = SWIG_Py_Void();
33572 {
33573 if (temp2)
33574 delete arg2;
33575 }
33576 return resultobj;
33577fail:
33578 {
33579 if (temp2)
33580 delete arg2;
33581 }
33582 return NULL;
d55e5bfc
RD
33583}
33584
33585
1bd55598
RD
33586SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33587 PyObject *resultobj = 0;
33588 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33589 bool result;
33590 void *argp1 = 0 ;
33591 int res1 = 0 ;
33592 PyObject *swig_obj[1] ;
33593
33594 if (!args) SWIG_fail;
33595 swig_obj[0] = args;
33596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33597 if (!SWIG_IsOK(res1)) {
33598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33599 }
33600 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33601 {
33602 PyThreadState* __tstate = wxPyBeginAllowThreads();
33603 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33604 wxPyEndAllowThreads(__tstate);
33605 if (PyErr_Occurred()) SWIG_fail;
33606 }
33607 {
33608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33609 }
33610 return resultobj;
33611fail:
33612 return NULL;
33613}
33614
33615
33616SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33617 PyObject *resultobj = 0;
33618 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33619 bool arg2 ;
33620 void *argp1 = 0 ;
33621 int res1 = 0 ;
33622 bool val2 ;
33623 int ecode2 = 0 ;
33624 PyObject * obj0 = 0 ;
33625 PyObject * obj1 = 0 ;
33626 char * kwnames[] = {
33627 (char *) "self",(char *) "editCancelled", NULL
33628 };
33629
33630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33632 if (!SWIG_IsOK(res1)) {
33633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33634 }
33635 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33636 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33637 if (!SWIG_IsOK(ecode2)) {
33638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33639 }
33640 arg2 = static_cast< bool >(val2);
33641 {
33642 PyThreadState* __tstate = wxPyBeginAllowThreads();
33643 (arg1)->SetEditCanceled(arg2);
33644 wxPyEndAllowThreads(__tstate);
33645 if (PyErr_Occurred()) SWIG_fail;
33646 }
33647 resultobj = SWIG_Py_Void();
33648 return resultobj;
33649fail:
33650 return NULL;
33651}
33652
33653
33654SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33655 PyObject *resultobj = 0;
33656 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33657 wxString *arg2 = 0 ;
33658 void *argp1 = 0 ;
33659 int res1 = 0 ;
33660 bool temp2 = false ;
33661 PyObject * obj0 = 0 ;
33662 PyObject * obj1 = 0 ;
33663 char * kwnames[] = {
33664 (char *) "self",(char *) "toolTip", NULL
33665 };
33666
33667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33669 if (!SWIG_IsOK(res1)) {
33670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33671 }
33672 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33673 {
33674 arg2 = wxString_in_helper(obj1);
33675 if (arg2 == NULL) SWIG_fail;
33676 temp2 = true;
33677 }
33678 {
33679 PyThreadState* __tstate = wxPyBeginAllowThreads();
33680 (arg1)->SetToolTip((wxString const &)*arg2);
33681 wxPyEndAllowThreads(__tstate);
33682 if (PyErr_Occurred()) SWIG_fail;
33683 }
33684 resultobj = SWIG_Py_Void();
33685 {
33686 if (temp2)
33687 delete arg2;
33688 }
33689 return resultobj;
33690fail:
33691 {
33692 if (temp2)
33693 delete arg2;
33694 }
33695 return NULL;
d55e5bfc
RD
33696}
33697
33698
1bd55598
RD
33699SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33700 PyObject *resultobj = 0;
33701 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33702 wxString result;
33703 void *argp1 = 0 ;
33704 int res1 = 0 ;
33705 PyObject *swig_obj[1] ;
33706
33707 if (!args) SWIG_fail;
33708 swig_obj[0] = args;
33709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33710 if (!SWIG_IsOK(res1)) {
33711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33712 }
33713 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33714 {
33715 PyThreadState* __tstate = wxPyBeginAllowThreads();
33716 result = (arg1)->GetToolTip();
33717 wxPyEndAllowThreads(__tstate);
33718 if (PyErr_Occurred()) SWIG_fail;
33719 }
33720 {
33721#if wxUSE_UNICODE
33722 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33723#else
33724 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33725#endif
33726 }
33727 return resultobj;
33728fail:
33729 return NULL;
33730}
33731
33732
33733SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33734 PyObject *obj;
33735 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33736 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33737 return SWIG_Py_Void();
33738}
33739
33740SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33741 return SWIG_Python_InitShadowInstance(args);
33742}
33743
33744SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33745 PyObject *resultobj = 0;
33746 wxWindow *arg1 = (wxWindow *) 0 ;
33747 int arg2 = (int) -1 ;
33748 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33749 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33750 wxSize const &arg4_defvalue = wxDefaultSize ;
33751 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33752 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33753 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33754 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33755 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33756 wxString *arg7 = (wxString *) &arg7_defvalue ;
33757 wxPyTreeCtrl *result = 0 ;
33758 void *argp1 = 0 ;
33759 int res1 = 0 ;
33760 int val2 ;
33761 int ecode2 = 0 ;
33762 wxPoint temp3 ;
33763 wxSize temp4 ;
33764 long val5 ;
33765 int ecode5 = 0 ;
33766 void *argp6 = 0 ;
33767 int res6 = 0 ;
33768 bool temp7 = false ;
33769 PyObject * obj0 = 0 ;
33770 PyObject * obj1 = 0 ;
33771 PyObject * obj2 = 0 ;
33772 PyObject * obj3 = 0 ;
33773 PyObject * obj4 = 0 ;
33774 PyObject * obj5 = 0 ;
33775 PyObject * obj6 = 0 ;
33776 char * kwnames[] = {
33777 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33778 };
33779
33780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33782 if (!SWIG_IsOK(res1)) {
33783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33784 }
33785 arg1 = reinterpret_cast< wxWindow * >(argp1);
33786 if (obj1) {
33787 ecode2 = SWIG_AsVal_int(obj1, &val2);
33788 if (!SWIG_IsOK(ecode2)) {
33789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33790 }
33791 arg2 = static_cast< int >(val2);
33792 }
33793 if (obj2) {
d55e5bfc 33794 {
1bd55598
RD
33795 arg3 = &temp3;
33796 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 33797 }
1bd55598
RD
33798 }
33799 if (obj3) {
36ed4f51 33800 {
1bd55598
RD
33801 arg4 = &temp4;
33802 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33803 }
1bd55598
RD
33804 }
33805 if (obj4) {
33806 ecode5 = SWIG_AsVal_long(obj4, &val5);
33807 if (!SWIG_IsOK(ecode5)) {
33808 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33809 }
33810 arg5 = static_cast< long >(val5);
33811 }
33812 if (obj5) {
33813 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33814 if (!SWIG_IsOK(res6)) {
33815 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33816 }
1bd55598
RD
33817 if (!argp6) {
33818 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33819 }
1bd55598
RD
33820 arg6 = reinterpret_cast< wxValidator * >(argp6);
33821 }
33822 if (obj6) {
d55e5bfc 33823 {
1bd55598
RD
33824 arg7 = wxString_in_helper(obj6);
33825 if (arg7 == NULL) SWIG_fail;
33826 temp7 = true;
d55e5bfc 33827 }
1bd55598
RD
33828 }
33829 {
33830 if (!wxPyCheckForApp()) SWIG_fail;
33831 PyThreadState* __tstate = wxPyBeginAllowThreads();
33832 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33833 wxPyEndAllowThreads(__tstate);
33834 if (PyErr_Occurred()) SWIG_fail;
33835 }
33836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33837 {
33838 if (temp7)
33839 delete arg7;
33840 }
33841 return resultobj;
33842fail:
33843 {
33844 if (temp7)
33845 delete arg7;
33846 }
33847 return NULL;
33848}
33849
33850
33851SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33852 PyObject *resultobj = 0;
33853 wxPyTreeCtrl *result = 0 ;
33854
33855 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33856 {
33857 if (!wxPyCheckForApp()) SWIG_fail;
33858 PyThreadState* __tstate = wxPyBeginAllowThreads();
33859 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33860 wxPyEndAllowThreads(__tstate);
33861 if (PyErr_Occurred()) SWIG_fail;
33862 }
33863 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33864 return resultobj;
33865fail:
33866 return NULL;
33867}
33868
33869
33870SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33871 PyObject *resultobj = 0;
33872 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33873 wxWindow *arg2 = (wxWindow *) 0 ;
33874 int arg3 = (int) -1 ;
33875 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33876 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33877 wxSize const &arg5_defvalue = wxDefaultSize ;
33878 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33879 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33880 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33881 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33882 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33883 wxString *arg8 = (wxString *) &arg8_defvalue ;
33884 bool result;
33885 void *argp1 = 0 ;
33886 int res1 = 0 ;
33887 void *argp2 = 0 ;
33888 int res2 = 0 ;
33889 int val3 ;
33890 int ecode3 = 0 ;
33891 wxPoint temp4 ;
33892 wxSize temp5 ;
33893 long val6 ;
33894 int ecode6 = 0 ;
33895 void *argp7 = 0 ;
33896 int res7 = 0 ;
33897 bool temp8 = false ;
33898 PyObject * obj0 = 0 ;
33899 PyObject * obj1 = 0 ;
33900 PyObject * obj2 = 0 ;
33901 PyObject * obj3 = 0 ;
33902 PyObject * obj4 = 0 ;
33903 PyObject * obj5 = 0 ;
33904 PyObject * obj6 = 0 ;
33905 PyObject * obj7 = 0 ;
33906 char * kwnames[] = {
33907 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33908 };
33909
33910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33912 if (!SWIG_IsOK(res1)) {
33913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33914 }
33915 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33916 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33917 if (!SWIG_IsOK(res2)) {
33918 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33919 }
33920 arg2 = reinterpret_cast< wxWindow * >(argp2);
33921 if (obj2) {
33922 ecode3 = SWIG_AsVal_int(obj2, &val3);
33923 if (!SWIG_IsOK(ecode3)) {
33924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33925 }
33926 arg3 = static_cast< int >(val3);
33927 }
33928 if (obj3) {
d55e5bfc 33929 {
1bd55598
RD
33930 arg4 = &temp4;
33931 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33932 }
1bd55598
RD
33933 }
33934 if (obj4) {
d55e5bfc 33935 {
1bd55598
RD
33936 arg5 = &temp5;
33937 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 33938 }
1bd55598
RD
33939 }
33940 if (obj5) {
33941 ecode6 = SWIG_AsVal_long(obj5, &val6);
33942 if (!SWIG_IsOK(ecode6)) {
33943 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33944 }
33945 arg6 = static_cast< long >(val6);
33946 }
33947 if (obj6) {
33948 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33949 if (!SWIG_IsOK(res7)) {
33950 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33951 }
1bd55598
RD
33952 if (!argp7) {
33953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33954 }
1bd55598
RD
33955 arg7 = reinterpret_cast< wxValidator * >(argp7);
33956 }
33957 if (obj7) {
d55e5bfc 33958 {
1bd55598
RD
33959 arg8 = wxString_in_helper(obj7);
33960 if (arg8 == NULL) SWIG_fail;
33961 temp8 = true;
d55e5bfc 33962 }
1bd55598
RD
33963 }
33964 {
33965 PyThreadState* __tstate = wxPyBeginAllowThreads();
33966 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33967 wxPyEndAllowThreads(__tstate);
33968 if (PyErr_Occurred()) SWIG_fail;
33969 }
33970 {
33971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33972 }
33973 {
33974 if (temp8)
33975 delete arg8;
33976 }
33977 return resultobj;
33978fail:
33979 {
33980 if (temp8)
33981 delete arg8;
33982 }
33983 return NULL;
33984}
33985
33986
33987SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33988 PyObject *resultobj = 0;
33989 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33990 PyObject *arg2 = (PyObject *) 0 ;
33991 PyObject *arg3 = (PyObject *) 0 ;
33992 void *argp1 = 0 ;
33993 int res1 = 0 ;
33994 PyObject * obj0 = 0 ;
33995 PyObject * obj1 = 0 ;
33996 PyObject * obj2 = 0 ;
33997 char * kwnames[] = {
33998 (char *) "self",(char *) "self",(char *) "_class", NULL
33999 };
34000
34001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34003 if (!SWIG_IsOK(res1)) {
34004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34005 }
34006 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34007 arg2 = obj1;
34008 arg3 = obj2;
34009 {
34010 PyThreadState* __tstate = wxPyBeginAllowThreads();
34011 (arg1)->_setCallbackInfo(arg2,arg3);
34012 wxPyEndAllowThreads(__tstate);
34013 if (PyErr_Occurred()) SWIG_fail;
34014 }
34015 resultobj = SWIG_Py_Void();
34016 return resultobj;
34017fail:
34018 return NULL;
d55e5bfc
RD
34019}
34020
34021
1bd55598
RD
34022SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34023 PyObject *resultobj = 0;
34024 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 34025 unsigned int result;
1bd55598
RD
34026 void *argp1 = 0 ;
34027 int res1 = 0 ;
34028 PyObject *swig_obj[1] ;
34029
34030 if (!args) SWIG_fail;
34031 swig_obj[0] = args;
34032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34033 if (!SWIG_IsOK(res1)) {
34034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34035 }
34036 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34037 {
34038 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 34039 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
1bd55598
RD
34040 wxPyEndAllowThreads(__tstate);
34041 if (PyErr_Occurred()) SWIG_fail;
34042 }
e9d6f3a4 34043 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
34044 return resultobj;
34045fail:
34046 return NULL;
d55e5bfc
RD
34047}
34048
34049
1bd55598
RD
34050SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34051 PyObject *resultobj = 0;
34052 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34053 unsigned int result;
34054 void *argp1 = 0 ;
34055 int res1 = 0 ;
34056 PyObject *swig_obj[1] ;
34057
34058 if (!args) SWIG_fail;
34059 swig_obj[0] = args;
34060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34061 if (!SWIG_IsOK(res1)) {
34062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34063 }
34064 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34065 {
34066 PyThreadState* __tstate = wxPyBeginAllowThreads();
34067 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
34068 wxPyEndAllowThreads(__tstate);
34069 if (PyErr_Occurred()) SWIG_fail;
34070 }
34071 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34072 return resultobj;
34073fail:
34074 return NULL;
34075}
34076
34077
34078SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34079 PyObject *resultobj = 0;
34080 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34081 unsigned int arg2 ;
34082 void *argp1 = 0 ;
34083 int res1 = 0 ;
34084 unsigned int val2 ;
34085 int ecode2 = 0 ;
34086 PyObject * obj0 = 0 ;
34087 PyObject * obj1 = 0 ;
34088 char * kwnames[] = {
34089 (char *) "self",(char *) "indent", NULL
34090 };
34091
34092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
34093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34094 if (!SWIG_IsOK(res1)) {
34095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34096 }
34097 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34098 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34099 if (!SWIG_IsOK(ecode2)) {
34100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
34101 }
34102 arg2 = static_cast< unsigned int >(val2);
34103 {
34104 PyThreadState* __tstate = wxPyBeginAllowThreads();
34105 (arg1)->SetIndent(arg2);
34106 wxPyEndAllowThreads(__tstate);
34107 if (PyErr_Occurred()) SWIG_fail;
34108 }
34109 resultobj = SWIG_Py_Void();
34110 return resultobj;
34111fail:
34112 return NULL;
d55e5bfc
RD
34113}
34114
34115
1bd55598
RD
34116SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34117 PyObject *resultobj = 0;
34118 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34119 unsigned int result;
34120 void *argp1 = 0 ;
34121 int res1 = 0 ;
34122 PyObject *swig_obj[1] ;
34123
34124 if (!args) SWIG_fail;
34125 swig_obj[0] = args;
34126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34127 if (!SWIG_IsOK(res1)) {
34128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34129 }
34130 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34131 {
34132 PyThreadState* __tstate = wxPyBeginAllowThreads();
34133 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
34134 wxPyEndAllowThreads(__tstate);
34135 if (PyErr_Occurred()) SWIG_fail;
34136 }
34137 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
34138 return resultobj;
34139fail:
34140 return NULL;
34141}
34142
34143
34144SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34145 PyObject *resultobj = 0;
34146 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34147 unsigned int arg2 ;
34148 void *argp1 = 0 ;
34149 int res1 = 0 ;
34150 unsigned int val2 ;
34151 int ecode2 = 0 ;
34152 PyObject * obj0 = 0 ;
34153 PyObject * obj1 = 0 ;
34154 char * kwnames[] = {
34155 (char *) "self",(char *) "spacing", NULL
34156 };
34157
34158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
34159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34160 if (!SWIG_IsOK(res1)) {
34161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34162 }
34163 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34164 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
34165 if (!SWIG_IsOK(ecode2)) {
34166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
34167 }
34168 arg2 = static_cast< unsigned int >(val2);
34169 {
34170 PyThreadState* __tstate = wxPyBeginAllowThreads();
34171 (arg1)->SetSpacing(arg2);
34172 wxPyEndAllowThreads(__tstate);
34173 if (PyErr_Occurred()) SWIG_fail;
34174 }
34175 resultobj = SWIG_Py_Void();
34176 return resultobj;
34177fail:
34178 return NULL;
d55e5bfc
RD
34179}
34180
34181
1bd55598
RD
34182SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34183 PyObject *resultobj = 0;
34184 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34185 wxImageList *result = 0 ;
34186 void *argp1 = 0 ;
34187 int res1 = 0 ;
34188 PyObject *swig_obj[1] ;
34189
34190 if (!args) SWIG_fail;
34191 swig_obj[0] = args;
34192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34193 if (!SWIG_IsOK(res1)) {
34194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34195 }
34196 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34197 {
34198 PyThreadState* __tstate = wxPyBeginAllowThreads();
34199 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
34200 wxPyEndAllowThreads(__tstate);
34201 if (PyErr_Occurred()) SWIG_fail;
34202 }
3ecece7e
RD
34203 {
34204 resultobj = wxPyMake_wxObject(result, (bool)0);
34205 }
1bd55598
RD
34206 return resultobj;
34207fail:
34208 return NULL;
d55e5bfc
RD
34209}
34210
34211
1bd55598
RD
34212SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34213 PyObject *resultobj = 0;
34214 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34215 wxImageList *result = 0 ;
34216 void *argp1 = 0 ;
34217 int res1 = 0 ;
34218 PyObject *swig_obj[1] ;
34219
34220 if (!args) SWIG_fail;
34221 swig_obj[0] = args;
34222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34223 if (!SWIG_IsOK(res1)) {
34224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34225 }
34226 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34227 {
34228 PyThreadState* __tstate = wxPyBeginAllowThreads();
34229 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
34230 wxPyEndAllowThreads(__tstate);
34231 if (PyErr_Occurred()) SWIG_fail;
34232 }
3ecece7e
RD
34233 {
34234 resultobj = wxPyMake_wxObject(result, (bool)0);
34235 }
1bd55598
RD
34236 return resultobj;
34237fail:
34238 return NULL;
34239}
34240
34241
34242SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34243 PyObject *resultobj = 0;
34244 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34245 wxImageList *arg2 = (wxImageList *) 0 ;
34246 void *argp1 = 0 ;
34247 int res1 = 0 ;
34248 void *argp2 = 0 ;
34249 int res2 = 0 ;
34250 PyObject * obj0 = 0 ;
34251 PyObject * obj1 = 0 ;
34252 char * kwnames[] = {
34253 (char *) "self",(char *) "imageList", NULL
34254 };
34255
34256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34258 if (!SWIG_IsOK(res1)) {
34259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34260 }
34261 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34262 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34263 if (!SWIG_IsOK(res2)) {
34264 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34265 }
34266 arg2 = reinterpret_cast< wxImageList * >(argp2);
34267 {
34268 PyThreadState* __tstate = wxPyBeginAllowThreads();
34269 (arg1)->SetImageList(arg2);
34270 wxPyEndAllowThreads(__tstate);
34271 if (PyErr_Occurred()) SWIG_fail;
34272 }
34273 resultobj = SWIG_Py_Void();
34274 return resultobj;
34275fail:
34276 return NULL;
34277}
34278
34279
34280SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34281 PyObject *resultobj = 0;
34282 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34283 wxImageList *arg2 = (wxImageList *) 0 ;
34284 void *argp1 = 0 ;
34285 int res1 = 0 ;
34286 void *argp2 = 0 ;
34287 int res2 = 0 ;
34288 PyObject * obj0 = 0 ;
34289 PyObject * obj1 = 0 ;
34290 char * kwnames[] = {
34291 (char *) "self",(char *) "imageList", NULL
34292 };
34293
34294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34296 if (!SWIG_IsOK(res1)) {
34297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34298 }
34299 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34300 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34301 if (!SWIG_IsOK(res2)) {
34302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34303 }
34304 arg2 = reinterpret_cast< wxImageList * >(argp2);
34305 {
34306 PyThreadState* __tstate = wxPyBeginAllowThreads();
34307 (arg1)->SetStateImageList(arg2);
34308 wxPyEndAllowThreads(__tstate);
34309 if (PyErr_Occurred()) SWIG_fail;
34310 }
34311 resultobj = SWIG_Py_Void();
34312 return resultobj;
34313fail:
34314 return NULL;
34315}
34316
34317
34318SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34319 PyObject *resultobj = 0;
34320 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34321 wxImageList *arg2 = (wxImageList *) 0 ;
34322 void *argp1 = 0 ;
34323 int res1 = 0 ;
34324 int res2 = 0 ;
34325 PyObject * obj0 = 0 ;
34326 PyObject * obj1 = 0 ;
34327 char * kwnames[] = {
34328 (char *) "self",(char *) "imageList", NULL
34329 };
34330
34331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34333 if (!SWIG_IsOK(res1)) {
34334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34335 }
34336 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34337 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34338 if (!SWIG_IsOK(res2)) {
34339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34340 }
34341 {
34342 PyThreadState* __tstate = wxPyBeginAllowThreads();
34343 (arg1)->AssignImageList(arg2);
34344 wxPyEndAllowThreads(__tstate);
34345 if (PyErr_Occurred()) SWIG_fail;
34346 }
34347 resultobj = SWIG_Py_Void();
34348 return resultobj;
34349fail:
34350 return NULL;
34351}
34352
34353
34354SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34355 PyObject *resultobj = 0;
34356 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34357 wxImageList *arg2 = (wxImageList *) 0 ;
34358 void *argp1 = 0 ;
34359 int res1 = 0 ;
34360 int res2 = 0 ;
34361 PyObject * obj0 = 0 ;
34362 PyObject * obj1 = 0 ;
34363 char * kwnames[] = {
34364 (char *) "self",(char *) "imageList", NULL
34365 };
34366
34367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34369 if (!SWIG_IsOK(res1)) {
34370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34371 }
34372 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34373 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34374 if (!SWIG_IsOK(res2)) {
34375 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34376 }
34377 {
34378 PyThreadState* __tstate = wxPyBeginAllowThreads();
34379 (arg1)->AssignStateImageList(arg2);
34380 wxPyEndAllowThreads(__tstate);
34381 if (PyErr_Occurred()) SWIG_fail;
34382 }
34383 resultobj = SWIG_Py_Void();
34384 return resultobj;
34385fail:
34386 return NULL;
34387}
34388
34389
34390SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34391 PyObject *resultobj = 0;
34392 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34393 wxTreeItemId *arg2 = 0 ;
34394 wxString result;
34395 void *argp1 = 0 ;
34396 int res1 = 0 ;
34397 void *argp2 = 0 ;
34398 int res2 = 0 ;
34399 PyObject * obj0 = 0 ;
34400 PyObject * obj1 = 0 ;
34401 char * kwnames[] = {
34402 (char *) "self",(char *) "item", NULL
34403 };
34404
34405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34407 if (!SWIG_IsOK(res1)) {
34408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34409 }
34410 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34411 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34412 if (!SWIG_IsOK(res2)) {
34413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34414 }
34415 if (!argp2) {
34416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34417 }
34418 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34419 {
34420 PyThreadState* __tstate = wxPyBeginAllowThreads();
34421 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34422 wxPyEndAllowThreads(__tstate);
34423 if (PyErr_Occurred()) SWIG_fail;
34424 }
34425 {
34426#if wxUSE_UNICODE
34427 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34428#else
34429 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34430#endif
34431 }
34432 return resultobj;
34433fail:
34434 return NULL;
34435}
34436
34437
34438SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34439 PyObject *resultobj = 0;
34440 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34441 wxTreeItemId *arg2 = 0 ;
34442 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34443 int result;
34444 void *argp1 = 0 ;
34445 int res1 = 0 ;
34446 void *argp2 = 0 ;
34447 int res2 = 0 ;
34448 int val3 ;
34449 int ecode3 = 0 ;
34450 PyObject * obj0 = 0 ;
34451 PyObject * obj1 = 0 ;
34452 PyObject * obj2 = 0 ;
34453 char * kwnames[] = {
34454 (char *) "self",(char *) "item",(char *) "which", NULL
34455 };
34456
34457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34459 if (!SWIG_IsOK(res1)) {
34460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34461 }
34462 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34463 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34464 if (!SWIG_IsOK(res2)) {
34465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34466 }
34467 if (!argp2) {
34468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34469 }
34470 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34471 if (obj2) {
34472 ecode3 = SWIG_AsVal_int(obj2, &val3);
34473 if (!SWIG_IsOK(ecode3)) {
34474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34475 }
34476 arg3 = static_cast< wxTreeItemIcon >(val3);
34477 }
34478 {
34479 PyThreadState* __tstate = wxPyBeginAllowThreads();
34480 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34481 wxPyEndAllowThreads(__tstate);
34482 if (PyErr_Occurred()) SWIG_fail;
34483 }
34484 resultobj = SWIG_From_int(static_cast< int >(result));
34485 return resultobj;
34486fail:
34487 return NULL;
34488}
34489
34490
34491SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34492 PyObject *resultobj = 0;
34493 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34494 wxTreeItemId *arg2 = 0 ;
34495 wxPyTreeItemData *result = 0 ;
34496 void *argp1 = 0 ;
34497 int res1 = 0 ;
34498 void *argp2 = 0 ;
34499 int res2 = 0 ;
34500 PyObject * obj0 = 0 ;
34501 PyObject * obj1 = 0 ;
34502 char * kwnames[] = {
34503 (char *) "self",(char *) "item", NULL
34504 };
34505
34506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34508 if (!SWIG_IsOK(res1)) {
34509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34510 }
34511 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34512 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34513 if (!SWIG_IsOK(res2)) {
34514 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34515 }
34516 if (!argp2) {
34517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34518 }
34519 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34520 {
34521 PyThreadState* __tstate = wxPyBeginAllowThreads();
34522 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34523 wxPyEndAllowThreads(__tstate);
34524 if (PyErr_Occurred()) SWIG_fail;
34525 }
34526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34527 return resultobj;
34528fail:
34529 return NULL;
34530}
34531
34532
34533SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34534 PyObject *resultobj = 0;
34535 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34536 wxTreeItemId *arg2 = 0 ;
34537 PyObject *result = 0 ;
34538 void *argp1 = 0 ;
34539 int res1 = 0 ;
34540 void *argp2 = 0 ;
34541 int res2 = 0 ;
34542 PyObject * obj0 = 0 ;
34543 PyObject * obj1 = 0 ;
34544 char * kwnames[] = {
34545 (char *) "self",(char *) "item", NULL
34546 };
34547
34548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34550 if (!SWIG_IsOK(res1)) {
34551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34552 }
34553 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34554 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34555 if (!SWIG_IsOK(res2)) {
34556 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34557 }
34558 if (!argp2) {
34559 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34560 }
34561 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34562 {
34563 PyThreadState* __tstate = wxPyBeginAllowThreads();
34564 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34565 wxPyEndAllowThreads(__tstate);
34566 if (PyErr_Occurred()) SWIG_fail;
34567 }
34568 resultobj = result;
34569 return resultobj;
34570fail:
34571 return NULL;
34572}
34573
34574
34575SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34576 PyObject *resultobj = 0;
34577 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34578 wxTreeItemId *arg2 = 0 ;
34579 wxColour result;
34580 void *argp1 = 0 ;
34581 int res1 = 0 ;
34582 void *argp2 = 0 ;
34583 int res2 = 0 ;
34584 PyObject * obj0 = 0 ;
34585 PyObject * obj1 = 0 ;
34586 char * kwnames[] = {
34587 (char *) "self",(char *) "item", NULL
34588 };
34589
34590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34592 if (!SWIG_IsOK(res1)) {
34593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34594 }
34595 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34596 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34597 if (!SWIG_IsOK(res2)) {
34598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34599 }
34600 if (!argp2) {
34601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34602 }
34603 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34604 {
34605 PyThreadState* __tstate = wxPyBeginAllowThreads();
34606 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34607 wxPyEndAllowThreads(__tstate);
34608 if (PyErr_Occurred()) SWIG_fail;
34609 }
34610 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34611 return resultobj;
34612fail:
34613 return NULL;
34614}
34615
34616
34617SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34618 PyObject *resultobj = 0;
34619 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34620 wxTreeItemId *arg2 = 0 ;
34621 wxColour result;
34622 void *argp1 = 0 ;
34623 int res1 = 0 ;
34624 void *argp2 = 0 ;
34625 int res2 = 0 ;
34626 PyObject * obj0 = 0 ;
34627 PyObject * obj1 = 0 ;
34628 char * kwnames[] = {
34629 (char *) "self",(char *) "item", NULL
34630 };
34631
34632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34634 if (!SWIG_IsOK(res1)) {
34635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34636 }
34637 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34638 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34639 if (!SWIG_IsOK(res2)) {
34640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34641 }
34642 if (!argp2) {
34643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34644 }
34645 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34646 {
34647 PyThreadState* __tstate = wxPyBeginAllowThreads();
34648 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34649 wxPyEndAllowThreads(__tstate);
34650 if (PyErr_Occurred()) SWIG_fail;
34651 }
34652 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34653 return resultobj;
34654fail:
34655 return NULL;
34656}
34657
34658
34659SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34660 PyObject *resultobj = 0;
34661 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34662 wxTreeItemId *arg2 = 0 ;
34663 wxFont result;
34664 void *argp1 = 0 ;
34665 int res1 = 0 ;
34666 void *argp2 = 0 ;
34667 int res2 = 0 ;
34668 PyObject * obj0 = 0 ;
34669 PyObject * obj1 = 0 ;
34670 char * kwnames[] = {
34671 (char *) "self",(char *) "item", NULL
34672 };
34673
34674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34676 if (!SWIG_IsOK(res1)) {
34677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34678 }
34679 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34680 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34681 if (!SWIG_IsOK(res2)) {
34682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34683 }
34684 if (!argp2) {
34685 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34686 }
34687 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34688 {
34689 PyThreadState* __tstate = wxPyBeginAllowThreads();
34690 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34691 wxPyEndAllowThreads(__tstate);
34692 if (PyErr_Occurred()) SWIG_fail;
34693 }
34694 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34695 return resultobj;
34696fail:
34697 return NULL;
34698}
34699
34700
34701SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34702 PyObject *resultobj = 0;
34703 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34704 wxTreeItemId *arg2 = 0 ;
34705 wxString *arg3 = 0 ;
34706 void *argp1 = 0 ;
34707 int res1 = 0 ;
34708 void *argp2 = 0 ;
34709 int res2 = 0 ;
34710 bool temp3 = false ;
34711 PyObject * obj0 = 0 ;
34712 PyObject * obj1 = 0 ;
34713 PyObject * obj2 = 0 ;
34714 char * kwnames[] = {
34715 (char *) "self",(char *) "item",(char *) "text", NULL
34716 };
34717
34718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34720 if (!SWIG_IsOK(res1)) {
34721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34722 }
34723 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34724 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34725 if (!SWIG_IsOK(res2)) {
34726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34727 }
34728 if (!argp2) {
34729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34730 }
34731 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34732 {
34733 arg3 = wxString_in_helper(obj2);
34734 if (arg3 == NULL) SWIG_fail;
34735 temp3 = true;
34736 }
34737 {
34738 PyThreadState* __tstate = wxPyBeginAllowThreads();
34739 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34740 wxPyEndAllowThreads(__tstate);
34741 if (PyErr_Occurred()) SWIG_fail;
34742 }
34743 resultobj = SWIG_Py_Void();
34744 {
34745 if (temp3)
34746 delete arg3;
34747 }
34748 return resultobj;
34749fail:
34750 {
34751 if (temp3)
34752 delete arg3;
34753 }
34754 return NULL;
34755}
34756
34757
34758SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34759 PyObject *resultobj = 0;
34760 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34761 wxTreeItemId *arg2 = 0 ;
34762 int arg3 ;
34763 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34764 void *argp1 = 0 ;
34765 int res1 = 0 ;
34766 void *argp2 = 0 ;
34767 int res2 = 0 ;
34768 int val3 ;
34769 int ecode3 = 0 ;
34770 int val4 ;
34771 int ecode4 = 0 ;
34772 PyObject * obj0 = 0 ;
34773 PyObject * obj1 = 0 ;
34774 PyObject * obj2 = 0 ;
34775 PyObject * obj3 = 0 ;
34776 char * kwnames[] = {
34777 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34778 };
34779
34780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34782 if (!SWIG_IsOK(res1)) {
34783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34784 }
34785 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34786 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34787 if (!SWIG_IsOK(res2)) {
34788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34789 }
34790 if (!argp2) {
34791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34792 }
34793 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34794 ecode3 = SWIG_AsVal_int(obj2, &val3);
34795 if (!SWIG_IsOK(ecode3)) {
34796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34797 }
34798 arg3 = static_cast< int >(val3);
34799 if (obj3) {
34800 ecode4 = SWIG_AsVal_int(obj3, &val4);
34801 if (!SWIG_IsOK(ecode4)) {
34802 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34803 }
34804 arg4 = static_cast< wxTreeItemIcon >(val4);
34805 }
34806 {
34807 PyThreadState* __tstate = wxPyBeginAllowThreads();
34808 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34809 wxPyEndAllowThreads(__tstate);
34810 if (PyErr_Occurred()) SWIG_fail;
34811 }
34812 resultobj = SWIG_Py_Void();
34813 return resultobj;
34814fail:
34815 return NULL;
34816}
34817
34818
34819SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34820 PyObject *resultobj = 0;
34821 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34822 wxTreeItemId *arg2 = 0 ;
34823 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34824 void *argp1 = 0 ;
34825 int res1 = 0 ;
34826 void *argp2 = 0 ;
34827 int res2 = 0 ;
34828 int res3 = 0 ;
34829 PyObject * obj0 = 0 ;
34830 PyObject * obj1 = 0 ;
34831 PyObject * obj2 = 0 ;
34832 char * kwnames[] = {
34833 (char *) "self",(char *) "item",(char *) "data", NULL
34834 };
34835
34836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34838 if (!SWIG_IsOK(res1)) {
34839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34840 }
34841 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34842 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34843 if (!SWIG_IsOK(res2)) {
34844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34845 }
34846 if (!argp2) {
34847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34848 }
34849 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34850 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34851 if (!SWIG_IsOK(res3)) {
34852 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34853 }
34854 {
34855 PyThreadState* __tstate = wxPyBeginAllowThreads();
34856 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34857 wxPyEndAllowThreads(__tstate);
34858 if (PyErr_Occurred()) SWIG_fail;
34859 }
34860 resultobj = SWIG_Py_Void();
34861 return resultobj;
34862fail:
34863 return NULL;
34864}
34865
34866
34867SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34868 PyObject *resultobj = 0;
34869 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34870 wxTreeItemId *arg2 = 0 ;
34871 PyObject *arg3 = (PyObject *) 0 ;
34872 void *argp1 = 0 ;
34873 int res1 = 0 ;
34874 void *argp2 = 0 ;
34875 int res2 = 0 ;
34876 PyObject * obj0 = 0 ;
34877 PyObject * obj1 = 0 ;
34878 PyObject * obj2 = 0 ;
34879 char * kwnames[] = {
34880 (char *) "self",(char *) "item",(char *) "obj", NULL
34881 };
34882
34883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34885 if (!SWIG_IsOK(res1)) {
34886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34887 }
34888 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34889 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34890 if (!SWIG_IsOK(res2)) {
34891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34892 }
34893 if (!argp2) {
34894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34895 }
34896 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34897 arg3 = obj2;
34898 {
34899 PyThreadState* __tstate = wxPyBeginAllowThreads();
34900 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34901 wxPyEndAllowThreads(__tstate);
34902 if (PyErr_Occurred()) SWIG_fail;
34903 }
34904 resultobj = SWIG_Py_Void();
34905 return resultobj;
34906fail:
34907 return NULL;
34908}
34909
34910
34911SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34912 PyObject *resultobj = 0;
34913 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34914 wxTreeItemId *arg2 = 0 ;
34915 bool arg3 = (bool) true ;
34916 void *argp1 = 0 ;
34917 int res1 = 0 ;
34918 void *argp2 = 0 ;
34919 int res2 = 0 ;
34920 bool val3 ;
34921 int ecode3 = 0 ;
34922 PyObject * obj0 = 0 ;
34923 PyObject * obj1 = 0 ;
34924 PyObject * obj2 = 0 ;
34925 char * kwnames[] = {
34926 (char *) "self",(char *) "item",(char *) "has", NULL
34927 };
34928
34929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34931 if (!SWIG_IsOK(res1)) {
34932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34933 }
34934 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34935 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34936 if (!SWIG_IsOK(res2)) {
34937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34938 }
34939 if (!argp2) {
34940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34941 }
34942 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34943 if (obj2) {
34944 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34945 if (!SWIG_IsOK(ecode3)) {
34946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34947 }
34948 arg3 = static_cast< bool >(val3);
34949 }
34950 {
34951 PyThreadState* __tstate = wxPyBeginAllowThreads();
34952 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34953 wxPyEndAllowThreads(__tstate);
34954 if (PyErr_Occurred()) SWIG_fail;
34955 }
34956 resultobj = SWIG_Py_Void();
34957 return resultobj;
34958fail:
34959 return NULL;
34960}
34961
34962
34963SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34964 PyObject *resultobj = 0;
34965 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34966 wxTreeItemId *arg2 = 0 ;
34967 bool arg3 = (bool) true ;
34968 void *argp1 = 0 ;
34969 int res1 = 0 ;
34970 void *argp2 = 0 ;
34971 int res2 = 0 ;
34972 bool val3 ;
34973 int ecode3 = 0 ;
34974 PyObject * obj0 = 0 ;
34975 PyObject * obj1 = 0 ;
34976 PyObject * obj2 = 0 ;
34977 char * kwnames[] = {
34978 (char *) "self",(char *) "item",(char *) "bold", NULL
34979 };
34980
34981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34983 if (!SWIG_IsOK(res1)) {
34984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34985 }
34986 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34987 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34988 if (!SWIG_IsOK(res2)) {
34989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34990 }
34991 if (!argp2) {
34992 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34993 }
34994 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34995 if (obj2) {
34996 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34997 if (!SWIG_IsOK(ecode3)) {
34998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34999 }
35000 arg3 = static_cast< bool >(val3);
35001 }
35002 {
35003 PyThreadState* __tstate = wxPyBeginAllowThreads();
35004 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
35005 wxPyEndAllowThreads(__tstate);
35006 if (PyErr_Occurred()) SWIG_fail;
35007 }
35008 resultobj = SWIG_Py_Void();
35009 return resultobj;
35010fail:
35011 return NULL;
35012}
35013
35014
35015SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35016 PyObject *resultobj = 0;
35017 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35018 wxTreeItemId *arg2 = 0 ;
35019 bool arg3 = (bool) true ;
35020 void *argp1 = 0 ;
35021 int res1 = 0 ;
35022 void *argp2 = 0 ;
35023 int res2 = 0 ;
35024 bool val3 ;
35025 int ecode3 = 0 ;
35026 PyObject * obj0 = 0 ;
35027 PyObject * obj1 = 0 ;
35028 PyObject * obj2 = 0 ;
35029 char * kwnames[] = {
35030 (char *) "self",(char *) "item",(char *) "highlight", NULL
35031 };
35032
35033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35035 if (!SWIG_IsOK(res1)) {
35036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35037 }
35038 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35039 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35040 if (!SWIG_IsOK(res2)) {
35041 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35042 }
35043 if (!argp2) {
35044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35045 }
35046 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35047 if (obj2) {
35048 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35049 if (!SWIG_IsOK(ecode3)) {
35050 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
35051 }
35052 arg3 = static_cast< bool >(val3);
35053 }
35054 {
35055 PyThreadState* __tstate = wxPyBeginAllowThreads();
35056 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
35057 wxPyEndAllowThreads(__tstate);
35058 if (PyErr_Occurred()) SWIG_fail;
35059 }
35060 resultobj = SWIG_Py_Void();
35061 return resultobj;
35062fail:
35063 return NULL;
35064}
35065
35066
35067SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35068 PyObject *resultobj = 0;
35069 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35070 wxTreeItemId *arg2 = 0 ;
35071 wxColour *arg3 = 0 ;
35072 void *argp1 = 0 ;
35073 int res1 = 0 ;
35074 void *argp2 = 0 ;
35075 int res2 = 0 ;
35076 wxColour temp3 ;
35077 PyObject * obj0 = 0 ;
35078 PyObject * obj1 = 0 ;
35079 PyObject * obj2 = 0 ;
35080 char * kwnames[] = {
35081 (char *) "self",(char *) "item",(char *) "col", NULL
35082 };
35083
35084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35086 if (!SWIG_IsOK(res1)) {
35087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35088 }
35089 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35090 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35091 if (!SWIG_IsOK(res2)) {
35092 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35093 }
35094 if (!argp2) {
35095 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35096 }
35097 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35098 {
35099 arg3 = &temp3;
35100 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35101 }
35102 {
35103 PyThreadState* __tstate = wxPyBeginAllowThreads();
35104 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35105 wxPyEndAllowThreads(__tstate);
35106 if (PyErr_Occurred()) SWIG_fail;
35107 }
35108 resultobj = SWIG_Py_Void();
35109 return resultobj;
35110fail:
35111 return NULL;
35112}
35113
35114
35115SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35116 PyObject *resultobj = 0;
35117 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35118 wxTreeItemId *arg2 = 0 ;
35119 wxColour *arg3 = 0 ;
35120 void *argp1 = 0 ;
35121 int res1 = 0 ;
35122 void *argp2 = 0 ;
35123 int res2 = 0 ;
35124 wxColour temp3 ;
35125 PyObject * obj0 = 0 ;
35126 PyObject * obj1 = 0 ;
35127 PyObject * obj2 = 0 ;
35128 char * kwnames[] = {
35129 (char *) "self",(char *) "item",(char *) "col", NULL
35130 };
35131
35132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35134 if (!SWIG_IsOK(res1)) {
35135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35136 }
35137 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35138 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35139 if (!SWIG_IsOK(res2)) {
35140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35141 }
35142 if (!argp2) {
35143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35144 }
35145 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35146 {
35147 arg3 = &temp3;
35148 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35149 }
35150 {
35151 PyThreadState* __tstate = wxPyBeginAllowThreads();
35152 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
35153 wxPyEndAllowThreads(__tstate);
35154 if (PyErr_Occurred()) SWIG_fail;
35155 }
35156 resultobj = SWIG_Py_Void();
35157 return resultobj;
35158fail:
35159 return NULL;
35160}
35161
35162
35163SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35164 PyObject *resultobj = 0;
35165 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35166 wxTreeItemId *arg2 = 0 ;
35167 wxFont *arg3 = 0 ;
35168 void *argp1 = 0 ;
35169 int res1 = 0 ;
35170 void *argp2 = 0 ;
35171 int res2 = 0 ;
35172 void *argp3 = 0 ;
35173 int res3 = 0 ;
35174 PyObject * obj0 = 0 ;
35175 PyObject * obj1 = 0 ;
35176 PyObject * obj2 = 0 ;
35177 char * kwnames[] = {
35178 (char *) "self",(char *) "item",(char *) "font", NULL
35179 };
35180
35181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35183 if (!SWIG_IsOK(res1)) {
35184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35185 }
35186 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35187 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35188 if (!SWIG_IsOK(res2)) {
35189 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35190 }
35191 if (!argp2) {
35192 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35193 }
35194 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35195 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
35196 if (!SWIG_IsOK(res3)) {
35197 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35198 }
35199 if (!argp3) {
35200 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
35201 }
35202 arg3 = reinterpret_cast< wxFont * >(argp3);
35203 {
35204 PyThreadState* __tstate = wxPyBeginAllowThreads();
35205 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
35206 wxPyEndAllowThreads(__tstate);
35207 if (PyErr_Occurred()) SWIG_fail;
35208 }
35209 resultobj = SWIG_Py_Void();
35210 return resultobj;
35211fail:
35212 return NULL;
35213}
35214
35215
35216SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35217 PyObject *resultobj = 0;
35218 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35219 wxTreeItemId *arg2 = 0 ;
35220 bool result;
35221 void *argp1 = 0 ;
35222 int res1 = 0 ;
35223 void *argp2 = 0 ;
35224 int res2 = 0 ;
35225 PyObject * obj0 = 0 ;
35226 PyObject * obj1 = 0 ;
35227 char * kwnames[] = {
35228 (char *) "self",(char *) "item", NULL
35229 };
35230
35231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35233 if (!SWIG_IsOK(res1)) {
35234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35235 }
35236 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35237 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35238 if (!SWIG_IsOK(res2)) {
35239 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35240 }
35241 if (!argp2) {
35242 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35243 }
35244 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35245 {
35246 PyThreadState* __tstate = wxPyBeginAllowThreads();
35247 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
35248 wxPyEndAllowThreads(__tstate);
35249 if (PyErr_Occurred()) SWIG_fail;
35250 }
35251 {
35252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35253 }
35254 return resultobj;
35255fail:
35256 return NULL;
35257}
35258
35259
35260SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35261 PyObject *resultobj = 0;
35262 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35263 wxTreeItemId *arg2 = 0 ;
35264 bool result;
35265 void *argp1 = 0 ;
35266 int res1 = 0 ;
35267 void *argp2 = 0 ;
35268 int res2 = 0 ;
35269 PyObject * obj0 = 0 ;
35270 PyObject * obj1 = 0 ;
35271 char * kwnames[] = {
35272 (char *) "self",(char *) "item", NULL
35273 };
35274
35275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35277 if (!SWIG_IsOK(res1)) {
35278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35279 }
35280 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35281 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35282 if (!SWIG_IsOK(res2)) {
35283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35284 }
35285 if (!argp2) {
35286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35287 }
35288 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35289 {
35290 PyThreadState* __tstate = wxPyBeginAllowThreads();
35291 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35292 wxPyEndAllowThreads(__tstate);
35293 if (PyErr_Occurred()) SWIG_fail;
35294 }
35295 {
35296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35297 }
35298 return resultobj;
35299fail:
35300 return NULL;
35301}
35302
35303
35304SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35305 PyObject *resultobj = 0;
35306 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35307 wxTreeItemId *arg2 = 0 ;
35308 bool result;
35309 void *argp1 = 0 ;
35310 int res1 = 0 ;
35311 void *argp2 = 0 ;
35312 int res2 = 0 ;
35313 PyObject * obj0 = 0 ;
35314 PyObject * obj1 = 0 ;
35315 char * kwnames[] = {
35316 (char *) "self",(char *) "item", NULL
35317 };
35318
35319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35321 if (!SWIG_IsOK(res1)) {
35322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35323 }
35324 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35325 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35326 if (!SWIG_IsOK(res2)) {
35327 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35328 }
35329 if (!argp2) {
35330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35331 }
35332 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35333 {
35334 PyThreadState* __tstate = wxPyBeginAllowThreads();
35335 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35336 wxPyEndAllowThreads(__tstate);
35337 if (PyErr_Occurred()) SWIG_fail;
35338 }
35339 {
35340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35341 }
35342 return resultobj;
35343fail:
35344 return NULL;
35345}
35346
35347
35348SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35349 PyObject *resultobj = 0;
35350 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35351 wxTreeItemId *arg2 = 0 ;
35352 bool result;
35353 void *argp1 = 0 ;
35354 int res1 = 0 ;
35355 void *argp2 = 0 ;
35356 int res2 = 0 ;
35357 PyObject * obj0 = 0 ;
35358 PyObject * obj1 = 0 ;
35359 char * kwnames[] = {
35360 (char *) "self",(char *) "item", NULL
35361 };
35362
35363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35365 if (!SWIG_IsOK(res1)) {
35366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35367 }
35368 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35369 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35370 if (!SWIG_IsOK(res2)) {
35371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35372 }
35373 if (!argp2) {
35374 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35375 }
35376 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35377 {
35378 PyThreadState* __tstate = wxPyBeginAllowThreads();
35379 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35380 wxPyEndAllowThreads(__tstate);
35381 if (PyErr_Occurred()) SWIG_fail;
35382 }
35383 {
35384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35385 }
35386 return resultobj;
35387fail:
35388 return NULL;
35389}
35390
35391
35392SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35393 PyObject *resultobj = 0;
35394 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35395 wxTreeItemId *arg2 = 0 ;
35396 bool result;
35397 void *argp1 = 0 ;
35398 int res1 = 0 ;
35399 void *argp2 = 0 ;
35400 int res2 = 0 ;
35401 PyObject * obj0 = 0 ;
35402 PyObject * obj1 = 0 ;
35403 char * kwnames[] = {
35404 (char *) "self",(char *) "item", NULL
35405 };
35406
35407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35409 if (!SWIG_IsOK(res1)) {
35410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35411 }
35412 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35413 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35414 if (!SWIG_IsOK(res2)) {
35415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35416 }
35417 if (!argp2) {
35418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35419 }
35420 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35421 {
35422 PyThreadState* __tstate = wxPyBeginAllowThreads();
35423 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35424 wxPyEndAllowThreads(__tstate);
35425 if (PyErr_Occurred()) SWIG_fail;
35426 }
35427 {
35428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35429 }
35430 return resultobj;
35431fail:
35432 return NULL;
35433}
35434
35435
35436SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35437 PyObject *resultobj = 0;
35438 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35439 wxTreeItemId *arg2 = 0 ;
35440 bool arg3 = (bool) true ;
35441 size_t result;
35442 void *argp1 = 0 ;
35443 int res1 = 0 ;
35444 void *argp2 = 0 ;
35445 int res2 = 0 ;
35446 bool val3 ;
35447 int ecode3 = 0 ;
35448 PyObject * obj0 = 0 ;
35449 PyObject * obj1 = 0 ;
35450 PyObject * obj2 = 0 ;
35451 char * kwnames[] = {
35452 (char *) "self",(char *) "item",(char *) "recursively", NULL
35453 };
35454
35455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35457 if (!SWIG_IsOK(res1)) {
35458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35459 }
35460 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35461 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35462 if (!SWIG_IsOK(res2)) {
35463 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35464 }
35465 if (!argp2) {
35466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35467 }
35468 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35469 if (obj2) {
35470 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35471 if (!SWIG_IsOK(ecode3)) {
35472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35473 }
35474 arg3 = static_cast< bool >(val3);
35475 }
35476 {
35477 PyThreadState* __tstate = wxPyBeginAllowThreads();
35478 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35479 wxPyEndAllowThreads(__tstate);
35480 if (PyErr_Occurred()) SWIG_fail;
35481 }
35482 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35483 return resultobj;
35484fail:
35485 return NULL;
d55e5bfc
RD
35486}
35487
35488
1bd55598
RD
35489SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35490 PyObject *resultobj = 0;
35491 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35492 wxTreeItemId result;
35493 void *argp1 = 0 ;
35494 int res1 = 0 ;
35495 PyObject *swig_obj[1] ;
35496
35497 if (!args) SWIG_fail;
35498 swig_obj[0] = args;
35499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35500 if (!SWIG_IsOK(res1)) {
35501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35502 }
35503 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35504 {
35505 PyThreadState* __tstate = wxPyBeginAllowThreads();
35506 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35507 wxPyEndAllowThreads(__tstate);
35508 if (PyErr_Occurred()) SWIG_fail;
35509 }
35510 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35511 return resultobj;
35512fail:
35513 return NULL;
d55e5bfc
RD
35514}
35515
35516
1bd55598
RD
35517SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35518 PyObject *resultobj = 0;
35519 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35520 wxTreeItemId result;
35521 void *argp1 = 0 ;
35522 int res1 = 0 ;
35523 PyObject *swig_obj[1] ;
35524
35525 if (!args) SWIG_fail;
35526 swig_obj[0] = args;
35527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35528 if (!SWIG_IsOK(res1)) {
35529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35530 }
35531 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35532 {
35533 PyThreadState* __tstate = wxPyBeginAllowThreads();
35534 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35535 wxPyEndAllowThreads(__tstate);
35536 if (PyErr_Occurred()) SWIG_fail;
35537 }
35538 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35539 return resultobj;
35540fail:
35541 return NULL;
d55e5bfc
RD
35542}
35543
35544
1bd55598
RD
35545SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35546 PyObject *resultobj = 0;
35547 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35548 PyObject *result = 0 ;
35549 void *argp1 = 0 ;
35550 int res1 = 0 ;
35551 PyObject *swig_obj[1] ;
35552
35553 if (!args) SWIG_fail;
35554 swig_obj[0] = args;
35555 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35556 if (!SWIG_IsOK(res1)) {
35557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35558 }
35559 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35560 {
35561 PyThreadState* __tstate = wxPyBeginAllowThreads();
35562 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35563 wxPyEndAllowThreads(__tstate);
35564 if (PyErr_Occurred()) SWIG_fail;
35565 }
35566 resultobj = result;
35567 return resultobj;
35568fail:
35569 return NULL;
35570}
35571
35572
35573SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35574 PyObject *resultobj = 0;
35575 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35576 wxTreeItemId *arg2 = 0 ;
35577 wxTreeItemId result;
35578 void *argp1 = 0 ;
35579 int res1 = 0 ;
35580 void *argp2 = 0 ;
35581 int res2 = 0 ;
35582 PyObject * obj0 = 0 ;
35583 PyObject * obj1 = 0 ;
35584 char * kwnames[] = {
35585 (char *) "self",(char *) "item", NULL
35586 };
35587
35588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35590 if (!SWIG_IsOK(res1)) {
35591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35592 }
35593 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35594 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35595 if (!SWIG_IsOK(res2)) {
35596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35597 }
35598 if (!argp2) {
35599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35600 }
35601 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35602 {
35603 PyThreadState* __tstate = wxPyBeginAllowThreads();
35604 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35605 wxPyEndAllowThreads(__tstate);
35606 if (PyErr_Occurred()) SWIG_fail;
35607 }
35608 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35609 return resultobj;
35610fail:
35611 return NULL;
35612}
35613
35614
35615SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35616 PyObject *resultobj = 0;
35617 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35618 wxTreeItemId *arg2 = 0 ;
35619 PyObject *result = 0 ;
35620 void *argp1 = 0 ;
35621 int res1 = 0 ;
35622 void *argp2 = 0 ;
35623 int res2 = 0 ;
35624 PyObject * obj0 = 0 ;
35625 PyObject * obj1 = 0 ;
35626 char * kwnames[] = {
35627 (char *) "self",(char *) "item", NULL
35628 };
35629
35630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35632 if (!SWIG_IsOK(res1)) {
35633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35634 }
35635 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35636 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35637 if (!SWIG_IsOK(res2)) {
35638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35639 }
35640 if (!argp2) {
35641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35642 }
35643 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35644 {
35645 PyThreadState* __tstate = wxPyBeginAllowThreads();
35646 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35647 wxPyEndAllowThreads(__tstate);
35648 if (PyErr_Occurred()) SWIG_fail;
35649 }
35650 resultobj = result;
35651 return resultobj;
35652fail:
35653 return NULL;
35654}
35655
35656
35657SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35658 PyObject *resultobj = 0;
35659 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35660 wxTreeItemId *arg2 = 0 ;
35661 void *arg3 = (void *) 0 ;
35662 PyObject *result = 0 ;
35663 void *argp1 = 0 ;
35664 int res1 = 0 ;
35665 void *argp2 = 0 ;
35666 int res2 = 0 ;
35667 int res3 ;
35668 PyObject * obj0 = 0 ;
35669 PyObject * obj1 = 0 ;
35670 PyObject * obj2 = 0 ;
35671 char * kwnames[] = {
35672 (char *) "self",(char *) "item",(char *) "cookie", NULL
35673 };
35674
35675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35677 if (!SWIG_IsOK(res1)) {
35678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35679 }
35680 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35681 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35682 if (!SWIG_IsOK(res2)) {
35683 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35684 }
35685 if (!argp2) {
35686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35687 }
35688 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35689 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35690 if (!SWIG_IsOK(res3)) {
35691 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35692 }
35693 {
35694 PyThreadState* __tstate = wxPyBeginAllowThreads();
35695 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35696 wxPyEndAllowThreads(__tstate);
35697 if (PyErr_Occurred()) SWIG_fail;
35698 }
35699 resultobj = result;
35700 return resultobj;
35701fail:
35702 return NULL;
35703}
35704
35705
35706SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35707 PyObject *resultobj = 0;
35708 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35709 wxTreeItemId *arg2 = 0 ;
35710 wxTreeItemId result;
35711 void *argp1 = 0 ;
35712 int res1 = 0 ;
35713 void *argp2 = 0 ;
35714 int res2 = 0 ;
35715 PyObject * obj0 = 0 ;
35716 PyObject * obj1 = 0 ;
35717 char * kwnames[] = {
35718 (char *) "self",(char *) "item", NULL
35719 };
35720
35721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35723 if (!SWIG_IsOK(res1)) {
35724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35725 }
35726 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35727 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35728 if (!SWIG_IsOK(res2)) {
35729 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35730 }
35731 if (!argp2) {
35732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35733 }
35734 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35735 {
35736 PyThreadState* __tstate = wxPyBeginAllowThreads();
35737 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35738 wxPyEndAllowThreads(__tstate);
35739 if (PyErr_Occurred()) SWIG_fail;
35740 }
35741 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35742 return resultobj;
35743fail:
35744 return NULL;
35745}
35746
35747
35748SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35749 PyObject *resultobj = 0;
35750 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35751 wxTreeItemId *arg2 = 0 ;
35752 wxTreeItemId result;
35753 void *argp1 = 0 ;
35754 int res1 = 0 ;
35755 void *argp2 = 0 ;
35756 int res2 = 0 ;
35757 PyObject * obj0 = 0 ;
35758 PyObject * obj1 = 0 ;
35759 char * kwnames[] = {
35760 (char *) "self",(char *) "item", NULL
35761 };
35762
35763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35765 if (!SWIG_IsOK(res1)) {
35766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35767 }
35768 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35769 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35770 if (!SWIG_IsOK(res2)) {
35771 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35772 }
35773 if (!argp2) {
35774 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35775 }
35776 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35777 {
35778 PyThreadState* __tstate = wxPyBeginAllowThreads();
35779 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35780 wxPyEndAllowThreads(__tstate);
35781 if (PyErr_Occurred()) SWIG_fail;
35782 }
35783 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35784 return resultobj;
35785fail:
35786 return NULL;
35787}
35788
35789
35790SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35791 PyObject *resultobj = 0;
35792 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35793 wxTreeItemId *arg2 = 0 ;
35794 wxTreeItemId result;
35795 void *argp1 = 0 ;
35796 int res1 = 0 ;
35797 void *argp2 = 0 ;
35798 int res2 = 0 ;
35799 PyObject * obj0 = 0 ;
35800 PyObject * obj1 = 0 ;
35801 char * kwnames[] = {
35802 (char *) "self",(char *) "item", NULL
35803 };
35804
35805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35807 if (!SWIG_IsOK(res1)) {
35808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35809 }
35810 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35811 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35812 if (!SWIG_IsOK(res2)) {
35813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35814 }
35815 if (!argp2) {
35816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35817 }
35818 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35819 {
35820 PyThreadState* __tstate = wxPyBeginAllowThreads();
35821 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35822 wxPyEndAllowThreads(__tstate);
35823 if (PyErr_Occurred()) SWIG_fail;
35824 }
35825 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35826 return resultobj;
35827fail:
35828 return NULL;
d55e5bfc
RD
35829}
35830
35831
1bd55598
RD
35832SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35833 PyObject *resultobj = 0;
35834 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35835 wxTreeItemId result;
35836 void *argp1 = 0 ;
35837 int res1 = 0 ;
35838 PyObject *swig_obj[1] ;
35839
35840 if (!args) SWIG_fail;
35841 swig_obj[0] = args;
35842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35843 if (!SWIG_IsOK(res1)) {
35844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35845 }
35846 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35847 {
35848 PyThreadState* __tstate = wxPyBeginAllowThreads();
35849 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35850 wxPyEndAllowThreads(__tstate);
35851 if (PyErr_Occurred()) SWIG_fail;
35852 }
35853 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35854 return resultobj;
35855fail:
35856 return NULL;
35857}
35858
35859
35860SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35861 PyObject *resultobj = 0;
35862 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35863 wxTreeItemId *arg2 = 0 ;
35864 wxTreeItemId result;
35865 void *argp1 = 0 ;
35866 int res1 = 0 ;
35867 void *argp2 = 0 ;
35868 int res2 = 0 ;
35869 PyObject * obj0 = 0 ;
35870 PyObject * obj1 = 0 ;
35871 char * kwnames[] = {
35872 (char *) "self",(char *) "item", NULL
35873 };
35874
35875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35877 if (!SWIG_IsOK(res1)) {
35878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35879 }
35880 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35881 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35882 if (!SWIG_IsOK(res2)) {
35883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35884 }
35885 if (!argp2) {
35886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35887 }
35888 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35889 {
35890 PyThreadState* __tstate = wxPyBeginAllowThreads();
35891 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35892 wxPyEndAllowThreads(__tstate);
35893 if (PyErr_Occurred()) SWIG_fail;
35894 }
35895 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35896 return resultobj;
35897fail:
35898 return NULL;
35899}
35900
35901
35902SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35903 PyObject *resultobj = 0;
35904 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35905 wxTreeItemId *arg2 = 0 ;
35906 wxTreeItemId result;
35907 void *argp1 = 0 ;
35908 int res1 = 0 ;
35909 void *argp2 = 0 ;
35910 int res2 = 0 ;
35911 PyObject * obj0 = 0 ;
35912 PyObject * obj1 = 0 ;
35913 char * kwnames[] = {
35914 (char *) "self",(char *) "item", NULL
35915 };
35916
35917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35919 if (!SWIG_IsOK(res1)) {
35920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35921 }
35922 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35923 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35924 if (!SWIG_IsOK(res2)) {
35925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35926 }
35927 if (!argp2) {
35928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35929 }
35930 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35931 {
35932 PyThreadState* __tstate = wxPyBeginAllowThreads();
35933 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35934 wxPyEndAllowThreads(__tstate);
35935 if (PyErr_Occurred()) SWIG_fail;
35936 }
35937 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35938 return resultobj;
35939fail:
35940 return NULL;
35941}
35942
35943
35944SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35945 PyObject *resultobj = 0;
35946 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35947 wxString *arg2 = 0 ;
35948 int arg3 = (int) -1 ;
35949 int arg4 = (int) -1 ;
35950 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35951 wxTreeItemId result;
35952 void *argp1 = 0 ;
35953 int res1 = 0 ;
35954 bool temp2 = false ;
35955 int val3 ;
35956 int ecode3 = 0 ;
35957 int val4 ;
35958 int ecode4 = 0 ;
35959 int res5 = 0 ;
35960 PyObject * obj0 = 0 ;
35961 PyObject * obj1 = 0 ;
35962 PyObject * obj2 = 0 ;
35963 PyObject * obj3 = 0 ;
35964 PyObject * obj4 = 0 ;
35965 char * kwnames[] = {
35966 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35967 };
35968
35969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35971 if (!SWIG_IsOK(res1)) {
35972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35973 }
35974 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35975 {
35976 arg2 = wxString_in_helper(obj1);
35977 if (arg2 == NULL) SWIG_fail;
35978 temp2 = true;
35979 }
35980 if (obj2) {
35981 ecode3 = SWIG_AsVal_int(obj2, &val3);
35982 if (!SWIG_IsOK(ecode3)) {
35983 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35984 }
35985 arg3 = static_cast< int >(val3);
35986 }
35987 if (obj3) {
35988 ecode4 = SWIG_AsVal_int(obj3, &val4);
35989 if (!SWIG_IsOK(ecode4)) {
35990 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35991 }
35992 arg4 = static_cast< int >(val4);
35993 }
35994 if (obj4) {
35995 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35996 if (!SWIG_IsOK(res5)) {
35997 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36ed4f51 35998 }
1bd55598
RD
35999 }
36000 {
36001 PyThreadState* __tstate = wxPyBeginAllowThreads();
36002 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
36003 wxPyEndAllowThreads(__tstate);
36004 if (PyErr_Occurred()) SWIG_fail;
36005 }
36006 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36007 {
36008 if (temp2)
36009 delete arg2;
36010 }
36011 return resultobj;
36012fail:
36013 {
36014 if (temp2)
36015 delete arg2;
36016 }
36017 return NULL;
36018}
36019
36020
36021SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36022 PyObject *resultobj = 0;
36023 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36024 wxTreeItemId *arg2 = 0 ;
36025 wxString *arg3 = 0 ;
36026 int arg4 = (int) -1 ;
36027 int arg5 = (int) -1 ;
36028 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36029 wxTreeItemId result;
36030 void *argp1 = 0 ;
36031 int res1 = 0 ;
36032 void *argp2 = 0 ;
36033 int res2 = 0 ;
36034 bool temp3 = false ;
36035 int val4 ;
36036 int ecode4 = 0 ;
36037 int val5 ;
36038 int ecode5 = 0 ;
36039 int res6 = 0 ;
36040 PyObject * obj0 = 0 ;
36041 PyObject * obj1 = 0 ;
36042 PyObject * obj2 = 0 ;
36043 PyObject * obj3 = 0 ;
36044 PyObject * obj4 = 0 ;
36045 PyObject * obj5 = 0 ;
36046 char * kwnames[] = {
36047 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36048 };
36049
36050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36052 if (!SWIG_IsOK(res1)) {
36053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36054 }
36055 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36056 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36057 if (!SWIG_IsOK(res2)) {
36058 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36059 }
36060 if (!argp2) {
36061 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36062 }
36063 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36064 {
36065 arg3 = wxString_in_helper(obj2);
36066 if (arg3 == NULL) SWIG_fail;
36067 temp3 = true;
36068 }
36069 if (obj3) {
36070 ecode4 = SWIG_AsVal_int(obj3, &val4);
36071 if (!SWIG_IsOK(ecode4)) {
36072 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
36073 }
36074 arg4 = static_cast< int >(val4);
36075 }
36076 if (obj4) {
36077 ecode5 = SWIG_AsVal_int(obj4, &val5);
36078 if (!SWIG_IsOK(ecode5)) {
36079 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
36080 }
36081 arg5 = static_cast< int >(val5);
36082 }
36083 if (obj5) {
36084 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36085 if (!SWIG_IsOK(res6)) {
36086 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36087 }
1bd55598
RD
36088 }
36089 {
36090 PyThreadState* __tstate = wxPyBeginAllowThreads();
36091 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36092 wxPyEndAllowThreads(__tstate);
36093 if (PyErr_Occurred()) SWIG_fail;
36094 }
36095 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36096 {
36097 if (temp3)
36098 delete arg3;
36099 }
36100 return resultobj;
36101fail:
36102 {
36103 if (temp3)
36104 delete arg3;
36105 }
36106 return NULL;
36107}
36108
36109
36110SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36111 PyObject *resultobj = 0;
36112 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36113 wxTreeItemId *arg2 = 0 ;
36114 wxTreeItemId *arg3 = 0 ;
36115 wxString *arg4 = 0 ;
36116 int arg5 = (int) -1 ;
36117 int arg6 = (int) -1 ;
36118 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36119 wxTreeItemId result;
36120 void *argp1 = 0 ;
36121 int res1 = 0 ;
36122 void *argp2 = 0 ;
36123 int res2 = 0 ;
36124 void *argp3 = 0 ;
36125 int res3 = 0 ;
36126 bool temp4 = false ;
36127 int val5 ;
36128 int ecode5 = 0 ;
36129 int val6 ;
36130 int ecode6 = 0 ;
36131 int res7 = 0 ;
36132 PyObject * obj0 = 0 ;
36133 PyObject * obj1 = 0 ;
36134 PyObject * obj2 = 0 ;
36135 PyObject * obj3 = 0 ;
36136 PyObject * obj4 = 0 ;
36137 PyObject * obj5 = 0 ;
36138 PyObject * obj6 = 0 ;
36139 char * kwnames[] = {
36140 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36141 };
36142
36143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36145 if (!SWIG_IsOK(res1)) {
36146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36147 }
36148 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36149 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36150 if (!SWIG_IsOK(res2)) {
36151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36152 }
36153 if (!argp2) {
36154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36155 }
36156 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36157 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36158 if (!SWIG_IsOK(res3)) {
36159 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36160 }
36161 if (!argp3) {
36162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
36163 }
36164 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
36165 {
36166 arg4 = wxString_in_helper(obj3);
36167 if (arg4 == NULL) SWIG_fail;
36168 temp4 = true;
36169 }
36170 if (obj4) {
36171 ecode5 = SWIG_AsVal_int(obj4, &val5);
36172 if (!SWIG_IsOK(ecode5)) {
36173 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
36174 }
36175 arg5 = static_cast< int >(val5);
36176 }
36177 if (obj5) {
36178 ecode6 = SWIG_AsVal_int(obj5, &val6);
36179 if (!SWIG_IsOK(ecode6)) {
36180 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
36181 }
36182 arg6 = static_cast< int >(val6);
36183 }
36184 if (obj6) {
36185 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36186 if (!SWIG_IsOK(res7)) {
36187 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36188 }
1bd55598
RD
36189 }
36190 {
36191 PyThreadState* __tstate = wxPyBeginAllowThreads();
36192 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36193 wxPyEndAllowThreads(__tstate);
36194 if (PyErr_Occurred()) SWIG_fail;
36195 }
36196 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36197 {
36198 if (temp4)
36199 delete arg4;
36200 }
36201 return resultobj;
36202fail:
36203 {
36204 if (temp4)
36205 delete arg4;
36206 }
36207 return NULL;
36208}
36209
36210
36211SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36212 PyObject *resultobj = 0;
36213 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36214 wxTreeItemId *arg2 = 0 ;
36215 size_t arg3 ;
36216 wxString *arg4 = 0 ;
36217 int arg5 = (int) -1 ;
36218 int arg6 = (int) -1 ;
36219 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
36220 wxTreeItemId result;
36221 void *argp1 = 0 ;
36222 int res1 = 0 ;
36223 void *argp2 = 0 ;
36224 int res2 = 0 ;
36225 size_t val3 ;
36226 int ecode3 = 0 ;
36227 bool temp4 = false ;
36228 int val5 ;
36229 int ecode5 = 0 ;
36230 int val6 ;
36231 int ecode6 = 0 ;
36232 int res7 = 0 ;
36233 PyObject * obj0 = 0 ;
36234 PyObject * obj1 = 0 ;
36235 PyObject * obj2 = 0 ;
36236 PyObject * obj3 = 0 ;
36237 PyObject * obj4 = 0 ;
36238 PyObject * obj5 = 0 ;
36239 PyObject * obj6 = 0 ;
36240 char * kwnames[] = {
36241 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36242 };
36243
36244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
36245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36246 if (!SWIG_IsOK(res1)) {
36247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36248 }
36249 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36250 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36251 if (!SWIG_IsOK(res2)) {
36252 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36253 }
36254 if (!argp2) {
36255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36256 }
36257 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36258 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
36259 if (!SWIG_IsOK(ecode3)) {
36260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
36261 }
36262 arg3 = static_cast< size_t >(val3);
36263 {
36264 arg4 = wxString_in_helper(obj3);
36265 if (arg4 == NULL) SWIG_fail;
36266 temp4 = true;
36267 }
36268 if (obj4) {
36269 ecode5 = SWIG_AsVal_int(obj4, &val5);
36270 if (!SWIG_IsOK(ecode5)) {
36271 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36272 }
36273 arg5 = static_cast< int >(val5);
36274 }
36275 if (obj5) {
36276 ecode6 = SWIG_AsVal_int(obj5, &val6);
36277 if (!SWIG_IsOK(ecode6)) {
36278 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36279 }
36280 arg6 = static_cast< int >(val6);
36281 }
36282 if (obj6) {
36283 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36284 if (!SWIG_IsOK(res7)) {
36285 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36286 }
1bd55598
RD
36287 }
36288 {
36289 PyThreadState* __tstate = wxPyBeginAllowThreads();
36290 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36291 wxPyEndAllowThreads(__tstate);
36292 if (PyErr_Occurred()) SWIG_fail;
36293 }
36294 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36295 {
36296 if (temp4)
36297 delete arg4;
36298 }
36299 return resultobj;
36300fail:
36301 {
36302 if (temp4)
36303 delete arg4;
36304 }
36305 return NULL;
36306}
36307
36308
36309SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36310 PyObject *resultobj = 0;
36311 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36312 wxTreeItemId *arg2 = 0 ;
36313 wxString *arg3 = 0 ;
36314 int arg4 = (int) -1 ;
36315 int arg5 = (int) -1 ;
36316 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36317 wxTreeItemId result;
36318 void *argp1 = 0 ;
36319 int res1 = 0 ;
36320 void *argp2 = 0 ;
36321 int res2 = 0 ;
36322 bool temp3 = false ;
36323 int val4 ;
36324 int ecode4 = 0 ;
36325 int val5 ;
36326 int ecode5 = 0 ;
36327 int res6 = 0 ;
36328 PyObject * obj0 = 0 ;
36329 PyObject * obj1 = 0 ;
36330 PyObject * obj2 = 0 ;
36331 PyObject * obj3 = 0 ;
36332 PyObject * obj4 = 0 ;
36333 PyObject * obj5 = 0 ;
36334 char * kwnames[] = {
36335 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36336 };
36337
36338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36340 if (!SWIG_IsOK(res1)) {
36341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36342 }
36343 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36344 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36345 if (!SWIG_IsOK(res2)) {
36346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36347 }
36348 if (!argp2) {
36349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36350 }
36351 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36352 {
36353 arg3 = wxString_in_helper(obj2);
36354 if (arg3 == NULL) SWIG_fail;
36355 temp3 = true;
36356 }
36357 if (obj3) {
36358 ecode4 = SWIG_AsVal_int(obj3, &val4);
36359 if (!SWIG_IsOK(ecode4)) {
36360 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36361 }
36362 arg4 = static_cast< int >(val4);
36363 }
36364 if (obj4) {
36365 ecode5 = SWIG_AsVal_int(obj4, &val5);
36366 if (!SWIG_IsOK(ecode5)) {
36367 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36368 }
36369 arg5 = static_cast< int >(val5);
36370 }
36371 if (obj5) {
36372 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36373 if (!SWIG_IsOK(res6)) {
36374 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36375 }
1bd55598
RD
36376 }
36377 {
36378 PyThreadState* __tstate = wxPyBeginAllowThreads();
36379 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36380 wxPyEndAllowThreads(__tstate);
36381 if (PyErr_Occurred()) SWIG_fail;
36382 }
36383 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36384 {
36385 if (temp3)
36386 delete arg3;
36387 }
36388 return resultobj;
36389fail:
36390 {
36391 if (temp3)
36392 delete arg3;
36393 }
36394 return NULL;
36395}
36396
36397
36398SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36399 PyObject *resultobj = 0;
36400 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36401 wxTreeItemId *arg2 = 0 ;
36402 void *argp1 = 0 ;
36403 int res1 = 0 ;
36404 void *argp2 = 0 ;
36405 int res2 = 0 ;
36406 PyObject * obj0 = 0 ;
36407 PyObject * obj1 = 0 ;
36408 char * kwnames[] = {
36409 (char *) "self",(char *) "item", NULL
36410 };
36411
36412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36414 if (!SWIG_IsOK(res1)) {
36415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36416 }
36417 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36418 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36419 if (!SWIG_IsOK(res2)) {
36420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36421 }
36422 if (!argp2) {
36423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36424 }
36425 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36426 {
36427 PyThreadState* __tstate = wxPyBeginAllowThreads();
36428 (arg1)->Delete((wxTreeItemId const &)*arg2);
36429 wxPyEndAllowThreads(__tstate);
36430 if (PyErr_Occurred()) SWIG_fail;
36431 }
36432 resultobj = SWIG_Py_Void();
36433 return resultobj;
36434fail:
36435 return NULL;
36436}
36437
36438
36439SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36440 PyObject *resultobj = 0;
36441 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36442 wxTreeItemId *arg2 = 0 ;
36443 void *argp1 = 0 ;
36444 int res1 = 0 ;
36445 void *argp2 = 0 ;
36446 int res2 = 0 ;
36447 PyObject * obj0 = 0 ;
36448 PyObject * obj1 = 0 ;
36449 char * kwnames[] = {
36450 (char *) "self",(char *) "item", NULL
36451 };
36452
36453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36455 if (!SWIG_IsOK(res1)) {
36456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36457 }
36458 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36459 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36460 if (!SWIG_IsOK(res2)) {
36461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36462 }
36463 if (!argp2) {
36464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36465 }
36466 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36467 {
36468 PyThreadState* __tstate = wxPyBeginAllowThreads();
36469 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36470 wxPyEndAllowThreads(__tstate);
36471 if (PyErr_Occurred()) SWIG_fail;
36472 }
36473 resultobj = SWIG_Py_Void();
36474 return resultobj;
36475fail:
36476 return NULL;
d55e5bfc
RD
36477}
36478
36479
1bd55598
RD
36480SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36481 PyObject *resultobj = 0;
36482 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36483 void *argp1 = 0 ;
36484 int res1 = 0 ;
36485 PyObject *swig_obj[1] ;
36486
36487 if (!args) SWIG_fail;
36488 swig_obj[0] = args;
36489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36490 if (!SWIG_IsOK(res1)) {
36491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36492 }
36493 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36494 {
36495 PyThreadState* __tstate = wxPyBeginAllowThreads();
36496 (arg1)->DeleteAllItems();
36497 wxPyEndAllowThreads(__tstate);
36498 if (PyErr_Occurred()) SWIG_fail;
36499 }
36500 resultobj = SWIG_Py_Void();
36501 return resultobj;
36502fail:
36503 return NULL;
36504}
36505
36506
36507SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36508 PyObject *resultobj = 0;
36509 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36510 wxTreeItemId *arg2 = 0 ;
36511 void *argp1 = 0 ;
36512 int res1 = 0 ;
36513 void *argp2 = 0 ;
36514 int res2 = 0 ;
36515 PyObject * obj0 = 0 ;
36516 PyObject * obj1 = 0 ;
36517 char * kwnames[] = {
36518 (char *) "self",(char *) "item", NULL
36519 };
36520
36521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36523 if (!SWIG_IsOK(res1)) {
36524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36525 }
36526 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36527 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36528 if (!SWIG_IsOK(res2)) {
36529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36530 }
36531 if (!argp2) {
36532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36533 }
36534 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36535 {
36536 PyThreadState* __tstate = wxPyBeginAllowThreads();
36537 (arg1)->Expand((wxTreeItemId const &)*arg2);
36538 wxPyEndAllowThreads(__tstate);
36539 if (PyErr_Occurred()) SWIG_fail;
36540 }
36541 resultobj = SWIG_Py_Void();
36542 return resultobj;
36543fail:
36544 return NULL;
36545}
36546
36547
3d6c9062
RD
36548SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36549 PyObject *resultobj = 0;
36550 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36551 wxTreeItemId *arg2 = 0 ;
36552 void *argp1 = 0 ;
36553 int res1 = 0 ;
36554 void *argp2 = 0 ;
36555 int res2 = 0 ;
36556 PyObject * obj0 = 0 ;
36557 PyObject * obj1 = 0 ;
36558 char * kwnames[] = {
36559 (char *) "self",(char *) "item", NULL
36560 };
36561
36562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36564 if (!SWIG_IsOK(res1)) {
36565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36566 }
36567 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36568 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36569 if (!SWIG_IsOK(res2)) {
36570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36571 }
36572 if (!argp2) {
36573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36574 }
36575 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36576 {
36577 PyThreadState* __tstate = wxPyBeginAllowThreads();
36578 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36579 wxPyEndAllowThreads(__tstate);
36580 if (PyErr_Occurred()) SWIG_fail;
36581 }
36582 resultobj = SWIG_Py_Void();
36583 return resultobj;
36584fail:
36585 return NULL;
36586}
36587
36588
36589SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36590 PyObject *resultobj = 0;
36591 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36592 void *argp1 = 0 ;
36593 int res1 = 0 ;
36594 PyObject *swig_obj[1] ;
36595
36596 if (!args) SWIG_fail;
36597 swig_obj[0] = args;
36598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36599 if (!SWIG_IsOK(res1)) {
36600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36601 }
36602 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36603 {
36604 PyThreadState* __tstate = wxPyBeginAllowThreads();
36605 (arg1)->ExpandAll();
36606 wxPyEndAllowThreads(__tstate);
36607 if (PyErr_Occurred()) SWIG_fail;
36608 }
36609 resultobj = SWIG_Py_Void();
36610 return resultobj;
36611fail:
36612 return NULL;
36613}
36614
36615
1bd55598
RD
36616SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36617 PyObject *resultobj = 0;
36618 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36619 wxTreeItemId *arg2 = 0 ;
36620 void *argp1 = 0 ;
36621 int res1 = 0 ;
36622 void *argp2 = 0 ;
36623 int res2 = 0 ;
36624 PyObject * obj0 = 0 ;
36625 PyObject * obj1 = 0 ;
36626 char * kwnames[] = {
36627 (char *) "self",(char *) "item", NULL
36628 };
36629
36630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36632 if (!SWIG_IsOK(res1)) {
36633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36634 }
36635 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36636 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36637 if (!SWIG_IsOK(res2)) {
36638 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36639 }
36640 if (!argp2) {
36641 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36642 }
36643 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36644 {
36645 PyThreadState* __tstate = wxPyBeginAllowThreads();
36646 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36647 wxPyEndAllowThreads(__tstate);
36648 if (PyErr_Occurred()) SWIG_fail;
36649 }
36650 resultobj = SWIG_Py_Void();
36651 return resultobj;
36652fail:
36653 return NULL;
36654}
36655
36656
36657SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36658 PyObject *resultobj = 0;
36659 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36660 wxTreeItemId *arg2 = 0 ;
36661 void *argp1 = 0 ;
36662 int res1 = 0 ;
36663 void *argp2 = 0 ;
36664 int res2 = 0 ;
36665 PyObject * obj0 = 0 ;
36666 PyObject * obj1 = 0 ;
36667 char * kwnames[] = {
36668 (char *) "self",(char *) "item", NULL
36669 };
36670
36671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36673 if (!SWIG_IsOK(res1)) {
36674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36675 }
36676 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36677 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36678 if (!SWIG_IsOK(res2)) {
36679 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36680 }
36681 if (!argp2) {
36682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36683 }
36684 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36685 {
36686 PyThreadState* __tstate = wxPyBeginAllowThreads();
36687 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36688 wxPyEndAllowThreads(__tstate);
36689 if (PyErr_Occurred()) SWIG_fail;
36690 }
36691 resultobj = SWIG_Py_Void();
36692 return resultobj;
36693fail:
36694 return NULL;
36695}
36696
36697
36698SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36699 PyObject *resultobj = 0;
36700 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36701 wxTreeItemId *arg2 = 0 ;
36702 void *argp1 = 0 ;
36703 int res1 = 0 ;
36704 void *argp2 = 0 ;
36705 int res2 = 0 ;
36706 PyObject * obj0 = 0 ;
36707 PyObject * obj1 = 0 ;
36708 char * kwnames[] = {
36709 (char *) "self",(char *) "item", NULL
36710 };
36711
36712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36714 if (!SWIG_IsOK(res1)) {
36715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36716 }
36717 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36718 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36719 if (!SWIG_IsOK(res2)) {
36720 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36721 }
36722 if (!argp2) {
36723 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36724 }
36725 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36726 {
36727 PyThreadState* __tstate = wxPyBeginAllowThreads();
36728 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36729 wxPyEndAllowThreads(__tstate);
36730 if (PyErr_Occurred()) SWIG_fail;
36731 }
36732 resultobj = SWIG_Py_Void();
36733 return resultobj;
36734fail:
36735 return NULL;
d55e5bfc
RD
36736}
36737
36738
1bd55598
RD
36739SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36740 PyObject *resultobj = 0;
36741 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36742 void *argp1 = 0 ;
36743 int res1 = 0 ;
36744 PyObject *swig_obj[1] ;
36745
36746 if (!args) SWIG_fail;
36747 swig_obj[0] = args;
36748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36749 if (!SWIG_IsOK(res1)) {
36750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36751 }
36752 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36753 {
36754 PyThreadState* __tstate = wxPyBeginAllowThreads();
36755 (arg1)->Unselect();
36756 wxPyEndAllowThreads(__tstate);
36757 if (PyErr_Occurred()) SWIG_fail;
36758 }
36759 resultobj = SWIG_Py_Void();
36760 return resultobj;
36761fail:
36762 return NULL;
36763}
36764
36765
36766SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36767 PyObject *resultobj = 0;
36768 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36769 wxTreeItemId *arg2 = 0 ;
36770 void *argp1 = 0 ;
36771 int res1 = 0 ;
36772 void *argp2 = 0 ;
36773 int res2 = 0 ;
36774 PyObject * obj0 = 0 ;
36775 PyObject * obj1 = 0 ;
36776 char * kwnames[] = {
36777 (char *) "self",(char *) "item", NULL
36778 };
36779
36780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36782 if (!SWIG_IsOK(res1)) {
36783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36784 }
36785 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36786 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36787 if (!SWIG_IsOK(res2)) {
36788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36789 }
36790 if (!argp2) {
36791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36792 }
36793 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36794 {
36795 PyThreadState* __tstate = wxPyBeginAllowThreads();
36796 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36797 wxPyEndAllowThreads(__tstate);
36798 if (PyErr_Occurred()) SWIG_fail;
36799 }
36800 resultobj = SWIG_Py_Void();
36801 return resultobj;
36802fail:
36803 return NULL;
d55e5bfc
RD
36804}
36805
36806
1bd55598
RD
36807SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36808 PyObject *resultobj = 0;
36809 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36810 void *argp1 = 0 ;
36811 int res1 = 0 ;
36812 PyObject *swig_obj[1] ;
36813
36814 if (!args) SWIG_fail;
36815 swig_obj[0] = args;
36816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36817 if (!SWIG_IsOK(res1)) {
36818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36819 }
36820 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36821 {
36822 PyThreadState* __tstate = wxPyBeginAllowThreads();
36823 (arg1)->UnselectAll();
36824 wxPyEndAllowThreads(__tstate);
36825 if (PyErr_Occurred()) SWIG_fail;
36826 }
36827 resultobj = SWIG_Py_Void();
36828 return resultobj;
36829fail:
36830 return NULL;
36831}
36832
36833
36834SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36835 PyObject *resultobj = 0;
36836 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36837 wxTreeItemId *arg2 = 0 ;
36838 bool arg3 = (bool) true ;
36839 void *argp1 = 0 ;
36840 int res1 = 0 ;
36841 void *argp2 = 0 ;
36842 int res2 = 0 ;
36843 bool val3 ;
36844 int ecode3 = 0 ;
36845 PyObject * obj0 = 0 ;
36846 PyObject * obj1 = 0 ;
36847 PyObject * obj2 = 0 ;
36848 char * kwnames[] = {
36849 (char *) "self",(char *) "item",(char *) "select", NULL
36850 };
36851
36852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36854 if (!SWIG_IsOK(res1)) {
36855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36856 }
36857 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36858 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36859 if (!SWIG_IsOK(res2)) {
36860 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36861 }
36862 if (!argp2) {
36863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36864 }
36865 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36866 if (obj2) {
36867 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36868 if (!SWIG_IsOK(ecode3)) {
36869 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36870 }
36871 arg3 = static_cast< bool >(val3);
36872 }
36873 {
36874 PyThreadState* __tstate = wxPyBeginAllowThreads();
36875 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36876 wxPyEndAllowThreads(__tstate);
36877 if (PyErr_Occurred()) SWIG_fail;
36878 }
36879 resultobj = SWIG_Py_Void();
36880 return resultobj;
36881fail:
36882 return NULL;
36883}
36884
36885
36886SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36887 PyObject *resultobj = 0;
36888 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36889 wxTreeItemId *arg2 = 0 ;
36890 void *argp1 = 0 ;
36891 int res1 = 0 ;
36892 void *argp2 = 0 ;
36893 int res2 = 0 ;
36894 PyObject * obj0 = 0 ;
36895 PyObject * obj1 = 0 ;
36896 char * kwnames[] = {
36897 (char *) "self",(char *) "item", NULL
36898 };
36899
36900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36902 if (!SWIG_IsOK(res1)) {
36903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36904 }
36905 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36906 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36907 if (!SWIG_IsOK(res2)) {
36908 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36909 }
36910 if (!argp2) {
36911 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36912 }
36913 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36914 {
36915 PyThreadState* __tstate = wxPyBeginAllowThreads();
36916 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36917 wxPyEndAllowThreads(__tstate);
36918 if (PyErr_Occurred()) SWIG_fail;
36919 }
36920 resultobj = SWIG_Py_Void();
36921 return resultobj;
36922fail:
36923 return NULL;
36924}
36925
36926
36927SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36928 PyObject *resultobj = 0;
36929 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36930 wxTreeItemId *arg2 = 0 ;
36931 void *argp1 = 0 ;
36932 int res1 = 0 ;
36933 void *argp2 = 0 ;
36934 int res2 = 0 ;
36935 PyObject * obj0 = 0 ;
36936 PyObject * obj1 = 0 ;
36937 char * kwnames[] = {
36938 (char *) "self",(char *) "item", NULL
36939 };
36940
36941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36943 if (!SWIG_IsOK(res1)) {
36944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36945 }
36946 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36947 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36948 if (!SWIG_IsOK(res2)) {
36949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36950 }
36951 if (!argp2) {
36952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36953 }
36954 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36955 {
36956 PyThreadState* __tstate = wxPyBeginAllowThreads();
36957 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36958 wxPyEndAllowThreads(__tstate);
36959 if (PyErr_Occurred()) SWIG_fail;
36960 }
36961 resultobj = SWIG_Py_Void();
36962 return resultobj;
36963fail:
36964 return NULL;
36965}
36966
36967
36968SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36969 PyObject *resultobj = 0;
36970 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36971 wxTreeItemId *arg2 = 0 ;
36972 void *argp1 = 0 ;
36973 int res1 = 0 ;
36974 void *argp2 = 0 ;
36975 int res2 = 0 ;
36976 PyObject * obj0 = 0 ;
36977 PyObject * obj1 = 0 ;
36978 char * kwnames[] = {
36979 (char *) "self",(char *) "item", NULL
36980 };
36981
36982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36984 if (!SWIG_IsOK(res1)) {
36985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36986 }
36987 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36988 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36989 if (!SWIG_IsOK(res2)) {
36990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36991 }
36992 if (!argp2) {
36993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36994 }
36995 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36996 {
36997 PyThreadState* __tstate = wxPyBeginAllowThreads();
36998 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36999 wxPyEndAllowThreads(__tstate);
37000 if (PyErr_Occurred()) SWIG_fail;
37001 }
37002 resultobj = SWIG_Py_Void();
37003 return resultobj;
37004fail:
37005 return NULL;
37006}
37007
37008
37009SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37010 PyObject *resultobj = 0;
37011 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37012 wxTreeItemId *arg2 = 0 ;
37013 void *argp1 = 0 ;
37014 int res1 = 0 ;
37015 void *argp2 = 0 ;
37016 int res2 = 0 ;
37017 PyObject * obj0 = 0 ;
37018 PyObject * obj1 = 0 ;
37019 char * kwnames[] = {
37020 (char *) "self",(char *) "item", NULL
37021 };
37022
37023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
37024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37025 if (!SWIG_IsOK(res1)) {
37026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37027 }
37028 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37029 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37030 if (!SWIG_IsOK(res2)) {
37031 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37032 }
37033 if (!argp2) {
37034 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37035 }
37036 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37037 {
37038 PyThreadState* __tstate = wxPyBeginAllowThreads();
37039 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
37040 wxPyEndAllowThreads(__tstate);
37041 if (PyErr_Occurred()) SWIG_fail;
37042 }
37043 resultobj = SWIG_Py_Void();
37044 return resultobj;
37045fail:
37046 return NULL;
d55e5bfc
RD
37047}
37048
37049
1bd55598
RD
37050SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37051 PyObject *resultobj = 0;
37052 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37053 wxTextCtrl *result = 0 ;
37054 void *argp1 = 0 ;
37055 int res1 = 0 ;
37056 PyObject *swig_obj[1] ;
37057
37058 if (!args) SWIG_fail;
37059 swig_obj[0] = args;
37060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37061 if (!SWIG_IsOK(res1)) {
37062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37063 }
37064 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37065 {
37066 PyThreadState* __tstate = wxPyBeginAllowThreads();
37067 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
37068 wxPyEndAllowThreads(__tstate);
37069 if (PyErr_Occurred()) SWIG_fail;
37070 }
37071 {
37072 resultobj = wxPyMake_wxObject(result, 0);
37073 }
37074 return resultobj;
37075fail:
37076 return NULL;
37077}
37078
37079
37080SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37081 PyObject *resultobj = 0;
37082 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37083 wxTreeItemId *arg2 = 0 ;
37084 void *argp1 = 0 ;
37085 int res1 = 0 ;
37086 void *argp2 = 0 ;
37087 int res2 = 0 ;
37088 PyObject * obj0 = 0 ;
37089 PyObject * obj1 = 0 ;
37090 char * kwnames[] = {
37091 (char *) "self",(char *) "item", NULL
37092 };
37093
37094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
37095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37096 if (!SWIG_IsOK(res1)) {
37097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37098 }
37099 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37100 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37101 if (!SWIG_IsOK(res2)) {
37102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37103 }
37104 if (!argp2) {
37105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37106 }
37107 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37108 {
37109 PyThreadState* __tstate = wxPyBeginAllowThreads();
37110 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
37111 wxPyEndAllowThreads(__tstate);
37112 if (PyErr_Occurred()) SWIG_fail;
37113 }
37114 resultobj = SWIG_Py_Void();
37115 return resultobj;
37116fail:
37117 return NULL;
37118}
37119
37120
37121SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37122 PyObject *resultobj = 0;
37123 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37124 wxPoint *arg2 = 0 ;
37125 int *arg3 = 0 ;
37126 wxTreeItemId result;
37127 void *argp1 = 0 ;
37128 int res1 = 0 ;
37129 wxPoint temp2 ;
37130 int temp3 ;
37131 int res3 = SWIG_TMPOBJ ;
37132 PyObject * obj0 = 0 ;
37133 PyObject * obj1 = 0 ;
37134 char * kwnames[] = {
37135 (char *) "self",(char *) "point", NULL
37136 };
37137
37138 arg3 = &temp3;
37139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
37140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37141 if (!SWIG_IsOK(res1)) {
37142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37143 }
37144 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37145 {
37146 arg2 = &temp2;
37147 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37148 }
37149 {
37150 PyThreadState* __tstate = wxPyBeginAllowThreads();
37151 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
37152 wxPyEndAllowThreads(__tstate);
37153 if (PyErr_Occurred()) SWIG_fail;
37154 }
37155 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37156 if (SWIG_IsTmpObj(res3)) {
37157 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
37158 } else {
37159 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
37161 }
37162 return resultobj;
37163fail:
37164 return NULL;
37165}
37166
37167
37168SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37169 PyObject *resultobj = 0;
37170 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37171 wxTreeItemId *arg2 = 0 ;
37172 bool arg3 = (bool) false ;
37173 PyObject *result = 0 ;
37174 void *argp1 = 0 ;
37175 int res1 = 0 ;
37176 void *argp2 = 0 ;
37177 int res2 = 0 ;
37178 bool val3 ;
37179 int ecode3 = 0 ;
37180 PyObject * obj0 = 0 ;
37181 PyObject * obj1 = 0 ;
37182 PyObject * obj2 = 0 ;
37183 char * kwnames[] = {
37184 (char *) "self",(char *) "item",(char *) "textOnly", NULL
37185 };
37186
37187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37189 if (!SWIG_IsOK(res1)) {
37190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37191 }
37192 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37193 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37194 if (!SWIG_IsOK(res2)) {
37195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37196 }
37197 if (!argp2) {
37198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
37199 }
37200 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
37201 if (obj2) {
37202 ecode3 = SWIG_AsVal_bool(obj2, &val3);
37203 if (!SWIG_IsOK(ecode3)) {
37204 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
37205 }
37206 arg3 = static_cast< bool >(val3);
37207 }
37208 {
37209 PyThreadState* __tstate = wxPyBeginAllowThreads();
37210 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
37211 wxPyEndAllowThreads(__tstate);
37212 if (PyErr_Occurred()) SWIG_fail;
37213 }
37214 resultobj = result;
37215 return resultobj;
37216fail:
37217 return NULL;
37218}
37219
37220
37221SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37222 PyObject *resultobj = 0;
37223 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
37224 SwigValueWrapper<wxVisualAttributes > result;
37225 int val1 ;
37226 int ecode1 = 0 ;
37227 PyObject * obj0 = 0 ;
37228 char * kwnames[] = {
37229 (char *) "variant", NULL
37230 };
37231
37232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
37233 if (obj0) {
37234 ecode1 = SWIG_AsVal_int(obj0, &val1);
37235 if (!SWIG_IsOK(ecode1)) {
37236 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
37237 }
37238 arg1 = static_cast< wxWindowVariant >(val1);
37239 }
37240 {
37241 if (!wxPyCheckForApp()) SWIG_fail;
37242 PyThreadState* __tstate = wxPyBeginAllowThreads();
37243 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
37244 wxPyEndAllowThreads(__tstate);
37245 if (PyErr_Occurred()) SWIG_fail;
37246 }
37247 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
37248 return resultobj;
37249fail:
37250 return NULL;
d55e5bfc
RD
37251}
37252
37253
2131d850
RD
37254SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37255 PyObject *resultobj = 0;
37256 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37257 bool arg2 ;
37258 void *argp1 = 0 ;
37259 int res1 = 0 ;
37260 bool val2 ;
37261 int ecode2 = 0 ;
37262 PyObject * obj0 = 0 ;
37263 PyObject * obj1 = 0 ;
37264 char * kwnames[] = {
37265 (char *) "self",(char *) "q", NULL
37266 };
37267
37268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37270 if (!SWIG_IsOK(res1)) {
37271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37272 }
37273 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37274 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37275 if (!SWIG_IsOK(ecode2)) {
37276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37277 }
37278 arg2 = static_cast< bool >(val2);
37279 {
37280 PyThreadState* __tstate = wxPyBeginAllowThreads();
37281 (arg1)->SetQuickBestSize(arg2);
37282 wxPyEndAllowThreads(__tstate);
37283 if (PyErr_Occurred()) SWIG_fail;
37284 }
37285 resultobj = SWIG_Py_Void();
37286 return resultobj;
37287fail:
37288 return NULL;
37289}
37290
37291
37292SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37293 PyObject *resultobj = 0;
37294 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37295 bool result;
37296 void *argp1 = 0 ;
37297 int res1 = 0 ;
37298 PyObject *swig_obj[1] ;
37299
37300 if (!args) SWIG_fail;
37301 swig_obj[0] = args;
37302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37303 if (!SWIG_IsOK(res1)) {
37304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37305 }
37306 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37307 {
37308 PyThreadState* __tstate = wxPyBeginAllowThreads();
37309 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37310 wxPyEndAllowThreads(__tstate);
37311 if (PyErr_Occurred()) SWIG_fail;
37312 }
37313 {
37314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37315 }
37316 return resultobj;
37317fail:
37318 return NULL;
37319}
37320
37321
1bd55598
RD
37322SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37323 PyObject *obj;
37324 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37325 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37326 return SWIG_Py_Void();
d55e5bfc
RD
37327}
37328
1bd55598
RD
37329SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37330 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
37331}
37332
1bd55598
RD
37333SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37334 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37335 return 1;
d55e5bfc
RD
37336}
37337
37338
1bd55598
RD
37339SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37340 PyObject *pyobj = 0;
37341
37342 {
37343#if wxUSE_UNICODE
37344 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37345#else
37346 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37347#endif
37348 }
37349 return pyobj;
37350}
37351
37352
37353SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37354 PyObject *resultobj = 0;
37355 wxWindow *arg1 = (wxWindow *) 0 ;
37356 int arg2 = (int) (int)-1 ;
37357 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37358 wxString *arg3 = (wxString *) &arg3_defvalue ;
37359 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37360 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37361 wxSize const &arg5_defvalue = wxDefaultSize ;
37362 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37363 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37364 wxString const &arg7_defvalue = wxPyEmptyString ;
37365 wxString *arg7 = (wxString *) &arg7_defvalue ;
37366 int arg8 = (int) 0 ;
37367 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37368 wxString *arg9 = (wxString *) &arg9_defvalue ;
37369 wxGenericDirCtrl *result = 0 ;
37370 void *argp1 = 0 ;
37371 int res1 = 0 ;
37372 int val2 ;
37373 int ecode2 = 0 ;
37374 bool temp3 = false ;
37375 wxPoint temp4 ;
37376 wxSize temp5 ;
37377 long val6 ;
37378 int ecode6 = 0 ;
37379 bool temp7 = false ;
37380 int val8 ;
37381 int ecode8 = 0 ;
37382 bool temp9 = false ;
37383 PyObject * obj0 = 0 ;
37384 PyObject * obj1 = 0 ;
37385 PyObject * obj2 = 0 ;
37386 PyObject * obj3 = 0 ;
37387 PyObject * obj4 = 0 ;
37388 PyObject * obj5 = 0 ;
37389 PyObject * obj6 = 0 ;
37390 PyObject * obj7 = 0 ;
37391 PyObject * obj8 = 0 ;
37392 char * kwnames[] = {
37393 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37394 };
37395
37396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37398 if (!SWIG_IsOK(res1)) {
37399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37400 }
37401 arg1 = reinterpret_cast< wxWindow * >(argp1);
37402 if (obj1) {
37403 ecode2 = SWIG_AsVal_int(obj1, &val2);
37404 if (!SWIG_IsOK(ecode2)) {
37405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37406 }
37407 arg2 = static_cast< int >(val2);
37408 }
37409 if (obj2) {
36ed4f51 37410 {
1bd55598
RD
37411 arg3 = wxString_in_helper(obj2);
37412 if (arg3 == NULL) SWIG_fail;
37413 temp3 = true;
36ed4f51 37414 }
1bd55598
RD
37415 }
37416 if (obj3) {
d55e5bfc 37417 {
1bd55598
RD
37418 arg4 = &temp4;
37419 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 37420 }
1bd55598
RD
37421 }
37422 if (obj4) {
36ed4f51 37423 {
1bd55598
RD
37424 arg5 = &temp5;
37425 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37426 }
1bd55598
RD
37427 }
37428 if (obj5) {
37429 ecode6 = SWIG_AsVal_long(obj5, &val6);
37430 if (!SWIG_IsOK(ecode6)) {
37431 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37432 }
37433 arg6 = static_cast< long >(val6);
37434 }
37435 if (obj6) {
36ed4f51 37436 {
1bd55598
RD
37437 arg7 = wxString_in_helper(obj6);
37438 if (arg7 == NULL) SWIG_fail;
37439 temp7 = true;
36ed4f51 37440 }
1bd55598
RD
37441 }
37442 if (obj7) {
37443 ecode8 = SWIG_AsVal_int(obj7, &val8);
37444 if (!SWIG_IsOK(ecode8)) {
37445 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37446 }
37447 arg8 = static_cast< int >(val8);
37448 }
37449 if (obj8) {
d55e5bfc 37450 {
1bd55598
RD
37451 arg9 = wxString_in_helper(obj8);
37452 if (arg9 == NULL) SWIG_fail;
37453 temp9 = true;
d55e5bfc 37454 }
1bd55598
RD
37455 }
37456 {
37457 if (!wxPyCheckForApp()) SWIG_fail;
37458 PyThreadState* __tstate = wxPyBeginAllowThreads();
37459 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37460 wxPyEndAllowThreads(__tstate);
37461 if (PyErr_Occurred()) SWIG_fail;
37462 }
37463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37464 {
37465 if (temp3)
37466 delete arg3;
37467 }
37468 {
37469 if (temp7)
37470 delete arg7;
37471 }
37472 {
37473 if (temp9)
37474 delete arg9;
37475 }
37476 return resultobj;
37477fail:
37478 {
37479 if (temp3)
37480 delete arg3;
37481 }
37482 {
37483 if (temp7)
37484 delete arg7;
37485 }
37486 {
37487 if (temp9)
37488 delete arg9;
37489 }
37490 return NULL;
d55e5bfc
RD
37491}
37492
37493
1bd55598
RD
37494SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37495 PyObject *resultobj = 0;
37496 wxGenericDirCtrl *result = 0 ;
37497
37498 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37499 {
37500 if (!wxPyCheckForApp()) SWIG_fail;
37501 PyThreadState* __tstate = wxPyBeginAllowThreads();
37502 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37503 wxPyEndAllowThreads(__tstate);
37504 if (PyErr_Occurred()) SWIG_fail;
37505 }
37506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37507 return resultobj;
37508fail:
37509 return NULL;
37510}
37511
37512
37513SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37514 PyObject *resultobj = 0;
37515 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37516 wxWindow *arg2 = (wxWindow *) 0 ;
37517 int arg3 = (int) (int)-1 ;
37518 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37519 wxString *arg4 = (wxString *) &arg4_defvalue ;
37520 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37521 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37522 wxSize const &arg6_defvalue = wxDefaultSize ;
37523 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37524 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37525 wxString const &arg8_defvalue = wxPyEmptyString ;
37526 wxString *arg8 = (wxString *) &arg8_defvalue ;
37527 int arg9 = (int) 0 ;
37528 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37529 wxString *arg10 = (wxString *) &arg10_defvalue ;
37530 bool result;
37531 void *argp1 = 0 ;
37532 int res1 = 0 ;
37533 void *argp2 = 0 ;
37534 int res2 = 0 ;
37535 int val3 ;
37536 int ecode3 = 0 ;
37537 bool temp4 = false ;
37538 wxPoint temp5 ;
37539 wxSize temp6 ;
37540 long val7 ;
37541 int ecode7 = 0 ;
37542 bool temp8 = false ;
37543 int val9 ;
37544 int ecode9 = 0 ;
37545 bool temp10 = false ;
37546 PyObject * obj0 = 0 ;
37547 PyObject * obj1 = 0 ;
37548 PyObject * obj2 = 0 ;
37549 PyObject * obj3 = 0 ;
37550 PyObject * obj4 = 0 ;
37551 PyObject * obj5 = 0 ;
37552 PyObject * obj6 = 0 ;
37553 PyObject * obj7 = 0 ;
37554 PyObject * obj8 = 0 ;
37555 PyObject * obj9 = 0 ;
37556 char * kwnames[] = {
37557 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37558 };
37559
37560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37562 if (!SWIG_IsOK(res1)) {
37563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37564 }
37565 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37566 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37567 if (!SWIG_IsOK(res2)) {
37568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37569 }
37570 arg2 = reinterpret_cast< wxWindow * >(argp2);
37571 if (obj2) {
37572 ecode3 = SWIG_AsVal_int(obj2, &val3);
37573 if (!SWIG_IsOK(ecode3)) {
37574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37575 }
37576 arg3 = static_cast< int >(val3);
37577 }
37578 if (obj3) {
36ed4f51 37579 {
1bd55598
RD
37580 arg4 = wxString_in_helper(obj3);
37581 if (arg4 == NULL) SWIG_fail;
37582 temp4 = true;
36ed4f51 37583 }
1bd55598
RD
37584 }
37585 if (obj4) {
36ed4f51 37586 {
1bd55598
RD
37587 arg5 = &temp5;
37588 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37589 }
1bd55598
RD
37590 }
37591 if (obj5) {
d55e5bfc 37592 {
1bd55598
RD
37593 arg6 = &temp6;
37594 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 37595 }
1bd55598
RD
37596 }
37597 if (obj6) {
37598 ecode7 = SWIG_AsVal_long(obj6, &val7);
37599 if (!SWIG_IsOK(ecode7)) {
37600 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37601 }
37602 arg7 = static_cast< long >(val7);
37603 }
37604 if (obj7) {
d55e5bfc 37605 {
1bd55598
RD
37606 arg8 = wxString_in_helper(obj7);
37607 if (arg8 == NULL) SWIG_fail;
37608 temp8 = true;
d55e5bfc 37609 }
1bd55598
RD
37610 }
37611 if (obj8) {
37612 ecode9 = SWIG_AsVal_int(obj8, &val9);
37613 if (!SWIG_IsOK(ecode9)) {
37614 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37615 }
37616 arg9 = static_cast< int >(val9);
37617 }
37618 if (obj9) {
36ed4f51 37619 {
1bd55598
RD
37620 arg10 = wxString_in_helper(obj9);
37621 if (arg10 == NULL) SWIG_fail;
37622 temp10 = true;
36ed4f51 37623 }
1bd55598
RD
37624 }
37625 {
37626 PyThreadState* __tstate = wxPyBeginAllowThreads();
37627 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37628 wxPyEndAllowThreads(__tstate);
37629 if (PyErr_Occurred()) SWIG_fail;
37630 }
37631 {
37632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37633 }
37634 {
37635 if (temp4)
37636 delete arg4;
37637 }
37638 {
37639 if (temp8)
37640 delete arg8;
37641 }
37642 {
37643 if (temp10)
37644 delete arg10;
37645 }
37646 return resultobj;
37647fail:
37648 {
37649 if (temp4)
37650 delete arg4;
37651 }
37652 {
37653 if (temp8)
37654 delete arg8;
37655 }
37656 {
37657 if (temp10)
37658 delete arg10;
37659 }
37660 return NULL;
37661}
37662
37663
37664SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37665 PyObject *resultobj = 0;
37666 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37667 wxString *arg2 = 0 ;
37668 bool result;
37669 void *argp1 = 0 ;
37670 int res1 = 0 ;
37671 bool temp2 = false ;
37672 PyObject * obj0 = 0 ;
37673 PyObject * obj1 = 0 ;
37674 char * kwnames[] = {
37675 (char *) "self",(char *) "path", NULL
37676 };
37677
37678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37680 if (!SWIG_IsOK(res1)) {
37681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37682 }
37683 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37684 {
37685 arg2 = wxString_in_helper(obj1);
37686 if (arg2 == NULL) SWIG_fail;
37687 temp2 = true;
37688 }
37689 {
37690 PyThreadState* __tstate = wxPyBeginAllowThreads();
37691 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37692 wxPyEndAllowThreads(__tstate);
37693 if (PyErr_Occurred()) SWIG_fail;
37694 }
37695 {
37696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37697 }
37698 {
37699 if (temp2)
37700 delete arg2;
37701 }
37702 return resultobj;
37703fail:
37704 {
37705 if (temp2)
37706 delete arg2;
37707 }
37708 return NULL;
d55e5bfc
RD
37709}
37710
37711
704eda0c
RD
37712SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37713 PyObject *resultobj = 0;
37714 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37715 wxString *arg2 = 0 ;
37716 bool result;
37717 void *argp1 = 0 ;
37718 int res1 = 0 ;
37719 bool temp2 = false ;
37720 PyObject * obj0 = 0 ;
37721 PyObject * obj1 = 0 ;
37722 char * kwnames[] = {
37723 (char *) "self",(char *) "path", NULL
37724 };
37725
37726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37728 if (!SWIG_IsOK(res1)) {
37729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37730 }
37731 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37732 {
37733 arg2 = wxString_in_helper(obj1);
37734 if (arg2 == NULL) SWIG_fail;
37735 temp2 = true;
37736 }
37737 {
37738 PyThreadState* __tstate = wxPyBeginAllowThreads();
37739 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37740 wxPyEndAllowThreads(__tstate);
37741 if (PyErr_Occurred()) SWIG_fail;
37742 }
37743 {
37744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37745 }
37746 {
37747 if (temp2)
37748 delete arg2;
37749 }
37750 return resultobj;
37751fail:
37752 {
37753 if (temp2)
37754 delete arg2;
37755 }
37756 return NULL;
37757}
37758
37759
1bd55598
RD
37760SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37761 PyObject *resultobj = 0;
37762 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37763 wxString result;
37764 void *argp1 = 0 ;
37765 int res1 = 0 ;
37766 PyObject *swig_obj[1] ;
37767
37768 if (!args) SWIG_fail;
37769 swig_obj[0] = args;
37770 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37771 if (!SWIG_IsOK(res1)) {
37772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37773 }
37774 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37775 {
37776 PyThreadState* __tstate = wxPyBeginAllowThreads();
37777 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37778 wxPyEndAllowThreads(__tstate);
37779 if (PyErr_Occurred()) SWIG_fail;
37780 }
37781 {
37782#if wxUSE_UNICODE
37783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37784#else
37785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37786#endif
37787 }
37788 return resultobj;
37789fail:
37790 return NULL;
37791}
37792
37793
37794SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37795 PyObject *resultobj = 0;
37796 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37797 wxString *arg2 = 0 ;
37798 void *argp1 = 0 ;
37799 int res1 = 0 ;
37800 bool temp2 = false ;
37801 PyObject * obj0 = 0 ;
37802 PyObject * obj1 = 0 ;
37803 char * kwnames[] = {
37804 (char *) "self",(char *) "path", NULL
37805 };
37806
37807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37809 if (!SWIG_IsOK(res1)) {
37810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37811 }
37812 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37813 {
37814 arg2 = wxString_in_helper(obj1);
37815 if (arg2 == NULL) SWIG_fail;
37816 temp2 = true;
37817 }
37818 {
37819 PyThreadState* __tstate = wxPyBeginAllowThreads();
37820 (arg1)->SetDefaultPath((wxString const &)*arg2);
37821 wxPyEndAllowThreads(__tstate);
37822 if (PyErr_Occurred()) SWIG_fail;
37823 }
37824 resultobj = SWIG_Py_Void();
37825 {
37826 if (temp2)
37827 delete arg2;
37828 }
37829 return resultobj;
37830fail:
37831 {
37832 if (temp2)
37833 delete arg2;
37834 }
37835 return NULL;
d55e5bfc
RD
37836}
37837
37838
1bd55598
RD
37839SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37840 PyObject *resultobj = 0;
37841 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37842 wxString result;
37843 void *argp1 = 0 ;
37844 int res1 = 0 ;
37845 PyObject *swig_obj[1] ;
37846
37847 if (!args) SWIG_fail;
37848 swig_obj[0] = args;
37849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37850 if (!SWIG_IsOK(res1)) {
37851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37852 }
37853 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37854 {
37855 PyThreadState* __tstate = wxPyBeginAllowThreads();
37856 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37857 wxPyEndAllowThreads(__tstate);
37858 if (PyErr_Occurred()) SWIG_fail;
37859 }
37860 {
37861#if wxUSE_UNICODE
37862 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37863#else
37864 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37865#endif
37866 }
37867 return resultobj;
37868fail:
37869 return NULL;
d55e5bfc
RD
37870}
37871
37872
1bd55598
RD
37873SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37874 PyObject *resultobj = 0;
37875 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37876 wxString result;
37877 void *argp1 = 0 ;
37878 int res1 = 0 ;
37879 PyObject *swig_obj[1] ;
37880
37881 if (!args) SWIG_fail;
37882 swig_obj[0] = args;
37883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37884 if (!SWIG_IsOK(res1)) {
37885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37886 }
37887 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37888 {
37889 PyThreadState* __tstate = wxPyBeginAllowThreads();
37890 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37891 wxPyEndAllowThreads(__tstate);
37892 if (PyErr_Occurred()) SWIG_fail;
37893 }
37894 {
37895#if wxUSE_UNICODE
37896 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37897#else
37898 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37899#endif
37900 }
37901 return resultobj;
37902fail:
37903 return NULL;
37904}
37905
37906
37907SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37908 PyObject *resultobj = 0;
37909 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37910 wxString *arg2 = 0 ;
37911 void *argp1 = 0 ;
37912 int res1 = 0 ;
37913 bool temp2 = false ;
37914 PyObject * obj0 = 0 ;
37915 PyObject * obj1 = 0 ;
37916 char * kwnames[] = {
37917 (char *) "self",(char *) "path", NULL
37918 };
37919
37920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37922 if (!SWIG_IsOK(res1)) {
37923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37924 }
37925 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37926 {
37927 arg2 = wxString_in_helper(obj1);
37928 if (arg2 == NULL) SWIG_fail;
37929 temp2 = true;
37930 }
37931 {
37932 PyThreadState* __tstate = wxPyBeginAllowThreads();
37933 (arg1)->SetPath((wxString const &)*arg2);
37934 wxPyEndAllowThreads(__tstate);
37935 if (PyErr_Occurred()) SWIG_fail;
37936 }
37937 resultobj = SWIG_Py_Void();
37938 {
37939 if (temp2)
37940 delete arg2;
37941 }
37942 return resultobj;
37943fail:
37944 {
37945 if (temp2)
37946 delete arg2;
37947 }
37948 return NULL;
37949}
37950
37951
37952SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37953 PyObject *resultobj = 0;
37954 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37955 bool arg2 ;
37956 void *argp1 = 0 ;
37957 int res1 = 0 ;
37958 bool val2 ;
37959 int ecode2 = 0 ;
37960 PyObject * obj0 = 0 ;
37961 PyObject * obj1 = 0 ;
37962 char * kwnames[] = {
37963 (char *) "self",(char *) "show", NULL
37964 };
37965
37966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37968 if (!SWIG_IsOK(res1)) {
37969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37970 }
37971 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37972 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37973 if (!SWIG_IsOK(ecode2)) {
37974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37975 }
37976 arg2 = static_cast< bool >(val2);
37977 {
37978 PyThreadState* __tstate = wxPyBeginAllowThreads();
37979 (arg1)->ShowHidden(arg2);
37980 wxPyEndAllowThreads(__tstate);
37981 if (PyErr_Occurred()) SWIG_fail;
37982 }
37983 resultobj = SWIG_Py_Void();
37984 return resultobj;
37985fail:
37986 return NULL;
d55e5bfc
RD
37987}
37988
37989
1bd55598
RD
37990SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37991 PyObject *resultobj = 0;
37992 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37993 bool result;
37994 void *argp1 = 0 ;
37995 int res1 = 0 ;
37996 PyObject *swig_obj[1] ;
37997
37998 if (!args) SWIG_fail;
37999 swig_obj[0] = args;
38000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38001 if (!SWIG_IsOK(res1)) {
38002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38003 }
38004 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38005 {
38006 PyThreadState* __tstate = wxPyBeginAllowThreads();
38007 result = (bool)(arg1)->GetShowHidden();
38008 wxPyEndAllowThreads(__tstate);
38009 if (PyErr_Occurred()) SWIG_fail;
38010 }
38011 {
38012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38013 }
38014 return resultobj;
38015fail:
38016 return NULL;
d55e5bfc
RD
38017}
38018
38019
1bd55598
RD
38020SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38021 PyObject *resultobj = 0;
38022 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38023 wxString result;
38024 void *argp1 = 0 ;
38025 int res1 = 0 ;
38026 PyObject *swig_obj[1] ;
38027
38028 if (!args) SWIG_fail;
38029 swig_obj[0] = args;
38030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38031 if (!SWIG_IsOK(res1)) {
38032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38033 }
38034 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38035 {
38036 PyThreadState* __tstate = wxPyBeginAllowThreads();
38037 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
38038 wxPyEndAllowThreads(__tstate);
38039 if (PyErr_Occurred()) SWIG_fail;
38040 }
38041 {
38042#if wxUSE_UNICODE
38043 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
38044#else
38045 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
38046#endif
38047 }
38048 return resultobj;
38049fail:
38050 return NULL;
38051}
38052
38053
38054SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38055 PyObject *resultobj = 0;
38056 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38057 wxString *arg2 = 0 ;
38058 void *argp1 = 0 ;
38059 int res1 = 0 ;
38060 bool temp2 = false ;
38061 PyObject * obj0 = 0 ;
38062 PyObject * obj1 = 0 ;
38063 char * kwnames[] = {
38064 (char *) "self",(char *) "filter", NULL
38065 };
38066
38067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
38068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38069 if (!SWIG_IsOK(res1)) {
38070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38071 }
38072 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38073 {
38074 arg2 = wxString_in_helper(obj1);
38075 if (arg2 == NULL) SWIG_fail;
38076 temp2 = true;
38077 }
38078 {
38079 PyThreadState* __tstate = wxPyBeginAllowThreads();
38080 (arg1)->SetFilter((wxString const &)*arg2);
38081 wxPyEndAllowThreads(__tstate);
38082 if (PyErr_Occurred()) SWIG_fail;
38083 }
38084 resultobj = SWIG_Py_Void();
38085 {
38086 if (temp2)
38087 delete arg2;
38088 }
38089 return resultobj;
38090fail:
38091 {
38092 if (temp2)
38093 delete arg2;
38094 }
38095 return NULL;
d55e5bfc
RD
38096}
38097
38098
1bd55598
RD
38099SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38100 PyObject *resultobj = 0;
38101 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38102 int result;
38103 void *argp1 = 0 ;
38104 int res1 = 0 ;
38105 PyObject *swig_obj[1] ;
38106
38107 if (!args) SWIG_fail;
38108 swig_obj[0] = args;
38109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38110 if (!SWIG_IsOK(res1)) {
38111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38112 }
38113 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38114 {
38115 PyThreadState* __tstate = wxPyBeginAllowThreads();
38116 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
38117 wxPyEndAllowThreads(__tstate);
38118 if (PyErr_Occurred()) SWIG_fail;
38119 }
38120 resultobj = SWIG_From_int(static_cast< int >(result));
38121 return resultobj;
38122fail:
38123 return NULL;
38124}
38125
38126
38127SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38128 PyObject *resultobj = 0;
38129 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38130 int arg2 ;
38131 void *argp1 = 0 ;
38132 int res1 = 0 ;
38133 int val2 ;
38134 int ecode2 = 0 ;
38135 PyObject * obj0 = 0 ;
38136 PyObject * obj1 = 0 ;
38137 char * kwnames[] = {
38138 (char *) "self",(char *) "n", NULL
38139 };
38140
38141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
38142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38143 if (!SWIG_IsOK(res1)) {
38144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38145 }
38146 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38147 ecode2 = SWIG_AsVal_int(obj1, &val2);
38148 if (!SWIG_IsOK(ecode2)) {
38149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
38150 }
38151 arg2 = static_cast< int >(val2);
38152 {
38153 PyThreadState* __tstate = wxPyBeginAllowThreads();
38154 (arg1)->SetFilterIndex(arg2);
38155 wxPyEndAllowThreads(__tstate);
38156 if (PyErr_Occurred()) SWIG_fail;
38157 }
38158 resultobj = SWIG_Py_Void();
38159 return resultobj;
38160fail:
38161 return NULL;
d55e5bfc
RD
38162}
38163
38164
1bd55598
RD
38165SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38166 PyObject *resultobj = 0;
38167 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38168 wxTreeItemId result;
38169 void *argp1 = 0 ;
38170 int res1 = 0 ;
38171 PyObject *swig_obj[1] ;
38172
38173 if (!args) SWIG_fail;
38174 swig_obj[0] = args;
38175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38176 if (!SWIG_IsOK(res1)) {
38177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38178 }
38179 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38180 {
38181 PyThreadState* __tstate = wxPyBeginAllowThreads();
38182 result = (arg1)->GetRootId();
38183 wxPyEndAllowThreads(__tstate);
38184 if (PyErr_Occurred()) SWIG_fail;
38185 }
38186 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38187 return resultobj;
38188fail:
38189 return NULL;
d55e5bfc
RD
38190}
38191
38192
1bd55598
RD
38193SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38194 PyObject *resultobj = 0;
38195 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38196 wxPyTreeCtrl *result = 0 ;
38197 void *argp1 = 0 ;
38198 int res1 = 0 ;
38199 PyObject *swig_obj[1] ;
38200
38201 if (!args) SWIG_fail;
38202 swig_obj[0] = args;
38203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38204 if (!SWIG_IsOK(res1)) {
38205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38206 }
38207 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38208 {
38209 PyThreadState* __tstate = wxPyBeginAllowThreads();
38210 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
38211 wxPyEndAllowThreads(__tstate);
38212 if (PyErr_Occurred()) SWIG_fail;
38213 }
38214 {
38215 resultobj = wxPyMake_wxObject(result, 0);
38216 }
38217 return resultobj;
38218fail:
38219 return NULL;
d55e5bfc
RD
38220}
38221
38222
1bd55598
RD
38223SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38224 PyObject *resultobj = 0;
38225 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38226 wxDirFilterListCtrl *result = 0 ;
38227 void *argp1 = 0 ;
38228 int res1 = 0 ;
38229 PyObject *swig_obj[1] ;
38230
38231 if (!args) SWIG_fail;
38232 swig_obj[0] = args;
38233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38234 if (!SWIG_IsOK(res1)) {
38235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
38236 }
38237 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38238 {
38239 PyThreadState* __tstate = wxPyBeginAllowThreads();
38240 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
38241 wxPyEndAllowThreads(__tstate);
38242 if (PyErr_Occurred()) SWIG_fail;
38243 }
38244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38245 return resultobj;
38246fail:
38247 return NULL;
38248}
38249
38250
38251SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38252 PyObject *resultobj = 0;
38253 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38254 wxTreeItemId arg2 ;
38255 wxString *arg3 = 0 ;
38256 bool *arg4 = 0 ;
38257 wxTreeItemId result;
38258 void *argp1 = 0 ;
38259 int res1 = 0 ;
38260 void *argp2 ;
38261 int res2 = 0 ;
38262 bool temp3 = false ;
38263 bool temp4 ;
38264 int res4 = SWIG_TMPOBJ ;
38265 PyObject * obj0 = 0 ;
38266 PyObject * obj1 = 0 ;
38267 PyObject * obj2 = 0 ;
38268 char * kwnames[] = {
38269 (char *) "self",(char *) "parentId",(char *) "path", NULL
38270 };
38271
38272 arg4 = &temp4;
38273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38275 if (!SWIG_IsOK(res1)) {
38276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38277 }
38278 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38279 {
38280 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38281 if (!SWIG_IsOK(res2)) {
38282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38283 }
38284 if (!argp2) {
38285 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38286 } else {
38287 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38288 arg2 = *temp;
38289 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 38290 }
1bd55598
RD
38291 }
38292 {
38293 arg3 = wxString_in_helper(obj2);
38294 if (arg3 == NULL) SWIG_fail;
38295 temp3 = true;
38296 }
38297 {
38298 PyThreadState* __tstate = wxPyBeginAllowThreads();
38299 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38300 wxPyEndAllowThreads(__tstate);
38301 if (PyErr_Occurred()) SWIG_fail;
38302 }
38303 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38304 if (SWIG_IsTmpObj(res4)) {
38305 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38306 } else {
38307 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38308 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38309 }
38310 {
38311 if (temp3)
38312 delete arg3;
38313 }
38314 return resultobj;
38315fail:
38316 {
38317 if (temp3)
38318 delete arg3;
38319 }
38320 return NULL;
d55e5bfc
RD
38321}
38322
38323
1bd55598
RD
38324SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38325 PyObject *resultobj = 0;
38326 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38327 void *argp1 = 0 ;
38328 int res1 = 0 ;
38329 PyObject *swig_obj[1] ;
38330
38331 if (!args) SWIG_fail;
38332 swig_obj[0] = args;
38333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38334 if (!SWIG_IsOK(res1)) {
38335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38336 }
38337 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38338 {
38339 PyThreadState* __tstate = wxPyBeginAllowThreads();
38340 (arg1)->DoResize();
38341 wxPyEndAllowThreads(__tstate);
38342 if (PyErr_Occurred()) SWIG_fail;
38343 }
38344 resultobj = SWIG_Py_Void();
38345 return resultobj;
38346fail:
38347 return NULL;
38348}
38349
38350
38351SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38352 PyObject *resultobj = 0;
38353 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38354 void *argp1 = 0 ;
38355 int res1 = 0 ;
38356 PyObject *swig_obj[1] ;
38357
38358 if (!args) SWIG_fail;
38359 swig_obj[0] = args;
38360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38361 if (!SWIG_IsOK(res1)) {
38362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38363 }
38364 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38365 {
38366 PyThreadState* __tstate = wxPyBeginAllowThreads();
38367 (arg1)->ReCreateTree();
38368 wxPyEndAllowThreads(__tstate);
38369 if (PyErr_Occurred()) SWIG_fail;
38370 }
38371 resultobj = SWIG_Py_Void();
38372 return resultobj;
38373fail:
38374 return NULL;
38375}
38376
38377
38378SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38379 PyObject *obj;
38380 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38381 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38382 return SWIG_Py_Void();
38383}
38384
38385SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38386 return SWIG_Python_InitShadowInstance(args);
38387}
38388
38389SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38390 PyObject *resultobj = 0;
38391 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38392 int arg2 = (int) (int)-1 ;
38393 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38394 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38395 wxSize const &arg4_defvalue = wxDefaultSize ;
38396 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38397 long arg5 = (long) 0 ;
38398 wxDirFilterListCtrl *result = 0 ;
38399 void *argp1 = 0 ;
38400 int res1 = 0 ;
38401 int val2 ;
38402 int ecode2 = 0 ;
38403 wxPoint temp3 ;
38404 wxSize temp4 ;
38405 long val5 ;
38406 int ecode5 = 0 ;
38407 PyObject * obj0 = 0 ;
38408 PyObject * obj1 = 0 ;
38409 PyObject * obj2 = 0 ;
38410 PyObject * obj3 = 0 ;
38411 PyObject * obj4 = 0 ;
38412 char * kwnames[] = {
38413 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38414 };
38415
38416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38418 if (!SWIG_IsOK(res1)) {
38419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38420 }
38421 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38422 if (obj1) {
38423 ecode2 = SWIG_AsVal_int(obj1, &val2);
38424 if (!SWIG_IsOK(ecode2)) {
38425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38426 }
38427 arg2 = static_cast< int >(val2);
38428 }
38429 if (obj2) {
d55e5bfc 38430 {
1bd55598
RD
38431 arg3 = &temp3;
38432 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38433 }
1bd55598
RD
38434 }
38435 if (obj3) {
d55e5bfc 38436 {
1bd55598
RD
38437 arg4 = &temp4;
38438 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38439 }
1bd55598
RD
38440 }
38441 if (obj4) {
38442 ecode5 = SWIG_AsVal_long(obj4, &val5);
38443 if (!SWIG_IsOK(ecode5)) {
38444 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38445 }
38446 arg5 = static_cast< long >(val5);
38447 }
38448 {
38449 if (!wxPyCheckForApp()) SWIG_fail;
38450 PyThreadState* __tstate = wxPyBeginAllowThreads();
38451 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38452 wxPyEndAllowThreads(__tstate);
38453 if (PyErr_Occurred()) SWIG_fail;
38454 }
38455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38456 return resultobj;
38457fail:
38458 return NULL;
d55e5bfc
RD
38459}
38460
38461
1bd55598
RD
38462SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38463 PyObject *resultobj = 0;
38464 wxDirFilterListCtrl *result = 0 ;
38465
38466 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38467 {
38468 if (!wxPyCheckForApp()) SWIG_fail;
38469 PyThreadState* __tstate = wxPyBeginAllowThreads();
38470 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38471 wxPyEndAllowThreads(__tstate);
38472 if (PyErr_Occurred()) SWIG_fail;
38473 }
38474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38475 return resultobj;
38476fail:
38477 return NULL;
38478}
38479
38480
38481SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38482 PyObject *resultobj = 0;
38483 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38484 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38485 int arg3 = (int) (int)-1 ;
38486 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38487 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38488 wxSize const &arg5_defvalue = wxDefaultSize ;
38489 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38490 long arg6 = (long) 0 ;
38491 bool result;
38492 void *argp1 = 0 ;
38493 int res1 = 0 ;
38494 void *argp2 = 0 ;
38495 int res2 = 0 ;
38496 int val3 ;
38497 int ecode3 = 0 ;
38498 wxPoint temp4 ;
38499 wxSize temp5 ;
38500 long val6 ;
38501 int ecode6 = 0 ;
38502 PyObject * obj0 = 0 ;
38503 PyObject * obj1 = 0 ;
38504 PyObject * obj2 = 0 ;
38505 PyObject * obj3 = 0 ;
38506 PyObject * obj4 = 0 ;
38507 PyObject * obj5 = 0 ;
38508 char * kwnames[] = {
38509 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38510 };
38511
38512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38514 if (!SWIG_IsOK(res1)) {
38515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38516 }
38517 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38518 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38519 if (!SWIG_IsOK(res2)) {
38520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38521 }
38522 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38523 if (obj2) {
38524 ecode3 = SWIG_AsVal_int(obj2, &val3);
38525 if (!SWIG_IsOK(ecode3)) {
38526 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38527 }
38528 arg3 = static_cast< int >(val3);
38529 }
38530 if (obj3) {
36ed4f51 38531 {
1bd55598
RD
38532 arg4 = &temp4;
38533 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 38534 }
1bd55598
RD
38535 }
38536 if (obj4) {
36ed4f51 38537 {
1bd55598
RD
38538 arg5 = &temp5;
38539 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 38540 }
1bd55598
RD
38541 }
38542 if (obj5) {
38543 ecode6 = SWIG_AsVal_long(obj5, &val6);
38544 if (!SWIG_IsOK(ecode6)) {
38545 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38546 }
38547 arg6 = static_cast< long >(val6);
38548 }
38549 {
38550 PyThreadState* __tstate = wxPyBeginAllowThreads();
38551 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38552 wxPyEndAllowThreads(__tstate);
38553 if (PyErr_Occurred()) SWIG_fail;
38554 }
38555 {
38556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38557 }
38558 return resultobj;
38559fail:
38560 return NULL;
38561}
38562
38563
38564SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38565 PyObject *resultobj = 0;
38566 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38567 wxString *arg2 = 0 ;
38568 int arg3 ;
38569 void *argp1 = 0 ;
38570 int res1 = 0 ;
38571 bool temp2 = false ;
38572 int val3 ;
38573 int ecode3 = 0 ;
38574 PyObject * obj0 = 0 ;
38575 PyObject * obj1 = 0 ;
38576 PyObject * obj2 = 0 ;
38577 char * kwnames[] = {
38578 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38579 };
38580
38581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38583 if (!SWIG_IsOK(res1)) {
38584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38585 }
38586 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38587 {
38588 arg2 = wxString_in_helper(obj1);
38589 if (arg2 == NULL) SWIG_fail;
38590 temp2 = true;
38591 }
38592 ecode3 = SWIG_AsVal_int(obj2, &val3);
38593 if (!SWIG_IsOK(ecode3)) {
38594 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38595 }
38596 arg3 = static_cast< int >(val3);
38597 {
38598 PyThreadState* __tstate = wxPyBeginAllowThreads();
38599 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38600 wxPyEndAllowThreads(__tstate);
38601 if (PyErr_Occurred()) SWIG_fail;
38602 }
38603 resultobj = SWIG_Py_Void();
38604 {
38605 if (temp2)
38606 delete arg2;
38607 }
38608 return resultobj;
38609fail:
38610 {
38611 if (temp2)
38612 delete arg2;
38613 }
38614 return NULL;
38615}
38616
38617
38618SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38619 PyObject *obj;
38620 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38621 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38622 return SWIG_Py_Void();
38623}
38624
38625SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38626 return SWIG_Python_InitShadowInstance(args);
38627}
38628
38629SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38630 PyObject *resultobj = 0;
38631 wxWindow *arg1 = (wxWindow *) 0 ;
38632 int arg2 = (int) (int)-1 ;
38633 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38634 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38635 wxSize const &arg4_defvalue = wxDefaultSize ;
38636 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38637 long arg5 = (long) 0 ;
38638 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38639 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38640 wxString const &arg7_defvalue = wxPyControlNameStr ;
38641 wxString *arg7 = (wxString *) &arg7_defvalue ;
38642 wxPyControl *result = 0 ;
38643 void *argp1 = 0 ;
38644 int res1 = 0 ;
38645 int val2 ;
38646 int ecode2 = 0 ;
38647 wxPoint temp3 ;
38648 wxSize temp4 ;
38649 long val5 ;
38650 int ecode5 = 0 ;
38651 void *argp6 = 0 ;
38652 int res6 = 0 ;
38653 bool temp7 = false ;
38654 PyObject * obj0 = 0 ;
38655 PyObject * obj1 = 0 ;
38656 PyObject * obj2 = 0 ;
38657 PyObject * obj3 = 0 ;
38658 PyObject * obj4 = 0 ;
38659 PyObject * obj5 = 0 ;
38660 PyObject * obj6 = 0 ;
38661 char * kwnames[] = {
38662 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38663 };
38664
38665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38667 if (!SWIG_IsOK(res1)) {
38668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38669 }
38670 arg1 = reinterpret_cast< wxWindow * >(argp1);
38671 if (obj1) {
38672 ecode2 = SWIG_AsVal_int(obj1, &val2);
38673 if (!SWIG_IsOK(ecode2)) {
38674 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38675 }
38676 arg2 = static_cast< int >(val2);
38677 }
38678 if (obj2) {
d55e5bfc 38679 {
1bd55598
RD
38680 arg3 = &temp3;
38681 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38682 }
1bd55598
RD
38683 }
38684 if (obj3) {
d55e5bfc 38685 {
1bd55598
RD
38686 arg4 = &temp4;
38687 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38688 }
1bd55598
RD
38689 }
38690 if (obj4) {
38691 ecode5 = SWIG_AsVal_long(obj4, &val5);
38692 if (!SWIG_IsOK(ecode5)) {
38693 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38694 }
38695 arg5 = static_cast< long >(val5);
38696 }
38697 if (obj5) {
38698 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38699 if (!SWIG_IsOK(res6)) {
38700 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 38701 }
1bd55598
RD
38702 if (!argp6) {
38703 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 38704 }
1bd55598
RD
38705 arg6 = reinterpret_cast< wxValidator * >(argp6);
38706 }
38707 if (obj6) {
f20a2e1f 38708 {
1bd55598
RD
38709 arg7 = wxString_in_helper(obj6);
38710 if (arg7 == NULL) SWIG_fail;
38711 temp7 = true;
f20a2e1f 38712 }
1bd55598
RD
38713 }
38714 {
38715 if (!wxPyCheckForApp()) SWIG_fail;
38716 PyThreadState* __tstate = wxPyBeginAllowThreads();
38717 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38718 wxPyEndAllowThreads(__tstate);
38719 if (PyErr_Occurred()) SWIG_fail;
38720 }
38721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38722 {
38723 if (temp7)
38724 delete arg7;
38725 }
38726 return resultobj;
38727fail:
38728 {
38729 if (temp7)
38730 delete arg7;
38731 }
38732 return NULL;
d55e5bfc
RD
38733}
38734
38735
1bd55598
RD
38736SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38737 PyObject *resultobj = 0;
38738 wxPyControl *result = 0 ;
38739
38740 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38741 {
38742 if (!wxPyCheckForApp()) SWIG_fail;
38743 PyThreadState* __tstate = wxPyBeginAllowThreads();
38744 result = (wxPyControl *)new wxPyControl();
38745 wxPyEndAllowThreads(__tstate);
38746 if (PyErr_Occurred()) SWIG_fail;
38747 }
38748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38749 return resultobj;
38750fail:
38751 return NULL;
38752}
38753
38754
38755SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38756 PyObject *resultobj = 0;
38757 wxPyControl *arg1 = (wxPyControl *) 0 ;
38758 PyObject *arg2 = (PyObject *) 0 ;
38759 PyObject *arg3 = (PyObject *) 0 ;
38760 void *argp1 = 0 ;
38761 int res1 = 0 ;
38762 PyObject * obj0 = 0 ;
38763 PyObject * obj1 = 0 ;
38764 PyObject * obj2 = 0 ;
38765 char * kwnames[] = {
38766 (char *) "self",(char *) "self",(char *) "_class", NULL
38767 };
38768
38769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38771 if (!SWIG_IsOK(res1)) {
38772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38773 }
38774 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38775 arg2 = obj1;
38776 arg3 = obj2;
38777 {
38778 PyThreadState* __tstate = wxPyBeginAllowThreads();
38779 (arg1)->_setCallbackInfo(arg2,arg3);
38780 wxPyEndAllowThreads(__tstate);
38781 if (PyErr_Occurred()) SWIG_fail;
38782 }
38783 resultobj = SWIG_Py_Void();
38784 return resultobj;
38785fail:
38786 return NULL;
38787}
38788
38789
1bd55598
RD
38790SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38791 PyObject *resultobj = 0;
38792 wxPyControl *arg1 = (wxPyControl *) 0 ;
38793 wxDC *arg2 = (wxDC *) 0 ;
38794 bool result;
38795 void *argp1 = 0 ;
38796 int res1 = 0 ;
38797 void *argp2 = 0 ;
38798 int res2 = 0 ;
38799 PyObject * obj0 = 0 ;
38800 PyObject * obj1 = 0 ;
38801 char * kwnames[] = {
38802 (char *) "self",(char *) "dc", NULL
38803 };
38804
38805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38807 if (!SWIG_IsOK(res1)) {
38808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38809 }
38810 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38811 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38812 if (!SWIG_IsOK(res2)) {
38813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38814 }
38815 arg2 = reinterpret_cast< wxDC * >(argp2);
38816 {
38817 PyThreadState* __tstate = wxPyBeginAllowThreads();
38818 result = (bool)(arg1)->DoEraseBackground(arg2);
38819 wxPyEndAllowThreads(__tstate);
38820 if (PyErr_Occurred()) SWIG_fail;
38821 }
38822 {
38823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38824 }
38825 return resultobj;
38826fail:
38827 return NULL;
38828}
38829
38830
38831SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38832 PyObject *resultobj = 0;
38833 wxPyControl *arg1 = (wxPyControl *) 0 ;
38834 int arg2 ;
38835 int arg3 ;
38836 int arg4 ;
38837 int arg5 ;
38838 void *argp1 = 0 ;
38839 int res1 = 0 ;
38840 int val2 ;
38841 int ecode2 = 0 ;
38842 int val3 ;
38843 int ecode3 = 0 ;
38844 int val4 ;
38845 int ecode4 = 0 ;
38846 int val5 ;
38847 int ecode5 = 0 ;
38848 PyObject * obj0 = 0 ;
38849 PyObject * obj1 = 0 ;
38850 PyObject * obj2 = 0 ;
38851 PyObject * obj3 = 0 ;
38852 PyObject * obj4 = 0 ;
38853 char * kwnames[] = {
38854 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38855 };
38856
38857 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38858 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38859 if (!SWIG_IsOK(res1)) {
38860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38861 }
38862 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38863 ecode2 = SWIG_AsVal_int(obj1, &val2);
38864 if (!SWIG_IsOK(ecode2)) {
38865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38866 }
38867 arg2 = static_cast< int >(val2);
38868 ecode3 = SWIG_AsVal_int(obj2, &val3);
38869 if (!SWIG_IsOK(ecode3)) {
38870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38871 }
38872 arg3 = static_cast< int >(val3);
38873 ecode4 = SWIG_AsVal_int(obj3, &val4);
38874 if (!SWIG_IsOK(ecode4)) {
38875 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38876 }
38877 arg4 = static_cast< int >(val4);
38878 ecode5 = SWIG_AsVal_int(obj4, &val5);
38879 if (!SWIG_IsOK(ecode5)) {
38880 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38881 }
38882 arg5 = static_cast< int >(val5);
38883 {
38884 PyThreadState* __tstate = wxPyBeginAllowThreads();
38885 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38886 wxPyEndAllowThreads(__tstate);
38887 if (PyErr_Occurred()) SWIG_fail;
38888 }
38889 resultobj = SWIG_Py_Void();
38890 return resultobj;
38891fail:
38892 return NULL;
38893}
38894
38895
38896SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38897 PyObject *resultobj = 0;
38898 wxPyControl *arg1 = (wxPyControl *) 0 ;
38899 int arg2 ;
38900 int arg3 ;
38901 int arg4 ;
38902 int arg5 ;
38903 int arg6 = (int) wxSIZE_AUTO ;
38904 void *argp1 = 0 ;
38905 int res1 = 0 ;
38906 int val2 ;
38907 int ecode2 = 0 ;
38908 int val3 ;
38909 int ecode3 = 0 ;
38910 int val4 ;
38911 int ecode4 = 0 ;
38912 int val5 ;
38913 int ecode5 = 0 ;
38914 int val6 ;
38915 int ecode6 = 0 ;
38916 PyObject * obj0 = 0 ;
38917 PyObject * obj1 = 0 ;
38918 PyObject * obj2 = 0 ;
38919 PyObject * obj3 = 0 ;
38920 PyObject * obj4 = 0 ;
38921 PyObject * obj5 = 0 ;
38922 char * kwnames[] = {
38923 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38924 };
38925
38926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38928 if (!SWIG_IsOK(res1)) {
38929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38930 }
38931 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38932 ecode2 = SWIG_AsVal_int(obj1, &val2);
38933 if (!SWIG_IsOK(ecode2)) {
38934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38935 }
38936 arg2 = static_cast< int >(val2);
38937 ecode3 = SWIG_AsVal_int(obj2, &val3);
38938 if (!SWIG_IsOK(ecode3)) {
38939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38940 }
38941 arg3 = static_cast< int >(val3);
38942 ecode4 = SWIG_AsVal_int(obj3, &val4);
38943 if (!SWIG_IsOK(ecode4)) {
38944 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38945 }
38946 arg4 = static_cast< int >(val4);
38947 ecode5 = SWIG_AsVal_int(obj4, &val5);
38948 if (!SWIG_IsOK(ecode5)) {
38949 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38950 }
38951 arg5 = static_cast< int >(val5);
38952 if (obj5) {
38953 ecode6 = SWIG_AsVal_int(obj5, &val6);
38954 if (!SWIG_IsOK(ecode6)) {
38955 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38956 }
38957 arg6 = static_cast< int >(val6);
38958 }
38959 {
38960 PyThreadState* __tstate = wxPyBeginAllowThreads();
38961 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38962 wxPyEndAllowThreads(__tstate);
38963 if (PyErr_Occurred()) SWIG_fail;
38964 }
38965 resultobj = SWIG_Py_Void();
38966 return resultobj;
38967fail:
38968 return NULL;
38969}
38970
38971
38972SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38973 PyObject *resultobj = 0;
38974 wxPyControl *arg1 = (wxPyControl *) 0 ;
38975 int arg2 ;
38976 int arg3 ;
38977 void *argp1 = 0 ;
38978 int res1 = 0 ;
38979 int val2 ;
38980 int ecode2 = 0 ;
38981 int val3 ;
38982 int ecode3 = 0 ;
38983 PyObject * obj0 = 0 ;
38984 PyObject * obj1 = 0 ;
38985 PyObject * obj2 = 0 ;
38986 char * kwnames[] = {
38987 (char *) "self",(char *) "width",(char *) "height", NULL
38988 };
38989
38990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38992 if (!SWIG_IsOK(res1)) {
38993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38994 }
38995 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38996 ecode2 = SWIG_AsVal_int(obj1, &val2);
38997 if (!SWIG_IsOK(ecode2)) {
38998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38999 }
39000 arg2 = static_cast< int >(val2);
39001 ecode3 = SWIG_AsVal_int(obj2, &val3);
39002 if (!SWIG_IsOK(ecode3)) {
39003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
39004 }
39005 arg3 = static_cast< int >(val3);
39006 {
39007 PyThreadState* __tstate = wxPyBeginAllowThreads();
39008 (arg1)->DoSetClientSize(arg2,arg3);
39009 wxPyEndAllowThreads(__tstate);
39010 if (PyErr_Occurred()) SWIG_fail;
39011 }
39012 resultobj = SWIG_Py_Void();
39013 return resultobj;
39014fail:
39015 return NULL;
39016}
39017
39018
39019SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39020 PyObject *resultobj = 0;
39021 wxPyControl *arg1 = (wxPyControl *) 0 ;
39022 int arg2 ;
39023 int arg3 ;
39024 void *argp1 = 0 ;
39025 int res1 = 0 ;
39026 int val2 ;
39027 int ecode2 = 0 ;
39028 int val3 ;
39029 int ecode3 = 0 ;
39030 PyObject * obj0 = 0 ;
39031 PyObject * obj1 = 0 ;
39032 PyObject * obj2 = 0 ;
39033 char * kwnames[] = {
39034 (char *) "self",(char *) "x",(char *) "y", NULL
39035 };
39036
39037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39039 if (!SWIG_IsOK(res1)) {
39040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
39041 }
39042 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39043 ecode2 = SWIG_AsVal_int(obj1, &val2);
39044 if (!SWIG_IsOK(ecode2)) {
39045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
39046 }
39047 arg2 = static_cast< int >(val2);
39048 ecode3 = SWIG_AsVal_int(obj2, &val3);
39049 if (!SWIG_IsOK(ecode3)) {
39050 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
39051 }
39052 arg3 = static_cast< int >(val3);
39053 {
39054 PyThreadState* __tstate = wxPyBeginAllowThreads();
39055 (arg1)->DoSetVirtualSize(arg2,arg3);
39056 wxPyEndAllowThreads(__tstate);
39057 if (PyErr_Occurred()) SWIG_fail;
39058 }
39059 resultobj = SWIG_Py_Void();
39060 return resultobj;
39061fail:
39062 return NULL;
39063}
39064
39065
39066SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39067 PyObject *resultobj = 0;
39068 wxPyControl *arg1 = (wxPyControl *) 0 ;
39069 int *arg2 = (int *) 0 ;
39070 int *arg3 = (int *) 0 ;
39071 void *argp1 = 0 ;
39072 int res1 = 0 ;
39073 int temp2 ;
39074 int res2 = SWIG_TMPOBJ ;
39075 int temp3 ;
39076 int res3 = SWIG_TMPOBJ ;
39077 PyObject *swig_obj[1] ;
39078
39079 arg2 = &temp2;
39080 arg3 = &temp3;
39081 if (!args) SWIG_fail;
39082 swig_obj[0] = args;
39083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39084 if (!SWIG_IsOK(res1)) {
39085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39086 }
39087 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39088 {
39089 PyThreadState* __tstate = wxPyBeginAllowThreads();
39090 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
39091 wxPyEndAllowThreads(__tstate);
39092 if (PyErr_Occurred()) SWIG_fail;
39093 }
39094 resultobj = SWIG_Py_Void();
39095 if (SWIG_IsTmpObj(res2)) {
39096 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39097 } else {
39098 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39099 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39100 }
39101 if (SWIG_IsTmpObj(res3)) {
39102 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39103 } else {
39104 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39105 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39106 }
39107 return resultobj;
39108fail:
39109 return NULL;
39110}
39111
39112
39113SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39114 PyObject *resultobj = 0;
39115 wxPyControl *arg1 = (wxPyControl *) 0 ;
39116 int *arg2 = (int *) 0 ;
39117 int *arg3 = (int *) 0 ;
39118 void *argp1 = 0 ;
39119 int res1 = 0 ;
39120 int temp2 ;
39121 int res2 = SWIG_TMPOBJ ;
39122 int temp3 ;
39123 int res3 = SWIG_TMPOBJ ;
39124 PyObject *swig_obj[1] ;
39125
39126 arg2 = &temp2;
39127 arg3 = &temp3;
39128 if (!args) SWIG_fail;
39129 swig_obj[0] = args;
39130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39131 if (!SWIG_IsOK(res1)) {
39132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39133 }
39134 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39135 {
39136 PyThreadState* __tstate = wxPyBeginAllowThreads();
39137 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
39138 wxPyEndAllowThreads(__tstate);
39139 if (PyErr_Occurred()) SWIG_fail;
39140 }
39141 resultobj = SWIG_Py_Void();
39142 if (SWIG_IsTmpObj(res2)) {
39143 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39144 } else {
39145 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39146 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39147 }
39148 if (SWIG_IsTmpObj(res3)) {
39149 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39150 } else {
39151 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39152 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39153 }
39154 return resultobj;
39155fail:
39156 return NULL;
39157}
39158
39159
39160SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39161 PyObject *resultobj = 0;
39162 wxPyControl *arg1 = (wxPyControl *) 0 ;
39163 int *arg2 = (int *) 0 ;
39164 int *arg3 = (int *) 0 ;
39165 void *argp1 = 0 ;
39166 int res1 = 0 ;
39167 int temp2 ;
39168 int res2 = SWIG_TMPOBJ ;
39169 int temp3 ;
39170 int res3 = SWIG_TMPOBJ ;
39171 PyObject *swig_obj[1] ;
39172
39173 arg2 = &temp2;
39174 arg3 = &temp3;
39175 if (!args) SWIG_fail;
39176 swig_obj[0] = args;
39177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39178 if (!SWIG_IsOK(res1)) {
39179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39180 }
39181 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39182 {
39183 PyThreadState* __tstate = wxPyBeginAllowThreads();
39184 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
39185 wxPyEndAllowThreads(__tstate);
39186 if (PyErr_Occurred()) SWIG_fail;
39187 }
39188 resultobj = SWIG_Py_Void();
39189 if (SWIG_IsTmpObj(res2)) {
39190 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
39191 } else {
39192 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39193 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
39194 }
39195 if (SWIG_IsTmpObj(res3)) {
39196 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
39197 } else {
39198 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
39199 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
39200 }
39201 return resultobj;
39202fail:
39203 return NULL;
d55e5bfc
RD
39204}
39205
39206
1bd55598
RD
39207SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39208 PyObject *resultobj = 0;
39209 wxPyControl *arg1 = (wxPyControl *) 0 ;
39210 wxSize result;
39211 void *argp1 = 0 ;
39212 int res1 = 0 ;
39213 PyObject *swig_obj[1] ;
39214
39215 if (!args) SWIG_fail;
39216 swig_obj[0] = args;
39217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39218 if (!SWIG_IsOK(res1)) {
39219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39220 }
39221 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39222 {
39223 PyThreadState* __tstate = wxPyBeginAllowThreads();
39224 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
39225 wxPyEndAllowThreads(__tstate);
39226 if (PyErr_Occurred()) SWIG_fail;
39227 }
39228 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39229 return resultobj;
39230fail:
39231 return NULL;
7e08d4ef
RD
39232}
39233
39234
1bd55598
RD
39235SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39236 PyObject *resultobj = 0;
39237 wxPyControl *arg1 = (wxPyControl *) 0 ;
39238 wxSize result;
39239 void *argp1 = 0 ;
39240 int res1 = 0 ;
39241 PyObject *swig_obj[1] ;
39242
39243 if (!args) SWIG_fail;
39244 swig_obj[0] = args;
39245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39246 if (!SWIG_IsOK(res1)) {
39247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39248 }
39249 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39250 {
39251 PyThreadState* __tstate = wxPyBeginAllowThreads();
39252 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39253 wxPyEndAllowThreads(__tstate);
39254 if (PyErr_Occurred()) SWIG_fail;
39255 }
39256 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39257 return resultobj;
39258fail:
39259 return NULL;
d55e5bfc
RD
39260}
39261
39262
1bd55598
RD
39263SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39264 PyObject *resultobj = 0;
39265 wxPyControl *arg1 = (wxPyControl *) 0 ;
39266 SwigValueWrapper<wxVisualAttributes > result;
39267 void *argp1 = 0 ;
39268 int res1 = 0 ;
39269 PyObject *swig_obj[1] ;
39270
39271 if (!args) SWIG_fail;
39272 swig_obj[0] = args;
39273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39274 if (!SWIG_IsOK(res1)) {
39275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39276 }
39277 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39278 {
39279 PyThreadState* __tstate = wxPyBeginAllowThreads();
39280 result = (arg1)->GetDefaultAttributes();
39281 wxPyEndAllowThreads(__tstate);
39282 if (PyErr_Occurred()) SWIG_fail;
39283 }
39284 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39285 return resultobj;
39286fail:
39287 return NULL;
d55e5bfc
RD
39288}
39289
39290
1bd55598
RD
39291SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39292 PyObject *resultobj = 0;
39293 wxPyControl *arg1 = (wxPyControl *) 0 ;
39294 void *argp1 = 0 ;
39295 int res1 = 0 ;
39296 PyObject *swig_obj[1] ;
39297
39298 if (!args) SWIG_fail;
39299 swig_obj[0] = args;
39300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39301 if (!SWIG_IsOK(res1)) {
39302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39303 }
39304 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39305 {
39306 PyThreadState* __tstate = wxPyBeginAllowThreads();
39307 (arg1)->OnInternalIdle();
39308 wxPyEndAllowThreads(__tstate);
39309 if (PyErr_Occurred()) SWIG_fail;
39310 }
39311 resultobj = SWIG_Py_Void();
39312 return resultobj;
39313fail:
39314 return NULL;
39315}
39316
39317
39318SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39319 PyObject *obj;
39320 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39321 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39322 return SWIG_Py_Void();
39323}
39324
39325SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39326 return SWIG_Python_InitShadowInstance(args);
39327}
39328
39329SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39330 PyObject *resultobj = 0;
39331 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39332 int arg2 = (int) 0 ;
39333 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39334 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39335 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
1bd55598
RD
39336 wxHelpEvent *result = 0 ;
39337 int val1 ;
39338 int ecode1 = 0 ;
39339 int val2 ;
39340 int ecode2 = 0 ;
39341 wxPoint temp3 ;
704eda0c
RD
39342 int val4 ;
39343 int ecode4 = 0 ;
1bd55598
RD
39344 PyObject * obj0 = 0 ;
39345 PyObject * obj1 = 0 ;
39346 PyObject * obj2 = 0 ;
704eda0c 39347 PyObject * obj3 = 0 ;
1bd55598 39348 char * kwnames[] = {
704eda0c 39349 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
1bd55598
RD
39350 };
39351
704eda0c 39352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
39353 if (obj0) {
39354 ecode1 = SWIG_AsVal_int(obj0, &val1);
39355 if (!SWIG_IsOK(ecode1)) {
39356 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39357 }
39358 arg1 = static_cast< wxEventType >(val1);
39359 }
39360 if (obj1) {
39361 ecode2 = SWIG_AsVal_int(obj1, &val2);
39362 if (!SWIG_IsOK(ecode2)) {
39363 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39364 }
39365 arg2 = static_cast< int >(val2);
39366 }
39367 if (obj2) {
d55e5bfc 39368 {
1bd55598
RD
39369 arg3 = &temp3;
39370 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39371 }
1bd55598 39372 }
704eda0c
RD
39373 if (obj3) {
39374 ecode4 = SWIG_AsVal_int(obj3, &val4);
39375 if (!SWIG_IsOK(ecode4)) {
39376 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39377 }
39378 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39379 }
1bd55598
RD
39380 {
39381 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39382 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
1bd55598
RD
39383 wxPyEndAllowThreads(__tstate);
39384 if (PyErr_Occurred()) SWIG_fail;
39385 }
39386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39387 return resultobj;
39388fail:
39389 return NULL;
d55e5bfc
RD
39390}
39391
39392
1bd55598
RD
39393SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39394 PyObject *resultobj = 0;
39395 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39396 wxPoint result;
39397 void *argp1 = 0 ;
39398 int res1 = 0 ;
39399 PyObject *swig_obj[1] ;
39400
39401 if (!args) SWIG_fail;
39402 swig_obj[0] = args;
39403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39404 if (!SWIG_IsOK(res1)) {
39405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39406 }
39407 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39408 {
39409 PyThreadState* __tstate = wxPyBeginAllowThreads();
39410 result = ((wxHelpEvent const *)arg1)->GetPosition();
39411 wxPyEndAllowThreads(__tstate);
39412 if (PyErr_Occurred()) SWIG_fail;
39413 }
39414 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39415 return resultobj;
39416fail:
39417 return NULL;
39418}
39419
39420
39421SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39422 PyObject *resultobj = 0;
39423 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39424 wxPoint *arg2 = 0 ;
39425 void *argp1 = 0 ;
39426 int res1 = 0 ;
39427 wxPoint temp2 ;
39428 PyObject * obj0 = 0 ;
39429 PyObject * obj1 = 0 ;
39430 char * kwnames[] = {
39431 (char *) "self",(char *) "pos", NULL
39432 };
39433
39434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39436 if (!SWIG_IsOK(res1)) {
39437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39438 }
39439 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39440 {
39441 arg2 = &temp2;
39442 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39443 }
39444 {
39445 PyThreadState* __tstate = wxPyBeginAllowThreads();
39446 (arg1)->SetPosition((wxPoint const &)*arg2);
39447 wxPyEndAllowThreads(__tstate);
39448 if (PyErr_Occurred()) SWIG_fail;
39449 }
39450 resultobj = SWIG_Py_Void();
39451 return resultobj;
39452fail:
39453 return NULL;
d55e5bfc
RD
39454}
39455
39456
1bd55598
RD
39457SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39458 PyObject *resultobj = 0;
39459 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39460 wxString *result = 0 ;
39461 void *argp1 = 0 ;
39462 int res1 = 0 ;
39463 PyObject *swig_obj[1] ;
39464
39465 if (!args) SWIG_fail;
39466 swig_obj[0] = args;
39467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39468 if (!SWIG_IsOK(res1)) {
39469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39470 }
39471 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39472 {
39473 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39474 {
1bd55598
RD
39475 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39476 result = (wxString *) &_result_ref;
d55e5bfc 39477 }
1bd55598
RD
39478 wxPyEndAllowThreads(__tstate);
39479 if (PyErr_Occurred()) SWIG_fail;
39480 }
39481 {
39482#if wxUSE_UNICODE
39483 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39484#else
39485 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39486#endif
39487 }
39488 return resultobj;
39489fail:
39490 return NULL;
39491}
39492
39493
39494SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39495 PyObject *resultobj = 0;
39496 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39497 wxString *arg2 = 0 ;
39498 void *argp1 = 0 ;
39499 int res1 = 0 ;
39500 bool temp2 = false ;
39501 PyObject * obj0 = 0 ;
39502 PyObject * obj1 = 0 ;
39503 char * kwnames[] = {
39504 (char *) "self",(char *) "link", NULL
39505 };
39506
39507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39509 if (!SWIG_IsOK(res1)) {
39510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39511 }
39512 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39513 {
39514 arg2 = wxString_in_helper(obj1);
39515 if (arg2 == NULL) SWIG_fail;
39516 temp2 = true;
39517 }
39518 {
39519 PyThreadState* __tstate = wxPyBeginAllowThreads();
39520 (arg1)->SetLink((wxString const &)*arg2);
39521 wxPyEndAllowThreads(__tstate);
39522 if (PyErr_Occurred()) SWIG_fail;
39523 }
39524 resultobj = SWIG_Py_Void();
39525 {
39526 if (temp2)
39527 delete arg2;
39528 }
39529 return resultobj;
39530fail:
39531 {
39532 if (temp2)
39533 delete arg2;
39534 }
39535 return NULL;
d55e5bfc
RD
39536}
39537
39538
1bd55598
RD
39539SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39540 PyObject *resultobj = 0;
39541 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39542 wxString *result = 0 ;
39543 void *argp1 = 0 ;
39544 int res1 = 0 ;
39545 PyObject *swig_obj[1] ;
39546
39547 if (!args) SWIG_fail;
39548 swig_obj[0] = args;
39549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39550 if (!SWIG_IsOK(res1)) {
39551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39552 }
39553 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39554 {
39555 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39556 {
1bd55598
RD
39557 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39558 result = (wxString *) &_result_ref;
d55e5bfc 39559 }
1bd55598
RD
39560 wxPyEndAllowThreads(__tstate);
39561 if (PyErr_Occurred()) SWIG_fail;
39562 }
39563 {
39564#if wxUSE_UNICODE
39565 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39566#else
39567 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39568#endif
39569 }
39570 return resultobj;
39571fail:
39572 return NULL;
39573}
39574
39575
39576SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39577 PyObject *resultobj = 0;
39578 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39579 wxString *arg2 = 0 ;
39580 void *argp1 = 0 ;
39581 int res1 = 0 ;
39582 bool temp2 = false ;
39583 PyObject * obj0 = 0 ;
39584 PyObject * obj1 = 0 ;
39585 char * kwnames[] = {
39586 (char *) "self",(char *) "target", NULL
39587 };
39588
39589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39591 if (!SWIG_IsOK(res1)) {
39592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39593 }
39594 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39595 {
39596 arg2 = wxString_in_helper(obj1);
39597 if (arg2 == NULL) SWIG_fail;
39598 temp2 = true;
39599 }
39600 {
39601 PyThreadState* __tstate = wxPyBeginAllowThreads();
39602 (arg1)->SetTarget((wxString const &)*arg2);
39603 wxPyEndAllowThreads(__tstate);
39604 if (PyErr_Occurred()) SWIG_fail;
39605 }
39606 resultobj = SWIG_Py_Void();
39607 {
39608 if (temp2)
39609 delete arg2;
39610 }
39611 return resultobj;
39612fail:
39613 {
39614 if (temp2)
39615 delete arg2;
39616 }
39617 return NULL;
d55e5bfc
RD
39618}
39619
39620
704eda0c
RD
39621SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39622 PyObject *resultobj = 0;
39623 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39624 wxHelpEvent::Origin result;
39625 void *argp1 = 0 ;
39626 int res1 = 0 ;
39627 PyObject *swig_obj[1] ;
39628
39629 if (!args) SWIG_fail;
39630 swig_obj[0] = args;
39631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39632 if (!SWIG_IsOK(res1)) {
39633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39634 }
39635 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39636 {
39637 PyThreadState* __tstate = wxPyBeginAllowThreads();
39638 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39639 wxPyEndAllowThreads(__tstate);
39640 if (PyErr_Occurred()) SWIG_fail;
39641 }
39642 resultobj = SWIG_From_int(static_cast< int >(result));
39643 return resultobj;
39644fail:
39645 return NULL;
39646}
39647
39648
39649SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39650 PyObject *resultobj = 0;
39651 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39652 wxHelpEvent::Origin arg2 ;
39653 void *argp1 = 0 ;
39654 int res1 = 0 ;
39655 int val2 ;
39656 int ecode2 = 0 ;
39657 PyObject * obj0 = 0 ;
39658 PyObject * obj1 = 0 ;
39659 char * kwnames[] = {
39660 (char *) "self",(char *) "origin", NULL
39661 };
39662
39663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39665 if (!SWIG_IsOK(res1)) {
39666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39667 }
39668 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39669 ecode2 = SWIG_AsVal_int(obj1, &val2);
39670 if (!SWIG_IsOK(ecode2)) {
39671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39672 }
39673 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39674 {
39675 PyThreadState* __tstate = wxPyBeginAllowThreads();
39676 (arg1)->SetOrigin(arg2);
39677 wxPyEndAllowThreads(__tstate);
39678 if (PyErr_Occurred()) SWIG_fail;
39679 }
39680 resultobj = SWIG_Py_Void();
39681 return resultobj;
39682fail:
39683 return NULL;
39684}
39685
39686
1bd55598
RD
39687SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39688 PyObject *obj;
39689 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39690 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39691 return SWIG_Py_Void();
39692}
39693
39694SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39695 return SWIG_Python_InitShadowInstance(args);
39696}
39697
39698SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39699 PyObject *resultobj = 0;
39700 wxWindow *arg1 = (wxWindow *) NULL ;
39701 bool arg2 = (bool) true ;
39702 wxContextHelp *result = 0 ;
39703 void *argp1 = 0 ;
39704 int res1 = 0 ;
39705 bool val2 ;
39706 int ecode2 = 0 ;
39707 PyObject * obj0 = 0 ;
39708 PyObject * obj1 = 0 ;
39709 char * kwnames[] = {
39710 (char *) "window",(char *) "doNow", NULL
39711 };
39712
39713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39714 if (obj0) {
39715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39716 if (!SWIG_IsOK(res1)) {
39717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 39718 }
1bd55598
RD
39719 arg1 = reinterpret_cast< wxWindow * >(argp1);
39720 }
39721 if (obj1) {
39722 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39723 if (!SWIG_IsOK(ecode2)) {
39724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39725 }
39726 arg2 = static_cast< bool >(val2);
39727 }
39728 {
39729 if (!wxPyCheckForApp()) SWIG_fail;
39730 PyThreadState* __tstate = wxPyBeginAllowThreads();
39731 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39732 wxPyEndAllowThreads(__tstate);
39733 if (PyErr_Occurred()) SWIG_fail;
39734 }
39735 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39736 return resultobj;
39737fail:
39738 return NULL;
d55e5bfc
RD
39739}
39740
39741
1bd55598
RD
39742SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39743 PyObject *resultobj = 0;
39744 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39745 void *argp1 = 0 ;
39746 int res1 = 0 ;
39747 PyObject *swig_obj[1] ;
39748
39749 if (!args) SWIG_fail;
39750 swig_obj[0] = args;
39751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39752 if (!SWIG_IsOK(res1)) {
39753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39754 }
39755 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39756 {
39757 PyThreadState* __tstate = wxPyBeginAllowThreads();
39758 delete arg1;
d55e5bfc 39759
1bd55598
RD
39760 wxPyEndAllowThreads(__tstate);
39761 if (PyErr_Occurred()) SWIG_fail;
39762 }
39763 resultobj = SWIG_Py_Void();
39764 return resultobj;
39765fail:
39766 return NULL;
39767}
39768
39769
39770SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39771 PyObject *resultobj = 0;
39772 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39773 wxWindow *arg2 = (wxWindow *) NULL ;
39774 bool result;
39775 void *argp1 = 0 ;
39776 int res1 = 0 ;
39777 void *argp2 = 0 ;
39778 int res2 = 0 ;
39779 PyObject * obj0 = 0 ;
39780 PyObject * obj1 = 0 ;
39781 char * kwnames[] = {
39782 (char *) "self",(char *) "window", NULL
39783 };
39784
39785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39787 if (!SWIG_IsOK(res1)) {
39788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39789 }
39790 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39791 if (obj1) {
39792 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39793 if (!SWIG_IsOK(res2)) {
39794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
d55e5bfc 39795 }
1bd55598
RD
39796 arg2 = reinterpret_cast< wxWindow * >(argp2);
39797 }
39798 {
39799 PyThreadState* __tstate = wxPyBeginAllowThreads();
39800 result = (bool)(arg1)->BeginContextHelp(arg2);
39801 wxPyEndAllowThreads(__tstate);
39802 if (PyErr_Occurred()) SWIG_fail;
39803 }
39804 {
39805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39806 }
39807 return resultobj;
39808fail:
39809 return NULL;
d55e5bfc
RD
39810}
39811
39812
1bd55598
RD
39813SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39814 PyObject *resultobj = 0;
39815 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39816 bool result;
39817 void *argp1 = 0 ;
39818 int res1 = 0 ;
39819 PyObject *swig_obj[1] ;
39820
39821 if (!args) SWIG_fail;
39822 swig_obj[0] = args;
39823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39824 if (!SWIG_IsOK(res1)) {
39825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39826 }
39827 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39828 {
39829 PyThreadState* __tstate = wxPyBeginAllowThreads();
39830 result = (bool)(arg1)->EndContextHelp();
39831 wxPyEndAllowThreads(__tstate);
39832 if (PyErr_Occurred()) SWIG_fail;
39833 }
39834 {
39835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39836 }
39837 return resultobj;
39838fail:
39839 return NULL;
39840}
39841
39842
39843SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39844 PyObject *obj;
39845 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39846 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39847 return SWIG_Py_Void();
39848}
39849
39850SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39851 return SWIG_Python_InitShadowInstance(args);
39852}
39853
39854SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39855 PyObject *resultobj = 0;
39856 wxWindow *arg1 = (wxWindow *) 0 ;
39857 int arg2 = (int) wxID_CONTEXT_HELP ;
39858 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39859 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39860 wxSize const &arg4_defvalue = wxDefaultSize ;
39861 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39862 long arg5 = (long) wxBU_AUTODRAW ;
39863 wxContextHelpButton *result = 0 ;
39864 void *argp1 = 0 ;
39865 int res1 = 0 ;
39866 int val2 ;
39867 int ecode2 = 0 ;
39868 wxPoint temp3 ;
39869 wxSize temp4 ;
39870 long val5 ;
39871 int ecode5 = 0 ;
39872 PyObject * obj0 = 0 ;
39873 PyObject * obj1 = 0 ;
39874 PyObject * obj2 = 0 ;
39875 PyObject * obj3 = 0 ;
39876 PyObject * obj4 = 0 ;
39877 char * kwnames[] = {
39878 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39879 };
39880
39881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39883 if (!SWIG_IsOK(res1)) {
39884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39885 }
39886 arg1 = reinterpret_cast< wxWindow * >(argp1);
39887 if (obj1) {
39888 ecode2 = SWIG_AsVal_int(obj1, &val2);
39889 if (!SWIG_IsOK(ecode2)) {
39890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39891 }
39892 arg2 = static_cast< int >(val2);
39893 }
39894 if (obj2) {
d55e5bfc 39895 {
1bd55598
RD
39896 arg3 = &temp3;
39897 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39898 }
1bd55598
RD
39899 }
39900 if (obj3) {
d55e5bfc 39901 {
1bd55598
RD
39902 arg4 = &temp4;
39903 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 39904 }
1bd55598
RD
39905 }
39906 if (obj4) {
39907 ecode5 = SWIG_AsVal_long(obj4, &val5);
39908 if (!SWIG_IsOK(ecode5)) {
39909 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39910 }
39911 arg5 = static_cast< long >(val5);
39912 }
39913 {
39914 if (!wxPyCheckForApp()) SWIG_fail;
39915 PyThreadState* __tstate = wxPyBeginAllowThreads();
39916 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39917 wxPyEndAllowThreads(__tstate);
39918 if (PyErr_Occurred()) SWIG_fail;
39919 }
39920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39921 return resultobj;
39922fail:
39923 return NULL;
d55e5bfc
RD
39924}
39925
39926
1bd55598
RD
39927SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39928 PyObject *obj;
39929 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39930 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39931 return SWIG_Py_Void();
d55e5bfc
RD
39932}
39933
1bd55598
RD
39934SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39935 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
39936}
39937
f52cbe90
RD
39938SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39939 PyObject *resultobj = 0;
39940 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39941 void *argp1 = 0 ;
39942 int res1 = 0 ;
39943 PyObject *swig_obj[1] ;
39944
39945 if (!args) SWIG_fail;
39946 swig_obj[0] = args;
39947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39948 if (!SWIG_IsOK(res1)) {
39949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39950 }
39951 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39952 {
39953 PyThreadState* __tstate = wxPyBeginAllowThreads();
39954 delete arg1;
39955
39956 wxPyEndAllowThreads(__tstate);
39957 if (PyErr_Occurred()) SWIG_fail;
39958 }
39959 resultobj = SWIG_Py_Void();
39960 return resultobj;
39961fail:
39962 return NULL;
39963}
39964
39965
1bd55598
RD
39966SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39967 PyObject *resultobj = 0;
39968 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39969 wxHelpProvider *result = 0 ;
39970 int res1 = 0 ;
39971 PyObject * obj0 = 0 ;
39972 char * kwnames[] = {
39973 (char *) "helpProvider", NULL
39974 };
39975
39976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39977 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39978 if (!SWIG_IsOK(res1)) {
39979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39980 }
39981 {
39982 PyThreadState* __tstate = wxPyBeginAllowThreads();
39983 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39984 wxPyEndAllowThreads(__tstate);
39985 if (PyErr_Occurred()) SWIG_fail;
39986 }
39987 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39988 return resultobj;
39989fail:
39990 return NULL;
d55e5bfc
RD
39991}
39992
39993
1bd55598
RD
39994SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39995 PyObject *resultobj = 0;
39996 wxHelpProvider *result = 0 ;
39997
39998 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39999 {
40000 PyThreadState* __tstate = wxPyBeginAllowThreads();
40001 result = (wxHelpProvider *)wxHelpProvider::Get();
40002 wxPyEndAllowThreads(__tstate);
40003 if (PyErr_Occurred()) SWIG_fail;
40004 }
40005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40006 return resultobj;
40007fail:
40008 return NULL;
40009}
40010
40011
40012SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40013 PyObject *resultobj = 0;
40014 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40015 wxWindow *arg2 = (wxWindow *) 0 ;
40016 wxString result;
40017 void *argp1 = 0 ;
40018 int res1 = 0 ;
40019 void *argp2 = 0 ;
40020 int res2 = 0 ;
40021 PyObject * obj0 = 0 ;
40022 PyObject * obj1 = 0 ;
40023 char * kwnames[] = {
40024 (char *) "self",(char *) "window", NULL
40025 };
40026
40027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40029 if (!SWIG_IsOK(res1)) {
40030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40031 }
40032 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40033 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40034 if (!SWIG_IsOK(res2)) {
40035 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
40036 }
40037 arg2 = reinterpret_cast< wxWindow * >(argp2);
40038 {
40039 PyThreadState* __tstate = wxPyBeginAllowThreads();
40040 result = (arg1)->GetHelp((wxWindow const *)arg2);
40041 wxPyEndAllowThreads(__tstate);
40042 if (PyErr_Occurred()) SWIG_fail;
40043 }
40044 {
40045#if wxUSE_UNICODE
40046 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
40047#else
40048 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
40049#endif
40050 }
40051 return resultobj;
40052fail:
40053 return NULL;
40054}
40055
40056
40057SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40058 PyObject *resultobj = 0;
40059 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40060 wxWindow *arg2 = (wxWindow *) 0 ;
40061 bool result;
40062 void *argp1 = 0 ;
40063 int res1 = 0 ;
40064 void *argp2 = 0 ;
40065 int res2 = 0 ;
40066 PyObject * obj0 = 0 ;
40067 PyObject * obj1 = 0 ;
40068 char * kwnames[] = {
40069 (char *) "self",(char *) "window", NULL
40070 };
40071
40072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40074 if (!SWIG_IsOK(res1)) {
40075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40076 }
40077 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40078 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40079 if (!SWIG_IsOK(res2)) {
40080 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40081 }
40082 arg2 = reinterpret_cast< wxWindow * >(argp2);
40083 {
40084 PyThreadState* __tstate = wxPyBeginAllowThreads();
40085 result = (bool)(arg1)->ShowHelp(arg2);
40086 wxPyEndAllowThreads(__tstate);
40087 if (PyErr_Occurred()) SWIG_fail;
40088 }
40089 {
40090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40091 }
40092 return resultobj;
40093fail:
40094 return NULL;
40095}
40096
40097
b850e7f3
RD
40098SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40099 PyObject *resultobj = 0;
40100 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40101 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
40102 wxPoint *arg3 = 0 ;
40103 wxHelpEvent::Origin arg4 ;
40104 bool result;
40105 void *argp1 = 0 ;
40106 int res1 = 0 ;
40107 void *argp2 = 0 ;
40108 int res2 = 0 ;
40109 wxPoint temp3 ;
40110 int val4 ;
40111 int ecode4 = 0 ;
40112 PyObject * obj0 = 0 ;
40113 PyObject * obj1 = 0 ;
40114 PyObject * obj2 = 0 ;
40115 PyObject * obj3 = 0 ;
40116 char * kwnames[] = {
40117 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
40118 };
40119
40120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40122 if (!SWIG_IsOK(res1)) {
40123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40124 }
40125 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40126 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
40127 if (!SWIG_IsOK(res2)) {
40128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
40129 }
40130 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
40131 {
40132 arg3 = &temp3;
40133 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40134 }
40135 ecode4 = SWIG_AsVal_int(obj3, &val4);
40136 if (!SWIG_IsOK(ecode4)) {
40137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
40138 }
40139 arg4 = static_cast< wxHelpEvent::Origin >(val4);
40140 {
40141 PyThreadState* __tstate = wxPyBeginAllowThreads();
40142 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
40143 wxPyEndAllowThreads(__tstate);
40144 if (PyErr_Occurred()) SWIG_fail;
40145 }
40146 {
40147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40148 }
40149 return resultobj;
40150fail:
40151 return NULL;
40152}
40153
40154
1bd55598
RD
40155SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40156 PyObject *resultobj = 0;
40157 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40158 wxWindow *arg2 = (wxWindow *) 0 ;
40159 wxString *arg3 = 0 ;
40160 void *argp1 = 0 ;
40161 int res1 = 0 ;
40162 void *argp2 = 0 ;
40163 int res2 = 0 ;
40164 bool temp3 = false ;
40165 PyObject * obj0 = 0 ;
40166 PyObject * obj1 = 0 ;
40167 PyObject * obj2 = 0 ;
40168 char * kwnames[] = {
40169 (char *) "self",(char *) "window",(char *) "text", NULL
40170 };
40171
40172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40174 if (!SWIG_IsOK(res1)) {
40175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40176 }
40177 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40178 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40179 if (!SWIG_IsOK(res2)) {
40180 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40181 }
40182 arg2 = reinterpret_cast< wxWindow * >(argp2);
40183 {
40184 arg3 = wxString_in_helper(obj2);
40185 if (arg3 == NULL) SWIG_fail;
40186 temp3 = true;
40187 }
40188 {
40189 PyThreadState* __tstate = wxPyBeginAllowThreads();
40190 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40191 wxPyEndAllowThreads(__tstate);
40192 if (PyErr_Occurred()) SWIG_fail;
40193 }
40194 resultobj = SWIG_Py_Void();
40195 {
40196 if (temp3)
40197 delete arg3;
40198 }
40199 return resultobj;
40200fail:
40201 {
40202 if (temp3)
40203 delete arg3;
40204 }
40205 return NULL;
40206}
40207
40208
40209SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40210 PyObject *resultobj = 0;
40211 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40212 int arg2 ;
40213 wxString *arg3 = 0 ;
40214 void *argp1 = 0 ;
40215 int res1 = 0 ;
40216 int val2 ;
40217 int ecode2 = 0 ;
40218 bool temp3 = false ;
40219 PyObject * obj0 = 0 ;
40220 PyObject * obj1 = 0 ;
40221 PyObject * obj2 = 0 ;
40222 char * kwnames[] = {
40223 (char *) "self",(char *) "id",(char *) "text", NULL
40224 };
40225
40226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40228 if (!SWIG_IsOK(res1)) {
40229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40230 }
40231 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40232 ecode2 = SWIG_AsVal_int(obj1, &val2);
40233 if (!SWIG_IsOK(ecode2)) {
40234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40235 }
40236 arg2 = static_cast< int >(val2);
40237 {
40238 arg3 = wxString_in_helper(obj2);
40239 if (arg3 == NULL) SWIG_fail;
40240 temp3 = true;
40241 }
40242 {
40243 PyThreadState* __tstate = wxPyBeginAllowThreads();
40244 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40245 wxPyEndAllowThreads(__tstate);
40246 if (PyErr_Occurred()) SWIG_fail;
40247 }
40248 resultobj = SWIG_Py_Void();
40249 {
40250 if (temp3)
40251 delete arg3;
40252 }
40253 return resultobj;
40254fail:
40255 {
40256 if (temp3)
40257 delete arg3;
40258 }
40259 return NULL;
40260}
40261
40262
40263SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40264 PyObject *resultobj = 0;
40265 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40266 wxWindow *arg2 = (wxWindow *) 0 ;
40267 void *argp1 = 0 ;
40268 int res1 = 0 ;
40269 void *argp2 = 0 ;
40270 int res2 = 0 ;
40271 PyObject * obj0 = 0 ;
40272 PyObject * obj1 = 0 ;
40273 char * kwnames[] = {
40274 (char *) "self",(char *) "window", NULL
40275 };
40276
40277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40279 if (!SWIG_IsOK(res1)) {
40280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40281 }
40282 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40283 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40284 if (!SWIG_IsOK(res2)) {
40285 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40286 }
40287 arg2 = reinterpret_cast< wxWindow * >(argp2);
40288 {
40289 PyThreadState* __tstate = wxPyBeginAllowThreads();
40290 (arg1)->RemoveHelp(arg2);
40291 wxPyEndAllowThreads(__tstate);
40292 if (PyErr_Occurred()) SWIG_fail;
40293 }
40294 resultobj = SWIG_Py_Void();
40295 return resultobj;
40296fail:
40297 return NULL;
d55e5bfc
RD
40298}
40299
40300
1bd55598
RD
40301SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40302 PyObject *resultobj = 0;
40303 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40304 void *argp1 = 0 ;
40305 int res1 = 0 ;
40306 PyObject *swig_obj[1] ;
40307
40308 if (!args) SWIG_fail;
40309 swig_obj[0] = args;
40310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40311 if (!SWIG_IsOK(res1)) {
40312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40313 }
40314 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40315 {
40316 PyThreadState* __tstate = wxPyBeginAllowThreads();
40317 wxHelpProvider_Destroy(arg1);
40318 wxPyEndAllowThreads(__tstate);
40319 if (PyErr_Occurred()) SWIG_fail;
40320 }
40321 resultobj = SWIG_Py_Void();
40322 return resultobj;
40323fail:
40324 return NULL;
d55e5bfc
RD
40325}
40326
40327
1bd55598
RD
40328SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40329 PyObject *obj;
40330 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40331 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40332 return SWIG_Py_Void();
d55e5bfc
RD
40333}
40334
1bd55598
RD
40335SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40336 PyObject *resultobj = 0;
40337 wxSimpleHelpProvider *result = 0 ;
40338
40339 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40340 {
40341 PyThreadState* __tstate = wxPyBeginAllowThreads();
40342 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40343 wxPyEndAllowThreads(__tstate);
40344 if (PyErr_Occurred()) SWIG_fail;
40345 }
40346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40347 return resultobj;
40348fail:
40349 return NULL;
40350}
40351
40352
40353SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40354 PyObject *obj;
40355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40356 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40357 return SWIG_Py_Void();
40358}
40359
40360SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40361 return SWIG_Python_InitShadowInstance(args);
40362}
40363
40364SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40365 PyObject *resultobj = 0;
40366 wxBitmap *arg1 = 0 ;
40367 wxCursor const &arg2_defvalue = wxNullCursor ;
40368 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40369 wxGenericDragImage *result = 0 ;
40370 void *argp1 = 0 ;
40371 int res1 = 0 ;
40372 void *argp2 = 0 ;
40373 int res2 = 0 ;
40374 PyObject * obj0 = 0 ;
40375 PyObject * obj1 = 0 ;
40376 char * kwnames[] = {
40377 (char *) "image",(char *) "cursor", NULL
40378 };
40379
40380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40381 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40382 if (!SWIG_IsOK(res1)) {
40383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40384 }
40385 if (!argp1) {
40386 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40387 }
40388 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40389 if (obj1) {
40390 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40391 if (!SWIG_IsOK(res2)) {
40392 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40393 }
1bd55598
RD
40394 if (!argp2) {
40395 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40396 }
1bd55598
RD
40397 arg2 = reinterpret_cast< wxCursor * >(argp2);
40398 }
40399 {
40400 if (!wxPyCheckForApp()) SWIG_fail;
40401 PyThreadState* __tstate = wxPyBeginAllowThreads();
40402 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40403 wxPyEndAllowThreads(__tstate);
40404 if (PyErr_Occurred()) SWIG_fail;
40405 }
40406 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40407 return resultobj;
40408fail:
40409 return NULL;
40410}
40411
40412
40413SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40414 PyObject *resultobj = 0;
40415 wxIcon *arg1 = 0 ;
40416 wxCursor const &arg2_defvalue = wxNullCursor ;
40417 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40418 wxGenericDragImage *result = 0 ;
40419 void *argp1 = 0 ;
40420 int res1 = 0 ;
40421 void *argp2 = 0 ;
40422 int res2 = 0 ;
40423 PyObject * obj0 = 0 ;
40424 PyObject * obj1 = 0 ;
40425 char * kwnames[] = {
40426 (char *) "image",(char *) "cursor", NULL
40427 };
40428
40429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40430 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40431 if (!SWIG_IsOK(res1)) {
40432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40433 }
40434 if (!argp1) {
40435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40436 }
40437 arg1 = reinterpret_cast< wxIcon * >(argp1);
40438 if (obj1) {
40439 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40440 if (!SWIG_IsOK(res2)) {
40441 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40442 }
1bd55598
RD
40443 if (!argp2) {
40444 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40445 }
1bd55598
RD
40446 arg2 = reinterpret_cast< wxCursor * >(argp2);
40447 }
40448 {
40449 if (!wxPyCheckForApp()) SWIG_fail;
40450 PyThreadState* __tstate = wxPyBeginAllowThreads();
40451 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40452 wxPyEndAllowThreads(__tstate);
40453 if (PyErr_Occurred()) SWIG_fail;
40454 }
40455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40456 return resultobj;
40457fail:
40458 return NULL;
40459}
40460
40461
40462SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40463 PyObject *resultobj = 0;
40464 wxString *arg1 = 0 ;
40465 wxCursor const &arg2_defvalue = wxNullCursor ;
40466 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40467 wxGenericDragImage *result = 0 ;
40468 bool temp1 = false ;
40469 void *argp2 = 0 ;
40470 int res2 = 0 ;
40471 PyObject * obj0 = 0 ;
40472 PyObject * obj1 = 0 ;
40473 char * kwnames[] = {
40474 (char *) "str",(char *) "cursor", NULL
40475 };
40476
40477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40478 {
40479 arg1 = wxString_in_helper(obj0);
40480 if (arg1 == NULL) SWIG_fail;
40481 temp1 = true;
40482 }
40483 if (obj1) {
40484 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40485 if (!SWIG_IsOK(res2)) {
40486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40487 }
1bd55598
RD
40488 if (!argp2) {
40489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40490 }
1bd55598
RD
40491 arg2 = reinterpret_cast< wxCursor * >(argp2);
40492 }
40493 {
40494 if (!wxPyCheckForApp()) SWIG_fail;
40495 PyThreadState* __tstate = wxPyBeginAllowThreads();
40496 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40497 wxPyEndAllowThreads(__tstate);
40498 if (PyErr_Occurred()) SWIG_fail;
40499 }
40500 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40501 {
40502 if (temp1)
40503 delete arg1;
40504 }
40505 return resultobj;
40506fail:
40507 {
40508 if (temp1)
40509 delete arg1;
40510 }
40511 return NULL;
40512}
40513
40514
40515SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40516 PyObject *resultobj = 0;
40517 wxPyTreeCtrl *arg1 = 0 ;
40518 wxTreeItemId *arg2 = 0 ;
40519 wxGenericDragImage *result = 0 ;
40520 void *argp1 = 0 ;
40521 int res1 = 0 ;
40522 void *argp2 = 0 ;
40523 int res2 = 0 ;
40524 PyObject * obj0 = 0 ;
40525 PyObject * obj1 = 0 ;
40526 char * kwnames[] = {
40527 (char *) "treeCtrl",(char *) "id", NULL
40528 };
40529
40530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40531 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40532 if (!SWIG_IsOK(res1)) {
40533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40534 }
40535 if (!argp1) {
40536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40537 }
40538 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40539 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40540 if (!SWIG_IsOK(res2)) {
40541 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40542 }
40543 if (!argp2) {
40544 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40545 }
40546 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40547 {
40548 if (!wxPyCheckForApp()) SWIG_fail;
40549 PyThreadState* __tstate = wxPyBeginAllowThreads();
40550 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40551 wxPyEndAllowThreads(__tstate);
40552 if (PyErr_Occurred()) SWIG_fail;
40553 }
40554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40555 return resultobj;
40556fail:
40557 return NULL;
40558}
40559
40560
40561SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40562 PyObject *resultobj = 0;
40563 wxPyListCtrl *arg1 = 0 ;
40564 long arg2 ;
40565 wxGenericDragImage *result = 0 ;
40566 void *argp1 = 0 ;
40567 int res1 = 0 ;
40568 long val2 ;
40569 int ecode2 = 0 ;
40570 PyObject * obj0 = 0 ;
40571 PyObject * obj1 = 0 ;
40572 char * kwnames[] = {
40573 (char *) "listCtrl",(char *) "id", NULL
40574 };
40575
40576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40577 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40578 if (!SWIG_IsOK(res1)) {
40579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40580 }
40581 if (!argp1) {
40582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40583 }
40584 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40585 ecode2 = SWIG_AsVal_long(obj1, &val2);
40586 if (!SWIG_IsOK(ecode2)) {
40587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40588 }
40589 arg2 = static_cast< long >(val2);
40590 {
40591 if (!wxPyCheckForApp()) SWIG_fail;
40592 PyThreadState* __tstate = wxPyBeginAllowThreads();
40593 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40594 wxPyEndAllowThreads(__tstate);
40595 if (PyErr_Occurred()) SWIG_fail;
40596 }
40597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40598 return resultobj;
40599fail:
40600 return NULL;
d55e5bfc
RD
40601}
40602
40603
1bd55598
RD
40604SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40605 PyObject *resultobj = 0;
40606 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40607 void *argp1 = 0 ;
40608 int res1 = 0 ;
40609 PyObject *swig_obj[1] ;
40610
40611 if (!args) SWIG_fail;
40612 swig_obj[0] = args;
40613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40614 if (!SWIG_IsOK(res1)) {
40615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40616 }
40617 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40618 {
40619 PyThreadState* __tstate = wxPyBeginAllowThreads();
40620 delete arg1;
d55e5bfc 40621
1bd55598
RD
40622 wxPyEndAllowThreads(__tstate);
40623 if (PyErr_Occurred()) SWIG_fail;
40624 }
40625 resultobj = SWIG_Py_Void();
40626 return resultobj;
40627fail:
40628 return NULL;
40629}
40630
40631
40632SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40633 PyObject *resultobj = 0;
40634 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40635 wxBitmap *arg2 = (wxBitmap *) 0 ;
40636 void *argp1 = 0 ;
40637 int res1 = 0 ;
40638 void *argp2 = 0 ;
40639 int res2 = 0 ;
40640 PyObject * obj0 = 0 ;
40641 PyObject * obj1 = 0 ;
40642 char * kwnames[] = {
40643 (char *) "self",(char *) "bitmap", NULL
40644 };
40645
40646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40648 if (!SWIG_IsOK(res1)) {
40649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40650 }
40651 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40652 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40653 if (!SWIG_IsOK(res2)) {
40654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40655 }
40656 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40657 {
40658 PyThreadState* __tstate = wxPyBeginAllowThreads();
40659 (arg1)->SetBackingBitmap(arg2);
40660 wxPyEndAllowThreads(__tstate);
40661 if (PyErr_Occurred()) SWIG_fail;
40662 }
40663 resultobj = SWIG_Py_Void();
40664 return resultobj;
40665fail:
40666 return NULL;
40667}
40668
40669
40670SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40671 PyObject *resultobj = 0;
40672 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40673 wxPoint *arg2 = 0 ;
40674 wxWindow *arg3 = (wxWindow *) 0 ;
40675 bool arg4 = (bool) false ;
40676 wxRect *arg5 = (wxRect *) NULL ;
40677 bool result;
40678 void *argp1 = 0 ;
40679 int res1 = 0 ;
40680 wxPoint temp2 ;
40681 void *argp3 = 0 ;
40682 int res3 = 0 ;
40683 bool val4 ;
40684 int ecode4 = 0 ;
40685 void *argp5 = 0 ;
40686 int res5 = 0 ;
40687 PyObject * obj0 = 0 ;
40688 PyObject * obj1 = 0 ;
40689 PyObject * obj2 = 0 ;
40690 PyObject * obj3 = 0 ;
40691 PyObject * obj4 = 0 ;
40692 char * kwnames[] = {
40693 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40694 };
40695
40696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40698 if (!SWIG_IsOK(res1)) {
40699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40700 }
40701 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40702 {
40703 arg2 = &temp2;
40704 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40705 }
40706 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40707 if (!SWIG_IsOK(res3)) {
40708 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40709 }
40710 arg3 = reinterpret_cast< wxWindow * >(argp3);
40711 if (obj3) {
40712 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40713 if (!SWIG_IsOK(ecode4)) {
40714 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40715 }
40716 arg4 = static_cast< bool >(val4);
40717 }
40718 if (obj4) {
40719 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40720 if (!SWIG_IsOK(res5)) {
40721 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d55e5bfc 40722 }
1bd55598
RD
40723 arg5 = reinterpret_cast< wxRect * >(argp5);
40724 }
40725 {
40726 PyThreadState* __tstate = wxPyBeginAllowThreads();
40727 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40728 wxPyEndAllowThreads(__tstate);
40729 if (PyErr_Occurred()) SWIG_fail;
40730 }
40731 {
40732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40733 }
40734 return resultobj;
40735fail:
40736 return NULL;
40737}
40738
40739
40740SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40741 PyObject *resultobj = 0;
40742 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40743 wxPoint *arg2 = 0 ;
40744 wxWindow *arg3 = (wxWindow *) 0 ;
40745 wxWindow *arg4 = (wxWindow *) 0 ;
40746 bool result;
40747 void *argp1 = 0 ;
40748 int res1 = 0 ;
40749 wxPoint temp2 ;
40750 void *argp3 = 0 ;
40751 int res3 = 0 ;
40752 void *argp4 = 0 ;
40753 int res4 = 0 ;
40754 PyObject * obj0 = 0 ;
40755 PyObject * obj1 = 0 ;
40756 PyObject * obj2 = 0 ;
40757 PyObject * obj3 = 0 ;
40758 char * kwnames[] = {
40759 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40760 };
40761
40762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40764 if (!SWIG_IsOK(res1)) {
40765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40766 }
40767 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40768 {
40769 arg2 = &temp2;
40770 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40771 }
40772 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40773 if (!SWIG_IsOK(res3)) {
40774 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40775 }
40776 arg3 = reinterpret_cast< wxWindow * >(argp3);
40777 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40778 if (!SWIG_IsOK(res4)) {
40779 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40780 }
40781 arg4 = reinterpret_cast< wxWindow * >(argp4);
40782 {
40783 PyThreadState* __tstate = wxPyBeginAllowThreads();
40784 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40785 wxPyEndAllowThreads(__tstate);
40786 if (PyErr_Occurred()) SWIG_fail;
40787 }
40788 {
40789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40790 }
40791 return resultobj;
40792fail:
40793 return NULL;
d55e5bfc
RD
40794}
40795
40796
1bd55598
RD
40797SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40798 PyObject *resultobj = 0;
40799 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40800 bool result;
40801 void *argp1 = 0 ;
40802 int res1 = 0 ;
40803 PyObject *swig_obj[1] ;
40804
40805 if (!args) SWIG_fail;
40806 swig_obj[0] = args;
40807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40808 if (!SWIG_IsOK(res1)) {
40809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40810 }
40811 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40812 {
40813 PyThreadState* __tstate = wxPyBeginAllowThreads();
40814 result = (bool)(arg1)->EndDrag();
40815 wxPyEndAllowThreads(__tstate);
40816 if (PyErr_Occurred()) SWIG_fail;
40817 }
40818 {
40819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40820 }
40821 return resultobj;
40822fail:
40823 return NULL;
40824}
40825
40826
40827SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40828 PyObject *resultobj = 0;
40829 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40830 wxPoint *arg2 = 0 ;
40831 bool result;
40832 void *argp1 = 0 ;
40833 int res1 = 0 ;
40834 wxPoint temp2 ;
40835 PyObject * obj0 = 0 ;
40836 PyObject * obj1 = 0 ;
40837 char * kwnames[] = {
40838 (char *) "self",(char *) "pt", NULL
40839 };
40840
40841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40843 if (!SWIG_IsOK(res1)) {
40844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40845 }
40846 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40847 {
40848 arg2 = &temp2;
40849 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40850 }
40851 {
40852 PyThreadState* __tstate = wxPyBeginAllowThreads();
40853 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40854 wxPyEndAllowThreads(__tstate);
40855 if (PyErr_Occurred()) SWIG_fail;
40856 }
40857 {
40858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40859 }
40860 return resultobj;
40861fail:
40862 return NULL;
d55e5bfc
RD
40863}
40864
40865
1bd55598
RD
40866SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40867 PyObject *resultobj = 0;
40868 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40869 bool result;
40870 void *argp1 = 0 ;
40871 int res1 = 0 ;
40872 PyObject *swig_obj[1] ;
40873
40874 if (!args) SWIG_fail;
40875 swig_obj[0] = args;
40876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40877 if (!SWIG_IsOK(res1)) {
40878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40879 }
40880 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40881 {
40882 PyThreadState* __tstate = wxPyBeginAllowThreads();
40883 result = (bool)(arg1)->Show();
40884 wxPyEndAllowThreads(__tstate);
40885 if (PyErr_Occurred()) SWIG_fail;
40886 }
40887 {
40888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40889 }
40890 return resultobj;
40891fail:
40892 return NULL;
d55e5bfc
RD
40893}
40894
40895
1bd55598
RD
40896SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40897 PyObject *resultobj = 0;
40898 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40899 bool result;
40900 void *argp1 = 0 ;
40901 int res1 = 0 ;
40902 PyObject *swig_obj[1] ;
40903
40904 if (!args) SWIG_fail;
40905 swig_obj[0] = args;
40906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40907 if (!SWIG_IsOK(res1)) {
40908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40909 }
40910 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40911 {
40912 PyThreadState* __tstate = wxPyBeginAllowThreads();
40913 result = (bool)(arg1)->Hide();
40914 wxPyEndAllowThreads(__tstate);
40915 if (PyErr_Occurred()) SWIG_fail;
40916 }
40917 {
40918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40919 }
40920 return resultobj;
40921fail:
40922 return NULL;
40923}
40924
40925
40926SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40927 PyObject *resultobj = 0;
40928 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40929 wxPoint *arg2 = 0 ;
40930 wxRect result;
40931 void *argp1 = 0 ;
40932 int res1 = 0 ;
40933 wxPoint temp2 ;
40934 PyObject * obj0 = 0 ;
40935 PyObject * obj1 = 0 ;
40936 char * kwnames[] = {
40937 (char *) "self",(char *) "pos", NULL
40938 };
40939
40940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40942 if (!SWIG_IsOK(res1)) {
40943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40944 }
40945 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40946 {
40947 arg2 = &temp2;
40948 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40949 }
40950 {
40951 PyThreadState* __tstate = wxPyBeginAllowThreads();
40952 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40953 wxPyEndAllowThreads(__tstate);
40954 if (PyErr_Occurred()) SWIG_fail;
40955 }
40956 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40957 return resultobj;
40958fail:
40959 return NULL;
40960}
40961
40962
40963SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40964 PyObject *resultobj = 0;
40965 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40966 wxDC *arg2 = 0 ;
40967 wxPoint *arg3 = 0 ;
40968 bool result;
40969 void *argp1 = 0 ;
40970 int res1 = 0 ;
40971 void *argp2 = 0 ;
40972 int res2 = 0 ;
40973 wxPoint temp3 ;
40974 PyObject * obj0 = 0 ;
40975 PyObject * obj1 = 0 ;
40976 PyObject * obj2 = 0 ;
40977 char * kwnames[] = {
40978 (char *) "self",(char *) "dc",(char *) "pos", NULL
40979 };
40980
40981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40983 if (!SWIG_IsOK(res1)) {
40984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40985 }
40986 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40987 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40988 if (!SWIG_IsOK(res2)) {
40989 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40990 }
40991 if (!argp2) {
40992 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40993 }
40994 arg2 = reinterpret_cast< wxDC * >(argp2);
40995 {
40996 arg3 = &temp3;
40997 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40998 }
40999 {
41000 PyThreadState* __tstate = wxPyBeginAllowThreads();
41001 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
41002 wxPyEndAllowThreads(__tstate);
41003 if (PyErr_Occurred()) SWIG_fail;
41004 }
41005 {
41006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41007 }
41008 return resultobj;
41009fail:
41010 return NULL;
41011}
41012
41013
41014SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41015 PyObject *resultobj = 0;
41016 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41017 wxDC *arg2 = 0 ;
41018 wxMemoryDC *arg3 = 0 ;
41019 wxRect *arg4 = 0 ;
41020 wxRect *arg5 = 0 ;
41021 bool result;
41022 void *argp1 = 0 ;
41023 int res1 = 0 ;
41024 void *argp2 = 0 ;
41025 int res2 = 0 ;
41026 void *argp3 = 0 ;
41027 int res3 = 0 ;
41028 wxRect temp4 ;
41029 wxRect temp5 ;
41030 PyObject * obj0 = 0 ;
41031 PyObject * obj1 = 0 ;
41032 PyObject * obj2 = 0 ;
41033 PyObject * obj3 = 0 ;
41034 PyObject * obj4 = 0 ;
41035 char * kwnames[] = {
41036 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
41037 };
41038
41039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41041 if (!SWIG_IsOK(res1)) {
41042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
41043 }
41044 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41045 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
41046 if (!SWIG_IsOK(res2)) {
41047 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41048 }
41049 if (!argp2) {
41050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
41051 }
41052 arg2 = reinterpret_cast< wxDC * >(argp2);
41053 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
41054 if (!SWIG_IsOK(res3)) {
41055 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41056 }
41057 if (!argp3) {
41058 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
41059 }
41060 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
41061 {
41062 arg4 = &temp4;
41063 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
41064 }
41065 {
41066 arg5 = &temp5;
41067 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
41068 }
41069 {
41070 PyThreadState* __tstate = wxPyBeginAllowThreads();
41071 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
41072 wxPyEndAllowThreads(__tstate);
41073 if (PyErr_Occurred()) SWIG_fail;
41074 }
41075 {
41076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41077 }
41078 return resultobj;
41079fail:
41080 return NULL;
41081}
41082
41083
41084SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41085 PyObject *resultobj = 0;
41086 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
41087 wxPoint *arg2 = 0 ;
41088 wxPoint *arg3 = 0 ;
41089 bool arg4 ;
41090 bool arg5 ;
41091 bool result;
41092 void *argp1 = 0 ;
41093 int res1 = 0 ;
41094 wxPoint temp2 ;
41095 wxPoint temp3 ;
41096 bool val4 ;
41097 int ecode4 = 0 ;
41098 bool val5 ;
41099 int ecode5 = 0 ;
41100 PyObject * obj0 = 0 ;
41101 PyObject * obj1 = 0 ;
41102 PyObject * obj2 = 0 ;
41103 PyObject * obj3 = 0 ;
41104 PyObject * obj4 = 0 ;
41105 char * kwnames[] = {
41106 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
41107 };
41108
41109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
41110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
41111 if (!SWIG_IsOK(res1)) {
41112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
41113 }
41114 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
41115 {
41116 arg2 = &temp2;
41117 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
41118 }
41119 {
41120 arg3 = &temp3;
41121 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
41122 }
41123 ecode4 = SWIG_AsVal_bool(obj3, &val4);
41124 if (!SWIG_IsOK(ecode4)) {
41125 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
41126 }
41127 arg4 = static_cast< bool >(val4);
41128 ecode5 = SWIG_AsVal_bool(obj4, &val5);
41129 if (!SWIG_IsOK(ecode5)) {
41130 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
41131 }
41132 arg5 = static_cast< bool >(val5);
41133 {
41134 PyThreadState* __tstate = wxPyBeginAllowThreads();
41135 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
41136 wxPyEndAllowThreads(__tstate);
41137 if (PyErr_Occurred()) SWIG_fail;
41138 }
41139 {
41140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41141 }
41142 return resultobj;
41143fail:
41144 return NULL;
d55e5bfc
RD
41145}
41146
41147
1bd55598
RD
41148SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41149 PyObject *obj;
41150 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41151 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
41152 return SWIG_Py_Void();
d55e5bfc
RD
41153}
41154
1bd55598
RD
41155SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41156 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41157}
41158
1bd55598
RD
41159SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
41160 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
41161 return 1;
d55e5bfc
RD
41162}
41163
41164
1bd55598
RD
41165SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
41166 PyObject *pyobj = 0;
41167
41168 {
41169#if wxUSE_UNICODE
41170 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41171#else
41172 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
41173#endif
41174 }
41175 return pyobj;
41176}
41177
41178
41179SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41180 PyObject *resultobj = 0;
41181 wxWindow *arg1 = (wxWindow *) 0 ;
41182 int arg2 = (int) -1 ;
41183 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
41184 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
41185 wxPoint const &arg4_defvalue = wxDefaultPosition ;
41186 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
41187 wxSize const &arg5_defvalue = wxDefaultSize ;
41188 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
41189 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41190 wxValidator const &arg7_defvalue = wxDefaultValidator ;
41191 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
41192 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
41193 wxString *arg8 = (wxString *) &arg8_defvalue ;
41194 wxDatePickerCtrl *result = 0 ;
41195 void *argp1 = 0 ;
41196 int res1 = 0 ;
41197 int val2 ;
41198 int ecode2 = 0 ;
41199 void *argp3 = 0 ;
41200 int res3 = 0 ;
41201 wxPoint temp4 ;
41202 wxSize temp5 ;
41203 long val6 ;
41204 int ecode6 = 0 ;
41205 void *argp7 = 0 ;
41206 int res7 = 0 ;
41207 bool temp8 = false ;
41208 PyObject * obj0 = 0 ;
41209 PyObject * obj1 = 0 ;
41210 PyObject * obj2 = 0 ;
41211 PyObject * obj3 = 0 ;
41212 PyObject * obj4 = 0 ;
41213 PyObject * obj5 = 0 ;
41214 PyObject * obj6 = 0 ;
41215 PyObject * obj7 = 0 ;
41216 char * kwnames[] = {
41217 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41218 };
41219
41220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41222 if (!SWIG_IsOK(res1)) {
41223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41224 }
41225 arg1 = reinterpret_cast< wxWindow * >(argp1);
41226 if (obj1) {
41227 ecode2 = SWIG_AsVal_int(obj1, &val2);
41228 if (!SWIG_IsOK(ecode2)) {
41229 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41230 }
41231 arg2 = static_cast< int >(val2);
41232 }
41233 if (obj2) {
41234 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41235 if (!SWIG_IsOK(res3)) {
41236 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41237 }
1bd55598
RD
41238 if (!argp3) {
41239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41240 }
1bd55598
RD
41241 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41242 }
41243 if (obj3) {
36ed4f51 41244 {
1bd55598
RD
41245 arg4 = &temp4;
41246 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 41247 }
1bd55598
RD
41248 }
41249 if (obj4) {
d55e5bfc 41250 {
1bd55598
RD
41251 arg5 = &temp5;
41252 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 41253 }
1bd55598
RD
41254 }
41255 if (obj5) {
41256 ecode6 = SWIG_AsVal_long(obj5, &val6);
41257 if (!SWIG_IsOK(ecode6)) {
41258 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41259 }
41260 arg6 = static_cast< long >(val6);
41261 }
41262 if (obj6) {
41263 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41264 if (!SWIG_IsOK(res7)) {
41265 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 41266 }
1bd55598
RD
41267 if (!argp7) {
41268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 41269 }
1bd55598
RD
41270 arg7 = reinterpret_cast< wxValidator * >(argp7);
41271 }
41272 if (obj7) {
36ed4f51 41273 {
1bd55598
RD
41274 arg8 = wxString_in_helper(obj7);
41275 if (arg8 == NULL) SWIG_fail;
41276 temp8 = true;
36ed4f51 41277 }
1bd55598
RD
41278 }
41279 {
41280 if (!wxPyCheckForApp()) SWIG_fail;
41281 PyThreadState* __tstate = wxPyBeginAllowThreads();
41282 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41283 wxPyEndAllowThreads(__tstate);
41284 if (PyErr_Occurred()) SWIG_fail;
41285 }
41286 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41287 {
41288 if (temp8)
41289 delete arg8;
41290 }
41291 return resultobj;
41292fail:
41293 {
41294 if (temp8)
41295 delete arg8;
41296 }
41297 return NULL;
d55e5bfc
RD
41298}
41299
41300
1bd55598
RD
41301SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41302 PyObject *resultobj = 0;
41303 wxDatePickerCtrl *result = 0 ;
41304
41305 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41306 {
41307 if (!wxPyCheckForApp()) SWIG_fail;
41308 PyThreadState* __tstate = wxPyBeginAllowThreads();
41309 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41310 wxPyEndAllowThreads(__tstate);
41311 if (PyErr_Occurred()) SWIG_fail;
41312 }
41313 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41314 return resultobj;
41315fail:
41316 return NULL;
41317}
41318
41319
41320SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41321 PyObject *resultobj = 0;
41322 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41323 wxWindow *arg2 = (wxWindow *) 0 ;
41324 int arg3 = (int) -1 ;
41325 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41326 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41327 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41328 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41329 wxSize const &arg6_defvalue = wxDefaultSize ;
41330 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41331 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41332 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41333 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41334 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41335 wxString *arg9 = (wxString *) &arg9_defvalue ;
41336 bool result;
41337 void *argp1 = 0 ;
41338 int res1 = 0 ;
41339 void *argp2 = 0 ;
41340 int res2 = 0 ;
41341 int val3 ;
41342 int ecode3 = 0 ;
41343 void *argp4 = 0 ;
41344 int res4 = 0 ;
41345 wxPoint temp5 ;
41346 wxSize temp6 ;
41347 long val7 ;
41348 int ecode7 = 0 ;
41349 void *argp8 = 0 ;
41350 int res8 = 0 ;
41351 bool temp9 = false ;
41352 PyObject * obj0 = 0 ;
41353 PyObject * obj1 = 0 ;
41354 PyObject * obj2 = 0 ;
41355 PyObject * obj3 = 0 ;
41356 PyObject * obj4 = 0 ;
41357 PyObject * obj5 = 0 ;
41358 PyObject * obj6 = 0 ;
41359 PyObject * obj7 = 0 ;
41360 PyObject * obj8 = 0 ;
41361 char * kwnames[] = {
41362 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41363 };
41364
41365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41367 if (!SWIG_IsOK(res1)) {
41368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41369 }
41370 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41371 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41372 if (!SWIG_IsOK(res2)) {
41373 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41374 }
41375 arg2 = reinterpret_cast< wxWindow * >(argp2);
41376 if (obj2) {
41377 ecode3 = SWIG_AsVal_int(obj2, &val3);
41378 if (!SWIG_IsOK(ecode3)) {
41379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41380 }
41381 arg3 = static_cast< int >(val3);
41382 }
41383 if (obj3) {
41384 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41385 if (!SWIG_IsOK(res4)) {
41386 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
36ed4f51 41387 }
1bd55598
RD
41388 if (!argp4) {
41389 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
d55e5bfc 41390 }
1bd55598
RD
41391 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41392 }
41393 if (obj4) {
d55e5bfc 41394 {
1bd55598
RD
41395 arg5 = &temp5;
41396 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 41397 }
1bd55598
RD
41398 }
41399 if (obj5) {
d55e5bfc 41400 {
1bd55598
RD
41401 arg6 = &temp6;
41402 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 41403 }
1bd55598
RD
41404 }
41405 if (obj6) {
41406 ecode7 = SWIG_AsVal_long(obj6, &val7);
41407 if (!SWIG_IsOK(ecode7)) {
41408 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41409 }
41410 arg7 = static_cast< long >(val7);
41411 }
41412 if (obj7) {
41413 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41414 if (!SWIG_IsOK(res8)) {
41415 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 41416 }
1bd55598
RD
41417 if (!argp8) {
41418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 41419 }
1bd55598
RD
41420 arg8 = reinterpret_cast< wxValidator * >(argp8);
41421 }
41422 if (obj8) {
36ed4f51 41423 {
1bd55598
RD
41424 arg9 = wxString_in_helper(obj8);
41425 if (arg9 == NULL) SWIG_fail;
41426 temp9 = true;
36ed4f51 41427 }
1bd55598
RD
41428 }
41429 {
41430 PyThreadState* __tstate = wxPyBeginAllowThreads();
41431 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41432 wxPyEndAllowThreads(__tstate);
41433 if (PyErr_Occurred()) SWIG_fail;
41434 }
41435 {
41436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41437 }
41438 {
41439 if (temp9)
41440 delete arg9;
41441 }
41442 return resultobj;
41443fail:
41444 {
41445 if (temp9)
41446 delete arg9;
41447 }
41448 return NULL;
41449}
41450
41451
41452SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41453 PyObject *resultobj = 0;
41454 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41455 wxDateTime *arg2 = 0 ;
41456 void *argp1 = 0 ;
41457 int res1 = 0 ;
41458 void *argp2 = 0 ;
41459 int res2 = 0 ;
41460 PyObject * obj0 = 0 ;
41461 PyObject * obj1 = 0 ;
41462 char * kwnames[] = {
41463 (char *) "self",(char *) "dt", NULL
41464 };
41465
41466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41468 if (!SWIG_IsOK(res1)) {
41469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41470 }
41471 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41472 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41473 if (!SWIG_IsOK(res2)) {
41474 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41475 }
41476 if (!argp2) {
41477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41478 }
41479 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41480 {
41481 PyThreadState* __tstate = wxPyBeginAllowThreads();
41482 (arg1)->SetValue((wxDateTime const &)*arg2);
41483 wxPyEndAllowThreads(__tstate);
41484 if (PyErr_Occurred()) SWIG_fail;
41485 }
41486 resultobj = SWIG_Py_Void();
41487 return resultobj;
41488fail:
41489 return NULL;
d55e5bfc
RD
41490}
41491
41492
1bd55598
RD
41493SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41494 PyObject *resultobj = 0;
41495 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41496 wxDateTime result;
41497 void *argp1 = 0 ;
41498 int res1 = 0 ;
41499 PyObject *swig_obj[1] ;
41500
41501 if (!args) SWIG_fail;
41502 swig_obj[0] = args;
41503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41504 if (!SWIG_IsOK(res1)) {
41505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41506 }
41507 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41508 {
41509 PyThreadState* __tstate = wxPyBeginAllowThreads();
41510 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41511 wxPyEndAllowThreads(__tstate);
41512 if (PyErr_Occurred()) SWIG_fail;
41513 }
41514 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41515 return resultobj;
41516fail:
41517 return NULL;
41518}
41519
41520
41521SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41522 PyObject *resultobj = 0;
41523 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41524 wxDateTime *arg2 = 0 ;
41525 wxDateTime *arg3 = 0 ;
41526 void *argp1 = 0 ;
41527 int res1 = 0 ;
41528 void *argp2 = 0 ;
41529 int res2 = 0 ;
41530 void *argp3 = 0 ;
41531 int res3 = 0 ;
41532 PyObject * obj0 = 0 ;
41533 PyObject * obj1 = 0 ;
41534 PyObject * obj2 = 0 ;
41535 char * kwnames[] = {
41536 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41537 };
41538
41539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41541 if (!SWIG_IsOK(res1)) {
41542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41543 }
41544 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41545 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41546 if (!SWIG_IsOK(res2)) {
41547 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41548 }
41549 if (!argp2) {
41550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41551 }
41552 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41553 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41554 if (!SWIG_IsOK(res3)) {
41555 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41556 }
41557 if (!argp3) {
41558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41559 }
41560 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41561 {
41562 PyThreadState* __tstate = wxPyBeginAllowThreads();
41563 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41564 wxPyEndAllowThreads(__tstate);
41565 if (PyErr_Occurred()) SWIG_fail;
41566 }
41567 resultobj = SWIG_Py_Void();
41568 return resultobj;
41569fail:
41570 return NULL;
d55e5bfc
RD
41571}
41572
41573
1bd55598
RD
41574SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41575 PyObject *resultobj = 0;
41576 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41577 wxDateTime result;
41578 void *argp1 = 0 ;
41579 int res1 = 0 ;
41580 PyObject *swig_obj[1] ;
41581
41582 if (!args) SWIG_fail;
41583 swig_obj[0] = args;
41584 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41585 if (!SWIG_IsOK(res1)) {
41586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41587 }
41588 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41589 {
41590 PyThreadState* __tstate = wxPyBeginAllowThreads();
41591 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41592 wxPyEndAllowThreads(__tstate);
41593 if (PyErr_Occurred()) SWIG_fail;
41594 }
41595 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41596 return resultobj;
41597fail:
41598 return NULL;
d55e5bfc
RD
41599}
41600
41601
1bd55598
RD
41602SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41603 PyObject *resultobj = 0;
41604 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41605 wxDateTime result;
41606 void *argp1 = 0 ;
41607 int res1 = 0 ;
41608 PyObject *swig_obj[1] ;
41609
41610 if (!args) SWIG_fail;
41611 swig_obj[0] = args;
41612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41613 if (!SWIG_IsOK(res1)) {
41614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41615 }
41616 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41617 {
41618 PyThreadState* __tstate = wxPyBeginAllowThreads();
41619 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41620 wxPyEndAllowThreads(__tstate);
41621 if (PyErr_Occurred()) SWIG_fail;
41622 }
41623 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41624 return resultobj;
41625fail:
41626 return NULL;
d55e5bfc
RD
41627}
41628
41629
1bd55598
RD
41630SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41631 PyObject *obj;
41632 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41633 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41634 return SWIG_Py_Void();
d55e5bfc
RD
41635}
41636
1bd55598
RD
41637SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41638 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41639}
41640
704eda0c
RD
41641SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41642 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41643 return 1;
41644}
41645
41646
41647SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41648 PyObject *pyobj = 0;
41649
41650 {
41651#if wxUSE_UNICODE
41652 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41653#else
41654 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41655#endif
41656 }
41657 return pyobj;
41658}
41659
41660
41661SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41662 PyObject *resultobj = 0;
41663 wxWindow *arg1 = (wxWindow *) 0 ;
41664 int arg2 ;
41665 wxString *arg3 = 0 ;
41666 wxString *arg4 = 0 ;
41667 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41668 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41669 wxSize const &arg6_defvalue = wxDefaultSize ;
41670 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41671 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41672 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41673 wxString *arg8 = (wxString *) &arg8_defvalue ;
41674 wxHyperlinkCtrl *result = 0 ;
41675 void *argp1 = 0 ;
41676 int res1 = 0 ;
41677 int val2 ;
41678 int ecode2 = 0 ;
41679 bool temp3 = false ;
41680 bool temp4 = false ;
41681 wxPoint temp5 ;
41682 wxSize temp6 ;
41683 long val7 ;
41684 int ecode7 = 0 ;
41685 bool temp8 = false ;
41686 PyObject * obj0 = 0 ;
41687 PyObject * obj1 = 0 ;
41688 PyObject * obj2 = 0 ;
41689 PyObject * obj3 = 0 ;
41690 PyObject * obj4 = 0 ;
41691 PyObject * obj5 = 0 ;
41692 PyObject * obj6 = 0 ;
41693 PyObject * obj7 = 0 ;
41694 char * kwnames[] = {
41695 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41696 };
41697
41698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41700 if (!SWIG_IsOK(res1)) {
41701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41702 }
41703 arg1 = reinterpret_cast< wxWindow * >(argp1);
41704 ecode2 = SWIG_AsVal_int(obj1, &val2);
41705 if (!SWIG_IsOK(ecode2)) {
41706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41707 }
41708 arg2 = static_cast< int >(val2);
41709 {
41710 arg3 = wxString_in_helper(obj2);
41711 if (arg3 == NULL) SWIG_fail;
41712 temp3 = true;
41713 }
41714 {
41715 arg4 = wxString_in_helper(obj3);
41716 if (arg4 == NULL) SWIG_fail;
41717 temp4 = true;
41718 }
41719 if (obj4) {
41720 {
41721 arg5 = &temp5;
41722 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41723 }
41724 }
41725 if (obj5) {
41726 {
41727 arg6 = &temp6;
41728 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41729 }
41730 }
41731 if (obj6) {
41732 ecode7 = SWIG_AsVal_long(obj6, &val7);
41733 if (!SWIG_IsOK(ecode7)) {
41734 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41735 }
41736 arg7 = static_cast< long >(val7);
41737 }
41738 if (obj7) {
41739 {
41740 arg8 = wxString_in_helper(obj7);
41741 if (arg8 == NULL) SWIG_fail;
41742 temp8 = true;
41743 }
41744 }
41745 {
41746 if (!wxPyCheckForApp()) SWIG_fail;
41747 PyThreadState* __tstate = wxPyBeginAllowThreads();
41748 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41749 wxPyEndAllowThreads(__tstate);
41750 if (PyErr_Occurred()) SWIG_fail;
41751 }
41752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41753 {
41754 if (temp3)
41755 delete arg3;
41756 }
41757 {
41758 if (temp4)
41759 delete arg4;
41760 }
41761 {
41762 if (temp8)
41763 delete arg8;
41764 }
41765 return resultobj;
41766fail:
41767 {
41768 if (temp3)
41769 delete arg3;
41770 }
41771 {
41772 if (temp4)
41773 delete arg4;
41774 }
41775 {
41776 if (temp8)
41777 delete arg8;
41778 }
41779 return NULL;
41780}
41781
41782
41783SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41784 PyObject *resultobj = 0;
41785 wxHyperlinkCtrl *result = 0 ;
41786
41787 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41788 {
41789 if (!wxPyCheckForApp()) SWIG_fail;
41790 PyThreadState* __tstate = wxPyBeginAllowThreads();
41791 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41792 wxPyEndAllowThreads(__tstate);
41793 if (PyErr_Occurred()) SWIG_fail;
41794 }
41795 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41796 return resultobj;
41797fail:
41798 return NULL;
41799}
41800
41801
41802SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41803 PyObject *resultobj = 0;
41804 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41805 wxWindow *arg2 = (wxWindow *) 0 ;
41806 int arg3 ;
41807 wxString *arg4 = 0 ;
41808 wxString *arg5 = 0 ;
41809 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41810 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41811 wxSize const &arg7_defvalue = wxDefaultSize ;
41812 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41813 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41814 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41815 wxString *arg9 = (wxString *) &arg9_defvalue ;
41816 bool result;
41817 void *argp1 = 0 ;
41818 int res1 = 0 ;
41819 void *argp2 = 0 ;
41820 int res2 = 0 ;
41821 int val3 ;
41822 int ecode3 = 0 ;
41823 bool temp4 = false ;
41824 bool temp5 = false ;
41825 wxPoint temp6 ;
41826 wxSize temp7 ;
41827 long val8 ;
41828 int ecode8 = 0 ;
41829 bool temp9 = false ;
41830 PyObject * obj0 = 0 ;
41831 PyObject * obj1 = 0 ;
41832 PyObject * obj2 = 0 ;
41833 PyObject * obj3 = 0 ;
41834 PyObject * obj4 = 0 ;
41835 PyObject * obj5 = 0 ;
41836 PyObject * obj6 = 0 ;
41837 PyObject * obj7 = 0 ;
41838 PyObject * obj8 = 0 ;
41839 char * kwnames[] = {
41840 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41841 };
41842
41843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41845 if (!SWIG_IsOK(res1)) {
41846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41847 }
41848 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41849 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41850 if (!SWIG_IsOK(res2)) {
41851 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41852 }
41853 arg2 = reinterpret_cast< wxWindow * >(argp2);
41854 ecode3 = SWIG_AsVal_int(obj2, &val3);
41855 if (!SWIG_IsOK(ecode3)) {
41856 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41857 }
41858 arg3 = static_cast< int >(val3);
41859 {
41860 arg4 = wxString_in_helper(obj3);
41861 if (arg4 == NULL) SWIG_fail;
41862 temp4 = true;
41863 }
41864 {
41865 arg5 = wxString_in_helper(obj4);
41866 if (arg5 == NULL) SWIG_fail;
41867 temp5 = true;
41868 }
41869 if (obj5) {
41870 {
41871 arg6 = &temp6;
41872 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41873 }
41874 }
41875 if (obj6) {
41876 {
41877 arg7 = &temp7;
41878 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41879 }
41880 }
41881 if (obj7) {
41882 ecode8 = SWIG_AsVal_long(obj7, &val8);
41883 if (!SWIG_IsOK(ecode8)) {
41884 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41885 }
41886 arg8 = static_cast< long >(val8);
41887 }
41888 if (obj8) {
41889 {
41890 arg9 = wxString_in_helper(obj8);
41891 if (arg9 == NULL) SWIG_fail;
41892 temp9 = true;
41893 }
41894 }
41895 {
41896 PyThreadState* __tstate = wxPyBeginAllowThreads();
41897 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41898 wxPyEndAllowThreads(__tstate);
41899 if (PyErr_Occurred()) SWIG_fail;
41900 }
41901 {
41902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41903 }
41904 {
41905 if (temp4)
41906 delete arg4;
41907 }
41908 {
41909 if (temp5)
41910 delete arg5;
41911 }
41912 {
41913 if (temp9)
41914 delete arg9;
41915 }
41916 return resultobj;
41917fail:
41918 {
41919 if (temp4)
41920 delete arg4;
41921 }
41922 {
41923 if (temp5)
41924 delete arg5;
41925 }
41926 {
41927 if (temp9)
41928 delete arg9;
41929 }
41930 return NULL;
41931}
41932
41933
41934SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41935 PyObject *resultobj = 0;
41936 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41937 wxColour result;
41938 void *argp1 = 0 ;
41939 int res1 = 0 ;
41940 PyObject *swig_obj[1] ;
41941
41942 if (!args) SWIG_fail;
41943 swig_obj[0] = args;
41944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41945 if (!SWIG_IsOK(res1)) {
41946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41947 }
41948 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41949 {
41950 PyThreadState* __tstate = wxPyBeginAllowThreads();
41951 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41952 wxPyEndAllowThreads(__tstate);
41953 if (PyErr_Occurred()) SWIG_fail;
41954 }
41955 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41956 return resultobj;
41957fail:
41958 return NULL;
41959}
41960
41961
41962SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41963 PyObject *resultobj = 0;
41964 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41965 wxColour *arg2 = 0 ;
41966 void *argp1 = 0 ;
41967 int res1 = 0 ;
41968 wxColour temp2 ;
41969 PyObject * obj0 = 0 ;
41970 PyObject * obj1 = 0 ;
41971 char * kwnames[] = {
41972 (char *) "self",(char *) "colour", NULL
41973 };
41974
41975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41977 if (!SWIG_IsOK(res1)) {
41978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41979 }
41980 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41981 {
41982 arg2 = &temp2;
41983 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41984 }
41985 {
41986 PyThreadState* __tstate = wxPyBeginAllowThreads();
41987 (arg1)->SetHoverColour((wxColour const &)*arg2);
41988 wxPyEndAllowThreads(__tstate);
41989 if (PyErr_Occurred()) SWIG_fail;
41990 }
41991 resultobj = SWIG_Py_Void();
41992 return resultobj;
41993fail:
41994 return NULL;
41995}
41996
41997
41998SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41999 PyObject *resultobj = 0;
42000 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42001 wxColour result;
42002 void *argp1 = 0 ;
42003 int res1 = 0 ;
42004 PyObject *swig_obj[1] ;
42005
42006 if (!args) SWIG_fail;
42007 swig_obj[0] = args;
42008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42009 if (!SWIG_IsOK(res1)) {
42010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42011 }
42012 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42013 {
42014 PyThreadState* __tstate = wxPyBeginAllowThreads();
42015 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
42016 wxPyEndAllowThreads(__tstate);
42017 if (PyErr_Occurred()) SWIG_fail;
42018 }
42019 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42020 return resultobj;
42021fail:
42022 return NULL;
42023}
42024
42025
42026SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42027 PyObject *resultobj = 0;
42028 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42029 wxColour *arg2 = 0 ;
42030 void *argp1 = 0 ;
42031 int res1 = 0 ;
42032 wxColour temp2 ;
42033 PyObject * obj0 = 0 ;
42034 PyObject * obj1 = 0 ;
42035 char * kwnames[] = {
42036 (char *) "self",(char *) "colour", NULL
42037 };
42038
42039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
42040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42041 if (!SWIG_IsOK(res1)) {
42042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42043 }
42044 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42045 {
42046 arg2 = &temp2;
42047 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42048 }
42049 {
42050 PyThreadState* __tstate = wxPyBeginAllowThreads();
42051 (arg1)->SetNormalColour((wxColour const &)*arg2);
42052 wxPyEndAllowThreads(__tstate);
42053 if (PyErr_Occurred()) SWIG_fail;
42054 }
42055 resultobj = SWIG_Py_Void();
42056 return resultobj;
42057fail:
42058 return NULL;
42059}
42060
42061
42062SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42063 PyObject *resultobj = 0;
42064 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42065 wxColour result;
42066 void *argp1 = 0 ;
42067 int res1 = 0 ;
42068 PyObject *swig_obj[1] ;
42069
42070 if (!args) SWIG_fail;
42071 swig_obj[0] = args;
42072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42073 if (!SWIG_IsOK(res1)) {
42074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42075 }
42076 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42077 {
42078 PyThreadState* __tstate = wxPyBeginAllowThreads();
42079 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
42080 wxPyEndAllowThreads(__tstate);
42081 if (PyErr_Occurred()) SWIG_fail;
42082 }
42083 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
42084 return resultobj;
42085fail:
42086 return NULL;
42087}
42088
42089
42090SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42091 PyObject *resultobj = 0;
42092 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42093 wxColour *arg2 = 0 ;
42094 void *argp1 = 0 ;
42095 int res1 = 0 ;
42096 wxColour temp2 ;
42097 PyObject * obj0 = 0 ;
42098 PyObject * obj1 = 0 ;
42099 char * kwnames[] = {
42100 (char *) "self",(char *) "colour", NULL
42101 };
42102
42103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
42104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42105 if (!SWIG_IsOK(res1)) {
42106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42107 }
42108 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42109 {
42110 arg2 = &temp2;
42111 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
42112 }
42113 {
42114 PyThreadState* __tstate = wxPyBeginAllowThreads();
42115 (arg1)->SetVisitedColour((wxColour const &)*arg2);
42116 wxPyEndAllowThreads(__tstate);
42117 if (PyErr_Occurred()) SWIG_fail;
42118 }
42119 resultobj = SWIG_Py_Void();
42120 return resultobj;
42121fail:
42122 return NULL;
42123}
42124
42125
42126SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42127 PyObject *resultobj = 0;
42128 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42129 wxString result;
42130 void *argp1 = 0 ;
42131 int res1 = 0 ;
42132 PyObject *swig_obj[1] ;
42133
42134 if (!args) SWIG_fail;
42135 swig_obj[0] = args;
42136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42137 if (!SWIG_IsOK(res1)) {
42138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42139 }
42140 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42141 {
42142 PyThreadState* __tstate = wxPyBeginAllowThreads();
42143 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
42144 wxPyEndAllowThreads(__tstate);
42145 if (PyErr_Occurred()) SWIG_fail;
42146 }
42147 {
42148#if wxUSE_UNICODE
42149 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42150#else
42151 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42152#endif
42153 }
42154 return resultobj;
42155fail:
42156 return NULL;
42157}
42158
42159
42160SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42161 PyObject *resultobj = 0;
42162 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42163 wxString *arg2 = 0 ;
42164 void *argp1 = 0 ;
42165 int res1 = 0 ;
42166 bool temp2 = false ;
42167 PyObject * obj0 = 0 ;
42168 PyObject * obj1 = 0 ;
42169 char * kwnames[] = {
42170 (char *) "self",(char *) "url", NULL
42171 };
42172
42173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42175 if (!SWIG_IsOK(res1)) {
42176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42177 }
42178 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42179 {
42180 arg2 = wxString_in_helper(obj1);
42181 if (arg2 == NULL) SWIG_fail;
42182 temp2 = true;
42183 }
42184 {
42185 PyThreadState* __tstate = wxPyBeginAllowThreads();
42186 (arg1)->SetURL((wxString const &)*arg2);
42187 wxPyEndAllowThreads(__tstate);
42188 if (PyErr_Occurred()) SWIG_fail;
42189 }
42190 resultobj = SWIG_Py_Void();
42191 {
42192 if (temp2)
42193 delete arg2;
42194 }
42195 return resultobj;
42196fail:
42197 {
42198 if (temp2)
42199 delete arg2;
42200 }
42201 return NULL;
42202}
42203
42204
42205SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42206 PyObject *resultobj = 0;
42207 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42208 bool arg2 = (bool) true ;
42209 void *argp1 = 0 ;
42210 int res1 = 0 ;
42211 bool val2 ;
42212 int ecode2 = 0 ;
42213 PyObject * obj0 = 0 ;
42214 PyObject * obj1 = 0 ;
42215 char * kwnames[] = {
42216 (char *) "self",(char *) "visited", NULL
42217 };
42218
42219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
42220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42221 if (!SWIG_IsOK(res1)) {
42222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
42223 }
42224 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42225 if (obj1) {
42226 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42227 if (!SWIG_IsOK(ecode2)) {
42228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42229 }
42230 arg2 = static_cast< bool >(val2);
42231 }
42232 {
42233 PyThreadState* __tstate = wxPyBeginAllowThreads();
42234 (arg1)->SetVisited(arg2);
42235 wxPyEndAllowThreads(__tstate);
42236 if (PyErr_Occurred()) SWIG_fail;
42237 }
42238 resultobj = SWIG_Py_Void();
42239 return resultobj;
42240fail:
42241 return NULL;
42242}
42243
42244
42245SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42246 PyObject *resultobj = 0;
42247 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42248 bool result;
42249 void *argp1 = 0 ;
42250 int res1 = 0 ;
42251 PyObject *swig_obj[1] ;
42252
42253 if (!args) SWIG_fail;
42254 swig_obj[0] = args;
42255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42256 if (!SWIG_IsOK(res1)) {
42257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42258 }
42259 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42260 {
42261 PyThreadState* __tstate = wxPyBeginAllowThreads();
42262 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42263 wxPyEndAllowThreads(__tstate);
42264 if (PyErr_Occurred()) SWIG_fail;
42265 }
42266 {
42267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42268 }
42269 return resultobj;
42270fail:
42271 return NULL;
42272}
42273
42274
42275SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42276 PyObject *obj;
42277 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42278 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42279 return SWIG_Py_Void();
42280}
42281
42282SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42283 return SWIG_Python_InitShadowInstance(args);
42284}
42285
42286SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42287 PyObject *resultobj = 0;
42288 wxObject *arg1 = (wxObject *) 0 ;
42289 int arg2 ;
42290 wxString *arg3 = 0 ;
42291 wxHyperlinkEvent *result = 0 ;
42292 void *argp1 = 0 ;
42293 int res1 = 0 ;
42294 int val2 ;
42295 int ecode2 = 0 ;
42296 bool temp3 = false ;
42297 PyObject * obj0 = 0 ;
42298 PyObject * obj1 = 0 ;
42299 PyObject * obj2 = 0 ;
42300 char * kwnames[] = {
42301 (char *) "generator",(char *) "id",(char *) "url", NULL
42302 };
42303
42304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42306 if (!SWIG_IsOK(res1)) {
42307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42308 }
42309 arg1 = reinterpret_cast< wxObject * >(argp1);
42310 ecode2 = SWIG_AsVal_int(obj1, &val2);
42311 if (!SWIG_IsOK(ecode2)) {
42312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42313 }
42314 arg2 = static_cast< int >(val2);
42315 {
42316 arg3 = wxString_in_helper(obj2);
42317 if (arg3 == NULL) SWIG_fail;
42318 temp3 = true;
42319 }
42320 {
42321 PyThreadState* __tstate = wxPyBeginAllowThreads();
42322 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42323 wxPyEndAllowThreads(__tstate);
42324 if (PyErr_Occurred()) SWIG_fail;
42325 }
42326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42327 {
42328 if (temp3)
42329 delete arg3;
42330 }
42331 return resultobj;
42332fail:
42333 {
42334 if (temp3)
42335 delete arg3;
42336 }
42337 return NULL;
42338}
42339
42340
42341SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42342 PyObject *resultobj = 0;
42343 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42344 wxString result;
42345 void *argp1 = 0 ;
42346 int res1 = 0 ;
42347 PyObject *swig_obj[1] ;
42348
42349 if (!args) SWIG_fail;
42350 swig_obj[0] = args;
42351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42352 if (!SWIG_IsOK(res1)) {
42353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42354 }
42355 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42356 {
42357 PyThreadState* __tstate = wxPyBeginAllowThreads();
42358 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42359 wxPyEndAllowThreads(__tstate);
42360 if (PyErr_Occurred()) SWIG_fail;
42361 }
42362 {
42363#if wxUSE_UNICODE
42364 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42365#else
42366 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42367#endif
42368 }
42369 return resultobj;
42370fail:
42371 return NULL;
42372}
42373
42374
42375SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42376 PyObject *resultobj = 0;
42377 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42378 wxString *arg2 = 0 ;
42379 void *argp1 = 0 ;
42380 int res1 = 0 ;
42381 bool temp2 = false ;
42382 PyObject * obj0 = 0 ;
42383 PyObject * obj1 = 0 ;
42384 char * kwnames[] = {
42385 (char *) "self",(char *) "url", NULL
42386 };
42387
42388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42390 if (!SWIG_IsOK(res1)) {
42391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42392 }
42393 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42394 {
42395 arg2 = wxString_in_helper(obj1);
42396 if (arg2 == NULL) SWIG_fail;
42397 temp2 = true;
42398 }
42399 {
42400 PyThreadState* __tstate = wxPyBeginAllowThreads();
42401 (arg1)->SetURL((wxString const &)*arg2);
42402 wxPyEndAllowThreads(__tstate);
42403 if (PyErr_Occurred()) SWIG_fail;
42404 }
42405 resultobj = SWIG_Py_Void();
42406 {
42407 if (temp2)
42408 delete arg2;
42409 }
42410 return resultobj;
42411fail:
42412 {
42413 if (temp2)
42414 delete arg2;
42415 }
42416 return NULL;
42417}
42418
42419
42420SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42421 PyObject *obj;
42422 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42423 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42424 return SWIG_Py_Void();
42425}
42426
42427SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42428 return SWIG_Python_InitShadowInstance(args);
42429}
42430
b850e7f3
RD
42431SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42432 PyObject *resultobj = 0;
42433 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42434 wxWindow *arg2 = (wxWindow *) 0 ;
42435 int arg3 ;
42436 wxString const &arg4_defvalue = wxEmptyString ;
42437 wxString *arg4 = (wxString *) &arg4_defvalue ;
42438 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42439 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42440 wxSize const &arg6_defvalue = wxDefaultSize ;
42441 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42442 long arg7 = (long) 0 ;
42443 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42444 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42445 wxString const &arg9_defvalue = wxButtonNameStr ;
42446 wxString *arg9 = (wxString *) &arg9_defvalue ;
42447 bool result;
42448 void *argp1 = 0 ;
42449 int res1 = 0 ;
42450 void *argp2 = 0 ;
42451 int res2 = 0 ;
42452 int val3 ;
42453 int ecode3 = 0 ;
42454 bool temp4 = false ;
42455 wxPoint temp5 ;
42456 wxSize temp6 ;
42457 long val7 ;
42458 int ecode7 = 0 ;
42459 void *argp8 = 0 ;
42460 int res8 = 0 ;
42461 bool temp9 = false ;
42462 PyObject * obj0 = 0 ;
42463 PyObject * obj1 = 0 ;
42464 PyObject * obj2 = 0 ;
42465 PyObject * obj3 = 0 ;
42466 PyObject * obj4 = 0 ;
42467 PyObject * obj5 = 0 ;
42468 PyObject * obj6 = 0 ;
42469 PyObject * obj7 = 0 ;
42470 PyObject * obj8 = 0 ;
42471 char * kwnames[] = {
42472 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42473 };
42474
42475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42477 if (!SWIG_IsOK(res1)) {
42478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42479 }
42480 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42481 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42482 if (!SWIG_IsOK(res2)) {
42483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42484 }
42485 arg2 = reinterpret_cast< wxWindow * >(argp2);
42486 ecode3 = SWIG_AsVal_int(obj2, &val3);
42487 if (!SWIG_IsOK(ecode3)) {
42488 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42489 }
42490 arg3 = static_cast< int >(val3);
42491 if (obj3) {
42492 {
42493 arg4 = wxString_in_helper(obj3);
42494 if (arg4 == NULL) SWIG_fail;
42495 temp4 = true;
42496 }
42497 }
42498 if (obj4) {
42499 {
42500 arg5 = &temp5;
42501 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42502 }
42503 }
42504 if (obj5) {
42505 {
42506 arg6 = &temp6;
42507 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42508 }
42509 }
42510 if (obj6) {
42511 ecode7 = SWIG_AsVal_long(obj6, &val7);
42512 if (!SWIG_IsOK(ecode7)) {
42513 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42514 }
42515 arg7 = static_cast< long >(val7);
42516 }
42517 if (obj7) {
42518 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42519 if (!SWIG_IsOK(res8)) {
42520 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42521 }
42522 if (!argp8) {
42523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42524 }
42525 arg8 = reinterpret_cast< wxValidator * >(argp8);
42526 }
42527 if (obj8) {
42528 {
42529 arg9 = wxString_in_helper(obj8);
42530 if (arg9 == NULL) SWIG_fail;
42531 temp9 = true;
42532 }
42533 }
42534 {
42535 PyThreadState* __tstate = wxPyBeginAllowThreads();
42536 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42537 wxPyEndAllowThreads(__tstate);
42538 if (PyErr_Occurred()) SWIG_fail;
42539 }
42540 {
42541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42542 }
42543 {
42544 if (temp4)
42545 delete arg4;
42546 }
42547 {
42548 if (temp9)
42549 delete arg9;
42550 }
42551 return resultobj;
42552fail:
42553 {
42554 if (temp4)
42555 delete arg4;
42556 }
42557 {
42558 if (temp9)
42559 delete arg9;
42560 }
42561 return NULL;
42562}
42563
42564
42565SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42566 PyObject *resultobj = 0;
42567 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42568 int arg2 ;
42569 void *argp1 = 0 ;
42570 int res1 = 0 ;
42571 int val2 ;
42572 int ecode2 = 0 ;
42573 PyObject * obj0 = 0 ;
42574 PyObject * obj1 = 0 ;
42575 char * kwnames[] = {
42576 (char *) "self",(char *) "newmargin", NULL
42577 };
42578
42579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42581 if (!SWIG_IsOK(res1)) {
42582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42583 }
42584 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42585 ecode2 = SWIG_AsVal_int(obj1, &val2);
42586 if (!SWIG_IsOK(ecode2)) {
42587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42588 }
42589 arg2 = static_cast< int >(val2);
42590 {
42591 PyThreadState* __tstate = wxPyBeginAllowThreads();
42592 (arg1)->SetInternalMargin(arg2);
42593 wxPyEndAllowThreads(__tstate);
42594 if (PyErr_Occurred()) SWIG_fail;
42595 }
42596 resultobj = SWIG_Py_Void();
42597 return resultobj;
42598fail:
42599 return NULL;
42600}
42601
42602
42603SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42604 PyObject *resultobj = 0;
42605 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42606 int result;
42607 void *argp1 = 0 ;
42608 int res1 = 0 ;
42609 PyObject *swig_obj[1] ;
42610
42611 if (!args) SWIG_fail;
42612 swig_obj[0] = args;
42613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42614 if (!SWIG_IsOK(res1)) {
42615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42616 }
42617 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42618 {
42619 PyThreadState* __tstate = wxPyBeginAllowThreads();
42620 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42621 wxPyEndAllowThreads(__tstate);
42622 if (PyErr_Occurred()) SWIG_fail;
42623 }
42624 resultobj = SWIG_From_int(static_cast< int >(result));
42625 return resultobj;
42626fail:
42627 return NULL;
42628}
42629
42630
42631SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42632 PyObject *resultobj = 0;
42633 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42634 int arg2 ;
42635 void *argp1 = 0 ;
42636 int res1 = 0 ;
42637 int val2 ;
42638 int ecode2 = 0 ;
42639 PyObject * obj0 = 0 ;
42640 PyObject * obj1 = 0 ;
42641 char * kwnames[] = {
42642 (char *) "self",(char *) "prop", NULL
42643 };
42644
42645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42647 if (!SWIG_IsOK(res1)) {
42648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42649 }
42650 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42651 ecode2 = SWIG_AsVal_int(obj1, &val2);
42652 if (!SWIG_IsOK(ecode2)) {
42653 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42654 }
42655 arg2 = static_cast< int >(val2);
42656 {
42657 PyThreadState* __tstate = wxPyBeginAllowThreads();
42658 (arg1)->SetTextCtrlProportion(arg2);
42659 wxPyEndAllowThreads(__tstate);
42660 if (PyErr_Occurred()) SWIG_fail;
42661 }
42662 resultobj = SWIG_Py_Void();
42663 return resultobj;
42664fail:
42665 return NULL;
42666}
42667
42668
42669SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42670 PyObject *resultobj = 0;
42671 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42672 int result;
42673 void *argp1 = 0 ;
42674 int res1 = 0 ;
42675 PyObject *swig_obj[1] ;
42676
42677 if (!args) SWIG_fail;
42678 swig_obj[0] = args;
42679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42680 if (!SWIG_IsOK(res1)) {
42681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42682 }
42683 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42684 {
42685 PyThreadState* __tstate = wxPyBeginAllowThreads();
42686 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42687 wxPyEndAllowThreads(__tstate);
42688 if (PyErr_Occurred()) SWIG_fail;
42689 }
42690 resultobj = SWIG_From_int(static_cast< int >(result));
42691 return resultobj;
42692fail:
42693 return NULL;
42694}
42695
42696
1eeb270e
RD
42697SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42698 PyObject *resultobj = 0;
42699 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42700 int arg2 ;
42701 void *argp1 = 0 ;
42702 int res1 = 0 ;
42703 int val2 ;
42704 int ecode2 = 0 ;
42705 PyObject * obj0 = 0 ;
42706 PyObject * obj1 = 0 ;
42707 char * kwnames[] = {
42708 (char *) "self",(char *) "prop", NULL
42709 };
42710
42711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42713 if (!SWIG_IsOK(res1)) {
42714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42715 }
42716 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42717 ecode2 = SWIG_AsVal_int(obj1, &val2);
42718 if (!SWIG_IsOK(ecode2)) {
42719 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42720 }
42721 arg2 = static_cast< int >(val2);
42722 {
42723 PyThreadState* __tstate = wxPyBeginAllowThreads();
42724 (arg1)->SetPickerCtrlProportion(arg2);
42725 wxPyEndAllowThreads(__tstate);
42726 if (PyErr_Occurred()) SWIG_fail;
42727 }
42728 resultobj = SWIG_Py_Void();
42729 return resultobj;
42730fail:
42731 return NULL;
42732}
42733
42734
42735SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42736 PyObject *resultobj = 0;
42737 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42738 int result;
42739 void *argp1 = 0 ;
42740 int res1 = 0 ;
42741 PyObject *swig_obj[1] ;
42742
42743 if (!args) SWIG_fail;
42744 swig_obj[0] = args;
42745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42746 if (!SWIG_IsOK(res1)) {
42747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42748 }
42749 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42750 {
42751 PyThreadState* __tstate = wxPyBeginAllowThreads();
42752 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42753 wxPyEndAllowThreads(__tstate);
42754 if (PyErr_Occurred()) SWIG_fail;
42755 }
42756 resultobj = SWIG_From_int(static_cast< int >(result));
42757 return resultobj;
42758fail:
42759 return NULL;
42760}
42761
42762
b02396e8
RD
42763SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42764 PyObject *resultobj = 0;
42765 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42766 bool result;
42767 void *argp1 = 0 ;
42768 int res1 = 0 ;
42769 PyObject *swig_obj[1] ;
42770
42771 if (!args) SWIG_fail;
42772 swig_obj[0] = args;
42773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42774 if (!SWIG_IsOK(res1)) {
42775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42776 }
42777 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42778 {
42779 PyThreadState* __tstate = wxPyBeginAllowThreads();
42780 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42781 wxPyEndAllowThreads(__tstate);
42782 if (PyErr_Occurred()) SWIG_fail;
42783 }
42784 {
42785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42786 }
42787 return resultobj;
42788fail:
42789 return NULL;
42790}
42791
42792
42793SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42794 PyObject *resultobj = 0;
42795 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42796 bool arg2 = (bool) true ;
42797 void *argp1 = 0 ;
42798 int res1 = 0 ;
42799 bool val2 ;
42800 int ecode2 = 0 ;
42801 PyObject * obj0 = 0 ;
42802 PyObject * obj1 = 0 ;
42803 char * kwnames[] = {
42804 (char *) "self",(char *) "grow", NULL
42805 };
42806
42807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42809 if (!SWIG_IsOK(res1)) {
42810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42811 }
42812 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42813 if (obj1) {
42814 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42815 if (!SWIG_IsOK(ecode2)) {
42816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42817 }
42818 arg2 = static_cast< bool >(val2);
42819 }
42820 {
42821 PyThreadState* __tstate = wxPyBeginAllowThreads();
42822 (arg1)->SetTextCtrlGrowable(arg2);
42823 wxPyEndAllowThreads(__tstate);
42824 if (PyErr_Occurred()) SWIG_fail;
42825 }
42826 resultobj = SWIG_Py_Void();
42827 return resultobj;
42828fail:
42829 return NULL;
42830}
42831
42832
42833SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42834 PyObject *resultobj = 0;
42835 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42836 bool result;
42837 void *argp1 = 0 ;
42838 int res1 = 0 ;
42839 PyObject *swig_obj[1] ;
42840
42841 if (!args) SWIG_fail;
42842 swig_obj[0] = args;
42843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42844 if (!SWIG_IsOK(res1)) {
42845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42846 }
42847 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42848 {
42849 PyThreadState* __tstate = wxPyBeginAllowThreads();
42850 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42851 wxPyEndAllowThreads(__tstate);
42852 if (PyErr_Occurred()) SWIG_fail;
42853 }
42854 {
42855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42856 }
42857 return resultobj;
42858fail:
42859 return NULL;
42860}
42861
42862
42863SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42864 PyObject *resultobj = 0;
42865 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42866 bool arg2 = (bool) true ;
42867 void *argp1 = 0 ;
42868 int res1 = 0 ;
42869 bool val2 ;
42870 int ecode2 = 0 ;
42871 PyObject * obj0 = 0 ;
42872 PyObject * obj1 = 0 ;
42873 char * kwnames[] = {
42874 (char *) "self",(char *) "grow", NULL
42875 };
42876
42877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42879 if (!SWIG_IsOK(res1)) {
42880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42881 }
42882 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42883 if (obj1) {
42884 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42885 if (!SWIG_IsOK(ecode2)) {
42886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42887 }
42888 arg2 = static_cast< bool >(val2);
42889 }
42890 {
42891 PyThreadState* __tstate = wxPyBeginAllowThreads();
42892 (arg1)->SetPickerCtrlGrowable(arg2);
42893 wxPyEndAllowThreads(__tstate);
42894 if (PyErr_Occurred()) SWIG_fail;
42895 }
42896 resultobj = SWIG_Py_Void();
42897 return resultobj;
42898fail:
42899 return NULL;
42900}
42901
42902
b850e7f3
RD
42903SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42904 PyObject *resultobj = 0;
42905 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42906 bool result;
42907 void *argp1 = 0 ;
42908 int res1 = 0 ;
42909 PyObject *swig_obj[1] ;
42910
42911 if (!args) SWIG_fail;
42912 swig_obj[0] = args;
42913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42914 if (!SWIG_IsOK(res1)) {
42915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42916 }
42917 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42918 {
42919 PyThreadState* __tstate = wxPyBeginAllowThreads();
42920 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42921 wxPyEndAllowThreads(__tstate);
42922 if (PyErr_Occurred()) SWIG_fail;
42923 }
42924 {
42925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42926 }
42927 return resultobj;
42928fail:
42929 return NULL;
42930}
42931
42932
42933SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42934 PyObject *resultobj = 0;
42935 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42936 wxTextCtrl *result = 0 ;
42937 void *argp1 = 0 ;
42938 int res1 = 0 ;
42939 PyObject *swig_obj[1] ;
42940
42941 if (!args) SWIG_fail;
42942 swig_obj[0] = args;
42943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42944 if (!SWIG_IsOK(res1)) {
42945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42946 }
42947 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42948 {
42949 PyThreadState* __tstate = wxPyBeginAllowThreads();
42950 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42951 wxPyEndAllowThreads(__tstate);
42952 if (PyErr_Occurred()) SWIG_fail;
42953 }
42954 {
42955 resultobj = wxPyMake_wxObject(result, 0);
42956 }
42957 return resultobj;
42958fail:
42959 return NULL;
42960}
42961
42962
42963SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42964 PyObject *resultobj = 0;
42965 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42966 wxControl *result = 0 ;
42967 void *argp1 = 0 ;
42968 int res1 = 0 ;
42969 PyObject *swig_obj[1] ;
42970
42971 if (!args) SWIG_fail;
42972 swig_obj[0] = args;
42973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42974 if (!SWIG_IsOK(res1)) {
42975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42976 }
42977 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42978 {
42979 PyThreadState* __tstate = wxPyBeginAllowThreads();
42980 result = (wxControl *)(arg1)->GetPickerCtrl();
42981 wxPyEndAllowThreads(__tstate);
42982 if (PyErr_Occurred()) SWIG_fail;
42983 }
42984 {
42985 resultobj = wxPyMake_wxObject(result, 0);
42986 }
42987 return resultobj;
42988fail:
42989 return NULL;
42990}
42991
42992
42993SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42994 PyObject *obj;
42995 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42996 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
42997 return SWIG_Py_Void();
42998}
42999
43000SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
43001 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
43002 return 1;
43003}
43004
43005
43006SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
43007 PyObject *pyobj = 0;
43008
43009 {
43010#if wxUSE_UNICODE
43011 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43012#else
43013 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
43014#endif
43015 }
43016 return pyobj;
43017}
43018
43019
43020SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43021 PyObject *resultobj = 0;
43022 wxWindow *arg1 = (wxWindow *) 0 ;
43023 int arg2 = (int) -1 ;
43024 wxColour const &arg3_defvalue = *wxBLACK ;
43025 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
43026 wxPoint const &arg4_defvalue = wxDefaultPosition ;
43027 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
43028 wxSize const &arg5_defvalue = wxDefaultSize ;
43029 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
43030 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
43031 wxValidator const &arg7_defvalue = wxDefaultValidator ;
43032 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
43033 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
43034 wxString *arg8 = (wxString *) &arg8_defvalue ;
43035 wxColourPickerCtrl *result = 0 ;
43036 void *argp1 = 0 ;
43037 int res1 = 0 ;
43038 int val2 ;
43039 int ecode2 = 0 ;
43040 wxColour temp3 ;
43041 wxPoint temp4 ;
43042 wxSize temp5 ;
43043 long val6 ;
43044 int ecode6 = 0 ;
43045 void *argp7 = 0 ;
43046 int res7 = 0 ;
43047 bool temp8 = false ;
43048 PyObject * obj0 = 0 ;
43049 PyObject * obj1 = 0 ;
43050 PyObject * obj2 = 0 ;
43051 PyObject * obj3 = 0 ;
43052 PyObject * obj4 = 0 ;
43053 PyObject * obj5 = 0 ;
43054 PyObject * obj6 = 0 ;
43055 PyObject * obj7 = 0 ;
43056 char * kwnames[] = {
43057 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43058 };
43059
43060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
43061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43062 if (!SWIG_IsOK(res1)) {
43063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43064 }
43065 arg1 = reinterpret_cast< wxWindow * >(argp1);
43066 if (obj1) {
43067 ecode2 = SWIG_AsVal_int(obj1, &val2);
43068 if (!SWIG_IsOK(ecode2)) {
43069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43070 }
43071 arg2 = static_cast< int >(val2);
43072 }
43073 if (obj2) {
43074 {
43075 arg3 = &temp3;
43076 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43077 }
43078 }
43079 if (obj3) {
43080 {
43081 arg4 = &temp4;
43082 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
43083 }
43084 }
43085 if (obj4) {
43086 {
43087 arg5 = &temp5;
43088 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
43089 }
43090 }
43091 if (obj5) {
43092 ecode6 = SWIG_AsVal_long(obj5, &val6);
43093 if (!SWIG_IsOK(ecode6)) {
43094 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
43095 }
43096 arg6 = static_cast< long >(val6);
43097 }
43098 if (obj6) {
43099 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
43100 if (!SWIG_IsOK(res7)) {
43101 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43102 }
43103 if (!argp7) {
43104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
43105 }
43106 arg7 = reinterpret_cast< wxValidator * >(argp7);
43107 }
43108 if (obj7) {
43109 {
43110 arg8 = wxString_in_helper(obj7);
43111 if (arg8 == NULL) SWIG_fail;
43112 temp8 = true;
43113 }
43114 }
43115 {
43116 if (!wxPyCheckForApp()) SWIG_fail;
43117 PyThreadState* __tstate = wxPyBeginAllowThreads();
43118 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
43119 wxPyEndAllowThreads(__tstate);
43120 if (PyErr_Occurred()) SWIG_fail;
43121 }
43122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
43123 {
43124 if (temp8)
43125 delete arg8;
43126 }
43127 return resultobj;
43128fail:
43129 {
43130 if (temp8)
43131 delete arg8;
43132 }
43133 return NULL;
43134}
43135
43136
43137SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43138 PyObject *resultobj = 0;
43139 wxColourPickerCtrl *result = 0 ;
43140
43141 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
43142 {
43143 if (!wxPyCheckForApp()) SWIG_fail;
43144 PyThreadState* __tstate = wxPyBeginAllowThreads();
43145 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
43146 wxPyEndAllowThreads(__tstate);
43147 if (PyErr_Occurred()) SWIG_fail;
43148 }
43149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
43150 return resultobj;
43151fail:
43152 return NULL;
43153}
43154
43155
43156SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43157 PyObject *resultobj = 0;
43158 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43159 wxWindow *arg2 = (wxWindow *) 0 ;
43160 int arg3 ;
43161 wxColour const &arg4_defvalue = *wxBLACK ;
43162 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
43163 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43164 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43165 wxSize const &arg6_defvalue = wxDefaultSize ;
43166 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43167 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
43168 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43169 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43170 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
43171 wxString *arg9 = (wxString *) &arg9_defvalue ;
43172 bool result;
43173 void *argp1 = 0 ;
43174 int res1 = 0 ;
43175 void *argp2 = 0 ;
43176 int res2 = 0 ;
43177 int val3 ;
43178 int ecode3 = 0 ;
43179 wxColour temp4 ;
43180 wxPoint temp5 ;
43181 wxSize temp6 ;
43182 long val7 ;
43183 int ecode7 = 0 ;
43184 void *argp8 = 0 ;
43185 int res8 = 0 ;
43186 bool temp9 = false ;
43187 PyObject * obj0 = 0 ;
43188 PyObject * obj1 = 0 ;
43189 PyObject * obj2 = 0 ;
43190 PyObject * obj3 = 0 ;
43191 PyObject * obj4 = 0 ;
43192 PyObject * obj5 = 0 ;
43193 PyObject * obj6 = 0 ;
43194 PyObject * obj7 = 0 ;
43195 PyObject * obj8 = 0 ;
43196 char * kwnames[] = {
43197 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43198 };
43199
43200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43202 if (!SWIG_IsOK(res1)) {
43203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43204 }
43205 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43206 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43207 if (!SWIG_IsOK(res2)) {
43208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43209 }
43210 arg2 = reinterpret_cast< wxWindow * >(argp2);
43211 ecode3 = SWIG_AsVal_int(obj2, &val3);
43212 if (!SWIG_IsOK(ecode3)) {
43213 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43214 }
43215 arg3 = static_cast< int >(val3);
43216 if (obj3) {
43217 {
43218 arg4 = &temp4;
43219 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
43220 }
43221 }
43222 if (obj4) {
43223 {
43224 arg5 = &temp5;
43225 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43226 }
43227 }
43228 if (obj5) {
43229 {
43230 arg6 = &temp6;
43231 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43232 }
43233 }
43234 if (obj6) {
43235 ecode7 = SWIG_AsVal_long(obj6, &val7);
43236 if (!SWIG_IsOK(ecode7)) {
43237 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43238 }
43239 arg7 = static_cast< long >(val7);
43240 }
43241 if (obj7) {
43242 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43243 if (!SWIG_IsOK(res8)) {
43244 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43245 }
43246 if (!argp8) {
43247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43248 }
43249 arg8 = reinterpret_cast< wxValidator * >(argp8);
43250 }
43251 if (obj8) {
43252 {
43253 arg9 = wxString_in_helper(obj8);
43254 if (arg9 == NULL) SWIG_fail;
43255 temp9 = true;
43256 }
43257 }
43258 {
43259 PyThreadState* __tstate = wxPyBeginAllowThreads();
43260 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43261 wxPyEndAllowThreads(__tstate);
43262 if (PyErr_Occurred()) SWIG_fail;
43263 }
43264 {
43265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43266 }
43267 {
43268 if (temp9)
43269 delete arg9;
43270 }
43271 return resultobj;
43272fail:
43273 {
43274 if (temp9)
43275 delete arg9;
43276 }
43277 return NULL;
43278}
43279
43280
43281SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43282 PyObject *resultobj = 0;
43283 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43284 wxColour result;
43285 void *argp1 = 0 ;
43286 int res1 = 0 ;
43287 PyObject *swig_obj[1] ;
43288
43289 if (!args) SWIG_fail;
43290 swig_obj[0] = args;
43291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43292 if (!SWIG_IsOK(res1)) {
43293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43294 }
43295 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43296 {
43297 PyThreadState* __tstate = wxPyBeginAllowThreads();
43298 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43299 wxPyEndAllowThreads(__tstate);
43300 if (PyErr_Occurred()) SWIG_fail;
43301 }
43302 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43303 return resultobj;
43304fail:
43305 return NULL;
43306}
43307
43308
43309SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43310 PyObject *resultobj = 0;
43311 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43312 wxColour *arg2 = 0 ;
43313 void *argp1 = 0 ;
43314 int res1 = 0 ;
43315 wxColour temp2 ;
43316 PyObject * obj0 = 0 ;
43317 PyObject * obj1 = 0 ;
43318 char * kwnames[] = {
43319 (char *) "self",(char *) "col", NULL
43320 };
43321
43322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43324 if (!SWIG_IsOK(res1)) {
43325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43326 }
43327 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43328 {
43329 arg2 = &temp2;
43330 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43331 }
43332 {
43333 PyThreadState* __tstate = wxPyBeginAllowThreads();
43334 (arg1)->SetColour((wxColour const &)*arg2);
43335 wxPyEndAllowThreads(__tstate);
43336 if (PyErr_Occurred()) SWIG_fail;
43337 }
43338 resultobj = SWIG_Py_Void();
43339 return resultobj;
43340fail:
43341 return NULL;
43342}
43343
43344
43345SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43346 PyObject *obj;
43347 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43348 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43349 return SWIG_Py_Void();
43350}
43351
43352SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43353 return SWIG_Python_InitShadowInstance(args);
43354}
43355
43356SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43357 PyObject *resultobj = 0;
43358 wxObject *arg1 = (wxObject *) 0 ;
43359 int arg2 ;
43360 wxColour *arg3 = 0 ;
43361 wxColourPickerEvent *result = 0 ;
43362 void *argp1 = 0 ;
43363 int res1 = 0 ;
43364 int val2 ;
43365 int ecode2 = 0 ;
43366 wxColour temp3 ;
43367 PyObject * obj0 = 0 ;
43368 PyObject * obj1 = 0 ;
43369 PyObject * obj2 = 0 ;
43370 char * kwnames[] = {
43371 (char *) "generator",(char *) "id",(char *) "col", NULL
43372 };
43373
43374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43376 if (!SWIG_IsOK(res1)) {
43377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43378 }
43379 arg1 = reinterpret_cast< wxObject * >(argp1);
43380 ecode2 = SWIG_AsVal_int(obj1, &val2);
43381 if (!SWIG_IsOK(ecode2)) {
43382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43383 }
43384 arg2 = static_cast< int >(val2);
43385 {
43386 arg3 = &temp3;
43387 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43388 }
43389 {
43390 PyThreadState* __tstate = wxPyBeginAllowThreads();
43391 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43392 wxPyEndAllowThreads(__tstate);
43393 if (PyErr_Occurred()) SWIG_fail;
43394 }
43395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43396 return resultobj;
43397fail:
43398 return NULL;
43399}
43400
43401
43402SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43403 PyObject *resultobj = 0;
43404 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43405 wxColour result;
43406 void *argp1 = 0 ;
43407 int res1 = 0 ;
43408 PyObject *swig_obj[1] ;
43409
43410 if (!args) SWIG_fail;
43411 swig_obj[0] = args;
43412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43413 if (!SWIG_IsOK(res1)) {
43414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43415 }
43416 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43417 {
43418 PyThreadState* __tstate = wxPyBeginAllowThreads();
43419 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43420 wxPyEndAllowThreads(__tstate);
43421 if (PyErr_Occurred()) SWIG_fail;
43422 }
43423 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43424 return resultobj;
43425fail:
43426 return NULL;
43427}
43428
43429
43430SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43431 PyObject *resultobj = 0;
43432 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43433 wxColour *arg2 = 0 ;
43434 void *argp1 = 0 ;
43435 int res1 = 0 ;
43436 wxColour temp2 ;
43437 PyObject * obj0 = 0 ;
43438 PyObject * obj1 = 0 ;
43439 char * kwnames[] = {
43440 (char *) "self",(char *) "c", NULL
43441 };
43442
43443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43445 if (!SWIG_IsOK(res1)) {
43446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43447 }
43448 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43449 {
43450 arg2 = &temp2;
43451 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43452 }
43453 {
43454 PyThreadState* __tstate = wxPyBeginAllowThreads();
43455 (arg1)->SetColour((wxColour const &)*arg2);
43456 wxPyEndAllowThreads(__tstate);
43457 if (PyErr_Occurred()) SWIG_fail;
43458 }
43459 resultobj = SWIG_Py_Void();
43460 return resultobj;
43461fail:
43462 return NULL;
43463}
43464
43465
43466SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43467 PyObject *obj;
43468 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43469 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43470 return SWIG_Py_Void();
43471}
43472
43473SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43474 return SWIG_Python_InitShadowInstance(args);
43475}
43476
43477SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43478 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43479 return 1;
43480}
43481
43482
43483SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43484 PyObject *pyobj = 0;
43485
43486 {
43487#if wxUSE_UNICODE
43488 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43489#else
43490 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43491#endif
43492 }
43493 return pyobj;
43494}
43495
43496
43497SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43498 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43499 return 1;
43500}
43501
43502
43503SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43504 PyObject *pyobj = 0;
43505
43506 {
43507#if wxUSE_UNICODE
43508 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43509#else
43510 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43511#endif
43512 }
43513 return pyobj;
43514}
43515
43516
43517SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43518 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43519 return 1;
43520}
43521
43522
43523SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43524 PyObject *pyobj = 0;
43525
43526 {
43527#if wxUSE_UNICODE
43528 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43529#else
43530 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43531#endif
43532 }
43533 return pyobj;
43534}
43535
43536
43537SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43538 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43539 return 1;
43540}
43541
43542
43543SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43544 PyObject *pyobj = 0;
43545
43546 {
43547#if wxUSE_UNICODE
43548 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43549#else
43550 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43551#endif
43552 }
43553 return pyobj;
43554}
43555
43556
43557SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43558 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43559 return 1;
43560}
43561
43562
43563SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43564 PyObject *pyobj = 0;
43565
43566 {
43567#if wxUSE_UNICODE
43568 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43569#else
43570 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43571#endif
43572 }
43573 return pyobj;
43574}
43575
43576
43577SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43578 PyObject *resultobj = 0;
43579 wxWindow *arg1 = (wxWindow *) 0 ;
43580 int arg2 = (int) -1 ;
43581 wxString const &arg3_defvalue = wxPyEmptyString ;
43582 wxString *arg3 = (wxString *) &arg3_defvalue ;
43583 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43584 wxString *arg4 = (wxString *) &arg4_defvalue ;
43585 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43586 wxString *arg5 = (wxString *) &arg5_defvalue ;
43587 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43588 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43589 wxSize const &arg7_defvalue = wxDefaultSize ;
43590 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43591 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43592 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43593 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43594 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43595 wxString *arg10 = (wxString *) &arg10_defvalue ;
43596 wxFilePickerCtrl *result = 0 ;
43597 void *argp1 = 0 ;
43598 int res1 = 0 ;
43599 int val2 ;
43600 int ecode2 = 0 ;
43601 bool temp3 = false ;
43602 bool temp4 = false ;
43603 bool temp5 = false ;
43604 wxPoint temp6 ;
43605 wxSize temp7 ;
43606 long val8 ;
43607 int ecode8 = 0 ;
43608 void *argp9 = 0 ;
43609 int res9 = 0 ;
43610 bool temp10 = false ;
43611 PyObject * obj0 = 0 ;
43612 PyObject * obj1 = 0 ;
43613 PyObject * obj2 = 0 ;
43614 PyObject * obj3 = 0 ;
43615 PyObject * obj4 = 0 ;
43616 PyObject * obj5 = 0 ;
43617 PyObject * obj6 = 0 ;
43618 PyObject * obj7 = 0 ;
43619 PyObject * obj8 = 0 ;
43620 PyObject * obj9 = 0 ;
43621 char * kwnames[] = {
43622 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43623 };
43624
43625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43627 if (!SWIG_IsOK(res1)) {
43628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43629 }
43630 arg1 = reinterpret_cast< wxWindow * >(argp1);
43631 if (obj1) {
43632 ecode2 = SWIG_AsVal_int(obj1, &val2);
43633 if (!SWIG_IsOK(ecode2)) {
43634 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43635 }
43636 arg2 = static_cast< int >(val2);
43637 }
43638 if (obj2) {
43639 {
43640 arg3 = wxString_in_helper(obj2);
43641 if (arg3 == NULL) SWIG_fail;
43642 temp3 = true;
43643 }
43644 }
43645 if (obj3) {
43646 {
43647 arg4 = wxString_in_helper(obj3);
43648 if (arg4 == NULL) SWIG_fail;
43649 temp4 = true;
43650 }
43651 }
43652 if (obj4) {
43653 {
43654 arg5 = wxString_in_helper(obj4);
43655 if (arg5 == NULL) SWIG_fail;
43656 temp5 = true;
43657 }
43658 }
43659 if (obj5) {
43660 {
43661 arg6 = &temp6;
43662 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43663 }
43664 }
43665 if (obj6) {
43666 {
43667 arg7 = &temp7;
43668 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43669 }
43670 }
43671 if (obj7) {
43672 ecode8 = SWIG_AsVal_long(obj7, &val8);
43673 if (!SWIG_IsOK(ecode8)) {
43674 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43675 }
43676 arg8 = static_cast< long >(val8);
43677 }
43678 if (obj8) {
43679 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43680 if (!SWIG_IsOK(res9)) {
43681 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43682 }
43683 if (!argp9) {
43684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43685 }
43686 arg9 = reinterpret_cast< wxValidator * >(argp9);
43687 }
43688 if (obj9) {
43689 {
43690 arg10 = wxString_in_helper(obj9);
43691 if (arg10 == NULL) SWIG_fail;
43692 temp10 = true;
43693 }
43694 }
43695 {
43696 if (!wxPyCheckForApp()) SWIG_fail;
43697 PyThreadState* __tstate = wxPyBeginAllowThreads();
43698 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);
43699 wxPyEndAllowThreads(__tstate);
43700 if (PyErr_Occurred()) SWIG_fail;
43701 }
43702 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43703 {
43704 if (temp3)
43705 delete arg3;
43706 }
43707 {
43708 if (temp4)
43709 delete arg4;
43710 }
43711 {
43712 if (temp5)
43713 delete arg5;
43714 }
43715 {
43716 if (temp10)
43717 delete arg10;
43718 }
43719 return resultobj;
43720fail:
43721 {
43722 if (temp3)
43723 delete arg3;
43724 }
43725 {
43726 if (temp4)
43727 delete arg4;
43728 }
43729 {
43730 if (temp5)
43731 delete arg5;
43732 }
43733 {
43734 if (temp10)
43735 delete arg10;
43736 }
43737 return NULL;
43738}
43739
43740
43741SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43742 PyObject *resultobj = 0;
43743 wxFilePickerCtrl *result = 0 ;
43744
43745 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43746 {
43747 if (!wxPyCheckForApp()) SWIG_fail;
43748 PyThreadState* __tstate = wxPyBeginAllowThreads();
43749 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43750 wxPyEndAllowThreads(__tstate);
43751 if (PyErr_Occurred()) SWIG_fail;
43752 }
43753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43754 return resultobj;
43755fail:
43756 return NULL;
43757}
43758
43759
43760SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43761 PyObject *resultobj = 0;
43762 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43763 wxWindow *arg2 = (wxWindow *) 0 ;
43764 int arg3 = (int) -1 ;
43765 wxString const &arg4_defvalue = wxPyEmptyString ;
43766 wxString *arg4 = (wxString *) &arg4_defvalue ;
43767 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43768 wxString *arg5 = (wxString *) &arg5_defvalue ;
43769 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43770 wxString *arg6 = (wxString *) &arg6_defvalue ;
43771 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43772 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43773 wxSize const &arg8_defvalue = wxDefaultSize ;
43774 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43775 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43776 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43777 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43778 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43779 wxString *arg11 = (wxString *) &arg11_defvalue ;
43780 bool result;
43781 void *argp1 = 0 ;
43782 int res1 = 0 ;
43783 void *argp2 = 0 ;
43784 int res2 = 0 ;
43785 int val3 ;
43786 int ecode3 = 0 ;
43787 bool temp4 = false ;
43788 bool temp5 = false ;
43789 bool temp6 = false ;
43790 wxPoint temp7 ;
43791 wxSize temp8 ;
43792 long val9 ;
43793 int ecode9 = 0 ;
43794 void *argp10 = 0 ;
43795 int res10 = 0 ;
43796 bool temp11 = false ;
43797 PyObject * obj0 = 0 ;
43798 PyObject * obj1 = 0 ;
43799 PyObject * obj2 = 0 ;
43800 PyObject * obj3 = 0 ;
43801 PyObject * obj4 = 0 ;
43802 PyObject * obj5 = 0 ;
43803 PyObject * obj6 = 0 ;
43804 PyObject * obj7 = 0 ;
43805 PyObject * obj8 = 0 ;
43806 PyObject * obj9 = 0 ;
43807 PyObject * obj10 = 0 ;
43808 char * kwnames[] = {
43809 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43810 };
43811
43812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43814 if (!SWIG_IsOK(res1)) {
43815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43816 }
43817 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43818 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43819 if (!SWIG_IsOK(res2)) {
43820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43821 }
43822 arg2 = reinterpret_cast< wxWindow * >(argp2);
43823 if (obj2) {
43824 ecode3 = SWIG_AsVal_int(obj2, &val3);
43825 if (!SWIG_IsOK(ecode3)) {
43826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43827 }
43828 arg3 = static_cast< int >(val3);
43829 }
43830 if (obj3) {
43831 {
43832 arg4 = wxString_in_helper(obj3);
43833 if (arg4 == NULL) SWIG_fail;
43834 temp4 = true;
43835 }
43836 }
43837 if (obj4) {
43838 {
43839 arg5 = wxString_in_helper(obj4);
43840 if (arg5 == NULL) SWIG_fail;
43841 temp5 = true;
43842 }
43843 }
43844 if (obj5) {
43845 {
43846 arg6 = wxString_in_helper(obj5);
43847 if (arg6 == NULL) SWIG_fail;
43848 temp6 = true;
43849 }
43850 }
43851 if (obj6) {
43852 {
43853 arg7 = &temp7;
43854 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43855 }
43856 }
43857 if (obj7) {
43858 {
43859 arg8 = &temp8;
43860 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43861 }
43862 }
43863 if (obj8) {
43864 ecode9 = SWIG_AsVal_long(obj8, &val9);
43865 if (!SWIG_IsOK(ecode9)) {
43866 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43867 }
43868 arg9 = static_cast< long >(val9);
43869 }
43870 if (obj9) {
43871 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43872 if (!SWIG_IsOK(res10)) {
43873 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43874 }
43875 if (!argp10) {
43876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43877 }
43878 arg10 = reinterpret_cast< wxValidator * >(argp10);
43879 }
43880 if (obj10) {
43881 {
43882 arg11 = wxString_in_helper(obj10);
43883 if (arg11 == NULL) SWIG_fail;
43884 temp11 = true;
43885 }
43886 }
43887 {
43888 PyThreadState* __tstate = wxPyBeginAllowThreads();
43889 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);
43890 wxPyEndAllowThreads(__tstate);
43891 if (PyErr_Occurred()) SWIG_fail;
43892 }
43893 {
43894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43895 }
43896 {
43897 if (temp4)
43898 delete arg4;
43899 }
43900 {
43901 if (temp5)
43902 delete arg5;
43903 }
43904 {
43905 if (temp6)
43906 delete arg6;
43907 }
43908 {
43909 if (temp11)
43910 delete arg11;
43911 }
43912 return resultobj;
43913fail:
43914 {
43915 if (temp4)
43916 delete arg4;
43917 }
43918 {
43919 if (temp5)
43920 delete arg5;
43921 }
43922 {
43923 if (temp6)
43924 delete arg6;
43925 }
43926 {
43927 if (temp11)
43928 delete arg11;
43929 }
43930 return NULL;
43931}
43932
43933
43934SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43935 PyObject *resultobj = 0;
43936 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43937 wxString result;
43938 void *argp1 = 0 ;
43939 int res1 = 0 ;
43940 PyObject *swig_obj[1] ;
43941
43942 if (!args) SWIG_fail;
43943 swig_obj[0] = args;
43944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43945 if (!SWIG_IsOK(res1)) {
43946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43947 }
43948 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43949 {
43950 PyThreadState* __tstate = wxPyBeginAllowThreads();
43951 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43952 wxPyEndAllowThreads(__tstate);
43953 if (PyErr_Occurred()) SWIG_fail;
43954 }
43955 {
43956#if wxUSE_UNICODE
43957 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43958#else
43959 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43960#endif
43961 }
43962 return resultobj;
43963fail:
43964 return NULL;
43965}
43966
43967
43968SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43969 PyObject *resultobj = 0;
43970 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43971 wxString *arg2 = 0 ;
43972 void *argp1 = 0 ;
43973 int res1 = 0 ;
43974 bool temp2 = false ;
43975 PyObject * obj0 = 0 ;
43976 PyObject * obj1 = 0 ;
43977 char * kwnames[] = {
43978 (char *) "self",(char *) "str", NULL
43979 };
43980
43981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43983 if (!SWIG_IsOK(res1)) {
43984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43985 }
43986 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43987 {
43988 arg2 = wxString_in_helper(obj1);
43989 if (arg2 == NULL) SWIG_fail;
43990 temp2 = true;
43991 }
43992 {
43993 PyThreadState* __tstate = wxPyBeginAllowThreads();
43994 (arg1)->SetPath((wxString const &)*arg2);
43995 wxPyEndAllowThreads(__tstate);
43996 if (PyErr_Occurred()) SWIG_fail;
43997 }
43998 resultobj = SWIG_Py_Void();
43999 {
44000 if (temp2)
44001 delete arg2;
44002 }
44003 return resultobj;
44004fail:
44005 {
44006 if (temp2)
44007 delete arg2;
44008 }
44009 return NULL;
44010}
44011
44012
b02396e8
RD
44013SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44014 PyObject *resultobj = 0;
44015 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44016 wxString *arg2 = 0 ;
44017 bool result;
44018 void *argp1 = 0 ;
44019 int res1 = 0 ;
44020 bool temp2 = false ;
44021 PyObject * obj0 = 0 ;
44022 PyObject * obj1 = 0 ;
44023 char * kwnames[] = {
44024 (char *) "self",(char *) "path", NULL
44025 };
44026
44027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44029 if (!SWIG_IsOK(res1)) {
44030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44031 }
44032 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44033 {
44034 arg2 = wxString_in_helper(obj1);
44035 if (arg2 == NULL) SWIG_fail;
44036 temp2 = true;
44037 }
44038 {
44039 PyThreadState* __tstate = wxPyBeginAllowThreads();
44040 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44041 wxPyEndAllowThreads(__tstate);
44042 if (PyErr_Occurred()) SWIG_fail;
44043 }
44044 {
44045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44046 }
44047 {
44048 if (temp2)
44049 delete arg2;
44050 }
44051 return resultobj;
44052fail:
44053 {
44054 if (temp2)
44055 delete arg2;
44056 }
44057 return NULL;
44058}
44059
44060
44061SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44062 PyObject *resultobj = 0;
44063 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
44064 wxString result;
44065 void *argp1 = 0 ;
44066 int res1 = 0 ;
44067 PyObject *swig_obj[1] ;
44068
44069 if (!args) SWIG_fail;
44070 swig_obj[0] = args;
44071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
44072 if (!SWIG_IsOK(res1)) {
44073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
44074 }
44075 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
44076 {
44077 PyThreadState* __tstate = wxPyBeginAllowThreads();
44078 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
44079 wxPyEndAllowThreads(__tstate);
44080 if (PyErr_Occurred()) SWIG_fail;
44081 }
44082 {
44083#if wxUSE_UNICODE
44084 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44085#else
44086 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44087#endif
44088 }
44089 return resultobj;
44090fail:
44091 return NULL;
44092}
44093
44094
b850e7f3
RD
44095SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44096 PyObject *obj;
44097 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44098 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
44099 return SWIG_Py_Void();
44100}
44101
44102SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44103 return SWIG_Python_InitShadowInstance(args);
44104}
44105
44106SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44107 PyObject *resultobj = 0;
44108 wxWindow *arg1 = (wxWindow *) 0 ;
44109 int arg2 = (int) -1 ;
44110 wxString const &arg3_defvalue = wxPyEmptyString ;
44111 wxString *arg3 = (wxString *) &arg3_defvalue ;
44112 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
44113 wxString *arg4 = (wxString *) &arg4_defvalue ;
44114 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44115 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44116 wxSize const &arg6_defvalue = wxDefaultSize ;
44117 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44118 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
44119 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44120 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44121 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
44122 wxString *arg9 = (wxString *) &arg9_defvalue ;
44123 wxDirPickerCtrl *result = 0 ;
44124 void *argp1 = 0 ;
44125 int res1 = 0 ;
44126 int val2 ;
44127 int ecode2 = 0 ;
44128 bool temp3 = false ;
44129 bool temp4 = false ;
44130 wxPoint temp5 ;
44131 wxSize temp6 ;
44132 long val7 ;
44133 int ecode7 = 0 ;
44134 void *argp8 = 0 ;
44135 int res8 = 0 ;
44136 bool temp9 = false ;
44137 PyObject * obj0 = 0 ;
44138 PyObject * obj1 = 0 ;
44139 PyObject * obj2 = 0 ;
44140 PyObject * obj3 = 0 ;
44141 PyObject * obj4 = 0 ;
44142 PyObject * obj5 = 0 ;
44143 PyObject * obj6 = 0 ;
44144 PyObject * obj7 = 0 ;
44145 PyObject * obj8 = 0 ;
44146 char * kwnames[] = {
44147 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44148 };
44149
44150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44152 if (!SWIG_IsOK(res1)) {
44153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44154 }
44155 arg1 = reinterpret_cast< wxWindow * >(argp1);
44156 if (obj1) {
44157 ecode2 = SWIG_AsVal_int(obj1, &val2);
44158 if (!SWIG_IsOK(ecode2)) {
44159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44160 }
44161 arg2 = static_cast< int >(val2);
44162 }
44163 if (obj2) {
44164 {
44165 arg3 = wxString_in_helper(obj2);
44166 if (arg3 == NULL) SWIG_fail;
44167 temp3 = true;
44168 }
44169 }
44170 if (obj3) {
44171 {
44172 arg4 = wxString_in_helper(obj3);
44173 if (arg4 == NULL) SWIG_fail;
44174 temp4 = true;
44175 }
44176 }
44177 if (obj4) {
44178 {
44179 arg5 = &temp5;
44180 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44181 }
44182 }
44183 if (obj5) {
44184 {
44185 arg6 = &temp6;
44186 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44187 }
44188 }
44189 if (obj6) {
44190 ecode7 = SWIG_AsVal_long(obj6, &val7);
44191 if (!SWIG_IsOK(ecode7)) {
44192 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
44193 }
44194 arg7 = static_cast< long >(val7);
44195 }
44196 if (obj7) {
44197 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44198 if (!SWIG_IsOK(res8)) {
44199 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44200 }
44201 if (!argp8) {
44202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
44203 }
44204 arg8 = reinterpret_cast< wxValidator * >(argp8);
44205 }
44206 if (obj8) {
44207 {
44208 arg9 = wxString_in_helper(obj8);
44209 if (arg9 == NULL) SWIG_fail;
44210 temp9 = true;
44211 }
44212 }
44213 {
44214 if (!wxPyCheckForApp()) SWIG_fail;
44215 PyThreadState* __tstate = wxPyBeginAllowThreads();
44216 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);
44217 wxPyEndAllowThreads(__tstate);
44218 if (PyErr_Occurred()) SWIG_fail;
44219 }
44220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
44221 {
44222 if (temp3)
44223 delete arg3;
44224 }
44225 {
44226 if (temp4)
44227 delete arg4;
44228 }
44229 {
44230 if (temp9)
44231 delete arg9;
44232 }
44233 return resultobj;
44234fail:
44235 {
44236 if (temp3)
44237 delete arg3;
44238 }
44239 {
44240 if (temp4)
44241 delete arg4;
44242 }
44243 {
44244 if (temp9)
44245 delete arg9;
44246 }
44247 return NULL;
44248}
44249
44250
44251SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44252 PyObject *resultobj = 0;
44253 wxDirPickerCtrl *result = 0 ;
44254
44255 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44256 {
44257 if (!wxPyCheckForApp()) SWIG_fail;
44258 PyThreadState* __tstate = wxPyBeginAllowThreads();
44259 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44260 wxPyEndAllowThreads(__tstate);
44261 if (PyErr_Occurred()) SWIG_fail;
44262 }
44263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44264 return resultobj;
44265fail:
44266 return NULL;
44267}
44268
44269
44270SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44271 PyObject *resultobj = 0;
44272 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44273 wxWindow *arg2 = (wxWindow *) 0 ;
44274 int arg3 = (int) -1 ;
44275 wxString const &arg4_defvalue = wxPyEmptyString ;
44276 wxString *arg4 = (wxString *) &arg4_defvalue ;
44277 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44278 wxString *arg5 = (wxString *) &arg5_defvalue ;
44279 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44280 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44281 wxSize const &arg7_defvalue = wxDefaultSize ;
44282 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44283 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44284 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44285 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44286 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44287 wxString *arg10 = (wxString *) &arg10_defvalue ;
44288 bool result;
44289 void *argp1 = 0 ;
44290 int res1 = 0 ;
44291 void *argp2 = 0 ;
44292 int res2 = 0 ;
44293 int val3 ;
44294 int ecode3 = 0 ;
44295 bool temp4 = false ;
44296 bool temp5 = false ;
44297 wxPoint temp6 ;
44298 wxSize temp7 ;
44299 long val8 ;
44300 int ecode8 = 0 ;
44301 void *argp9 = 0 ;
44302 int res9 = 0 ;
44303 bool temp10 = false ;
44304 PyObject * obj0 = 0 ;
44305 PyObject * obj1 = 0 ;
44306 PyObject * obj2 = 0 ;
44307 PyObject * obj3 = 0 ;
44308 PyObject * obj4 = 0 ;
44309 PyObject * obj5 = 0 ;
44310 PyObject * obj6 = 0 ;
44311 PyObject * obj7 = 0 ;
44312 PyObject * obj8 = 0 ;
44313 PyObject * obj9 = 0 ;
44314 char * kwnames[] = {
44315 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44316 };
44317
44318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44320 if (!SWIG_IsOK(res1)) {
44321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44322 }
44323 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44324 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44325 if (!SWIG_IsOK(res2)) {
44326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44327 }
44328 arg2 = reinterpret_cast< wxWindow * >(argp2);
44329 if (obj2) {
44330 ecode3 = SWIG_AsVal_int(obj2, &val3);
44331 if (!SWIG_IsOK(ecode3)) {
44332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44333 }
44334 arg3 = static_cast< int >(val3);
44335 }
44336 if (obj3) {
44337 {
44338 arg4 = wxString_in_helper(obj3);
44339 if (arg4 == NULL) SWIG_fail;
44340 temp4 = true;
44341 }
44342 }
44343 if (obj4) {
44344 {
44345 arg5 = wxString_in_helper(obj4);
44346 if (arg5 == NULL) SWIG_fail;
44347 temp5 = true;
44348 }
44349 }
44350 if (obj5) {
44351 {
44352 arg6 = &temp6;
44353 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44354 }
44355 }
44356 if (obj6) {
44357 {
44358 arg7 = &temp7;
44359 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44360 }
44361 }
44362 if (obj7) {
44363 ecode8 = SWIG_AsVal_long(obj7, &val8);
44364 if (!SWIG_IsOK(ecode8)) {
44365 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44366 }
44367 arg8 = static_cast< long >(val8);
44368 }
44369 if (obj8) {
44370 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44371 if (!SWIG_IsOK(res9)) {
44372 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44373 }
44374 if (!argp9) {
44375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44376 }
44377 arg9 = reinterpret_cast< wxValidator * >(argp9);
44378 }
44379 if (obj9) {
44380 {
44381 arg10 = wxString_in_helper(obj9);
44382 if (arg10 == NULL) SWIG_fail;
44383 temp10 = true;
44384 }
44385 }
44386 {
44387 PyThreadState* __tstate = wxPyBeginAllowThreads();
44388 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);
44389 wxPyEndAllowThreads(__tstate);
44390 if (PyErr_Occurred()) SWIG_fail;
44391 }
44392 {
44393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44394 }
44395 {
44396 if (temp4)
44397 delete arg4;
44398 }
44399 {
44400 if (temp5)
44401 delete arg5;
44402 }
44403 {
44404 if (temp10)
44405 delete arg10;
44406 }
44407 return resultobj;
44408fail:
44409 {
44410 if (temp4)
44411 delete arg4;
44412 }
44413 {
44414 if (temp5)
44415 delete arg5;
44416 }
44417 {
44418 if (temp10)
44419 delete arg10;
44420 }
44421 return NULL;
44422}
44423
44424
44425SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44426 PyObject *resultobj = 0;
44427 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44428 wxString result;
44429 void *argp1 = 0 ;
44430 int res1 = 0 ;
44431 PyObject *swig_obj[1] ;
44432
44433 if (!args) SWIG_fail;
44434 swig_obj[0] = args;
44435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44436 if (!SWIG_IsOK(res1)) {
44437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44438 }
44439 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44440 {
44441 PyThreadState* __tstate = wxPyBeginAllowThreads();
44442 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44443 wxPyEndAllowThreads(__tstate);
44444 if (PyErr_Occurred()) SWIG_fail;
44445 }
44446 {
44447#if wxUSE_UNICODE
44448 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44449#else
44450 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44451#endif
44452 }
44453 return resultobj;
44454fail:
44455 return NULL;
44456}
44457
44458
44459SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44460 PyObject *resultobj = 0;
44461 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44462 wxString *arg2 = 0 ;
44463 void *argp1 = 0 ;
44464 int res1 = 0 ;
44465 bool temp2 = false ;
44466 PyObject * obj0 = 0 ;
44467 PyObject * obj1 = 0 ;
44468 char * kwnames[] = {
44469 (char *) "self",(char *) "str", NULL
44470 };
44471
44472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44474 if (!SWIG_IsOK(res1)) {
44475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44476 }
44477 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44478 {
44479 arg2 = wxString_in_helper(obj1);
44480 if (arg2 == NULL) SWIG_fail;
44481 temp2 = true;
44482 }
44483 {
44484 PyThreadState* __tstate = wxPyBeginAllowThreads();
44485 (arg1)->SetPath((wxString const &)*arg2);
44486 wxPyEndAllowThreads(__tstate);
44487 if (PyErr_Occurred()) SWIG_fail;
44488 }
44489 resultobj = SWIG_Py_Void();
44490 {
44491 if (temp2)
44492 delete arg2;
44493 }
44494 return resultobj;
44495fail:
44496 {
44497 if (temp2)
44498 delete arg2;
44499 }
44500 return NULL;
44501}
44502
44503
b02396e8
RD
44504SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44505 PyObject *resultobj = 0;
44506 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44507 wxString *arg2 = 0 ;
44508 bool result;
44509 void *argp1 = 0 ;
44510 int res1 = 0 ;
44511 bool temp2 = false ;
44512 PyObject * obj0 = 0 ;
44513 PyObject * obj1 = 0 ;
44514 char * kwnames[] = {
44515 (char *) "self",(char *) "path", NULL
44516 };
44517
44518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44520 if (!SWIG_IsOK(res1)) {
44521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44522 }
44523 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44524 {
44525 arg2 = wxString_in_helper(obj1);
44526 if (arg2 == NULL) SWIG_fail;
44527 temp2 = true;
44528 }
44529 {
44530 PyThreadState* __tstate = wxPyBeginAllowThreads();
44531 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44532 wxPyEndAllowThreads(__tstate);
44533 if (PyErr_Occurred()) SWIG_fail;
44534 }
44535 {
44536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44537 }
44538 {
44539 if (temp2)
44540 delete arg2;
44541 }
44542 return resultobj;
44543fail:
44544 {
44545 if (temp2)
44546 delete arg2;
44547 }
44548 return NULL;
44549}
44550
44551
44552SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44553 PyObject *resultobj = 0;
44554 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44555 wxString result;
44556 void *argp1 = 0 ;
44557 int res1 = 0 ;
44558 PyObject *swig_obj[1] ;
44559
44560 if (!args) SWIG_fail;
44561 swig_obj[0] = args;
44562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44563 if (!SWIG_IsOK(res1)) {
44564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44565 }
44566 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44567 {
44568 PyThreadState* __tstate = wxPyBeginAllowThreads();
44569 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44570 wxPyEndAllowThreads(__tstate);
44571 if (PyErr_Occurred()) SWIG_fail;
44572 }
44573 {
44574#if wxUSE_UNICODE
44575 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44576#else
44577 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44578#endif
44579 }
44580 return resultobj;
44581fail:
44582 return NULL;
44583}
44584
44585
b850e7f3
RD
44586SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44587 PyObject *obj;
44588 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44589 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44590 return SWIG_Py_Void();
44591}
44592
44593SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44594 return SWIG_Python_InitShadowInstance(args);
44595}
44596
44597SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44598 PyObject *resultobj = 0;
44599 wxEventType arg1 ;
44600 wxObject *arg2 = (wxObject *) 0 ;
44601 int arg3 ;
44602 wxString *arg4 = 0 ;
44603 wxFileDirPickerEvent *result = 0 ;
44604 int val1 ;
44605 int ecode1 = 0 ;
44606 void *argp2 = 0 ;
44607 int res2 = 0 ;
44608 int val3 ;
44609 int ecode3 = 0 ;
44610 bool temp4 = false ;
44611 PyObject * obj0 = 0 ;
44612 PyObject * obj1 = 0 ;
44613 PyObject * obj2 = 0 ;
44614 PyObject * obj3 = 0 ;
44615 char * kwnames[] = {
44616 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44617 };
44618
44619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44620 ecode1 = SWIG_AsVal_int(obj0, &val1);
44621 if (!SWIG_IsOK(ecode1)) {
44622 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44623 }
44624 arg1 = static_cast< wxEventType >(val1);
44625 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44626 if (!SWIG_IsOK(res2)) {
44627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44628 }
44629 arg2 = reinterpret_cast< wxObject * >(argp2);
44630 ecode3 = SWIG_AsVal_int(obj2, &val3);
44631 if (!SWIG_IsOK(ecode3)) {
44632 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44633 }
44634 arg3 = static_cast< int >(val3);
44635 {
44636 arg4 = wxString_in_helper(obj3);
44637 if (arg4 == NULL) SWIG_fail;
44638 temp4 = true;
44639 }
44640 {
44641 PyThreadState* __tstate = wxPyBeginAllowThreads();
44642 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44643 wxPyEndAllowThreads(__tstate);
44644 if (PyErr_Occurred()) SWIG_fail;
44645 }
44646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44647 {
44648 if (temp4)
44649 delete arg4;
44650 }
44651 return resultobj;
44652fail:
44653 {
44654 if (temp4)
44655 delete arg4;
44656 }
44657 return NULL;
44658}
44659
44660
44661SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44662 PyObject *resultobj = 0;
44663 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44664 wxString result;
44665 void *argp1 = 0 ;
44666 int res1 = 0 ;
44667 PyObject *swig_obj[1] ;
44668
44669 if (!args) SWIG_fail;
44670 swig_obj[0] = args;
44671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44672 if (!SWIG_IsOK(res1)) {
44673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44674 }
44675 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44676 {
44677 PyThreadState* __tstate = wxPyBeginAllowThreads();
44678 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44679 wxPyEndAllowThreads(__tstate);
44680 if (PyErr_Occurred()) SWIG_fail;
44681 }
44682 {
44683#if wxUSE_UNICODE
44684 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44685#else
44686 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44687#endif
44688 }
44689 return resultobj;
44690fail:
44691 return NULL;
44692}
44693
44694
44695SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44696 PyObject *resultobj = 0;
44697 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44698 wxString *arg2 = 0 ;
44699 void *argp1 = 0 ;
44700 int res1 = 0 ;
44701 bool temp2 = false ;
44702 PyObject * obj0 = 0 ;
44703 PyObject * obj1 = 0 ;
44704 char * kwnames[] = {
44705 (char *) "self",(char *) "p", NULL
44706 };
44707
44708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44710 if (!SWIG_IsOK(res1)) {
44711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44712 }
44713 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44714 {
44715 arg2 = wxString_in_helper(obj1);
44716 if (arg2 == NULL) SWIG_fail;
44717 temp2 = true;
44718 }
44719 {
44720 PyThreadState* __tstate = wxPyBeginAllowThreads();
44721 (arg1)->SetPath((wxString const &)*arg2);
44722 wxPyEndAllowThreads(__tstate);
44723 if (PyErr_Occurred()) SWIG_fail;
44724 }
44725 resultobj = SWIG_Py_Void();
44726 {
44727 if (temp2)
44728 delete arg2;
44729 }
44730 return resultobj;
44731fail:
44732 {
44733 if (temp2)
44734 delete arg2;
44735 }
44736 return NULL;
44737}
44738
44739
44740SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44741 PyObject *obj;
44742 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44743 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44744 return SWIG_Py_Void();
44745}
44746
44747SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44748 return SWIG_Python_InitShadowInstance(args);
44749}
44750
44751SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44752 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44753 return 1;
44754}
44755
44756
44757SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44758 PyObject *pyobj = 0;
44759
44760 {
44761#if wxUSE_UNICODE
44762 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44763#else
44764 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44765#endif
44766 }
44767 return pyobj;
44768}
44769
44770
44771SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44772 PyObject *resultobj = 0;
44773 wxWindow *arg1 = (wxWindow *) 0 ;
44774 int arg2 = (int) -1 ;
f89238b9 44775 wxFont const &arg3_defvalue = wxNullFont ;
b850e7f3
RD
44776 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44777 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44778 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44779 wxSize const &arg5_defvalue = wxDefaultSize ;
44780 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44781 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44782 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44783 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44784 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44785 wxString *arg8 = (wxString *) &arg8_defvalue ;
44786 wxFontPickerCtrl *result = 0 ;
44787 void *argp1 = 0 ;
44788 int res1 = 0 ;
44789 int val2 ;
44790 int ecode2 = 0 ;
44791 void *argp3 = 0 ;
44792 int res3 = 0 ;
44793 wxPoint temp4 ;
44794 wxSize temp5 ;
44795 long val6 ;
44796 int ecode6 = 0 ;
44797 void *argp7 = 0 ;
44798 int res7 = 0 ;
44799 bool temp8 = false ;
44800 PyObject * obj0 = 0 ;
44801 PyObject * obj1 = 0 ;
44802 PyObject * obj2 = 0 ;
44803 PyObject * obj3 = 0 ;
44804 PyObject * obj4 = 0 ;
44805 PyObject * obj5 = 0 ;
44806 PyObject * obj6 = 0 ;
44807 PyObject * obj7 = 0 ;
44808 char * kwnames[] = {
44809 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44810 };
44811
44812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44814 if (!SWIG_IsOK(res1)) {
44815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44816 }
44817 arg1 = reinterpret_cast< wxWindow * >(argp1);
44818 if (obj1) {
44819 ecode2 = SWIG_AsVal_int(obj1, &val2);
44820 if (!SWIG_IsOK(ecode2)) {
44821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44822 }
44823 arg2 = static_cast< int >(val2);
44824 }
44825 if (obj2) {
44826 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44827 if (!SWIG_IsOK(res3)) {
44828 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44829 }
44830 if (!argp3) {
44831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44832 }
44833 arg3 = reinterpret_cast< wxFont * >(argp3);
44834 }
44835 if (obj3) {
44836 {
44837 arg4 = &temp4;
44838 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44839 }
44840 }
44841 if (obj4) {
44842 {
44843 arg5 = &temp5;
44844 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44845 }
44846 }
44847 if (obj5) {
44848 ecode6 = SWIG_AsVal_long(obj5, &val6);
44849 if (!SWIG_IsOK(ecode6)) {
44850 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44851 }
44852 arg6 = static_cast< long >(val6);
44853 }
44854 if (obj6) {
44855 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44856 if (!SWIG_IsOK(res7)) {
44857 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44858 }
44859 if (!argp7) {
44860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44861 }
44862 arg7 = reinterpret_cast< wxValidator * >(argp7);
44863 }
44864 if (obj7) {
44865 {
44866 arg8 = wxString_in_helper(obj7);
44867 if (arg8 == NULL) SWIG_fail;
44868 temp8 = true;
44869 }
44870 }
44871 {
44872 if (!wxPyCheckForApp()) SWIG_fail;
44873 PyThreadState* __tstate = wxPyBeginAllowThreads();
44874 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44875 wxPyEndAllowThreads(__tstate);
44876 if (PyErr_Occurred()) SWIG_fail;
44877 }
44878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44879 {
44880 if (temp8)
44881 delete arg8;
44882 }
44883 return resultobj;
44884fail:
44885 {
44886 if (temp8)
44887 delete arg8;
44888 }
44889 return NULL;
44890}
44891
44892
44893SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44894 PyObject *resultobj = 0;
44895 wxFontPickerCtrl *result = 0 ;
44896
44897 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44898 {
44899 if (!wxPyCheckForApp()) SWIG_fail;
44900 PyThreadState* __tstate = wxPyBeginAllowThreads();
44901 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44902 wxPyEndAllowThreads(__tstate);
44903 if (PyErr_Occurred()) SWIG_fail;
44904 }
44905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44906 return resultobj;
44907fail:
44908 return NULL;
44909}
44910
44911
44912SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44913 PyObject *resultobj = 0;
44914 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44915 wxWindow *arg2 = (wxWindow *) 0 ;
44916 int arg3 = (int) -1 ;
f89238b9 44917 wxFont const &arg4_defvalue = wxNullFont ;
b850e7f3
RD
44918 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44919 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44920 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44921 wxSize const &arg6_defvalue = wxDefaultSize ;
44922 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44923 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44924 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44925 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44926 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44927 wxString *arg9 = (wxString *) &arg9_defvalue ;
44928 bool result;
44929 void *argp1 = 0 ;
44930 int res1 = 0 ;
44931 void *argp2 = 0 ;
44932 int res2 = 0 ;
44933 int val3 ;
44934 int ecode3 = 0 ;
44935 void *argp4 = 0 ;
44936 int res4 = 0 ;
44937 wxPoint temp5 ;
44938 wxSize temp6 ;
44939 long val7 ;
44940 int ecode7 = 0 ;
44941 void *argp8 = 0 ;
44942 int res8 = 0 ;
44943 bool temp9 = false ;
44944 PyObject * obj0 = 0 ;
44945 PyObject * obj1 = 0 ;
44946 PyObject * obj2 = 0 ;
44947 PyObject * obj3 = 0 ;
44948 PyObject * obj4 = 0 ;
44949 PyObject * obj5 = 0 ;
44950 PyObject * obj6 = 0 ;
44951 PyObject * obj7 = 0 ;
44952 PyObject * obj8 = 0 ;
44953 char * kwnames[] = {
44954 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44955 };
44956
44957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44959 if (!SWIG_IsOK(res1)) {
44960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44961 }
44962 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44963 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44964 if (!SWIG_IsOK(res2)) {
44965 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44966 }
44967 arg2 = reinterpret_cast< wxWindow * >(argp2);
44968 if (obj2) {
44969 ecode3 = SWIG_AsVal_int(obj2, &val3);
44970 if (!SWIG_IsOK(ecode3)) {
44971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44972 }
44973 arg3 = static_cast< int >(val3);
44974 }
44975 if (obj3) {
44976 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44977 if (!SWIG_IsOK(res4)) {
44978 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44979 }
44980 if (!argp4) {
44981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44982 }
44983 arg4 = reinterpret_cast< wxFont * >(argp4);
44984 }
44985 if (obj4) {
44986 {
44987 arg5 = &temp5;
44988 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44989 }
44990 }
44991 if (obj5) {
44992 {
44993 arg6 = &temp6;
44994 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44995 }
44996 }
44997 if (obj6) {
44998 ecode7 = SWIG_AsVal_long(obj6, &val7);
44999 if (!SWIG_IsOK(ecode7)) {
45000 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
45001 }
45002 arg7 = static_cast< long >(val7);
45003 }
45004 if (obj7) {
45005 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45006 if (!SWIG_IsOK(res8)) {
45007 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45008 }
45009 if (!argp8) {
45010 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45011 }
45012 arg8 = reinterpret_cast< wxValidator * >(argp8);
45013 }
45014 if (obj8) {
45015 {
45016 arg9 = wxString_in_helper(obj8);
45017 if (arg9 == NULL) SWIG_fail;
45018 temp9 = true;
45019 }
45020 }
45021 {
45022 PyThreadState* __tstate = wxPyBeginAllowThreads();
45023 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45024 wxPyEndAllowThreads(__tstate);
45025 if (PyErr_Occurred()) SWIG_fail;
45026 }
45027 {
45028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45029 }
45030 {
45031 if (temp9)
45032 delete arg9;
45033 }
45034 return resultobj;
45035fail:
45036 {
45037 if (temp9)
45038 delete arg9;
45039 }
45040 return NULL;
45041}
45042
45043
45044SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45045 PyObject *resultobj = 0;
45046 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45047 wxFont result;
45048 void *argp1 = 0 ;
45049 int res1 = 0 ;
45050 PyObject *swig_obj[1] ;
45051
45052 if (!args) SWIG_fail;
45053 swig_obj[0] = args;
45054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45055 if (!SWIG_IsOK(res1)) {
45056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45057 }
45058 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45059 {
45060 PyThreadState* __tstate = wxPyBeginAllowThreads();
45061 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
45062 wxPyEndAllowThreads(__tstate);
45063 if (PyErr_Occurred()) SWIG_fail;
45064 }
45065 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45066 return resultobj;
45067fail:
45068 return NULL;
45069}
45070
45071
45072SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45073 PyObject *resultobj = 0;
45074 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45075 wxFont *arg2 = 0 ;
45076 void *argp1 = 0 ;
45077 int res1 = 0 ;
45078 void *argp2 = 0 ;
45079 int res2 = 0 ;
45080 PyObject * obj0 = 0 ;
45081 PyObject * obj1 = 0 ;
45082 char * kwnames[] = {
45083 (char *) "self",(char *) "f", NULL
45084 };
45085
45086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
45087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45088 if (!SWIG_IsOK(res1)) {
45089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45090 }
45091 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45092 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45093 if (!SWIG_IsOK(res2)) {
45094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45095 }
45096 if (!argp2) {
45097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45098 }
45099 arg2 = reinterpret_cast< wxFont * >(argp2);
45100 {
45101 PyThreadState* __tstate = wxPyBeginAllowThreads();
45102 (arg1)->SetSelectedFont((wxFont const &)*arg2);
45103 wxPyEndAllowThreads(__tstate);
45104 if (PyErr_Occurred()) SWIG_fail;
45105 }
45106 resultobj = SWIG_Py_Void();
45107 return resultobj;
45108fail:
45109 return NULL;
45110}
45111
45112
45113SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45114 PyObject *resultobj = 0;
45115 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45116 unsigned int arg2 ;
45117 void *argp1 = 0 ;
45118 int res1 = 0 ;
45119 unsigned int val2 ;
45120 int ecode2 = 0 ;
45121 PyObject * obj0 = 0 ;
45122 PyObject * obj1 = 0 ;
45123 char * kwnames[] = {
45124 (char *) "self",(char *) "max", NULL
45125 };
45126
45127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
45128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45129 if (!SWIG_IsOK(res1)) {
45130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
45131 }
45132 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45133 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
45134 if (!SWIG_IsOK(ecode2)) {
45135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
45136 }
45137 arg2 = static_cast< unsigned int >(val2);
45138 {
45139 PyThreadState* __tstate = wxPyBeginAllowThreads();
45140 (arg1)->SetMaxPointSize(arg2);
45141 wxPyEndAllowThreads(__tstate);
45142 if (PyErr_Occurred()) SWIG_fail;
45143 }
45144 resultobj = SWIG_Py_Void();
45145 return resultobj;
45146fail:
45147 return NULL;
45148}
45149
45150
45151SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45152 PyObject *resultobj = 0;
45153 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
45154 unsigned int result;
45155 void *argp1 = 0 ;
45156 int res1 = 0 ;
45157 PyObject *swig_obj[1] ;
45158
45159 if (!args) SWIG_fail;
45160 swig_obj[0] = args;
45161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
45162 if (!SWIG_IsOK(res1)) {
45163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
45164 }
45165 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
45166 {
45167 PyThreadState* __tstate = wxPyBeginAllowThreads();
45168 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
45169 wxPyEndAllowThreads(__tstate);
45170 if (PyErr_Occurred()) SWIG_fail;
45171 }
45172 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
45173 return resultobj;
45174fail:
45175 return NULL;
45176}
45177
45178
45179SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45180 PyObject *obj;
45181 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45182 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
45183 return SWIG_Py_Void();
45184}
45185
45186SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45187 return SWIG_Python_InitShadowInstance(args);
45188}
45189
45190SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45191 PyObject *resultobj = 0;
45192 wxObject *arg1 = (wxObject *) 0 ;
45193 int arg2 ;
45194 wxFont *arg3 = 0 ;
45195 wxFontPickerEvent *result = 0 ;
45196 void *argp1 = 0 ;
45197 int res1 = 0 ;
45198 int val2 ;
45199 int ecode2 = 0 ;
45200 void *argp3 = 0 ;
45201 int res3 = 0 ;
45202 PyObject * obj0 = 0 ;
45203 PyObject * obj1 = 0 ;
45204 PyObject * obj2 = 0 ;
45205 char * kwnames[] = {
45206 (char *) "generator",(char *) "id",(char *) "f", NULL
45207 };
45208
45209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45211 if (!SWIG_IsOK(res1)) {
45212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45213 }
45214 arg1 = reinterpret_cast< wxObject * >(argp1);
45215 ecode2 = SWIG_AsVal_int(obj1, &val2);
45216 if (!SWIG_IsOK(ecode2)) {
45217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
45218 }
45219 arg2 = static_cast< int >(val2);
45220 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
45221 if (!SWIG_IsOK(res3)) {
45222 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45223 }
45224 if (!argp3) {
45225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
45226 }
45227 arg3 = reinterpret_cast< wxFont * >(argp3);
45228 {
45229 PyThreadState* __tstate = wxPyBeginAllowThreads();
45230 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45231 wxPyEndAllowThreads(__tstate);
45232 if (PyErr_Occurred()) SWIG_fail;
45233 }
45234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45235 return resultobj;
45236fail:
45237 return NULL;
45238}
45239
45240
45241SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45242 PyObject *resultobj = 0;
45243 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45244 wxFont result;
45245 void *argp1 = 0 ;
45246 int res1 = 0 ;
45247 PyObject *swig_obj[1] ;
45248
45249 if (!args) SWIG_fail;
45250 swig_obj[0] = args;
45251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45252 if (!SWIG_IsOK(res1)) {
45253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45254 }
45255 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45256 {
45257 PyThreadState* __tstate = wxPyBeginAllowThreads();
45258 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45259 wxPyEndAllowThreads(__tstate);
45260 if (PyErr_Occurred()) SWIG_fail;
45261 }
45262 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45263 return resultobj;
45264fail:
45265 return NULL;
45266}
45267
45268
45269SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45270 PyObject *resultobj = 0;
45271 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45272 wxFont *arg2 = 0 ;
45273 void *argp1 = 0 ;
45274 int res1 = 0 ;
45275 void *argp2 = 0 ;
45276 int res2 = 0 ;
45277 PyObject * obj0 = 0 ;
45278 PyObject * obj1 = 0 ;
45279 char * kwnames[] = {
45280 (char *) "self",(char *) "c", NULL
45281 };
45282
45283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45285 if (!SWIG_IsOK(res1)) {
45286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45287 }
45288 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45289 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45290 if (!SWIG_IsOK(res2)) {
45291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45292 }
45293 if (!argp2) {
45294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45295 }
45296 arg2 = reinterpret_cast< wxFont * >(argp2);
45297 {
45298 PyThreadState* __tstate = wxPyBeginAllowThreads();
45299 (arg1)->SetFont((wxFont const &)*arg2);
45300 wxPyEndAllowThreads(__tstate);
45301 if (PyErr_Occurred()) SWIG_fail;
45302 }
45303 resultobj = SWIG_Py_Void();
45304 return resultobj;
45305fail:
45306 return NULL;
45307}
45308
45309
45310SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45311 PyObject *obj;
45312 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45313 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45314 return SWIG_Py_Void();
45315}
45316
45317SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45318 return SWIG_Python_InitShadowInstance(args);
45319}
45320
5172800e
RD
45321SWIGINTERN int CollapsiblePaneNameStr_set(PyObject *) {
45322 SWIG_Error(SWIG_AttributeError,"Variable CollapsiblePaneNameStr is read-only.");
45323 return 1;
45324}
45325
45326
45327SWIGINTERN PyObject *CollapsiblePaneNameStr_get(void) {
45328 PyObject *pyobj = 0;
45329
45330 {
45331#if wxUSE_UNICODE
45332 pyobj = PyUnicode_FromWideChar((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45333#else
45334 pyobj = PyString_FromStringAndSize((&wxPyCollapsiblePaneNameStr)->c_str(), (&wxPyCollapsiblePaneNameStr)->Len());
45335#endif
45336 }
45337 return pyobj;
45338}
45339
45340
45341SWIGINTERN PyObject *_wrap_new_CollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45342 PyObject *resultobj = 0;
45343 wxWindow *arg1 = (wxWindow *) 0 ;
45344 int arg2 = (int) -1 ;
45345 wxString const &arg3_defvalue = wxPyEmptyString ;
45346 wxString *arg3 = (wxString *) &arg3_defvalue ;
45347 wxPoint const &arg4_defvalue = wxDefaultPosition ;
45348 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
45349 wxSize const &arg5_defvalue = wxDefaultSize ;
45350 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
45351 long arg6 = (long) wxCP_DEFAULT_STYLE ;
45352 wxValidator const &arg7_defvalue = wxDefaultValidator ;
45353 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
45354 wxString const &arg8_defvalue = wxPyCollapsiblePaneNameStr ;
45355 wxString *arg8 = (wxString *) &arg8_defvalue ;
45356 wxCollapsiblePane *result = 0 ;
45357 void *argp1 = 0 ;
45358 int res1 = 0 ;
45359 int val2 ;
45360 int ecode2 = 0 ;
45361 bool temp3 = false ;
45362 wxPoint temp4 ;
45363 wxSize temp5 ;
45364 long val6 ;
45365 int ecode6 = 0 ;
45366 void *argp7 = 0 ;
45367 int res7 = 0 ;
45368 bool temp8 = false ;
45369 PyObject * obj0 = 0 ;
45370 PyObject * obj1 = 0 ;
45371 PyObject * obj2 = 0 ;
45372 PyObject * obj3 = 0 ;
45373 PyObject * obj4 = 0 ;
45374 PyObject * obj5 = 0 ;
45375 PyObject * obj6 = 0 ;
45376 PyObject * obj7 = 0 ;
45377 char * kwnames[] = {
45378 (char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45379 };
45380
45381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CollapsiblePane",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
45382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
45383 if (!SWIG_IsOK(res1)) {
45384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePane" "', expected argument " "1"" of type '" "wxWindow *""'");
45385 }
45386 arg1 = reinterpret_cast< wxWindow * >(argp1);
45387 if (obj1) {
45388 ecode2 = SWIG_AsVal_int(obj1, &val2);
45389 if (!SWIG_IsOK(ecode2)) {
45390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePane" "', expected argument " "2"" of type '" "int""'");
45391 }
45392 arg2 = static_cast< int >(val2);
45393 }
45394 if (obj2) {
45395 {
45396 arg3 = wxString_in_helper(obj2);
45397 if (arg3 == NULL) SWIG_fail;
45398 temp3 = true;
45399 }
45400 }
45401 if (obj3) {
45402 {
45403 arg4 = &temp4;
45404 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
45405 }
45406 }
45407 if (obj4) {
45408 {
45409 arg5 = &temp5;
45410 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
45411 }
45412 }
45413 if (obj5) {
45414 ecode6 = SWIG_AsVal_long(obj5, &val6);
45415 if (!SWIG_IsOK(ecode6)) {
45416 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CollapsiblePane" "', expected argument " "6"" of type '" "long""'");
45417 }
45418 arg6 = static_cast< long >(val6);
45419 }
45420 if (obj6) {
45421 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
45422 if (!SWIG_IsOK(res7)) {
45423 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45424 }
45425 if (!argp7) {
45426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CollapsiblePane" "', expected argument " "7"" of type '" "wxValidator const &""'");
45427 }
45428 arg7 = reinterpret_cast< wxValidator * >(argp7);
45429 }
45430 if (obj7) {
45431 {
45432 arg8 = wxString_in_helper(obj7);
45433 if (arg8 == NULL) SWIG_fail;
45434 temp8 = true;
45435 }
45436 }
45437 {
45438 if (!wxPyCheckForApp()) SWIG_fail;
45439 PyThreadState* __tstate = wxPyBeginAllowThreads();
45440 result = (wxCollapsiblePane *)new wxCollapsiblePane(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
45441 wxPyEndAllowThreads(__tstate);
45442 if (PyErr_Occurred()) SWIG_fail;
45443 }
45444 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_NEW | 0 );
45445 {
45446 if (temp3)
45447 delete arg3;
45448 }
45449 {
45450 if (temp8)
45451 delete arg8;
45452 }
45453 return resultobj;
45454fail:
45455 {
45456 if (temp3)
45457 delete arg3;
45458 }
45459 {
45460 if (temp8)
45461 delete arg8;
45462 }
45463 return NULL;
45464}
45465
45466
45467SWIGINTERN PyObject *_wrap_new_PreCollapsiblePane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45468 PyObject *resultobj = 0;
45469 wxCollapsiblePane *result = 0 ;
45470
45471 if (!SWIG_Python_UnpackTuple(args,"new_PreCollapsiblePane",0,0,0)) SWIG_fail;
45472 {
45473 if (!wxPyCheckForApp()) SWIG_fail;
45474 PyThreadState* __tstate = wxPyBeginAllowThreads();
45475 result = (wxCollapsiblePane *)new wxCollapsiblePane();
45476 wxPyEndAllowThreads(__tstate);
45477 if (PyErr_Occurred()) SWIG_fail;
45478 }
45479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePane, SWIG_POINTER_OWN | 0 );
45480 return resultobj;
45481fail:
45482 return NULL;
45483}
45484
45485
45486SWIGINTERN PyObject *_wrap_CollapsiblePane_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45487 PyObject *resultobj = 0;
45488 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45489 wxWindow *arg2 = (wxWindow *) 0 ;
45490 int arg3 = (int) -1 ;
45491 wxString const &arg4_defvalue = wxPyEmptyString ;
45492 wxString *arg4 = (wxString *) &arg4_defvalue ;
45493 wxPoint const &arg5_defvalue = wxDefaultPosition ;
45494 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
45495 wxSize const &arg6_defvalue = wxDefaultSize ;
45496 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
45497 long arg7 = (long) wxCP_DEFAULT_STYLE ;
45498 wxValidator const &arg8_defvalue = wxDefaultValidator ;
45499 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
45500 wxString const &arg9_defvalue = wxPyCollapsiblePaneNameStr ;
45501 wxString *arg9 = (wxString *) &arg9_defvalue ;
45502 bool result;
45503 void *argp1 = 0 ;
45504 int res1 = 0 ;
45505 void *argp2 = 0 ;
45506 int res2 = 0 ;
45507 int val3 ;
45508 int ecode3 = 0 ;
45509 bool temp4 = false ;
45510 wxPoint temp5 ;
45511 wxSize temp6 ;
45512 long val7 ;
45513 int ecode7 = 0 ;
45514 void *argp8 = 0 ;
45515 int res8 = 0 ;
45516 bool temp9 = false ;
45517 PyObject * obj0 = 0 ;
45518 PyObject * obj1 = 0 ;
45519 PyObject * obj2 = 0 ;
45520 PyObject * obj3 = 0 ;
45521 PyObject * obj4 = 0 ;
45522 PyObject * obj5 = 0 ;
45523 PyObject * obj6 = 0 ;
45524 PyObject * obj7 = 0 ;
45525 PyObject * obj8 = 0 ;
45526 char * kwnames[] = {
45527 (char *) "self",(char *) "parent",(char *) "winid",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "val",(char *) "name", NULL
45528 };
45529
45530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CollapsiblePane_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
45531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45532 if (!SWIG_IsOK(res1)) {
45533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Create" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45534 }
45535 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45536 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
45537 if (!SWIG_IsOK(res2)) {
45538 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CollapsiblePane_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
45539 }
45540 arg2 = reinterpret_cast< wxWindow * >(argp2);
45541 if (obj2) {
45542 ecode3 = SWIG_AsVal_int(obj2, &val3);
45543 if (!SWIG_IsOK(ecode3)) {
45544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CollapsiblePane_Create" "', expected argument " "3"" of type '" "int""'");
45545 }
45546 arg3 = static_cast< int >(val3);
45547 }
45548 if (obj3) {
45549 {
45550 arg4 = wxString_in_helper(obj3);
45551 if (arg4 == NULL) SWIG_fail;
45552 temp4 = true;
45553 }
45554 }
45555 if (obj4) {
45556 {
45557 arg5 = &temp5;
45558 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
45559 }
45560 }
45561 if (obj5) {
45562 {
45563 arg6 = &temp6;
45564 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
45565 }
45566 }
45567 if (obj6) {
45568 ecode7 = SWIG_AsVal_long(obj6, &val7);
45569 if (!SWIG_IsOK(ecode7)) {
45570 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CollapsiblePane_Create" "', expected argument " "7"" of type '" "long""'");
45571 }
45572 arg7 = static_cast< long >(val7);
45573 }
45574 if (obj7) {
45575 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
45576 if (!SWIG_IsOK(res8)) {
45577 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45578 }
45579 if (!argp8) {
45580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CollapsiblePane_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
45581 }
45582 arg8 = reinterpret_cast< wxValidator * >(argp8);
45583 }
45584 if (obj8) {
45585 {
45586 arg9 = wxString_in_helper(obj8);
45587 if (arg9 == NULL) SWIG_fail;
45588 temp9 = true;
45589 }
45590 }
45591 {
45592 PyThreadState* __tstate = wxPyBeginAllowThreads();
45593 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
45594 wxPyEndAllowThreads(__tstate);
45595 if (PyErr_Occurred()) SWIG_fail;
45596 }
45597 {
45598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45599 }
45600 {
45601 if (temp4)
45602 delete arg4;
45603 }
45604 {
45605 if (temp9)
45606 delete arg9;
45607 }
45608 return resultobj;
45609fail:
45610 {
45611 if (temp4)
45612 delete arg4;
45613 }
45614 {
45615 if (temp9)
45616 delete arg9;
45617 }
45618 return NULL;
45619}
45620
45621
45622SWIGINTERN PyObject *_wrap_CollapsiblePane_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45623 PyObject *resultobj = 0;
45624 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45625 bool arg2 = (bool) true ;
45626 void *argp1 = 0 ;
45627 int res1 = 0 ;
45628 bool val2 ;
45629 int ecode2 = 0 ;
45630 PyObject * obj0 = 0 ;
45631 PyObject * obj1 = 0 ;
45632 char * kwnames[] = {
45633 (char *) "self",(char *) "collapse", NULL
45634 };
45635
45636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CollapsiblePane_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
45637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45638 if (!SWIG_IsOK(res1)) {
45639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Collapse" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45640 }
45641 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45642 if (obj1) {
45643 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45644 if (!SWIG_IsOK(ecode2)) {
45645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePane_Collapse" "', expected argument " "2"" of type '" "bool""'");
45646 }
45647 arg2 = static_cast< bool >(val2);
45648 }
45649 {
45650 PyThreadState* __tstate = wxPyBeginAllowThreads();
45651 (arg1)->Collapse(arg2);
45652 wxPyEndAllowThreads(__tstate);
45653 if (PyErr_Occurred()) SWIG_fail;
45654 }
45655 resultobj = SWIG_Py_Void();
45656 return resultobj;
45657fail:
45658 return NULL;
45659}
45660
45661
45662SWIGINTERN PyObject *_wrap_CollapsiblePane_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45663 PyObject *resultobj = 0;
45664 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45665 void *argp1 = 0 ;
45666 int res1 = 0 ;
45667 PyObject *swig_obj[1] ;
45668
45669 if (!args) SWIG_fail;
45670 swig_obj[0] = args;
45671 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45672 if (!SWIG_IsOK(res1)) {
45673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_Expand" "', expected argument " "1"" of type '" "wxCollapsiblePane *""'");
45674 }
45675 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45676 {
45677 PyThreadState* __tstate = wxPyBeginAllowThreads();
45678 (arg1)->Expand();
45679 wxPyEndAllowThreads(__tstate);
45680 if (PyErr_Occurred()) SWIG_fail;
45681 }
45682 resultobj = SWIG_Py_Void();
45683 return resultobj;
45684fail:
45685 return NULL;
45686}
45687
45688
45689SWIGINTERN PyObject *_wrap_CollapsiblePane_IsCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45690 PyObject *resultobj = 0;
45691 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45692 bool result;
45693 void *argp1 = 0 ;
45694 int res1 = 0 ;
45695 PyObject *swig_obj[1] ;
45696
45697 if (!args) SWIG_fail;
45698 swig_obj[0] = args;
45699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45700 if (!SWIG_IsOK(res1)) {
45701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45702 }
45703 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45704 {
45705 PyThreadState* __tstate = wxPyBeginAllowThreads();
45706 result = (bool)((wxCollapsiblePane const *)arg1)->IsCollapsed();
45707 wxPyEndAllowThreads(__tstate);
45708 if (PyErr_Occurred()) SWIG_fail;
45709 }
45710 {
45711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45712 }
45713 return resultobj;
45714fail:
45715 return NULL;
45716}
45717
45718
45719SWIGINTERN PyObject *_wrap_CollapsiblePane_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45720 PyObject *resultobj = 0;
45721 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45722 bool result;
45723 void *argp1 = 0 ;
45724 int res1 = 0 ;
45725 PyObject *swig_obj[1] ;
45726
45727 if (!args) SWIG_fail;
45728 swig_obj[0] = args;
45729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45730 if (!SWIG_IsOK(res1)) {
45731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_IsExpanded" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45732 }
45733 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45734 {
45735 PyThreadState* __tstate = wxPyBeginAllowThreads();
45736 result = (bool)((wxCollapsiblePane const *)arg1)->IsExpanded();
45737 wxPyEndAllowThreads(__tstate);
45738 if (PyErr_Occurred()) SWIG_fail;
45739 }
45740 {
45741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45742 }
45743 return resultobj;
45744fail:
45745 return NULL;
45746}
45747
45748
45749SWIGINTERN PyObject *_wrap_CollapsiblePane_GetPane(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45750 PyObject *resultobj = 0;
45751 wxCollapsiblePane *arg1 = (wxCollapsiblePane *) 0 ;
45752 wxWindow *result = 0 ;
45753 void *argp1 = 0 ;
45754 int res1 = 0 ;
45755 PyObject *swig_obj[1] ;
45756
45757 if (!args) SWIG_fail;
45758 swig_obj[0] = args;
45759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePane, 0 | 0 );
45760 if (!SWIG_IsOK(res1)) {
45761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePane_GetPane" "', expected argument " "1"" of type '" "wxCollapsiblePane const *""'");
45762 }
45763 arg1 = reinterpret_cast< wxCollapsiblePane * >(argp1);
45764 {
45765 PyThreadState* __tstate = wxPyBeginAllowThreads();
45766 result = (wxWindow *)((wxCollapsiblePane const *)arg1)->GetPane();
45767 wxPyEndAllowThreads(__tstate);
45768 if (PyErr_Occurred()) SWIG_fail;
45769 }
45770 {
45771 resultobj = wxPyMake_wxObject(result, 0);
45772 }
45773 return resultobj;
45774fail:
45775 return NULL;
45776}
45777
45778
45779SWIGINTERN PyObject *CollapsiblePane_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45780 PyObject *obj;
45781 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45782 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePane, SWIG_NewClientData(obj));
45783 return SWIG_Py_Void();
45784}
45785
45786SWIGINTERN PyObject *CollapsiblePane_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45787 return SWIG_Python_InitShadowInstance(args);
45788}
45789
45790SWIGINTERN PyObject *_wrap_new_CollapsiblePaneEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45791 PyObject *resultobj = 0;
45792 wxObject *arg1 = (wxObject *) 0 ;
45793 int arg2 ;
45794 bool arg3 ;
45795 wxCollapsiblePaneEvent *result = 0 ;
45796 void *argp1 = 0 ;
45797 int res1 = 0 ;
45798 int val2 ;
45799 int ecode2 = 0 ;
45800 bool val3 ;
45801 int ecode3 = 0 ;
45802 PyObject * obj0 = 0 ;
45803 PyObject * obj1 = 0 ;
45804 PyObject * obj2 = 0 ;
45805 char * kwnames[] = {
45806 (char *) "generator",(char *) "id",(char *) "collapsed", NULL
45807 };
45808
45809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_CollapsiblePaneEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
45810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
45811 if (!SWIG_IsOK(res1)) {
45812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "1"" of type '" "wxObject *""'");
45813 }
45814 arg1 = reinterpret_cast< wxObject * >(argp1);
45815 ecode2 = SWIG_AsVal_int(obj1, &val2);
45816 if (!SWIG_IsOK(ecode2)) {
45817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "2"" of type '" "int""'");
45818 }
45819 arg2 = static_cast< int >(val2);
45820 ecode3 = SWIG_AsVal_bool(obj2, &val3);
45821 if (!SWIG_IsOK(ecode3)) {
45822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CollapsiblePaneEvent" "', expected argument " "3"" of type '" "bool""'");
45823 }
45824 arg3 = static_cast< bool >(val3);
45825 {
45826 PyThreadState* __tstate = wxPyBeginAllowThreads();
45827 result = (wxCollapsiblePaneEvent *)new wxCollapsiblePaneEvent(arg1,arg2,arg3);
45828 wxPyEndAllowThreads(__tstate);
45829 if (PyErr_Occurred()) SWIG_fail;
45830 }
45831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_POINTER_NEW | 0 );
45832 return resultobj;
45833fail:
45834 return NULL;
45835}
45836
45837
45838SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_GetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45839 PyObject *resultobj = 0;
45840 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
45841 bool result;
45842 void *argp1 = 0 ;
45843 int res1 = 0 ;
45844 PyObject *swig_obj[1] ;
45845
45846 if (!args) SWIG_fail;
45847 swig_obj[0] = args;
45848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
45849 if (!SWIG_IsOK(res1)) {
45850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_GetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent const *""'");
45851 }
45852 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
45853 {
45854 PyThreadState* __tstate = wxPyBeginAllowThreads();
45855 result = (bool)((wxCollapsiblePaneEvent const *)arg1)->GetCollapsed();
45856 wxPyEndAllowThreads(__tstate);
45857 if (PyErr_Occurred()) SWIG_fail;
45858 }
45859 {
45860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
45861 }
45862 return resultobj;
45863fail:
45864 return NULL;
45865}
45866
45867
45868SWIGINTERN PyObject *_wrap_CollapsiblePaneEvent_SetCollapsed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45869 PyObject *resultobj = 0;
45870 wxCollapsiblePaneEvent *arg1 = (wxCollapsiblePaneEvent *) 0 ;
45871 bool arg2 ;
45872 void *argp1 = 0 ;
45873 int res1 = 0 ;
45874 bool val2 ;
45875 int ecode2 = 0 ;
45876 PyObject * obj0 = 0 ;
45877 PyObject * obj1 = 0 ;
45878 char * kwnames[] = {
45879 (char *) "self",(char *) "c", NULL
45880 };
45881
45882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CollapsiblePaneEvent_SetCollapsed",kwnames,&obj0,&obj1)) SWIG_fail;
45883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCollapsiblePaneEvent, 0 | 0 );
45884 if (!SWIG_IsOK(res1)) {
45885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "1"" of type '" "wxCollapsiblePaneEvent *""'");
45886 }
45887 arg1 = reinterpret_cast< wxCollapsiblePaneEvent * >(argp1);
45888 ecode2 = SWIG_AsVal_bool(obj1, &val2);
45889 if (!SWIG_IsOK(ecode2)) {
45890 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CollapsiblePaneEvent_SetCollapsed" "', expected argument " "2"" of type '" "bool""'");
45891 }
45892 arg2 = static_cast< bool >(val2);
45893 {
45894 PyThreadState* __tstate = wxPyBeginAllowThreads();
45895 (arg1)->SetCollapsed(arg2);
45896 wxPyEndAllowThreads(__tstate);
45897 if (PyErr_Occurred()) SWIG_fail;
45898 }
45899 resultobj = SWIG_Py_Void();
45900 return resultobj;
45901fail:
45902 return NULL;
45903}
45904
45905
45906SWIGINTERN PyObject *CollapsiblePaneEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45907 PyObject *obj;
45908 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45909 SWIG_TypeNewClientData(SWIGTYPE_p_wxCollapsiblePaneEvent, SWIG_NewClientData(obj));
45910 return SWIG_Py_Void();
45911}
45912
45913SWIGINTERN PyObject *CollapsiblePaneEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45914 return SWIG_Python_InitShadowInstance(args);
45915}
45916
b850e7f3
RD
45917static PyMethodDef SwigMethods[] = {
45918 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45919 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45920 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45921 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45922 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45923 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45924 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45925 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45926 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45927 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45928 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45929 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45930 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45931 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45932 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45933 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45934 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45935 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45936 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45937 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45938 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45939 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45940 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45941 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45942 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45943 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45944 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45945 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45946 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45947 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45948 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45949 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45950 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45951 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45952 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45953 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45954 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45955 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45956 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45957 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45958 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45959 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45960 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45961 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45962 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45963 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45964 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45965 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45966 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45967 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45968 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45969 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45970 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45971 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45972 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45973 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45974 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45975 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45976 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45977 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45978 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
45979 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45980 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45981 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45982 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45983 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45984 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45985 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45986 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45987 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45988 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45989 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45990 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45991 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45992 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45993 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45994 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45995 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45996 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45997 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45998 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45999 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46000 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
0d2c9713 46001 { (char *)"Gauge_Pulse", (PyCFunction)_wrap_Gauge_Pulse, METH_O, NULL},
b850e7f3
RD
46002 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
46003 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46004 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
46005 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
46006 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
46007 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46008 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
46009 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
46010 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
46011 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
46012 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46013 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46014 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
46015 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
46016 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
46017 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
46018 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46019 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
46020 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
46021 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46022 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
46023 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
46024 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
46025 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
46026 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46027 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
46028 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46029 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
46030 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
46031 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46032 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
46033 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46034 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
46035 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46036 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46037 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46038 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
46039 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
46040 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46041 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
46042 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46043 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
46044 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
46045 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46046 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46047 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46048 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46049 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
46050 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
46051 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46052 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
46053 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
46054 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
46055 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46056 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46057 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
46058 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46059 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46060 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46061 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46062 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46063 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
46064 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
46065 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
46066 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
46067 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46068 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
46069 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
46070 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
46071 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
46072 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46073 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
46074 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
46075 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
46076 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46077 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46078 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46079 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
46080 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
46081 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46082 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46083 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
46084 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
46085 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
46086 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
46087 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
46088 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
46089 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
46090 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
46091 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
46092 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
46093 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
46094 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
46095 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
46096 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
46097 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
46098 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
46099 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
46100 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
46101 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
46102 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
46103 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
46104 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
46105 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46106 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
46107 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46108 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
46109 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
46110 { (char *)"TextCtrl_IsEmpty", (PyCFunction)_wrap_TextCtrl_IsEmpty, METH_O, NULL},
46111 { (char *)"TextCtrl_ChangeValue", (PyCFunction) _wrap_TextCtrl_ChangeValue, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46112 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46113 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
46114 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
46115 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
46116 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
46117 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
46118 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
46119 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
46120 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
46121 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
46122 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
46123 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
46124 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
46125 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
46126 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
46127 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
46128 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 46129 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46130 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
46131 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
46132 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
46133 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
46134 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46135 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46136 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46137 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
46138 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46139 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
46140 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46141 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46142 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
46143 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
46144 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
46145 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
46146 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
46147 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
46148 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
46149 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
46150 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
46151 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
46152 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
46153 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46154 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
46155 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
46156 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
46157 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46158 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
46159 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
d7645bfd 46160 { (char *)"TextCtrl_MacCheckSpelling", (PyCFunction) _wrap_TextCtrl_MacCheckSpelling, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 46161 { (char *)"TextCtrl_SendTextUpdatedEvent", (PyCFunction)_wrap_TextCtrl_SendTextUpdatedEvent, METH_O, NULL},
b850e7f3
RD
46162 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
46163 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46164 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46165 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
46166 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
46167 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46168 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
46169 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
46170 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
46171 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
46172 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
46173 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
46174 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
46175 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46176 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
46177 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
46178 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
46179 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
46180 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
46181 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46182 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46183 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
46184 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
46185 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
46186 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
46187 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46188 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
46189 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
46190 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
46191 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46192 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46193 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46194 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46195 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
46196 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46197 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
46198 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
46199 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46200 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
46201 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46202 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
46203 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46204 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
46205 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46206 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
46207 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
46208 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46209 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46210 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
46211 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
46212 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46213 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
46214 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46215 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
46216 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
46217 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
46218 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
46219 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46220 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46221 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
46222 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
46223 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46224 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
46225 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
46226 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
46227 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
46228 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
46229 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
46230 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46231 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
46232 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
46233 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
46234 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46235 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46236 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46237 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46238 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
46239 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46240 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
46241 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
46242 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
46243 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
46244 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46245 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
46246 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46247 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46248 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
46249 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
46250 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
46251 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
46252 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46253 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
46254 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46255 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46256 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
46257 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
46258 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
46259 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
46260 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
46261 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46262 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
46263 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
46264 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
46265 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
46266 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
46267 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
46268 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
46269 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
46270 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
46271 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
46272 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
46273 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46274 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46275 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
46276 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
46277 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
46278 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
46279 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46280 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46281 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
46282 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46283 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
46284 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
46285 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
46286 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
46287 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
46288 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
46289 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46290 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
46291 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46292 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46293 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
46294 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46295 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
46296 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
46297 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
46298 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
46299 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
46300 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
46301 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
e9d6f3a4 46302 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
1bd55598
RD
46303 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
46304 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 46305 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
1bd55598
RD
46306 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
46307 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
46308 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
46309 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
46310 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
46311 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951 46312 { (char *)"BookCtrlBase_ChangeSelection", (PyCFunction) _wrap_BookCtrlBase_ChangeSelection, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598 46313 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46314 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46315 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46316 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
46317 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46318 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
46319 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46320 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
46321 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46322 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
46323 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
46324 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
46325 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
46326 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46327 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
46328 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
46329 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46330 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
46331 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
b39fe951
RD
46332 { (char *)"Notebook_SendPageChangingEvent", (PyCFunction) _wrap_Notebook_SendPageChangingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46333 { (char *)"Notebook_SendPageChangedEvent", (PyCFunction) _wrap_Notebook_SendPageChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46334 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
46335 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
46336 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46337 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
46338 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
46339 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
46340 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
46341 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46342 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
46343 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
46344 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
46345 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46346 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
46347 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
46348 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
46349 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
46350 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46351 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
46352 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
46353 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
46354 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46355 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
46356 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
46357 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
46358 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
46359 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46360 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
46361 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
46362 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46363 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
46364 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
46365 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
46366 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
46367 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
46368 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
46369 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46370 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
46371 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
46372 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
46373 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
46374 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46375 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
46376 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
46377 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
46378 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
46379 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46380 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
46381 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
46382 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
46383 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
46384 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
46385 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
46386 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
46387 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
46388 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
46389 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
46390 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
46391 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
46392 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
46393 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
46394 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
46395 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
46396 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
46397 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
46398 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
46399 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
46400 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
46401 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
46402 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46403 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46404 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46405 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46406 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46407 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
46408 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
46409 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
46410 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46411 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
46412 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
46413 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
46414 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
46415 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
46416 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
46417 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
46418 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
46419 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
46420 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
46421 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
46422 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
46423 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
46424 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
46425 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
46426 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
46427 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
46428 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
46429 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46430 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
46431 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
46432 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
46433 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
46434 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46435 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46436 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46437 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46438 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
46439 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
46440 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
46441 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
46442 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
46443 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
46444 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
46445 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
46446 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
46447 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
46448 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
46449 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
46450 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
46451 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
46452 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
46453 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46454 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
46455 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
46456 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
46457 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
46458 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
46459 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
46460 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46461 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46462 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
46463 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
46464 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
46465 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
46466 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46467 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46468 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46469 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
46470 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
46471 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
46472 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
46473 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
46474 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
46475 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
46476 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
46477 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
46478 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
46479 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
46480 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
46481 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
46482 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
46483 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
46484 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46485 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46486 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
46487 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
46488 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
46489 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
46490 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46491 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46492 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
46493 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46494 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46495 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46496 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
46497 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
46498 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
46499 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
46500 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
46501 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
46502 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
46503 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
46504 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
46505 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
46506 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
46507 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
46508 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
46509 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
46510 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
46511 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
46512 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
46513 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
46514 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
46515 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
46516 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
46517 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
46518 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
46519 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
46520 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
46521 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
46522 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
46523 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
46524 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
46525 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
46526 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
46527 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
46528 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
46529 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
46530 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
46531 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
46532 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46533 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
46534 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
46535 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
46536 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
46537 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
46538 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
46539 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
46540 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
46541 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
46542 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
46543 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
46544 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
46545 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
46546 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
46547 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
46548 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
46549 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
46550 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
46551 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
46552 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
46553 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
46554 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
46555 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
46556 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
46557 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46558 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
46559 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
46560 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46561 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
46562 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46563 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46564 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46565 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46566 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46567 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
46568 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
46569 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
46570 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
46571 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46572 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46573 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46574 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46575 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
46576 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46577 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46578 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46579 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46580 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46581 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46582 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46583 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
46584 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46585 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
46586 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
46587 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
46588 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46589 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
46590 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
46591 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46592 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
46593 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
46594 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
46595 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46596 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46597 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46598 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
46599 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
46600 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
46601 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
46602 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
46603 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
46604 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
46605 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46606 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
46607 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
46608 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46609 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46610 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
46611 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46612 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
46613 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46614 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46615 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46616 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46617 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
46618 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
46619 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
46620 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
46621 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
46622 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
46623 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46624 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46625 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46626 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46627 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46628 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46629 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
46630 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
46631 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
46632 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
46633 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
46634 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
46635 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
46636 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46637 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
46638 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
46639 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
46640 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46641 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
46642 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46643 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46644 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
46645 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
46646 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
46647 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
46648 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
46649 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
46650 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
46651 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
46652 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
46653 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
46654 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
46655 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
46656 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46657 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
46658 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
46659 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
46660 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
46661 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
46662 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
46663 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
46664 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 46665 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
1bd55598
RD
46666 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
46667 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
46668 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
46669 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
46670 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
46671 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
46672 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
46673 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
46674 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46675 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
46676 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46677 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
46678 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
46679 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
46680 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
46681 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
46682 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
46683 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46684 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
46685 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46686 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
46687 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
46688 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
46689 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
46690 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
46691 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
46692 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
46693 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
46694 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46695 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46696 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46697 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
46698 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46699 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46700 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46701 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46702 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46703 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46704 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46705 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
46706 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
46707 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
46708 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
46709 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46710 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
46711 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
46712 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
46713 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
46714 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
46715 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46716 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46717 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
46718 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
46719 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
46720 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
46721 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
46722 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
46723 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
46724 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
46725 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
46726 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
46727 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
46728 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46729 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
46730 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
46731 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46732 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46733 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
46734 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
46735 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
46736 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
46737 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
46738 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
46739 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46740 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
46741 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
3d6c9062
RD
46742 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46743 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
1bd55598
RD
46744 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
46745 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
46746 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
46747 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
46748 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46749 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
46750 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
46751 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
46752 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
46753 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
46754 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
46755 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
46756 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
46757 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
46758 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
46759 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
46760 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
46761 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
1bd55598
RD
46762 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
46763 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
46764 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46765 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
46766 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46767 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 46768 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46769 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
46770 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
46771 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
46772 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
46773 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46774 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
46775 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
46776 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
46777 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
46778 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
46779 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
46780 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
46781 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
46782 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
46783 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
46784 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
46785 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
46786 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
46787 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
46788 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46789 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
46790 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46791 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
46792 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
46793 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
46794 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
46795 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
46796 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46797 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
46798 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46799 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
46800 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
46801 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
46802 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
46803 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
46804 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
46805 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
46806 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
46807 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
46808 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
46809 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
46810 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
46811 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46812 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
46813 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
46814 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
46815 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
46816 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
46817 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
46818 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
46819 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46820 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
46821 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
46822 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46823 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
46824 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46825 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
46826 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
46827 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
46828 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
46829 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46830 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 46831 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
1bd55598
RD
46832 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46833 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46834 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46835 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 46836 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46837 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46838 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46839 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46840 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46841 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46842 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46843 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46844 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46845 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46846 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46847 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46848 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46849 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46850 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46851 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46852 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46853 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46854 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46855 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46856 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46857 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46858 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46859 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46860 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46861 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46862 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46863 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46864 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46865 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46866 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46867 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46868 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46869 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46870 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46871 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46872 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46873 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
46874 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46875 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46876 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46877 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46878 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46879 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46880 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46881 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46882 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46883 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46884 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46885 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46886 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46887 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46888 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46889 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46890 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46891 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46892 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46893 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
46894 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46895 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46896 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46897 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46898 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
1eeb270e
RD
46899 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46900 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
b02396e8
RD
46901 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46902 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46903 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46904 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46905 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46906 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46907 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46908 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46909 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46910 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46911 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46912 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46913 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46914 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46915 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46916 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46917 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46918 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46919 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46920 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46921 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46922 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46923 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46924 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46925 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46926 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46927 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46928 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46929 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46930 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46931 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46932 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46933 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46934 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46935 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46936 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46937 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46938 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46939 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46940 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46941 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46942 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46943 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46944 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46945 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46946 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46947 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46948 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46949 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46950 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46951 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46952 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46953 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46954 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46955 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46956 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46957 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
5172800e
RD
46958 { (char *)"new_CollapsiblePane", (PyCFunction) _wrap_new_CollapsiblePane, METH_VARARGS | METH_KEYWORDS, NULL},
46959 { (char *)"new_PreCollapsiblePane", (PyCFunction)_wrap_new_PreCollapsiblePane, METH_NOARGS, NULL},
46960 { (char *)"CollapsiblePane_Create", (PyCFunction) _wrap_CollapsiblePane_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46961 { (char *)"CollapsiblePane_Collapse", (PyCFunction) _wrap_CollapsiblePane_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
46962 { (char *)"CollapsiblePane_Expand", (PyCFunction)_wrap_CollapsiblePane_Expand, METH_O, NULL},
46963 { (char *)"CollapsiblePane_IsCollapsed", (PyCFunction)_wrap_CollapsiblePane_IsCollapsed, METH_O, NULL},
46964 { (char *)"CollapsiblePane_IsExpanded", (PyCFunction)_wrap_CollapsiblePane_IsExpanded, METH_O, NULL},
46965 { (char *)"CollapsiblePane_GetPane", (PyCFunction)_wrap_CollapsiblePane_GetPane, METH_O, NULL},
46966 { (char *)"CollapsiblePane_swigregister", CollapsiblePane_swigregister, METH_VARARGS, NULL},
46967 { (char *)"CollapsiblePane_swiginit", CollapsiblePane_swiginit, METH_VARARGS, NULL},
46968 { (char *)"new_CollapsiblePaneEvent", (PyCFunction) _wrap_new_CollapsiblePaneEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46969 { (char *)"CollapsiblePaneEvent_GetCollapsed", (PyCFunction)_wrap_CollapsiblePaneEvent_GetCollapsed, METH_O, NULL},
46970 { (char *)"CollapsiblePaneEvent_SetCollapsed", (PyCFunction) _wrap_CollapsiblePaneEvent_SetCollapsed, METH_VARARGS | METH_KEYWORDS, NULL},
46971 { (char *)"CollapsiblePaneEvent_swigregister", CollapsiblePaneEvent_swigregister, METH_VARARGS, NULL},
46972 { (char *)"CollapsiblePaneEvent_swiginit", CollapsiblePaneEvent_swiginit, METH_VARARGS, NULL},
1bd55598
RD
46973 { NULL, NULL, 0, NULL }
46974};
46975
46976
46977/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46978
46979static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46980 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46981}
46982static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46983 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46984}
46985static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46986 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46987}
46988static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46989 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46990}
46991static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46992 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46993}
46994static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46995 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46996}
46997static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46998 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46999}
47000static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
47001 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
47002}
b850e7f3
RD
47003static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
47004 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
47005}
47006static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
47007 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47008}
47009static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
47010 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
47011}
1bd55598
RD
47012static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
47013 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
47014}
47015static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
47016 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
47017}
47018static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
47019 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
47020}
1bd55598
RD
47021static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
47022 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
47023}
34e0a3bb
RD
47024static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
47025 return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
47026}
2131d850
RD
47027static void *_p_wxPyEventTo_p_wxEvent(void *x) {
47028 return (void *)((wxEvent *) ((wxPyEvent *) x));
47029}
1bd55598
RD
47030static void *_p_wxListEventTo_p_wxEvent(void *x) {
47031 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47032}
47033static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
47034 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47035}
47036static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
47037 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47038}
47039static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
47040 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47041}
47042static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
47043 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47044}
47045static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
47046 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47047}
47048static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
47049 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
47050}
47051static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
47052 return (void *)((wxEvent *) ((wxIdleEvent *) x));
47053}
47054static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
47055 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
47056}
47057static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
47058 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
47059}
47060static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
47061 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
47062}
47063static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
47064 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
47065}
47066static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
47067 return (void *)((wxEvent *) ((wxActivateEvent *) x));
47068}
47069static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
47070 return (void *)((wxEvent *) ((wxSizeEvent *) x));
47071}
47072static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
47073 return (void *)((wxEvent *) ((wxMoveEvent *) x));
47074}
47075static void *_p_wxDateEventTo_p_wxEvent(void *x) {
47076 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
47077}
5172800e
RD
47078static void *_p_wxCollapsiblePaneEventTo_p_wxEvent(void *x) {
47079 return (void *)((wxEvent *) (wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
47080}
1bd55598
RD
47081static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
47082 return (void *)((wxEvent *) ((wxPaintEvent *) x));
47083}
47084static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
47085 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
47086}
34e0a3bb
RD
47087static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
47088 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
47089}
1bd55598
RD
47090static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
47091 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
47092}
47093static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
47094 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
47095}
47096static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
47097 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
47098}
47099static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
47100 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47101}
47102static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
47103 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
47104}
704eda0c
RD
47105static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
47106 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
47107}
1bd55598
RD
47108static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
47109 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
47110}
47111static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
47112 return (void *)((wxEvent *) ((wxFocusEvent *) x));
47113}
47114static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
47115 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
47116}
47117static void *_p_wxShowEventTo_p_wxEvent(void *x) {
47118 return (void *)((wxEvent *) ((wxShowEvent *) x));
47119}
47120static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
47121 return (void *)((wxEvent *) ((wxCommandEvent *) x));
47122}
47123static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
47124 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
47125}
47126static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
47127 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47128}
47129static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
47130 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
47131}
47132static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
47133 return (void *)((wxEvent *) ((wxKeyEvent *) x));
47134}
47135static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
47136 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
47137}
47138static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
47139 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47140}
b850e7f3
RD
47141static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
47142 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
47143}
47144static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
47145 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
47146}
47147static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
47148 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
47149}
47150static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
47151 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
47152}
1bd55598
RD
47153static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
47154 return (void *)((wxItemContainer *) ((wxComboBox *) x));
47155}
47156static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
47157 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47158}
47159static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
47160 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
47161}
47162static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
47163 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
47164}
47165static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
47166 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
47167}
47168static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
47169 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47170}
47171static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
47172 return (void *)((wxPyListCtrl *) ((wxListView *) x));
47173}
5172800e
RD
47174static void *_p_wxCollapsiblePaneTo_p_wxControl(void *x) {
47175 return (void *)((wxControl *) ((wxCollapsiblePane *) x));
47176}
1bd55598
RD
47177static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
47178 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
47179}
47180static void *_p_wxToolBarTo_p_wxControl(void *x) {
47181 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
47182}
b850e7f3
RD
47183static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
47184 return (void *)((wxControl *) ((wxPickerBase *) x));
47185}
1bd55598
RD
47186static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
47187 return (void *)((wxControl *) ((wxToggleButton *) x));
47188}
47189static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
47190 return (void *)((wxControl *) ((wxRadioButton *) x));
47191}
47192static void *_p_wxToolbookTo_p_wxControl(void *x) {
47193 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
47194}
47195static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
47196 return (void *)((wxControl *) ((wxToolBarBase *) x));
47197}
47198static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
47199 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47200}
47201static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
47202 return (void *)((wxControl *) ((wxPyListCtrl *) x));
47203}
47204static void *_p_wxComboBoxTo_p_wxControl(void *x) {
47205 return (void *)((wxControl *) ((wxComboBox *) x));
47206}
47207static void *_p_wxPyControlTo_p_wxControl(void *x) {
47208 return (void *)((wxControl *) ((wxPyControl *) x));
47209}
47210static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
47211 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
47212}
47213static void *_p_wxScrollBarTo_p_wxControl(void *x) {
47214 return (void *)((wxControl *) ((wxScrollBar *) x));
47215}
47216static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
47217 return (void *)((wxControl *) ((wxControlWithItems *) x));
47218}
47219static void *_p_wxGaugeTo_p_wxControl(void *x) {
47220 return (void *)((wxControl *) ((wxGauge *) x));
47221}
47222static void *_p_wxStaticLineTo_p_wxControl(void *x) {
47223 return (void *)((wxControl *) ((wxStaticLine *) x));
47224}
47225static void *_p_wxChoicebookTo_p_wxControl(void *x) {
47226 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
47227}
47228static void *_p_wxListbookTo_p_wxControl(void *x) {
47229 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
47230}
704eda0c
RD
47231static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
47232 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
47233}
1bd55598
RD
47234static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
47235 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
47236}
47237static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
47238 return (void *)((wxControl *) ((wxCheckBox *) x));
47239}
47240static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
47241 return (void *)((wxControl *) ((wxRadioBox *) x));
47242}
47243static void *_p_wxChoiceTo_p_wxControl(void *x) {
47244 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
47245}
47246static void *_p_wxListBoxTo_p_wxControl(void *x) {
47247 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
47248}
47249static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
47250 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47251}
47252static void *_p_wxListViewTo_p_wxControl(void *x) {
47253 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
47254}
47255static void *_p_wxNotebookTo_p_wxControl(void *x) {
47256 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
47257}
47258static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
47259 return (void *)((wxControl *) ((wxStaticBitmap *) x));
47260}
47261static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
47262 return (void *)((wxControl *) ((wxSpinCtrl *) x));
47263}
47264static void *_p_wxStaticTextTo_p_wxControl(void *x) {
47265 return (void *)((wxControl *) ((wxStaticText *) x));
47266}
47267static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
47268 return (void *)((wxControl *) ((wxStaticBox *) x));
47269}
47270static void *_p_wxSliderTo_p_wxControl(void *x) {
47271 return (void *)((wxControl *) ((wxSlider *) x));
47272}
47273static void *_p_wxTreebookTo_p_wxControl(void *x) {
47274 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
47275}
47276static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
47277 return (void *)((wxControl *) ((wxSpinButton *) x));
47278}
47279static void *_p_wxButtonTo_p_wxControl(void *x) {
47280 return (void *)((wxControl *) ((wxButton *) x));
47281}
47282static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
47283 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
47284}
47285static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
47286 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47287}
47288static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
47289 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
47290}
b850e7f3
RD
47291static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
47292 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
47293}
47294static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
47295 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
47296}
47297static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
47298 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
47299}
47300static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
47301 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
47302}
1bd55598
RD
47303static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
47304 return (void *)((wxControl *) ((wxTextCtrl *) x));
47305}
47306static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
47307 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
47308}
47309static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
47310 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
47311}
47312static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
47313 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47314}
47315static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
47316 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
47317}
47318static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
47319 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
47320}
47321static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
47322 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
47323}
47324static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
47325 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47326}
47327static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
47328 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47329}
47330static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
47331 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47332}
47333static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
47334 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47335}
47336static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
47337 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47338}
47339static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
47340 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
47341}
47342static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
47343 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
47344}
47345static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
47346 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
47347}
47348static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
47349 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
47350}
47351static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
47352 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
47353}
5172800e
RD
47354static void *_p_wxCollapsiblePaneTo_p_wxEvtHandler(void *x) {
47355 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
47356}
1bd55598
RD
47357static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
47358 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
47359}
47360static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
47361 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47362}
47363static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
47364 return (void *)((wxEvtHandler *) ((wxValidator *) x));
47365}
47366static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
47367 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
47368}
47369static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
47370 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47371}
b850e7f3
RD
47372static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
47373 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
47374}
1bd55598
RD
47375static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
47376 return (void *)((wxEvtHandler *) ((wxMenu *) x));
47377}
47378static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
47379 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
47380}
47381static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
47382 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
47383}
47384static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
47385 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47386}
47387static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
47388 return (void *)((wxEvtHandler *) ((wxWindow *) x));
47389}
47390static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
47391 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
47392}
47393static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
47394 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
47395}
47396static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
47397 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47398}
47399static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
47400 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
47401}
47402static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
47403 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47404}
47405static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
47406 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
47407}
47408static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
47409 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
47410}
47411static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
47412 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
47413}
47414static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
47415 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
47416}
47417static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
47418 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47419}
47420static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
47421 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
47422}
47423static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
47424 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
47425}
47426static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
47427 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47428}
47429static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
47430 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47431}
704eda0c
RD
47432static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
47433 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47434}
1bd55598
RD
47435static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
47436 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
47437}
47438static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
47439 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
47440}
47441static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
47442 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
47443}
47444static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
47445 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47446}
47447static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
47448 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47449}
47450static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
47451 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47452}
47453static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
47454 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47455}
47456static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
47457 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47458}
47459static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
47460 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47461}
47462static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
47463 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47464}
47465static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
47466 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
47467}
47468static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
47469 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
47470}
47471static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
47472 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
47473}
47474static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
47475 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47476}
47477static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
47478 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
47479}
47480static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
47481 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
47482}
47483static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
47484 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47485}
47486static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
47487 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47488}
47489static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
47490 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47491}
b850e7f3
RD
47492static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
47493 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47494}
47495static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
47496 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47497}
47498static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
47499 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47500}
47501static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
47502 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47503}
1bd55598
RD
47504static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
47505 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47506}
47507static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
47508 return (void *)((wxListBox *) ((wxCheckListBox *) x));
47509}
47510static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
47511 return (void *)((wxButton *) ((wxBitmapButton *) x));
47512}
47513static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
47514 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
47515}
47516static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
47517 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
47518}
47519static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
47520 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
47521}
47522static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
47523 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
47524}
47525static void *_p_wxToolbookTo_p_wxObject(void *x) {
47526 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47527}
1bd55598
RD
47528static void *_p_wxSizerItemTo_p_wxObject(void *x) {
47529 return (void *)((wxObject *) ((wxSizerItem *) x));
47530}
34e0a3bb
RD
47531static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
47532 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
47533}
1bd55598
RD
47534static void *_p_wxScrollEventTo_p_wxObject(void *x) {
47535 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
47536}
47537static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
47538 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
47539}
47540static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
47541 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
47542}
47543static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
47544 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
47545}
47546static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
47547 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
47548}
47549static void *_p_wxSizerTo_p_wxObject(void *x) {
47550 return (void *)((wxObject *) ((wxSizer *) x));
47551}
47552static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
47553 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
47554}
47555static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
47556 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
47557}
47558static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
47559 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
47560}
47561static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
47562 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
47563}
47564static void *_p_wxEventTo_p_wxObject(void *x) {
47565 return (void *)((wxObject *) ((wxEvent *) x));
47566}
47567static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
47568 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
47569}
47570static void *_p_wxGridSizerTo_p_wxObject(void *x) {
47571 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
47572}
47573static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
47574 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
47575}
47576static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
47577 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
47578}
b850e7f3
RD
47579static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
47580 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
47581}
1bd55598
RD
47582static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
47583 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
47584}
47585static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
47586 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47587}
2131d850
RD
47588static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
47589 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
47590}
1bd55598
RD
47591static void *_p_wxPaintEventTo_p_wxObject(void *x) {
47592 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
47593}
47594static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
47595 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
47596}
47597static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
47598 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
47599}
47600static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
47601 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
47602}
47603static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
47604 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
47605}
47606static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
47607 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
47608}
47609static void *_p_wxStaticLineTo_p_wxObject(void *x) {
47610 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
47611}
47612static void *_p_wxControlTo_p_wxObject(void *x) {
47613 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
47614}
47615static void *_p_wxPyControlTo_p_wxObject(void *x) {
47616 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
47617}
47618static void *_p_wxGaugeTo_p_wxObject(void *x) {
47619 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
47620}
47621static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
47622 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
47623}
47624static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
47625 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
47626}
47627static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
47628 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
47629}
47630static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
47631 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
47632}
b850e7f3
RD
47633static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
47634 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
47635}
47636static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
47637 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47638}
47639static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
47640 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
47641}
1bd55598
RD
47642static void *_p_wxChoiceTo_p_wxObject(void *x) {
47643 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47644}
47645static void *_p_wxFSFileTo_p_wxObject(void *x) {
47646 return (void *)((wxObject *) ((wxFSFile *) x));
47647}
47648static void *_p_wxPySizerTo_p_wxObject(void *x) {
47649 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
47650}
47651static void *_p_wxTreebookTo_p_wxObject(void *x) {
47652 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47653}
47654static void *_p_wxListViewTo_p_wxObject(void *x) {
47655 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47656}
704eda0c
RD
47657static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
47658 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
47659}
1bd55598
RD
47660static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
47661 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
47662}
47663static void *_p_wxNotebookTo_p_wxObject(void *x) {
47664 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47665}
47666static void *_p_wxPyEventTo_p_wxObject(void *x) {
47667 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
47668}
47669static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
47670 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
47671}
47672static void *_p_wxChoicebookTo_p_wxObject(void *x) {
47673 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47674}
47675static void *_p_wxListbookTo_p_wxObject(void *x) {
47676 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47677}
47678static void *_p_wxShowEventTo_p_wxObject(void *x) {
47679 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
47680}
47681static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
47682 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
47683}
47684static void *_p_wxSliderTo_p_wxObject(void *x) {
47685 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
47686}
47687static void *_p_wxMenuItemTo_p_wxObject(void *x) {
47688 return (void *)((wxObject *) ((wxMenuItem *) x));
47689}
47690static void *_p_wxDateEventTo_p_wxObject(void *x) {
47691 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
47692}
47693static void *_p_wxIdleEventTo_p_wxObject(void *x) {
47694 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
47695}
47696static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
47697 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
47698}
47699static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
47700 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
47701}
47702static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
47703 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
47704}
47705static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
47706 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
47707}
47708static void *_p_wxSizeEventTo_p_wxObject(void *x) {
47709 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
47710}
47711static void *_p_wxMoveEventTo_p_wxObject(void *x) {
47712 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
47713}
47714static void *_p_wxActivateEventTo_p_wxObject(void *x) {
47715 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
47716}
47717static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
47718 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
47719}
47720static void *_p_wxContextHelpTo_p_wxObject(void *x) {
47721 return (void *)((wxObject *) ((wxContextHelp *) x));
47722}
5172800e
RD
47723static void *_p_wxCollapsiblePaneEventTo_p_wxObject(void *x) {
47724 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
47725}
1bd55598
RD
47726static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
47727 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
47728}
47729static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
47730 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
47731}
47732static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
47733 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
47734}
47735static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
47736 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
47737}
47738static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
47739 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
47740}
47741static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
47742 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
47743}
47744static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
47745 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
47746}
47747static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
47748 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
47749}
47750static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
47751 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
47752}
47753static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
47754 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
47755}
47756static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
47757 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
47758}
47759static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
47760 return (void *)((wxObject *) ((wxImageHandler *) x));
47761}
47762static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
47763 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
47764}
47765static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
47766 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
47767}
580080c5
RD
47768static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
47769 return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
47770}
1bd55598
RD
47771static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
47772 return (void *)((wxObject *) ((wxEvtHandler *) x));
47773}
34e0a3bb
RD
47774static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
47775 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
47776}
1bd55598
RD
47777static void *_p_wxListEventTo_p_wxObject(void *x) {
47778 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
47779}
47780static void *_p_wxListBoxTo_p_wxObject(void *x) {
47781 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47782}
47783static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
47784 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47785}
47786static void *_p_wxButtonTo_p_wxObject(void *x) {
47787 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
47788}
47789static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
47790 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
47791}
47792static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
47793 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
47794}
47795static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
47796 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47797}
1bd55598
RD
47798static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
47799 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
47800}
580080c5
RD
47801static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
47802 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
47803}
1bd55598
RD
47804static void *_p_wxScrollBarTo_p_wxObject(void *x) {
47805 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
47806}
47807static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
47808 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
47809}
47810static void *_p_wxComboBoxTo_p_wxObject(void *x) {
47811 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
47812}
47813static void *_p_wxHelpEventTo_p_wxObject(void *x) {
47814 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
47815}
47816static void *_p_wxListItemTo_p_wxObject(void *x) {
47817 return (void *)((wxObject *) ((wxListItem *) x));
47818}
47819static void *_p_wxImageTo_p_wxObject(void *x) {
47820 return (void *)((wxObject *) ((wxImage *) x));
47821}
47822static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
47823 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
47824}
47825static void *_p_wxSpinEventTo_p_wxObject(void *x) {
47826 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
47827}
47828static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
47829 return (void *)((wxObject *) ((wxGenericDragImage *) x));
47830}
47831static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
47832 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
47833}
47834static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
47835 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47836}
47837static void *_p_wxListbookEventTo_p_wxObject(void *x) {
47838 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47839}
47840static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
47841 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47842}
47843static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
47844 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47845}
47846static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
47847 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47848}
47849static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
47850 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47851}
47852static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
47853 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
47854}
47855static void *_p_wxKeyEventTo_p_wxObject(void *x) {
47856 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
47857}
47858static void *_p_wxWindowTo_p_wxObject(void *x) {
47859 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
47860}
47861static void *_p_wxMenuTo_p_wxObject(void *x) {
47862 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
47863}
47864static void *_p_wxMenuBarTo_p_wxObject(void *x) {
47865 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47866}
47867static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47868 return (void *)((wxObject *) ((wxFileSystem *) x));
47869}
5172800e
RD
47870static void *_p_wxCollapsiblePaneTo_p_wxObject(void *x) {
47871 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCollapsiblePane *) x));
47872}
1bd55598
RD
47873static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47874 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47875}
47876static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47877 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47878}
47879static void *_p_wxPyAppTo_p_wxObject(void *x) {
47880 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47881}
47882static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47883 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47884}
47885static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47886 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47887}
47888static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47889 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47890}
47891static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47892 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47893}
47894static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47895 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47896}
47897static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47898 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47899}
47900static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47901 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47902}
47903static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47904 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47905}
47906static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47907 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47908}
47909static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47910 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47911}
47912static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47913 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47914}
47915static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47916 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47917}
b850e7f3
RD
47918static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47919 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47920}
47921static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47922 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47923}
47924static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47925 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47926}
47927static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47928 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47929}
1bd55598
RD
47930static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47931 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47932}
704eda0c
RD
47933static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47934 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47935}
1bd55598
RD
47936static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47937 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47938}
47939static void *_p_wxToolBarTo_p_wxObject(void *x) {
47940 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47941}
47942static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47943 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47944}
47945static void *_p_wxValidatorTo_p_wxObject(void *x) {
47946 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47947}
5172800e
RD
47948static void *_p_wxCollapsiblePaneTo_p_wxWindow(void *x) {
47949 return (void *)((wxWindow *) (wxControl *) ((wxCollapsiblePane *) x));
47950}
1bd55598
RD
47951static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47952 return (void *)((wxWindow *) ((wxMenuBar *) x));
47953}
47954static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47955 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47956}
47957static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47958 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47959}
b850e7f3
RD
47960static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47961 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47962}
1bd55598
RD
47963static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47964 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47965}
47966static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47967 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47968}
47969static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47970 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47971}
47972static void *_p_wxControlTo_p_wxWindow(void *x) {
47973 return (void *)((wxWindow *) ((wxControl *) x));
47974}
47975static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47976 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47977}
47978static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47979 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47980}
47981static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47982 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
47983}
47984static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47985 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47986}
47987static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47988 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47989}
47990static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47991 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47992}
47993static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47994 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47995}
47996static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47997 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47998}
47999static void *_p_wxGaugeTo_p_wxWindow(void *x) {
48000 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
48001}
48002static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
48003 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
48004}
48005static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
48006 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
48007}
48008static void *_p_wxListbookTo_p_wxWindow(void *x) {
48009 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
48010}
704eda0c
RD
48011static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
48012 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
48013}
1bd55598
RD
48014static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
48015 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
48016}
48017static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
48018 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
48019}
48020static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
48021 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
48022}
48023static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
48024 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
48025}
48026static void *_p_wxChoiceTo_p_wxWindow(void *x) {
48027 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
48028}
48029static void *_p_wxListBoxTo_p_wxWindow(void *x) {
48030 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
48031}
48032static void *_p_wxListViewTo_p_wxWindow(void *x) {
48033 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
48034}
48035static void *_p_wxNotebookTo_p_wxWindow(void *x) {
48036 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
48037}
48038static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
48039 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
48040}
48041static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
48042 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
48043}
48044static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
48045 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
48046}
48047static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
48048 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
48049}
48050static void *_p_wxSliderTo_p_wxWindow(void *x) {
48051 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
48052}
48053static void *_p_wxTreebookTo_p_wxWindow(void *x) {
48054 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
48055}
48056static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
48057 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
48058}
48059static void *_p_wxButtonTo_p_wxWindow(void *x) {
48060 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
48061}
48062static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
48063 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
48064}
48065static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
48066 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
48067}
48068static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
48069 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
48070}
b850e7f3
RD
48071static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
48072 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
48073}
48074static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
48075 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
48076}
48077static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
48078 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
48079}
48080static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
48081 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
48082}
1bd55598
RD
48083static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
48084 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
48085}
48086static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48087 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48088}
48089static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48090 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48091}
48092static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48093 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48094}
48095static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48096 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48097}
48098static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
48099 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48100}
48101static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
48102 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
48103}
704eda0c
RD
48104static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
48105 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
48106}
2131d850
RD
48107static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
48108 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
48109}
b850e7f3
RD
48110static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
48111 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
48112}
48113static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
48114 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
48115}
48116static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
48117 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
48118}
1bd55598
RD
48119static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
48120 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
48121}
48122static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
48123 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
48124}
48125static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
48126 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
48127}
48128static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
48129 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
48130}
48131static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
48132 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
48133}
1bd55598
RD
48134static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
48135 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
48136}
2131d850
RD
48137static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
48138 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
48139}
1bd55598
RD
48140static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
48141 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
48142}
48143static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
48144 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
48145}
48146static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
48147 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
48148}
48149static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
48150 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
48151}
48152static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
48153 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
48154}
48155static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
48156 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
48157}
5172800e
RD
48158static void *_p_wxCollapsiblePaneEventTo_p_wxCommandEvent(void *x) {
48159 return (void *)((wxCommandEvent *) ((wxCollapsiblePaneEvent *) x));
48160}
1bd55598
RD
48161static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
48162 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
48163}
48164static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
48165 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
48166}
48167static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
48168 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
48169}
48170static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
48171 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
48172}
48173static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
48174 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
48175}
48176static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
48177 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
48178}
48179static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
48180 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
48181}
48182static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
48183 return (void *)((wxControlWithItems *) ((wxChoice *) x));
48184}
48185static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
48186 return (void *)((wxControlWithItems *) ((wxListBox *) x));
48187}
48188static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
48189 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
48190}
48191static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
48192 return (void *)((wxValidator *) ((wxPyValidator *) x));
48193}
48194static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
48195static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
48196static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
48197static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
48198static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
48199static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
48200static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
48201static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
48202static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
48203static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
48204static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
48205static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
48206static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
48207static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
48208static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
48209static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
48210static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
48211static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
48212static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
48213static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
48214static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
5172800e
RD
48215static swig_type_info _swigt__p_wxCollapsiblePane = {"_p_wxCollapsiblePane", "wxCollapsiblePane *", 0, 0, (void*)0, 0};
48216static swig_type_info _swigt__p_wxCollapsiblePaneEvent = {"_p_wxCollapsiblePaneEvent", "wxCollapsiblePaneEvent *", 0, 0, (void*)0, 0};
1bd55598 48217static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
48218static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
48219static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
48220static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
48221static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
48222static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 48223static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
48224static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
48225static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
48226static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
48227static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
48228static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
48229static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
48230static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
48231static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
48232static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
48233static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
48234static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
48235static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
48236static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
48237static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
48238static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
48239static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 48240static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
1bd55598
RD
48241static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
48242static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
48243static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
48244static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
48245static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
48246static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
48247static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
48248static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
34e0a3bb 48249static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
1bd55598
RD
48250static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
48251static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
48252static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
48253static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
48254static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
48255static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
34e0a3bb 48256static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
1bd55598
RD
48257static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
48258static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
48259static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
48260static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
48261static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
48262static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
48263static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
48264static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
48265static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
48266static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
48267static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
48268static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
48269static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
48270static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
48271static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
48272static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
b850e7f3
RD
48273static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
48274static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
1bd55598 48275static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
48276static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
48277static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
48278static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
48279static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
48280static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
48281static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
48282static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
48283static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
48284static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
48285static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
48286static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
48287static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
48288static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
48289static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
48290static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
48291static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
48292static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
48293static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
48294static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
48295static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
48296static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
48297static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
48298static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
48299static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
48300static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
48301static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
48302static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
1bd55598 48303static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
34e0a3bb 48304static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
1bd55598
RD
48305static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
48306static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
48307static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
48308static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
48309static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
48310static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
48311static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
48312static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
48313static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
48314static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
1bd55598
RD
48315static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
48316static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
48317static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
48318static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
5172800e 48319static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
48320static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
48321static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
48322static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
48323static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 48324static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 48325static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
1bd55598
RD
48326static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
48327static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
580080c5 48328static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0};
1bd55598 48329static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
580080c5 48330static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
1bd55598
RD
48331static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
48332static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
48333static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 48334static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
1bd55598
RD
48335static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
48336static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
48337static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
48338static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
48339static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
48340static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
48341static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
48342static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
48343static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
48344static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
48345static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
48346static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
48347static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
48348static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
48349static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
48350static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
48351static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
48352static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
48353static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
48354static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
48355static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
48356static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
48357static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
48358static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
48359static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
48360static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
48361static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
48362static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
48363static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
48364static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
48365static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
48366static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
48367static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
48368static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
48369static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
48370static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 48371static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
1bd55598
RD
48372
48373static swig_type_info *swig_type_initial[] = {
48374 &_swigt__p_bool,
48375 &_swigt__p_char,
48376 &_swigt__p_form_ops_t,
48377 &_swigt__p_int,
48378 &_swigt__p_long,
48379 &_swigt__p_unsigned_char,
48380 &_swigt__p_unsigned_int,
48381 &_swigt__p_unsigned_long,
48382 &_swigt__p_void,
48383 &_swigt__p_wxANIHandler,
48384 &_swigt__p_wxAcceleratorTable,
48385 &_swigt__p_wxActivateEvent,
48386 &_swigt__p_wxArrayInt,
48387 &_swigt__p_wxArrayString,
48388 &_swigt__p_wxBMPHandler,
48389 &_swigt__p_wxBitmap,
48390 &_swigt__p_wxBitmapButton,
48391 &_swigt__p_wxBookCtrlBase,
48392 &_swigt__p_wxBookCtrlBaseEvent,
48393 &_swigt__p_wxBoxSizer,
48394 &_swigt__p_wxButton,
48395 &_swigt__p_wxCURHandler,
48396 &_swigt__p_wxCheckBox,
48397 &_swigt__p_wxCheckListBox,
48398 &_swigt__p_wxChildFocusEvent,
48399 &_swigt__p_wxChoice,
48400 &_swigt__p_wxChoicebook,
48401 &_swigt__p_wxChoicebookEvent,
2131d850 48402 &_swigt__p_wxClipboardTextEvent,
1bd55598 48403 &_swigt__p_wxCloseEvent,
5172800e
RD
48404 &_swigt__p_wxCollapsiblePane,
48405 &_swigt__p_wxCollapsiblePaneEvent,
1bd55598 48406 &_swigt__p_wxColour,
b850e7f3
RD
48407 &_swigt__p_wxColourPickerCtrl,
48408 &_swigt__p_wxColourPickerEvent,
1bd55598
RD
48409 &_swigt__p_wxComboBox,
48410 &_swigt__p_wxCommandEvent,
48411 &_swigt__p_wxContextHelp,
48412 &_swigt__p_wxContextHelpButton,
48413 &_swigt__p_wxContextMenuEvent,
48414 &_swigt__p_wxControl,
48415 &_swigt__p_wxControlWithItems,
48416 &_swigt__p_wxCursor,
48417 &_swigt__p_wxDC,
48418 &_swigt__p_wxDateEvent,
48419 &_swigt__p_wxDatePickerCtrl,
48420 &_swigt__p_wxDateTime,
48421 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 48422 &_swigt__p_wxDirPickerCtrl,
1bd55598
RD
48423 &_swigt__p_wxDisplayChangedEvent,
48424 &_swigt__p_wxDropFilesEvent,
48425 &_swigt__p_wxDuplexMode,
48426 &_swigt__p_wxEraseEvent,
48427 &_swigt__p_wxEvent,
48428 &_swigt__p_wxEvtHandler,
48429 &_swigt__p_wxFSFile,
b850e7f3
RD
48430 &_swigt__p_wxFileDirPickerEvent,
48431 &_swigt__p_wxFilePickerCtrl,
1bd55598
RD
48432 &_swigt__p_wxFileSystem,
48433 &_swigt__p_wxFlexGridSizer,
48434 &_swigt__p_wxFocusEvent,
48435 &_swigt__p_wxFont,
b850e7f3
RD
48436 &_swigt__p_wxFontPickerCtrl,
48437 &_swigt__p_wxFontPickerEvent,
1bd55598
RD
48438 &_swigt__p_wxGBSizerItem,
48439 &_swigt__p_wxGIFHandler,
48440 &_swigt__p_wxGauge,
48441 &_swigt__p_wxGenericDirCtrl,
48442 &_swigt__p_wxGenericDragImage,
48443 &_swigt__p_wxGridBagSizer,
48444 &_swigt__p_wxGridSizer,
48445 &_swigt__p_wxHelpEvent,
48446 &_swigt__p_wxHelpProvider,
704eda0c
RD
48447 &_swigt__p_wxHyperlinkCtrl,
48448 &_swigt__p_wxHyperlinkEvent,
1bd55598
RD
48449 &_swigt__p_wxICOHandler,
48450 &_swigt__p_wxIcon,
48451 &_swigt__p_wxIconizeEvent,
48452 &_swigt__p_wxIdleEvent,
48453 &_swigt__p_wxImage,
48454 &_swigt__p_wxImageHandler,
48455 &_swigt__p_wxImageList,
48456 &_swigt__p_wxIndividualLayoutConstraint,
48457 &_swigt__p_wxInitDialogEvent,
48458 &_swigt__p_wxItemContainer,
48459 &_swigt__p_wxJPEGHandler,
48460 &_swigt__p_wxKeyEvent,
48461 &_swigt__p_wxLayoutConstraints,
48462 &_swigt__p_wxListBox,
48463 &_swigt__p_wxListEvent,
48464 &_swigt__p_wxListItem,
48465 &_swigt__p_wxListItemAttr,
48466 &_swigt__p_wxListView,
48467 &_swigt__p_wxListbook,
48468 &_swigt__p_wxListbookEvent,
48469 &_swigt__p_wxMaximizeEvent,
48470 &_swigt__p_wxMemoryDC,
48471 &_swigt__p_wxMenu,
48472 &_swigt__p_wxMenuBar,
48473 &_swigt__p_wxMenuEvent,
48474 &_swigt__p_wxMenuItem,
48475 &_swigt__p_wxMouseCaptureChangedEvent,
34e0a3bb 48476 &_swigt__p_wxMouseCaptureLostEvent,
1bd55598
RD
48477 &_swigt__p_wxMouseEvent,
48478 &_swigt__p_wxMoveEvent,
48479 &_swigt__p_wxNavigationKeyEvent,
48480 &_swigt__p_wxNcPaintEvent,
48481 &_swigt__p_wxNotebook,
48482 &_swigt__p_wxNotebookEvent,
48483 &_swigt__p_wxNotifyEvent,
48484 &_swigt__p_wxObject,
48485 &_swigt__p_wxPCXHandler,
48486 &_swigt__p_wxPNGHandler,
48487 &_swigt__p_wxPNMHandler,
48488 &_swigt__p_wxPaintEvent,
48489 &_swigt__p_wxPaletteChangedEvent,
48490 &_swigt__p_wxPaperSize,
b850e7f3 48491 &_swigt__p_wxPickerBase,
1bd55598
RD
48492 &_swigt__p_wxPoint,
48493 &_swigt__p_wxPyApp,
48494 &_swigt__p_wxPyCommandEvent,
48495 &_swigt__p_wxPyControl,
48496 &_swigt__p_wxPyEvent,
48497 &_swigt__p_wxPyImageHandler,
48498 &_swigt__p_wxPyListCtrl,
48499 &_swigt__p_wxPySizer,
48500 &_swigt__p_wxPyTreeCtrl,
48501 &_swigt__p_wxPyTreeItemData,
48502 &_swigt__p_wxPyValidator,
48503 &_swigt__p_wxQueryNewPaletteEvent,
48504 &_swigt__p_wxRadioBox,
48505 &_swigt__p_wxRadioButton,
48506 &_swigt__p_wxRect,
48507 &_swigt__p_wxScrollBar,
48508 &_swigt__p_wxScrollEvent,
48509 &_swigt__p_wxScrollWinEvent,
48510 &_swigt__p_wxSetCursorEvent,
48511 &_swigt__p_wxShowEvent,
48512 &_swigt__p_wxSimpleHelpProvider,
48513 &_swigt__p_wxSize,
48514 &_swigt__p_wxSizeEvent,
48515 &_swigt__p_wxSizer,
48516 &_swigt__p_wxSizerItem,
48517 &_swigt__p_wxSlider,
48518 &_swigt__p_wxSpinButton,
48519 &_swigt__p_wxSpinCtrl,
48520 &_swigt__p_wxSpinEvent,
48521 &_swigt__p_wxStaticBitmap,
48522 &_swigt__p_wxStaticBox,
48523 &_swigt__p_wxStaticBoxSizer,
48524 &_swigt__p_wxStaticLine,
48525 &_swigt__p_wxStaticText,
48526 &_swigt__p_wxStdDialogButtonSizer,
48527 &_swigt__p_wxString,
48528 &_swigt__p_wxSysColourChangedEvent,
580080c5 48529 &_swigt__p_wxTGAHandler,
1bd55598
RD
48530 &_swigt__p_wxTIFFHandler,
48531 &_swigt__p_wxTextAttr,
48532 &_swigt__p_wxTextCtrl,
48533 &_swigt__p_wxTextUrlEvent,
48534 &_swigt__p_wxToggleButton,
48535 &_swigt__p_wxToolBar,
48536 &_swigt__p_wxToolBarBase,
48537 &_swigt__p_wxToolBarToolBase,
48538 &_swigt__p_wxToolbook,
48539 &_swigt__p_wxToolbookEvent,
1bd55598
RD
48540 &_swigt__p_wxTreeEvent,
48541 &_swigt__p_wxTreeItemId,
48542 &_swigt__p_wxTreebook,
48543 &_swigt__p_wxTreebookEvent,
48544 &_swigt__p_wxUpdateUIEvent,
48545 &_swigt__p_wxValidator,
48546 &_swigt__p_wxVisualAttributes,
48547 &_swigt__p_wxWindow,
b850e7f3 48548 &_swigt__p_wxWindowBase,
1bd55598
RD
48549 &_swigt__p_wxWindowCreateEvent,
48550 &_swigt__p_wxWindowDestroyEvent,
48551 &_swigt__p_wxXPMHandler,
48552};
48553
48554static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
48555static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
48556static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
48557static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
48558static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
48559static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
48560static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
48561static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
48562static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
48563static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
48564static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
48565static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
48566static 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}};
48567static 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}};
48568static 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}};
48569static 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}};
48570static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
48571static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
48572static 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}};
48573static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
48574static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e
RD
48575static swig_cast_info _swigc__p_wxCollapsiblePane[] = { {&_swigt__p_wxCollapsiblePane, 0, 0, 0},{0, 0, 0, 0}};
48576static swig_cast_info _swigc__p_wxCollapsiblePaneEvent[] = { {&_swigt__p_wxCollapsiblePaneEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 48577static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48578static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48579static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48580static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
48581static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 48582static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48583static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
48584static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
48585static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48586static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48587static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
48588static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
48589static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48590static 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_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_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
48591static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
48592static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48593static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxControl, 0, 0}, {&_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
48594static 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}};
48595static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
48596static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
48597static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48598static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
48599static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 48600static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48601static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
48602static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
48603static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
48604static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
48605static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
48606static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
48607static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 48608static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48609static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
48610static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48611static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48612static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
48613static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
48614static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 48615static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48616static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48617static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
48618static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48619static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48620static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48621static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
48622static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
48623static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
48624static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
48625static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48626static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48627static 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_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_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
48628static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
48629static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
48630static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
48631static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48632static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxEvtHandler, 0, 0}, {&_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_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_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_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 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_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_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}};
b850e7f3
RD
48633static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
48634static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 48635static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48636static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
48637static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48638static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
48639static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
48640static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
48641static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
48642static 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
48643static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
48644static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48645static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
48646static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
48647static 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}};
48648static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
48649static 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}};
48650static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
48651static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
48652static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
48653static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
48654static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
48655static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
48656static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
48657static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
48658static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
48659static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48660static 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}};
48661static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 48662static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
34e0a3bb 48663static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48664static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
48665static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48666static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
48667static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
48668static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
48669static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48670static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
48671static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
48672static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
48673static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48674static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
48675static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
48676static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
48677static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48678static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
48679static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
48680static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
48681static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
48682static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 48683static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 48684static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48685static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
48686static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
580080c5 48687static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 48688static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
580080c5 48689static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48690static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
48691static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48692static 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_wxCollapsiblePaneEvent, _p_wxCollapsiblePaneEventTo_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_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_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxCollapsiblePane, _p_wxCollapsiblePaneTo_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_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_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 48693static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 48694static 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
48695static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
48696static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
48697static 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}};
48698static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
48699static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
48700static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
48701static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
48702static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
48703static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
48704static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
48705static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
48706static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
48707static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
48708static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
48709static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
48710static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
48711static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
48712static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
48713static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
48714static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
48715static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
48716static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
48717static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
48718static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
48719static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
48720static 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}};
48721static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
48722static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
48723static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48724static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
48725static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
48726static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
48727static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
48728static 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}};
48729static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
5172800e 48730static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxCollapsiblePane, _p_wxCollapsiblePaneTo_p_wxWindow, 0, 0}, {&_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_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_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_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_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_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
b850e7f3 48731static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
48732
48733static swig_cast_info *swig_cast_initial[] = {
48734 _swigc__p_bool,
48735 _swigc__p_char,
48736 _swigc__p_form_ops_t,
48737 _swigc__p_int,
48738 _swigc__p_long,
48739 _swigc__p_unsigned_char,
48740 _swigc__p_unsigned_int,
48741 _swigc__p_unsigned_long,
48742 _swigc__p_void,
48743 _swigc__p_wxANIHandler,
48744 _swigc__p_wxAcceleratorTable,
48745 _swigc__p_wxActivateEvent,
48746 _swigc__p_wxArrayInt,
48747 _swigc__p_wxArrayString,
48748 _swigc__p_wxBMPHandler,
48749 _swigc__p_wxBitmap,
48750 _swigc__p_wxBitmapButton,
48751 _swigc__p_wxBookCtrlBase,
48752 _swigc__p_wxBookCtrlBaseEvent,
48753 _swigc__p_wxBoxSizer,
48754 _swigc__p_wxButton,
48755 _swigc__p_wxCURHandler,
48756 _swigc__p_wxCheckBox,
48757 _swigc__p_wxCheckListBox,
48758 _swigc__p_wxChildFocusEvent,
48759 _swigc__p_wxChoice,
48760 _swigc__p_wxChoicebook,
48761 _swigc__p_wxChoicebookEvent,
2131d850 48762 _swigc__p_wxClipboardTextEvent,
1bd55598 48763 _swigc__p_wxCloseEvent,
5172800e
RD
48764 _swigc__p_wxCollapsiblePane,
48765 _swigc__p_wxCollapsiblePaneEvent,
1bd55598 48766 _swigc__p_wxColour,
b850e7f3
RD
48767 _swigc__p_wxColourPickerCtrl,
48768 _swigc__p_wxColourPickerEvent,
1bd55598
RD
48769 _swigc__p_wxComboBox,
48770 _swigc__p_wxCommandEvent,
48771 _swigc__p_wxContextHelp,
48772 _swigc__p_wxContextHelpButton,
48773 _swigc__p_wxContextMenuEvent,
48774 _swigc__p_wxControl,
48775 _swigc__p_wxControlWithItems,
48776 _swigc__p_wxCursor,
48777 _swigc__p_wxDC,
48778 _swigc__p_wxDateEvent,
48779 _swigc__p_wxDatePickerCtrl,
48780 _swigc__p_wxDateTime,
48781 _swigc__p_wxDirFilterListCtrl,
b850e7f3 48782 _swigc__p_wxDirPickerCtrl,
1bd55598
RD
48783 _swigc__p_wxDisplayChangedEvent,
48784 _swigc__p_wxDropFilesEvent,
48785 _swigc__p_wxDuplexMode,
48786 _swigc__p_wxEraseEvent,
48787 _swigc__p_wxEvent,
48788 _swigc__p_wxEvtHandler,
48789 _swigc__p_wxFSFile,
b850e7f3
RD
48790 _swigc__p_wxFileDirPickerEvent,
48791 _swigc__p_wxFilePickerCtrl,
1bd55598
RD
48792 _swigc__p_wxFileSystem,
48793 _swigc__p_wxFlexGridSizer,
48794 _swigc__p_wxFocusEvent,
48795 _swigc__p_wxFont,
b850e7f3
RD
48796 _swigc__p_wxFontPickerCtrl,
48797 _swigc__p_wxFontPickerEvent,
1bd55598
RD
48798 _swigc__p_wxGBSizerItem,
48799 _swigc__p_wxGIFHandler,
48800 _swigc__p_wxGauge,
48801 _swigc__p_wxGenericDirCtrl,
48802 _swigc__p_wxGenericDragImage,
48803 _swigc__p_wxGridBagSizer,
48804 _swigc__p_wxGridSizer,
48805 _swigc__p_wxHelpEvent,
48806 _swigc__p_wxHelpProvider,
704eda0c
RD
48807 _swigc__p_wxHyperlinkCtrl,
48808 _swigc__p_wxHyperlinkEvent,
1bd55598
RD
48809 _swigc__p_wxICOHandler,
48810 _swigc__p_wxIcon,
48811 _swigc__p_wxIconizeEvent,
48812 _swigc__p_wxIdleEvent,
48813 _swigc__p_wxImage,
48814 _swigc__p_wxImageHandler,
48815 _swigc__p_wxImageList,
48816 _swigc__p_wxIndividualLayoutConstraint,
48817 _swigc__p_wxInitDialogEvent,
48818 _swigc__p_wxItemContainer,
48819 _swigc__p_wxJPEGHandler,
48820 _swigc__p_wxKeyEvent,
48821 _swigc__p_wxLayoutConstraints,
48822 _swigc__p_wxListBox,
48823 _swigc__p_wxListEvent,
48824 _swigc__p_wxListItem,
48825 _swigc__p_wxListItemAttr,
48826 _swigc__p_wxListView,
48827 _swigc__p_wxListbook,
48828 _swigc__p_wxListbookEvent,
48829 _swigc__p_wxMaximizeEvent,
48830 _swigc__p_wxMemoryDC,
48831 _swigc__p_wxMenu,
48832 _swigc__p_wxMenuBar,
48833 _swigc__p_wxMenuEvent,
48834 _swigc__p_wxMenuItem,
48835 _swigc__p_wxMouseCaptureChangedEvent,
34e0a3bb 48836 _swigc__p_wxMouseCaptureLostEvent,
1bd55598
RD
48837 _swigc__p_wxMouseEvent,
48838 _swigc__p_wxMoveEvent,
48839 _swigc__p_wxNavigationKeyEvent,
48840 _swigc__p_wxNcPaintEvent,
48841 _swigc__p_wxNotebook,
48842 _swigc__p_wxNotebookEvent,
48843 _swigc__p_wxNotifyEvent,
48844 _swigc__p_wxObject,
48845 _swigc__p_wxPCXHandler,
48846 _swigc__p_wxPNGHandler,
48847 _swigc__p_wxPNMHandler,
48848 _swigc__p_wxPaintEvent,
48849 _swigc__p_wxPaletteChangedEvent,
48850 _swigc__p_wxPaperSize,
b850e7f3 48851 _swigc__p_wxPickerBase,
1bd55598
RD
48852 _swigc__p_wxPoint,
48853 _swigc__p_wxPyApp,
48854 _swigc__p_wxPyCommandEvent,
48855 _swigc__p_wxPyControl,
48856 _swigc__p_wxPyEvent,
48857 _swigc__p_wxPyImageHandler,
48858 _swigc__p_wxPyListCtrl,
48859 _swigc__p_wxPySizer,
48860 _swigc__p_wxPyTreeCtrl,
48861 _swigc__p_wxPyTreeItemData,
48862 _swigc__p_wxPyValidator,
48863 _swigc__p_wxQueryNewPaletteEvent,
48864 _swigc__p_wxRadioBox,
48865 _swigc__p_wxRadioButton,
48866 _swigc__p_wxRect,
48867 _swigc__p_wxScrollBar,
48868 _swigc__p_wxScrollEvent,
48869 _swigc__p_wxScrollWinEvent,
48870 _swigc__p_wxSetCursorEvent,
48871 _swigc__p_wxShowEvent,
48872 _swigc__p_wxSimpleHelpProvider,
48873 _swigc__p_wxSize,
48874 _swigc__p_wxSizeEvent,
48875 _swigc__p_wxSizer,
48876 _swigc__p_wxSizerItem,
48877 _swigc__p_wxSlider,
48878 _swigc__p_wxSpinButton,
48879 _swigc__p_wxSpinCtrl,
48880 _swigc__p_wxSpinEvent,
48881 _swigc__p_wxStaticBitmap,
48882 _swigc__p_wxStaticBox,
48883 _swigc__p_wxStaticBoxSizer,
48884 _swigc__p_wxStaticLine,
48885 _swigc__p_wxStaticText,
48886 _swigc__p_wxStdDialogButtonSizer,
48887 _swigc__p_wxString,
48888 _swigc__p_wxSysColourChangedEvent,
580080c5 48889 _swigc__p_wxTGAHandler,
1bd55598
RD
48890 _swigc__p_wxTIFFHandler,
48891 _swigc__p_wxTextAttr,
48892 _swigc__p_wxTextCtrl,
48893 _swigc__p_wxTextUrlEvent,
48894 _swigc__p_wxToggleButton,
48895 _swigc__p_wxToolBar,
48896 _swigc__p_wxToolBarBase,
48897 _swigc__p_wxToolBarToolBase,
48898 _swigc__p_wxToolbook,
48899 _swigc__p_wxToolbookEvent,
1bd55598
RD
48900 _swigc__p_wxTreeEvent,
48901 _swigc__p_wxTreeItemId,
48902 _swigc__p_wxTreebook,
48903 _swigc__p_wxTreebookEvent,
48904 _swigc__p_wxUpdateUIEvent,
48905 _swigc__p_wxValidator,
48906 _swigc__p_wxVisualAttributes,
48907 _swigc__p_wxWindow,
b850e7f3 48908 _swigc__p_wxWindowBase,
1bd55598
RD
48909 _swigc__p_wxWindowCreateEvent,
48910 _swigc__p_wxWindowDestroyEvent,
48911 _swigc__p_wxXPMHandler,
48912};
48913
48914
48915/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48916
48917static swig_const_info swig_const_table[] = {
48918{0, 0, 0, 0.0, 0, 0}};
48919
48920#ifdef __cplusplus
48921}
48922#endif
48923/* -----------------------------------------------------------------------------
48924 * Type initialization:
48925 * This problem is tough by the requirement that no dynamic
48926 * memory is used. Also, since swig_type_info structures store pointers to
48927 * swig_cast_info structures and swig_cast_info structures store pointers back
48928 * to swig_type_info structures, we need some lookup code at initialization.
48929 * The idea is that swig generates all the structures that are needed.
48930 * The runtime then collects these partially filled structures.
48931 * The SWIG_InitializeModule function takes these initial arrays out of
48932 * swig_module, and does all the lookup, filling in the swig_module.types
48933 * array with the correct data and linking the correct swig_cast_info
48934 * structures together.
48935 *
48936 * The generated swig_type_info structures are assigned staticly to an initial
48937 * array. We just loop though that array, and handle each type individually.
48938 * First we lookup if this type has been already loaded, and if so, use the
48939 * loaded structure instead of the generated one. Then we have to fill in the
48940 * cast linked list. The cast data is initially stored in something like a
48941 * two-dimensional array. Each row corresponds to a type (there are the same
48942 * number of rows as there are in the swig_type_initial array). Each entry in
48943 * a column is one of the swig_cast_info structures for that type.
48944 * The cast_initial array is actually an array of arrays, because each row has
48945 * a variable number of columns. So to actually build the cast linked list,
48946 * we find the array of casts associated with the type, and loop through it
48947 * adding the casts to the list. The one last trick we need to do is making
48948 * sure the type pointer in the swig_cast_info struct is correct.
48949 *
48950 * First off, we lookup the cast->type name to see if it is already loaded.
48951 * There are three cases to handle:
48952 * 1) If the cast->type has already been loaded AND the type we are adding
48953 * casting info to has not been loaded (it is in this module), THEN we
48954 * replace the cast->type pointer with the type pointer that has already
48955 * been loaded.
48956 * 2) If BOTH types (the one we are adding casting info to, and the
48957 * cast->type) are loaded, THEN the cast info has already been loaded by
48958 * the previous module so we just ignore it.
48959 * 3) Finally, if cast->type has not already been loaded, then we add that
48960 * swig_cast_info to the linked list (because the cast->type) pointer will
48961 * be correct.
48962 * ----------------------------------------------------------------------------- */
48963
48964#ifdef __cplusplus
48965extern "C" {
48966#if 0
48967} /* c-mode */
48968#endif
48969#endif
48970
48971#if 0
48972#define SWIGRUNTIME_DEBUG
48973#endif
48974
48975SWIGRUNTIME void
48976SWIG_InitializeModule(void *clientdata) {
48977 size_t i;
48978 swig_module_info *module_head;
48979 static int init_run = 0;
48980
48981 clientdata = clientdata;
48982
48983 if (init_run) return;
48984 init_run = 1;
48985
48986 /* Initialize the swig_module */
48987 swig_module.type_initial = swig_type_initial;
48988 swig_module.cast_initial = swig_cast_initial;
48989
48990 /* Try and load any already created modules */
48991 module_head = SWIG_GetModule(clientdata);
48992 if (module_head) {
48993 swig_module.next = module_head->next;
48994 module_head->next = &swig_module;
48995 } else {
48996 /* This is the first module loaded */
48997 swig_module.next = &swig_module;
48998 SWIG_SetModule(clientdata, &swig_module);
48999 }
49000
49001 /* Now work on filling in swig_module.types */
49002#ifdef SWIGRUNTIME_DEBUG
49003 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
49004#endif
49005 for (i = 0; i < swig_module.size; ++i) {
49006 swig_type_info *type = 0;
49007 swig_type_info *ret;
49008 swig_cast_info *cast;
d55e5bfc 49009
1bd55598
RD
49010#ifdef SWIGRUNTIME_DEBUG
49011 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49012#endif
d55e5bfc 49013
1bd55598
RD
49014 /* if there is another module already loaded */
49015 if (swig_module.next != &swig_module) {
49016 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36ed4f51 49017 }
1bd55598
RD
49018 if (type) {
49019 /* Overwrite clientdata field */
49020#ifdef SWIGRUNTIME_DEBUG
49021 printf("SWIG_InitializeModule: found type %s\n", type->name);
49022#endif
49023 if (swig_module.type_initial[i]->clientdata) {
49024 type->clientdata = swig_module.type_initial[i]->clientdata;
49025#ifdef SWIGRUNTIME_DEBUG
49026 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
49027#endif
49028 }
49029 } else {
49030 type = swig_module.type_initial[i];
36ed4f51 49031 }
d55e5bfc 49032
1bd55598
RD
49033 /* Insert casting types */
49034 cast = swig_module.cast_initial[i];
49035 while (cast->type) {
49036 /* Don't need to add information already in the list */
49037 ret = 0;
49038#ifdef SWIGRUNTIME_DEBUG
49039 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
49040#endif
49041 if (swig_module.next != &swig_module) {
49042 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
49043#ifdef SWIGRUNTIME_DEBUG
49044 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
49045#endif
49046 }
49047 if (ret) {
49048 if (type == swig_module.type_initial[i]) {
49049#ifdef SWIGRUNTIME_DEBUG
49050 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
49051#endif
49052 cast->type = ret;
49053 ret = 0;
49054 } else {
49055 /* Check for casting already in the list */
49056 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
49057#ifdef SWIGRUNTIME_DEBUG
49058 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
49059#endif
49060 if (!ocast) ret = 0;
49061 }
49062 }
49063
49064 if (!ret) {
49065#ifdef SWIGRUNTIME_DEBUG
49066 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
49067#endif
49068 if (type->cast) {
49069 type->cast->prev = cast;
49070 cast->next = type->cast;
49071 }
49072 type->cast = cast;
49073 }
49074 cast++;
36ed4f51 49075 }
1bd55598
RD
49076 /* Set entry in modules->types array equal to the type */
49077 swig_module.types[i] = type;
49078 }
49079 swig_module.types[i] = 0;
49080
49081#ifdef SWIGRUNTIME_DEBUG
49082 printf("**** SWIG_InitializeModule: Cast List ******\n");
49083 for (i = 0; i < swig_module.size; ++i) {
49084 int j = 0;
49085 swig_cast_info *cast = swig_module.cast_initial[i];
49086 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
49087 while (cast->type) {
49088 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
49089 cast++;
49090 ++j;
49091 }
49092 printf("---- Total casts: %d\n",j);
49093 }
49094 printf("**** SWIG_InitializeModule: Cast List ******\n");
49095#endif
49096}
49097
49098/* This function will propagate the clientdata field of type to
49099* any new swig_type_info structures that have been added into the list
49100* of equivalent types. It is like calling
49101* SWIG_TypeClientData(type, clientdata) a second time.
49102*/
49103SWIGRUNTIME void
49104SWIG_PropagateClientData(void) {
49105 size_t i;
49106 swig_cast_info *equiv;
49107 static int init_run = 0;
49108
49109 if (init_run) return;
49110 init_run = 1;
49111
49112 for (i = 0; i < swig_module.size; i++) {
49113 if (swig_module.types[i]->clientdata) {
49114 equiv = swig_module.types[i]->cast;
49115 while (equiv) {
49116 if (!equiv->converter) {
49117 if (equiv->type && !equiv->type->clientdata)
49118 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
49119 }
49120 equiv = equiv->next;
49121 }
36ed4f51 49122 }
1bd55598
RD
49123 }
49124}
49125
49126#ifdef __cplusplus
49127#if 0
49128{
49129 /* c-mode */
49130#endif
49131}
49132#endif
49133
49134
49135
49136#ifdef __cplusplus
49137extern "C" {
49138#endif
49139
49140 /* Python-specific SWIG API */
49141#define SWIG_newvarlink() SWIG_Python_newvarlink()
49142#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
49143#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
49144
49145 /* -----------------------------------------------------------------------------
49146 * global variable support code.
49147 * ----------------------------------------------------------------------------- */
49148
49149 typedef struct swig_globalvar {
49150 char *name; /* Name of global variable */
49151 PyObject *(*get_attr)(void); /* Return the current value */
49152 int (*set_attr)(PyObject *); /* Set the value */
49153 struct swig_globalvar *next;
49154 } swig_globalvar;
49155
49156 typedef struct swig_varlinkobject {
49157 PyObject_HEAD
49158 swig_globalvar *vars;
49159 } swig_varlinkobject;
49160
49161 SWIGINTERN PyObject *
49162 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
49163 return PyString_FromString("<Swig global variables>");
49164 }
49165
49166 SWIGINTERN PyObject *
49167 swig_varlink_str(swig_varlinkobject *v) {
49168 PyObject *str = PyString_FromString("(");
49169 swig_globalvar *var;
49170 for (var = v->vars; var; var=var->next) {
49171 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
49172 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
49173 }
49174 PyString_ConcatAndDel(&str,PyString_FromString(")"));
49175 return str;
49176 }
49177
49178 SWIGINTERN int
49179 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
49180 PyObject *str = swig_varlink_str(v);
49181 fprintf(fp,"Swig global variables ");
49182 fprintf(fp,"%s\n", PyString_AsString(str));
49183 Py_DECREF(str);
49184 return 0;
49185 }
49186
49187 SWIGINTERN void
49188 swig_varlink_dealloc(swig_varlinkobject *v) {
49189 swig_globalvar *var = v->vars;
49190 while (var) {
49191 swig_globalvar *n = var->next;
49192 free(var->name);
49193 free(var);
49194 var = n;
36ed4f51 49195 }
1bd55598
RD
49196 }
49197
49198 SWIGINTERN PyObject *
49199 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
49200 PyObject *res = NULL;
49201 swig_globalvar *var = v->vars;
49202 while (var) {
49203 if (strcmp(var->name,n) == 0) {
49204 res = (*var->get_attr)();
49205 break;
49206 }
49207 var = var->next;
36ed4f51 49208 }
1bd55598
RD
49209 if (res == NULL && !PyErr_Occurred()) {
49210 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36ed4f51 49211 }
1bd55598
RD
49212 return res;
49213 }
49214
49215 SWIGINTERN int
49216 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
49217 int res = 1;
49218 swig_globalvar *var = v->vars;
49219 while (var) {
49220 if (strcmp(var->name,n) == 0) {
49221 res = (*var->set_attr)(p);
49222 break;
49223 }
49224 var = var->next;
36ed4f51 49225 }
1bd55598
RD
49226 if (res == 1 && !PyErr_Occurred()) {
49227 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 49228 }
1bd55598
RD
49229 return res;
49230 }
49231
49232 SWIGINTERN PyTypeObject*
49233 swig_varlink_type(void) {
49234 static char varlink__doc__[] = "Swig var link object";
49235 static PyTypeObject varlink_type;
49236 static int type_init = 0;
49237 if (!type_init) {
49238 const PyTypeObject tmp
49239 = {
49240 PyObject_HEAD_INIT(NULL)
49241 0, /* Number of items in variable part (ob_size) */
49242 (char *)"swigvarlink", /* Type name (tp_name) */
49243 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
49244 0, /* Itemsize (tp_itemsize) */
49245 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
49246 (printfunc) swig_varlink_print, /* Print (tp_print) */
49247 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
49248 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
49249 0, /* tp_compare */
49250 (reprfunc) swig_varlink_repr, /* tp_repr */
49251 0, /* tp_as_number */
49252 0, /* tp_as_sequence */
49253 0, /* tp_as_mapping */
49254 0, /* tp_hash */
49255 0, /* tp_call */
49256 (reprfunc)swig_varlink_str, /* tp_str */
49257 0, /* tp_getattro */
49258 0, /* tp_setattro */
49259 0, /* tp_as_buffer */
49260 0, /* tp_flags */
49261 varlink__doc__, /* tp_doc */
49262 0, /* tp_traverse */
49263 0, /* tp_clear */
49264 0, /* tp_richcompare */
49265 0, /* tp_weaklistoffset */
49266#if PY_VERSION_HEX >= 0x02020000
49267 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
49268#endif
49269#if PY_VERSION_HEX >= 0x02030000
49270 0, /* tp_del */
49271#endif
49272#ifdef COUNT_ALLOCS
49273 0,0,0,0 /* tp_alloc -> tp_next */
49274#endif
49275 };
49276 varlink_type = tmp;
49277 varlink_type.ob_type = &PyType_Type;
49278 type_init = 1;
53aa7709 49279 }
1bd55598
RD
49280 return &varlink_type;
49281 }
49282
49283 /* Create a variable linking object for use later */
49284 SWIGINTERN PyObject *
49285 SWIG_Python_newvarlink(void) {
49286 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
49287 if (result) {
49288 result->vars = 0;
49289 }
49290 return ((PyObject*) result);
49291 }
49292
49293 SWIGINTERN void
49294 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
49295 swig_varlinkobject *v = (swig_varlinkobject *) p;
49296 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
49297 if (gv) {
49298 size_t size = strlen(name)+1;
49299 gv->name = (char *)malloc(size);
49300 if (gv->name) {
49301 strncpy(gv->name,name,size);
49302 gv->get_attr = get_attr;
49303 gv->set_attr = set_attr;
49304 gv->next = v->vars;
49305 }
53aa7709 49306 }
1bd55598
RD
49307 v->vars = gv;
49308 }
49309
49310 SWIGINTERN PyObject *
49311 SWIG_globals() {
49312 static PyObject *_SWIG_globals = 0;
49313 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
49314 return _SWIG_globals;
49315 }
49316
49317 /* -----------------------------------------------------------------------------
49318 * constants/methods manipulation
49319 * ----------------------------------------------------------------------------- */
49320
49321 /* Install Constants */
49322 SWIGINTERN void
49323 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
49324 PyObject *obj = 0;
49325 size_t i;
49326 for (i = 0; constants[i].type; ++i) {
49327 switch(constants[i].type) {
49328 case SWIG_PY_POINTER:
49329 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
49330 break;
49331 case SWIG_PY_BINARY:
49332 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
49333 break;
49334 default:
49335 obj = 0;
49336 break;
49337 }
49338 if (obj) {
49339 PyDict_SetItemString(d, constants[i].name, obj);
49340 Py_DECREF(obj);
49341 }
53aa7709 49342 }
1bd55598
RD
49343 }
49344
49345 /* -----------------------------------------------------------------------------*/
49346 /* Fix SwigMethods to carry the callback ptrs when needed */
49347 /* -----------------------------------------------------------------------------*/
49348
49349 SWIGINTERN void
49350 SWIG_Python_FixMethods(PyMethodDef *methods,
49351 swig_const_info *const_table,
49352 swig_type_info **types,
49353 swig_type_info **types_initial) {
49354 size_t i;
49355 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 49356 const char *c = methods[i].ml_doc;
1bd55598
RD
49357 if (c && (c = strstr(c, "swig_ptr: "))) {
49358 int j;
49359 swig_const_info *ci = 0;
3d6c9062 49360 const char *name = c + 10;
1bd55598
RD
49361 for (j = 0; const_table[j].type; ++j) {
49362 if (strncmp(const_table[j].name, name,
49363 strlen(const_table[j].name)) == 0) {
49364 ci = &(const_table[j]);
49365 break;
49366 }
49367 }
49368 if (ci) {
49369 size_t shift = (ci->ptype) - types;
49370 swig_type_info *ty = types_initial[shift];
49371 size_t ldoc = (c - methods[i].ml_doc);
49372 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
49373 char *ndoc = (char*)malloc(ldoc + lptr + 10);
49374 if (ndoc) {
49375 char *buff = ndoc;
49376 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
49377 if (ptr) {
49378 strncpy(buff, methods[i].ml_doc, ldoc);
49379 buff += ldoc;
49380 strncpy(buff, "swig_ptr: ", 10);
49381 buff += 10;
49382 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
49383 methods[i].ml_doc = ndoc;
49384 }
49385 }
49386 }
49387 }
53aa7709 49388 }
1bd55598
RD
49389 }
49390
49391#ifdef __cplusplus
49392}
49393#endif
49394
49395/* -----------------------------------------------------------------------------*
49396 * Partial Init method
49397 * -----------------------------------------------------------------------------*/
49398
49399#ifdef __cplusplus
49400extern "C"
49401#endif
49402SWIGEXPORT void SWIG_init(void) {
49403 PyObject *m, *d;
49404
49405 /* Fix SwigMethods to carry the callback ptrs when needed */
49406 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
49407
49408 m = Py_InitModule((char *) SWIG_name, SwigMethods);
49409 d = PyModule_GetDict(m);
49410
49411 SWIG_InitializeModule(0);
49412 SWIG_InstallConstants(d,swig_const_table);
49413
49414
49415 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
49416 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
49417 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
49418 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
49419 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
49420 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
49421 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
49422 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
49423 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
49424 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
49425 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
49426 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
49427 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
49428 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
49429 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
49430 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
49431 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
49432 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
49433 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
49434 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
49435 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
49436 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
1bd55598
RD
49437 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
49438 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
49439 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
49440 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
49441 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
49442 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
49443 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
49444 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
49445 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
49446 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
49447 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
49448 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
49449 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
49450 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
49451 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
49452 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
49453 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
49454 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
49455 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
49456 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
49457 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
49458 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
49459 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
1bd55598
RD
49460 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
49461 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
49462 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
49463 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
49464 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
49465 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
49466 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
49467 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
49468 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
49469 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
49470 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
49471 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
49472 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
49473 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
49474 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
49475 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
49476 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
49477 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
49478 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
49479 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
49480 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
49481 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
49482 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
49483 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
49484 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
49485 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
49486 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
f5263701 49487 SWIG_Python_SetConstant(d, "TEXT_TYPE_ANY",SWIG_From_int(static_cast< int >(wxTEXT_TYPE_ANY)));
1bd55598
RD
49488 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
49489 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
49490 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
49491 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
49492 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
49493 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
49494 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
49495 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
49496 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
49497 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
49498 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
49499 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
49500 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
49501 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
49502 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
49503 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
49504 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
49505 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
49506 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
49507 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
49508 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
49509 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
49510 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
49511 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
49512 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
49513 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
49514 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
49515 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
49516 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
49517 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
49518 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
49519 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
49520 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
49521 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
49522 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
49523 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 49524 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
110fa173
RD
49525 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
49526 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
49527 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
49528 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
49529 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
1bd55598
RD
49530 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
49531 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
49532 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
49533 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
49534 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
49535 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
49536 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
49537 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
49538 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
49539 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
49540 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 49541 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
1bd55598
RD
49542 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
49543 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
49544 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
49545 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
49546 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
49547 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
49548 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
49549 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
49550 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
49551 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
49552 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
49553 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
49554 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
49555 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
49556 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
49557 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
49558 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
49559 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
49560 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
49561 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
49562 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
49563 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
49564 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
49565 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
49566 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
49567 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
49568 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
49569 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
49570 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
8f514ab4
RD
49571 SWIG_Python_SetConstant(d, "TB_TOP",SWIG_From_int(static_cast< int >(wxTB_TOP)));
49572 SWIG_Python_SetConstant(d, "TB_LEFT",SWIG_From_int(static_cast< int >(wxTB_LEFT)));
49573 SWIG_Python_SetConstant(d, "TB_BOTTOM",SWIG_From_int(static_cast< int >(wxTB_BOTTOM)));
49574 SWIG_Python_SetConstant(d, "TB_RIGHT",SWIG_From_int(static_cast< int >(wxTB_RIGHT)));
1bd55598
RD
49575 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
49576 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
49577 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
49578 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
49579 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
49580 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
49581 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
49582 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
49583 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 49584 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
1bd55598
RD
49585 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
49586 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
49587 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
49588 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
49589 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
49590 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
49591 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
49592 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
49593 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
49594 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
49595 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
49596 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
49597 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
49598 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
49599 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
49600 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
49601 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
49602 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
49603 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
49604 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
49605 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
49606 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
49607 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
49608 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
49609 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
49610 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
49611 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
49612 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
49613 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
49614 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
49615 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
49616 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
49617 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
49618 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
49619 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
49620 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
49621 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
49622 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
49623 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
49624 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
49625 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
49626 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
49627 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
49628 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
49629 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
49630 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
49631 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 49632 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
1bd55598
RD
49633 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
49634 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
49635 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
49636 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
49637 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
49638 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
49639 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
49640 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
49641 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
49642 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
49643 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
49644 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
49645 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
49646 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
49647 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
49648 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
49649 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
49650 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
49651 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
49652 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
49653 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
49654 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
49655 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
49656 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
49657 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
49658 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
49659 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
49660 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
49661 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
49662 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
49663 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
49664 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
49665 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
49666 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
49667 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
49668 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
49669 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
49670 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
49671 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
49672 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
49673 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
49674 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
49675
49676 // Map renamed classes back to their common name for OOR
49677 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
49678
49679 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
49680 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
49681 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
49682 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
49683 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
49684 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
49685 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
49686 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
49687 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
49688 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
49689 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
49690 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
49691 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
49692 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
49693 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
1bd55598
RD
49694 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
49695 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
49696 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
49697 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
49698 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
49699 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
49700 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
49701 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
49702 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
49703 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
49704 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
49705 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
49706 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
49707 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
49708 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
49709 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
49710 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
49711 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
49712 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
49713 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
49714 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
49715 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
49716 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
49717 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
49718 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
49719 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
49720 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
49721 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
49722 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
49723 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
49724 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
49725 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
49726 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
49727 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
49728 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
49729 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
49730 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
49731 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
49732 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
49733 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 49734 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
1bd55598
RD
49735
49736 // Map renamed classes back to their common name for OOR
49737 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
49738 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
49739
49740 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
49741 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
49742 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
49743 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
49744 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
49745 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
1bd55598
RD
49746 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
49747 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
49748 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
49749 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
49750 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
1bd55598
RD
49751
49752 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
49753
49754 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
49755 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
49756 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
49757 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
49758 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
49759 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
49760 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
49761 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
33d6fd3b
RD
49762 SWIG_Python_SetConstant(d, "HL_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_LEFT)));
49763 SWIG_Python_SetConstant(d, "HL_ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxHL_ALIGN_RIGHT)));
49764 SWIG_Python_SetConstant(d, "HL_ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxHL_ALIGN_CENTRE)));
704eda0c
RD
49765 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
49766 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
49767 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
49768 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
49769 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
49770 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
49771 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
49772 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
49773 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
49774 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
49775 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
49776 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
49777 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
49778 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
49779 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
49780 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
49781 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
49782 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
49783 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
49784 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
49785 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
49786 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
49787 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
49788 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
49789 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
49790 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
49791 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
49792 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
49793 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
49794 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
49795 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
49796 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
5172800e
RD
49797 SWIG_addvarlink(SWIG_globals(),(char*)"CollapsiblePaneNameStr",CollapsiblePaneNameStr_get, CollapsiblePaneNameStr_set);
49798 SWIG_Python_SetConstant(d, "CP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCP_DEFAULT_STYLE)));
49799 SWIG_Python_SetConstant(d, "CP_NO_TLW_RESIZE",SWIG_From_int(static_cast< int >(wxCP_NO_TLW_RESIZE)));
49800 PyDict_SetItemString(d, "wxEVT_COMMAND_COLLPANE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLLPANE_CHANGED));
d55e5bfc
RD
49801}
49802