]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_controls_wrap.cpp
Added wxCB_FILENAME
[wxWidgets.git] / wxPython / src / mac / _controls_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
1bd55598 3 * Version 1.3.29
d55e5bfc
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
1bd55598 12#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
d55e5bfc
RD
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
36ed4f51 27};
d55e5bfc
RD
28#endif
29
1bd55598 30/* -----------------------------------------------------------------------------
32fe5131
RD
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
1bd55598 33 * ----------------------------------------------------------------------------- */
d55e5bfc 34
32fe5131
RD
35/* template workaround for compilers that cannot correctly implement the C++ standard */
36#ifndef SWIGTEMPLATEDISAMBIGUATOR
1bd55598
RD
37# if defined(__SUNPRO_CC)
38# if (__SUNPRO_CC <= 0x560)
39# define SWIGTEMPLATEDISAMBIGUATOR template
40# else
41# define SWIGTEMPLATEDISAMBIGUATOR
42# endif
43# else
44# define SWIGTEMPLATEDISAMBIGUATOR
45# endif
36ed4f51 46#endif
d55e5bfc 47
32fe5131
RD
48/* inline attribute */
49#ifndef SWIGINLINE
50# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51# define SWIGINLINE inline
52# else
53# define SWIGINLINE
54# endif
55#endif
56
57/* attribute recognised by some compilers to avoid 'unused' warnings */
58#ifndef SWIGUNUSED
1bd55598
RD
59# if defined(__GNUC__)
60# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61# define SWIGUNUSED __attribute__ ((__unused__))
62# else
63# define SWIGUNUSED
64# endif
65# elif defined(__ICC)
66# define SWIGUNUSED __attribute__ ((__unused__))
32fe5131
RD
67# else
68# define SWIGUNUSED
69# endif
70#endif
71
1bd55598
RD
72#ifndef SWIGUNUSEDPARM
73# ifdef __cplusplus
74# define SWIGUNUSEDPARM(p)
75# else
76# define SWIGUNUSEDPARM(p) p SWIGUNUSED
77# endif
78#endif
79
32fe5131
RD
80/* internal SWIG method */
81#ifndef SWIGINTERN
82# define SWIGINTERN static SWIGUNUSED
83#endif
84
85/* internal inline SWIG method */
86#ifndef SWIGINTERNINLINE
87# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88#endif
89
1bd55598
RD
90/* exporting methods */
91#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92# ifndef GCC_HASCLASSVISIBILITY
93# define GCC_HASCLASSVISIBILITY
94# endif
95#endif
96
32fe5131
RD
97#ifndef SWIGEXPORT
98# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99# if defined(STATIC_LINKED)
100# define SWIGEXPORT
101# else
102# define SWIGEXPORT __declspec(dllexport)
103# endif
104# else
1bd55598
RD
105# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106# define SWIGEXPORT __attribute__ ((visibility("default")))
107# else
108# define SWIGEXPORT
109# endif
32fe5131
RD
110# endif
111#endif
112
113/* calling conventions for Windows */
114#ifndef SWIGSTDCALL
115# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116# define SWIGSTDCALL __stdcall
117# else
118# define SWIGSTDCALL
119# endif
120#endif
121
1bd55598
RD
122/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124# define _CRT_SECURE_NO_DEPRECATE
125#endif
32fe5131 126
d55e5bfc 127
1bd55598 128/* Python.h has to appear first */
36ed4f51 129#include <Python.h>
d55e5bfc 130
1bd55598 131/* -----------------------------------------------------------------------------
36ed4f51 132 * swigrun.swg
d55e5bfc 133 *
1bd55598
RD
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
d55e5bfc 137
36ed4f51
RD
138/* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
32fe5131 140#define SWIG_RUNTIME_VERSION "2"
d55e5bfc 141
36ed4f51
RD
142/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143#ifdef SWIG_TYPE_TABLE
32fe5131
RD
144# define SWIG_QUOTE_STRING(x) #x
145# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
d55e5bfc 147#else
32fe5131 148# define SWIG_TYPE_TABLE_NAME
36ed4f51
RD
149#endif
150
151/*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158*/
32fe5131 159
36ed4f51 160#ifndef SWIGRUNTIME
32fe5131 161# define SWIGRUNTIME SWIGINTERN
36ed4f51 162#endif
32fe5131 163
36ed4f51 164#ifndef SWIGRUNTIMEINLINE
32fe5131 165# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
d55e5bfc
RD
166#endif
167
1bd55598
RD
168/* Generic buffer size */
169#ifndef SWIG_BUFFER_SIZE
170# define SWIG_BUFFER_SIZE 1024
171#endif
172
173/* Flags for pointer conversions */
174#define SWIG_POINTER_DISOWN 0x1
175
176/* Flags for new pointer objects */
177#define SWIG_POINTER_OWN 0x1
178
179
180/*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260#define SWIG_OK (0)
261#define SWIG_ERROR (-1)
262#define SWIG_IsOK(r) (r >= 0)
263#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265/* The CastRankLimit says how many bits are used for the cast rank */
266#define SWIG_CASTRANKLIMIT (1 << 8)
267/* The NewMask denotes the object was created (using new/malloc) */
268#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269/* The TmpMask is for in/out typemaps that use temporal objects */
270#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271/* Simple returning values */
272#define SWIG_BADOBJ (SWIG_ERROR)
273#define SWIG_OLDOBJ (SWIG_OK)
274#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276/* Check, add and del mask methods */
277#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285/* Cast-Rank Mode */
286#if defined(SWIG_CASTRANK_MODE)
287# ifndef SWIG_TypeRank
288# define SWIG_TypeRank unsigned long
289# endif
290# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291# define SWIG_MAXCASTRANK (2)
292# endif
293# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297}
298SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300}
301#else /* no cast-rank mode */
302# define SWIG_AddCast
303# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304#endif
305
306
307
308
32fe5131
RD
309#include <string.h>
310
d55e5bfc
RD
311#ifdef __cplusplus
312extern "C" {
313#endif
314
315typedef void *(*swig_converter_func)(void *);
316typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
32fe5131 318/* Structure to store inforomation on one type */
d55e5bfc 319typedef struct swig_type_info {
32fe5131
RD
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
1bd55598 325 int owndata; /* flag if the structure owns the clientdata */
d55e5bfc
RD
326} swig_type_info;
327
32fe5131
RD
328/* Structure to store a type and conversion function used for casting */
329typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334} swig_cast_info;
335
336/* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346} swig_module_info;
347
36ed4f51
RD
348/*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354*/
355SWIGRUNTIME int
356SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
1bd55598 361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
36ed4f51
RD
362 }
363 return (l1 - f1) - (l2 - f2);
364}
365
366/*
367 Check type equivalence in a name list like <name1>|<name2>|...
32fe5131 368 Return 0 if not equal, 1 if equal
36ed4f51
RD
369*/
370SWIGRUNTIME int
371SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
32fe5131 379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
36ed4f51
RD
380 if (*ne) ++ne;
381 }
382 return equiv;
383}
384
385/*
32fe5131
RD
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
36ed4f51 388*/
32fe5131
RD
389SWIGRUNTIME int
390SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
36ed4f51 397 }
32fe5131
RD
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
36ed4f51 400 }
32fe5131 401 return equiv;
36ed4f51
RD
402}
403
32fe5131
RD
404
405/* think of this as a c++ template<> or a scheme macro */
406#define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
36ed4f51
RD
427/*
428 Check the typename
429*/
32fe5131 430SWIGRUNTIME swig_cast_info *
36ed4f51 431SWIG_TypeCheck(const char *c, swig_type_info *ty) {
32fe5131
RD
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433}
434
435/* Same as previous function, except strcmp is replaced with a pointer comparison */
436SWIGRUNTIME swig_cast_info *
437SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
36ed4f51
RD
439}
440
441/*
442 Cast a pointer up an inheritance hierarchy
443*/
444SWIGRUNTIMEINLINE void *
32fe5131 445SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
36ed4f51
RD
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447}
448
449/*
450 Dynamic pointer casting. Down an inheritance hierarchy
451*/
452SWIGRUNTIME swig_type_info *
453SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461}
462
463/*
464 Return the name associated with this type
465*/
466SWIGRUNTIMEINLINE const char *
467SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469}
470
471/*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474*/
475SWIGRUNTIME const char *
476SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
1bd55598 481 if (!type) return NULL;
36ed4f51
RD
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491}
492
36ed4f51
RD
493/*
494 Set the clientdata field for a type
495*/
496SWIGRUNTIME void
32fe5131
RD
497SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
36ed4f51
RD
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
32fe5131
RD
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
36ed4f51 507 }
32fe5131
RD
508 }
509 cast = cast->next;
510 }
511}
1bd55598
RD
512SWIGRUNTIME void
513SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516}
517
32fe5131
RD
518/*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525*/
526SWIGRUNTIME swig_type_info *
527SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
36ed4f51 556 }
32fe5131
RD
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560}
561
562/*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570*/
571SWIGRUNTIME swig_type_info *
572SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
36ed4f51 591 }
32fe5131
RD
592
593 /* neither found a match */
594 return 0;
36ed4f51
RD
595}
596
597/*
598 Pack binary data into a string
599*/
600SWIGRUNTIME char *
601SWIG_PackData(char *c, void *ptr, size_t sz) {
32fe5131
RD
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
36ed4f51 605 for (; u != eu; ++u) {
32fe5131 606 register unsigned char uu = *u;
36ed4f51
RD
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611}
612
613/*
614 Unpack binary data from a string
615*/
616SWIGRUNTIME const char *
617SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
32fe5131 619 register const unsigned char *eu = u + sz;
36ed4f51 620 for (; u != eu; ++u) {
32fe5131 621 register char d = *(c++);
1bd55598 622 register unsigned char uu;
36ed4f51
RD
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639}
640
36ed4f51
RD
641/*
642 Pack 'void *' into a string buffer.
643*/
644SWIGRUNTIME char *
645SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653}
654
655SWIGRUNTIME const char *
656SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666}
667
668SWIGRUNTIME char *
669SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681}
d55e5bfc 682
36ed4f51
RD
683SWIGRUNTIME const char *
684SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694}
d55e5bfc
RD
695
696#ifdef __cplusplus
697}
698#endif
699
1bd55598
RD
700/* Errors in SWIG */
701#define SWIG_UnknownError -1
702#define SWIG_IOError -2
703#define SWIG_RuntimeError -3
704#define SWIG_IndexError -4
705#define SWIG_TypeError -5
706#define SWIG_DivisionByZero -6
707#define SWIG_OverflowError -7
708#define SWIG_SyntaxError -8
709#define SWIG_ValueError -9
710#define SWIG_SystemError -10
711#define SWIG_AttributeError -11
712#define SWIG_MemoryError -12
713#define SWIG_NullReferenceError -13
d55e5bfc 714
1bd55598
RD
715
716
717/* Python.h has to appear first */
718#include <Python.h>
719
720/* Add PyOS_snprintf for old Pythons */
721#if PY_VERSION_HEX < 0x02020000
722# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723# define PyOS_snprintf _snprintf
724# else
725# define PyOS_snprintf snprintf
726# endif
727#endif
728
729/* A crude PyString_FromFormat implementation for old Pythons */
730#if PY_VERSION_HEX < 0x02020000
731
732#ifndef SWIG_PYBUFFER_SIZE
733# define SWIG_PYBUFFER_SIZE 1024
734#endif
735
736static PyObject *
737PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745}
746#endif
747
748/* Add PyObject_Del for old Pythons */
749#if PY_VERSION_HEX < 0x01060000
750# define PyObject_Del(op) PyMem_DEL((op))
751#endif
752#ifndef PyObject_DEL
753# define PyObject_DEL PyObject_Del
754#endif
755
756/* A crude PyExc_StopIteration exception for old Pythons */
757#if PY_VERSION_HEX < 0x02020000
758# ifndef PyExc_StopIteration
759# define PyExc_StopIteration PyExc_RuntimeError
760# endif
761# ifndef PyObject_GenericGetAttr
762# define PyObject_GenericGetAttr 0
763# endif
36ed4f51 764#endif
1bd55598
RD
765/* Py_NotImplemented is defined in 2.1 and up. */
766#if PY_VERSION_HEX < 0x02010000
767# ifndef Py_NotImplemented
768# define Py_NotImplemented PyExc_RuntimeError
769# endif
770#endif
771
772
773/* A crude PyString_AsStringAndSize implementation for old Pythons */
774#if PY_VERSION_HEX < 0x02010000
775# ifndef PyString_AsStringAndSize
776# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777# endif
778#endif
779
780/* PySequence_Size for old Pythons */
781#if PY_VERSION_HEX < 0x02000000
782# ifndef PySequence_Size
783# define PySequence_Size PySequence_Length
784# endif
785#endif
786
787
788/* PyBool_FromLong for old Pythons */
789#if PY_VERSION_HEX < 0x02030000
790static
791PyObject *PyBool_FromLong(long ok)
792{
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796}
797#endif
798
c370783e 799
36ed4f51 800/* -----------------------------------------------------------------------------
1bd55598 801 * error manipulation
36ed4f51 802 * ----------------------------------------------------------------------------- */
d55e5bfc 803
1bd55598
RD
804SWIGRUNTIME PyObject*
805SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845}
d55e5bfc 846
1bd55598
RD
847
848SWIGRUNTIME void
849SWIG_Python_AddErrorMsg(const char* mesg)
850{
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866}
867
868
869
870#if defined(SWIG_PYTHON_NO_THREADS)
871# if defined(SWIG_PYTHON_THREADS)
872# undef SWIG_PYTHON_THREADS
873# endif
874#endif
875#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878# define SWIG_PYTHON_USE_GIL
879# endif
880# endif
881# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882# ifndef SWIG_PYTHON_INITIALIZE_THREADS
883# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884# endif
885# ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906# else /* C code */
907# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911# endif
912# else /* Old thread way, not implemented, user must provide it */
913# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914# define SWIG_PYTHON_INITIALIZE_THREADS
915# endif
916# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918# endif
919# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920# define SWIG_PYTHON_THREAD_END_BLOCK
921# endif
922# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924# endif
925# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926# define SWIG_PYTHON_THREAD_END_ALLOW
927# endif
928# endif
929#else /* No thread support */
930# define SWIG_PYTHON_INITIALIZE_THREADS
931# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932# define SWIG_PYTHON_THREAD_END_BLOCK
933# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934# define SWIG_PYTHON_THREAD_END_ALLOW
36ed4f51 935#endif
d55e5bfc 936
1bd55598
RD
937/* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
36ed4f51 940
1bd55598
RD
941#ifdef __cplusplus
942extern "C" {
943#if 0
944} /* cc-mode */
945#endif
946#endif
36ed4f51
RD
947
948/* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
d55e5bfc 951
36ed4f51 952/* Constant Types */
36ed4f51
RD
953#define SWIG_PY_POINTER 4
954#define SWIG_PY_BINARY 5
955
956/* Constant information structure */
957typedef struct swig_const_info {
1bd55598
RD
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
36ed4f51 964} swig_const_info;
d55e5bfc 965
d55e5bfc 966#ifdef __cplusplus
1bd55598
RD
967#if 0
968{ /* cc-mode */
969#endif
36ed4f51
RD
970}
971#endif
d55e5bfc 972
d55e5bfc 973
1bd55598
RD
974/* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
36ed4f51
RD
978 * pyrun.swg
979 *
1bd55598
RD
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
36ed4f51 983 *
1bd55598 984 * ----------------------------------------------------------------------------- */
d55e5bfc 985
36ed4f51 986/* Common SWIG API */
d55e5bfc 987
4f89b6b7
RD
988#if PY_VERSION_HEX < 0x02050000
989typedef int Py_ssize_t;
990#endif
991
1bd55598
RD
992/* for raw pointers */
993#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999#define swig_owntype int
d55e5bfc 1000
1bd55598
RD
1001/* for raw packed data */
1002#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
d55e5bfc 1004
1bd55598
RD
1005/* for class or struct pointers */
1006#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
d55e5bfc 1008
1bd55598
RD
1009/* for C or C++ function pointers */
1010#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
d55e5bfc 1012
1bd55598
RD
1013/* for C++ member pointers, ie, member methods */
1014#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
32fe5131 1016
d55e5bfc 1017
1bd55598 1018/* Runtime API */
d55e5bfc 1019
1bd55598
RD
1020#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
32fe5131 1023
1bd55598
RD
1024#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028#define SWIG_fail goto fail
32fe5131 1029
d55e5bfc 1030
1bd55598 1031/* Runtime API implementation */
36ed4f51 1032
1bd55598 1033/* Error manipulation */
36ed4f51 1034
1bd55598
RD
1035SWIGINTERN void
1036SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
d55e5bfc
RD
1041}
1042
1bd55598
RD
1043SWIGINTERN void
1044SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
36ed4f51 1048}
d55e5bfc 1049
1bd55598 1050#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
32fe5131 1051
1bd55598 1052/* Set a constant value */
36ed4f51 1053
1bd55598
RD
1054SWIGINTERN void
1055SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
d55e5bfc
RD
1058}
1059
1bd55598 1060/* Append a value to the result obj */
d55e5bfc 1061
1bd55598
RD
1062SWIGINTERN PyObject*
1063SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080#else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
c370783e 1088 } else {
1bd55598
RD
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
c370783e 1100 }
1bd55598
RD
1101 return result;
1102#endif
d55e5bfc 1103}
36ed4f51 1104
1bd55598 1105/* Unpack the argument tuple */
36ed4f51 1106
1bd55598
RD
1107SWIGINTERN int
1108SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109{
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143}
1144
1145/* A functor is a function object with one single object argument */
1146#if PY_VERSION_HEX >= 0x02020000
1147#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148#else
1149#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150#endif
1151
1152/*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155*/
1156#ifdef __cplusplus
1157#define SWIG_STATIC_POINTER(var) var
1158#else
1159#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160#endif
1161
1162/* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166/* Flags for new pointer objects */
1167#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172#ifdef __cplusplus
1173extern "C" {
1174#if 0
1175} /* cc-mode */
1176#endif
1177#endif
1178
1179/* How to access Py_None */
1180#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181# ifndef SWIG_PYTHON_NO_BUILD_NONE
1182# ifndef SWIG_PYTHON_BUILD_NONE
1183# define SWIG_PYTHON_BUILD_NONE
1184# endif
1185# endif
1186#endif
1187
1188#ifdef SWIG_PYTHON_BUILD_NONE
1189# ifdef Py_None
1190# undef Py_None
1191# define Py_None SWIG_Py_None()
1192# endif
1193SWIGRUNTIMEINLINE PyObject *
1194_SWIG_Py_None(void)
1195{
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199}
1200SWIGRUNTIME PyObject *
1201SWIG_Py_None(void)
1202{
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205}
1206#endif
1207
1208/* The python void return value */
1209
1210SWIGRUNTIMEINLINE PyObject *
1211SWIG_Py_Void(void)
1212{
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216}
1217
1218/* PySwigClientData */
1219
1220typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227} PySwigClientData;
1228
1229SWIGRUNTIMEINLINE int
1230SWIG_Python_CheckImplicit(swig_type_info *ty)
1231{
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234}
1235
1236SWIGRUNTIMEINLINE PyObject *
1237SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241}
1242
1243
1244SWIGRUNTIME PySwigClientData *
1245PySwigClientData_New(PyObject* obj)
1246{
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260#if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262#else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264#endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284#ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286#else
1287 data->delargs = 0;
1288#endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295}
1296
1297SWIGRUNTIME void
1298PySwigClientData_Del(PySwigClientData* data)
1299{
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303}
1304
1305/* =============== PySwigObject =====================*/
1306
1307typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313} PySwigObject;
1314
1315SWIGRUNTIME PyObject *
1316PySwigObject_long(PySwigObject *v)
1317{
1318 return PyLong_FromVoidPtr(v->ptr);
1319}
1320
1321SWIGRUNTIME PyObject *
1322PySwigObject_format(const char* fmt, PySwigObject *v)
1323{
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337}
1338
1339SWIGRUNTIME PyObject *
1340PySwigObject_oct(PySwigObject *v)
1341{
1342 return PySwigObject_format("%o",v);
1343}
1344
1345SWIGRUNTIME PyObject *
1346PySwigObject_hex(PySwigObject *v)
1347{
1348 return PySwigObject_format("%x",v);
1349}
1350
1351SWIGRUNTIME PyObject *
1352#ifdef METH_NOARGS
1353PySwigObject_repr(PySwigObject *v)
1354#else
1355PySwigObject_repr(PySwigObject *v, PyObject *args)
1356#endif
1357{
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363#ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365#else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367#endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371}
1372
1373SWIGRUNTIME int
1374PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375{
1376#ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378#else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380#endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388}
1389
1390SWIGRUNTIME PyObject *
1391PySwigObject_str(PySwigObject *v)
1392{
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396}
1397
1398SWIGRUNTIME int
1399PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400{
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404}
1405
1406SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408SWIGRUNTIME PyTypeObject*
1409PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412}
1413
1414SWIGRUNTIMEINLINE int
1415PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418}
1419
1420SWIGRUNTIME PyObject *
1421PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423SWIGRUNTIME void
1424PySwigObject_dealloc(PyObject *v)
1425{
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450#endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455}
1456
1457SWIGRUNTIME PyObject*
1458PySwigObject_append(PyObject* v, PyObject* next)
1459{
1460 PySwigObject *sobj = (PySwigObject *) v;
1461#ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465#endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472}
1473
1474SWIGRUNTIME PyObject*
1475#ifdef METH_NOARGS
1476PySwigObject_next(PyObject* v)
1477#else
1478PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479#endif
1480{
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488}
1489
1490SWIGINTERN PyObject*
1491#ifdef METH_NOARGS
1492PySwigObject_disown(PyObject *v)
1493#else
1494PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495#endif
1496{
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500}
1501
1502SWIGINTERN PyObject*
1503#ifdef METH_NOARGS
1504PySwigObject_acquire(PyObject *v)
1505#else
1506PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507#endif
1508{
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512}
1513
1514SWIGINTERN PyObject*
1515PySwigObject_own(PyObject *v, PyObject *args)
1516{
1517 PyObject *val = 0;
1518#if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520#else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522#endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531#ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537#else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543#endif
1544 }
1545 return obj;
1546 }
1547}
1548
1549#ifdef METH_O
1550static PyMethodDef
1551swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559};
1560#else
1561static PyMethodDef
1562swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570};
1571#endif
1572
1573#if PY_VERSION_HEX < 0x02020000
1574SWIGINTERN PyObject *
1575PySwigObject_getattr(PySwigObject *sobj,char *name)
1576{
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578}
1579#endif
1580
1581SWIGRUNTIME PyTypeObject*
1582_PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
36ed4f51
RD
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
32fe5131 1609#if PY_VERSION_HEX >= 0x02020000
36ed4f51 1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
32fe5131
RD
1611#elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
36ed4f51
RD
1613#endif
1614 };
1615
1bd55598 1616 static PyTypeObject pyswigobject_type;
32fe5131 1617 static int type_init = 0;
36ed4f51 1618 if (!type_init) {
1bd55598
RD
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628#if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630#else
1631 (getattrfunc)0, /* tp_getattr */
36ed4f51 1632#endif
1bd55598
RD
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
36ed4f51 1651#if PY_VERSION_HEX >= 0x02020000
1bd55598
RD
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
d55e5bfc 1672#endif
36ed4f51 1673#if PY_VERSION_HEX >= 0x02030000
1bd55598 1674 0, /* tp_del */
36ed4f51
RD
1675#endif
1676#ifdef COUNT_ALLOCS
1bd55598 1677 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1678#endif
1bd55598 1679 };
32fe5131 1680 pyswigobject_type = tmp;
1bd55598 1681 pyswigobject_type.ob_type = &PyType_Type;
36ed4f51
RD
1682 type_init = 1;
1683 }
32fe5131 1684 return &pyswigobject_type;
36ed4f51
RD
1685}
1686
1687SWIGRUNTIME PyObject *
1bd55598 1688PySwigObject_New(void *ptr, swig_type_info *ty, int own)
36ed4f51 1689{
1bd55598
RD
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
32fe5131 1696 }
1bd55598 1697 return (PyObject *)sobj;
36ed4f51
RD
1698}
1699
1700/* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1bd55598 1707 swig_type_info *ty;
36ed4f51
RD
1708 size_t size;
1709} PySwigPacked;
1710
1711SWIGRUNTIME int
1bd55598 1712PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
36ed4f51
RD
1713{
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1bd55598 1720 fputs(v->ty->name,fp);
36ed4f51
RD
1721 fputs(">", fp);
1722 return 0;
1723}
1724
1725SWIGRUNTIME PyObject *
1726PySwigPacked_repr(PySwigPacked *v)
1727{
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1bd55598 1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
36ed4f51 1731 } else {
1bd55598 1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
36ed4f51
RD
1733 }
1734}
1735
1736SWIGRUNTIME PyObject *
1737PySwigPacked_str(PySwigPacked *v)
1738{
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1bd55598 1741 return PyString_FromFormat("%s%s", result, v->ty->name);
36ed4f51 1742 } else {
1bd55598 1743 return PyString_FromString(v->ty->name);
36ed4f51
RD
1744 }
1745}
1746
1747SWIGRUNTIME int
1748PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749{
1bd55598
RD
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
36ed4f51
RD
1754}
1755
1bd55598 1756SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
36ed4f51
RD
1757
1758SWIGRUNTIME PyTypeObject*
32fe5131 1759PySwigPacked_type(void) {
1bd55598
RD
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762}
1763
1764SWIGRUNTIMEINLINE int
1765PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768}
1769
1770SWIGRUNTIME void
1771PySwigPacked_dealloc(PyObject *v)
1772{
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778}
1779
1780SWIGRUNTIME PyTypeObject*
1781_PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814#if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
36ed4f51
RD
1835#endif
1836#if PY_VERSION_HEX >= 0x02030000
1bd55598 1837 0, /* tp_del */
36ed4f51
RD
1838#endif
1839#ifdef COUNT_ALLOCS
1bd55598 1840 0,0,0,0 /* tp_alloc -> tp_next */
36ed4f51 1841#endif
1bd55598 1842 };
32fe5131 1843 pyswigpacked_type = tmp;
1bd55598 1844 pyswigpacked_type.ob_type = &PyType_Type;
36ed4f51
RD
1845 type_init = 1;
1846 }
32fe5131 1847 return &pyswigpacked_type;
36ed4f51
RD
1848}
1849
1850SWIGRUNTIME PyObject *
1bd55598 1851PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
36ed4f51 1852{
1bd55598
RD
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
36ed4f51 1855 void *pack = malloc(size);
32fe5131
RD
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1bd55598
RD
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
32fe5131 1864 }
36ed4f51 1865 }
1bd55598 1866 return (PyObject *) sobj;
36ed4f51
RD
1867}
1868
1bd55598 1869SWIGRUNTIME swig_type_info *
36ed4f51
RD
1870PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871{
1bd55598
RD
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
36ed4f51
RD
1880}
1881
36ed4f51 1882/* -----------------------------------------------------------------------------
1bd55598 1883 * pointers/data manipulation
36ed4f51
RD
1884 * ----------------------------------------------------------------------------- */
1885
1bd55598
RD
1886SWIGRUNTIMEINLINE PyObject *
1887_SWIG_This(void)
1888{
1889 return PyString_FromString("this");
1890}
36ed4f51 1891
1bd55598
RD
1892SWIGRUNTIME PyObject *
1893SWIG_This(void)
1894{
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897}
36ed4f51 1898
1bd55598 1899/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
36ed4f51 1900
1bd55598
RD
1901SWIGRUNTIME PySwigObject *
1902SWIG_Python_GetSwigThis(PyObject *pyobj)
36ed4f51 1903{
1bd55598
RD
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917#ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922#endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
36ed4f51 1926 } else {
1bd55598
RD
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
36ed4f51 1929 }
36ed4f51 1930 }
1bd55598
RD
1931 }
1932#else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940#endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
36ed4f51
RD
1947 }
1948}
1949
1bd55598
RD
1950/* Acquire a pointer value */
1951
1952SWIGRUNTIME int
1953SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
36ed4f51 1961 }
1bd55598 1962 return 0;
36ed4f51
RD
1963}
1964
1bd55598
RD
1965/* Convert a pointer value */
1966
36ed4f51 1967SWIGRUNTIME int
1bd55598
RD
1968SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
36ed4f51 1992 } else {
1bd55598
RD
1993 if (ptr) *ptr = vptr;
1994 break;
36ed4f51 1995 }
36ed4f51 1996 }
1bd55598
RD
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
36ed4f51
RD
2042 }
2043}
2044
1bd55598
RD
2045/* Convert a function ptr value */
2046
36ed4f51 2047SWIGRUNTIME int
1bd55598
RD
2048SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
36ed4f51 2051 } else {
1bd55598
RD
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
4f89b6b7 2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
1bd55598
RD
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
36ed4f51
RD
2069 }
2070}
2071
1bd55598 2072/* Convert a packed value value */
36ed4f51 2073
36ed4f51 2074SWIGRUNTIME int
1bd55598
RD
2075SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
36ed4f51 2084 }
1bd55598
RD
2085 return SWIG_OK;
2086}
36ed4f51 2087
1bd55598
RD
2088/* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
36ed4f51 2091
1bd55598
RD
2092/*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095*/
36ed4f51 2096
1bd55598
RD
2097SWIGRUNTIME PyObject*
2098SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099{
2100#if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
36ed4f51 2115 }
1bd55598
RD
2116#else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119#endif
36ed4f51 2120 }
1bd55598
RD
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
36ed4f51 2126 }
1bd55598
RD
2127 return inst;
2128#else
2129#if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136#else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
36ed4f51 2140 }
1bd55598
RD
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
36ed4f51 2147 }
1bd55598
RD
2148#ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150#endif
2151#ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153#endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156#endif
2157#endif
36ed4f51
RD
2158}
2159
1bd55598
RD
2160SWIGRUNTIME void
2161SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162{
2163 PyObject *dict;
2164#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
36ed4f51 2175#endif
1bd55598
RD
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179}
36ed4f51 2180
1bd55598
RD
2181
2182SWIGINTERN PyObject *
2183SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
36ed4f51 2191 } else {
1bd55598 2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
36ed4f51 2193 }
1bd55598 2194 return SWIG_Py_Void();
36ed4f51 2195 }
1bd55598
RD
2196}
2197
2198/* Create a new pointer object */
36ed4f51 2199
36ed4f51 2200SWIGRUNTIME PyObject *
1bd55598 2201SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
36ed4f51 2202 if (!ptr) {
1bd55598
RD
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
36ed4f51 2213 }
36ed4f51 2214 }
1bd55598 2215 return robj;
36ed4f51 2216 }
36ed4f51
RD
2217}
2218
1bd55598
RD
2219/* Create a new packed object */
2220
2221SWIGRUNTIMEINLINE PyObject *
36ed4f51 2222SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
1bd55598 2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
36ed4f51
RD
2224}
2225
2226/* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230#ifdef SWIG_LINK_RUNTIME
2231void *SWIG_ReturnGlobalTypeList(void *);
2232#endif
2233
32fe5131
RD
2234SWIGRUNTIME swig_module_info *
2235SWIG_Python_GetModule(void) {
36ed4f51
RD
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239#ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241#else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
36ed4f51 2248#endif
32fe5131
RD
2249 }
2250 return (swig_module_info *) type_pointer;
36ed4f51
RD
2251}
2252
32fe5131
RD
2253#if PY_MAJOR_VERSION < 2
2254/* PyModule_AddObject function was introduced in Python 2.0. The following function
1bd55598 2255 is copied out of Python/modsupport.c in python version 2.3.4 */
32fe5131
RD
2256SWIGINTERN int
2257PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258{
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
1bd55598 2263 return SWIG_ERROR;
32fe5131
RD
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
1bd55598 2268 return SWIG_ERROR;
32fe5131
RD
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
1bd55598 2276 return SWIG_ERROR;
32fe5131
RD
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
1bd55598 2279 return SWIG_ERROR;
32fe5131 2280 Py_DECREF(o);
1bd55598 2281 return SWIG_OK;
36ed4f51 2282}
32fe5131 2283#endif
36ed4f51 2284
1bd55598
RD
2285SWIGRUNTIME void
2286SWIG_Python_DestroyModule(void *vptr)
2287{
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299}
2300
32fe5131
RD
2301SWIGRUNTIME void
2302SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
1bd55598 2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
32fe5131
RD
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
1bd55598
RD
2310 } else {
2311 Py_XDECREF(pointer);
32fe5131
RD
2312 }
2313}
36ed4f51 2314
1bd55598
RD
2315/* The python cached type query */
2316SWIGRUNTIME PyObject *
2317SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
36ed4f51 2320}
36ed4f51 2321
1bd55598
RD
2322SWIGRUNTIME swig_type_info *
2323SWIG_Python_TypeQuery(const char *type)
2324{
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342}
2343
2344/*
2345 For backward compatibility only
2346*/
2347#define SWIG_POINTER_EXCEPTION 0
2348#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351SWIGRUNTIME int
2352SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353{
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374}
2375
2376SWIGRUNTIME int
2377SWIG_Python_ArgFail(int argnum)
2378{
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387}
2388
2389SWIGRUNTIMEINLINE const char *
2390PySwigObject_GetDesc(PyObject *self)
2391{
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395}
2396
2397SWIGRUNTIME void
2398SWIG_Python_TypeError(const char *type, PyObject *obj)
2399{
2400 if (type) {
2401#if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410#endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431}
2432
2433
2434/* Convert a pointer value, signal an exception on a type mismatch */
2435SWIGRUNTIME void *
2436SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446}
2447
2448
2449#ifdef __cplusplus
2450#if 0
2451{ /* cc-mode */
2452#endif
2453}
2454#endif
2455
2456
2457
2458#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464/* -------- TYPES TABLE (BEGIN) -------- */
2465
2466#define SWIGTYPE_p_bool swig_types[0]
2467#define SWIGTYPE_p_char swig_types[1]
32fe5131
RD
2468#define SWIGTYPE_p_form_ops_t swig_types[2]
2469#define SWIGTYPE_p_int swig_types[3]
2470#define SWIGTYPE_p_long swig_types[4]
2471#define SWIGTYPE_p_unsigned_char swig_types[5]
2472#define SWIGTYPE_p_unsigned_int swig_types[6]
2473#define SWIGTYPE_p_unsigned_long swig_types[7]
2474#define SWIGTYPE_p_void swig_types[8]
2475#define SWIGTYPE_p_wxANIHandler swig_types[9]
2476#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477#define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478#define SWIGTYPE_p_wxArrayInt swig_types[12]
2479#define SWIGTYPE_p_wxArrayString swig_types[13]
2480#define SWIGTYPE_p_wxBMPHandler swig_types[14]
2481#define SWIGTYPE_p_wxBitmap swig_types[15]
2482#define SWIGTYPE_p_wxBitmapButton swig_types[16]
2483#define SWIGTYPE_p_wxBookCtrlBase swig_types[17]
2484#define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[18]
2485#define SWIGTYPE_p_wxBoxSizer swig_types[19]
2486#define SWIGTYPE_p_wxButton swig_types[20]
2487#define SWIGTYPE_p_wxCURHandler swig_types[21]
2488#define SWIGTYPE_p_wxCheckBox swig_types[22]
2489#define SWIGTYPE_p_wxCheckListBox swig_types[23]
2490#define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491#define SWIGTYPE_p_wxChoice swig_types[25]
2492#define SWIGTYPE_p_wxChoicebook swig_types[26]
2493#define SWIGTYPE_p_wxChoicebookEvent swig_types[27]
2131d850
RD
2494#define SWIGTYPE_p_wxClipboardTextEvent swig_types[28]
2495#define SWIGTYPE_p_wxCloseEvent swig_types[29]
2496#define SWIGTYPE_p_wxColour swig_types[30]
b850e7f3
RD
2497#define SWIGTYPE_p_wxColourPickerCtrl swig_types[31]
2498#define SWIGTYPE_p_wxColourPickerEvent swig_types[32]
2499#define SWIGTYPE_p_wxComboBox swig_types[33]
2500#define SWIGTYPE_p_wxCommandEvent swig_types[34]
2501#define SWIGTYPE_p_wxContextHelp swig_types[35]
2502#define SWIGTYPE_p_wxContextHelpButton swig_types[36]
2503#define SWIGTYPE_p_wxContextMenuEvent swig_types[37]
2504#define SWIGTYPE_p_wxControl swig_types[38]
2505#define SWIGTYPE_p_wxControlWithItems swig_types[39]
2506#define SWIGTYPE_p_wxCursor swig_types[40]
2507#define SWIGTYPE_p_wxDC swig_types[41]
2508#define SWIGTYPE_p_wxDateEvent swig_types[42]
2509#define SWIGTYPE_p_wxDatePickerCtrl swig_types[43]
2510#define SWIGTYPE_p_wxDateTime swig_types[44]
2511#define SWIGTYPE_p_wxDirFilterListCtrl swig_types[45]
2512#define SWIGTYPE_p_wxDirPickerCtrl swig_types[46]
2513#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[47]
2514#define SWIGTYPE_p_wxDropFilesEvent swig_types[48]
2515#define SWIGTYPE_p_wxDuplexMode swig_types[49]
2516#define SWIGTYPE_p_wxEraseEvent swig_types[50]
2517#define SWIGTYPE_p_wxEvent swig_types[51]
2518#define SWIGTYPE_p_wxEvtHandler swig_types[52]
2519#define SWIGTYPE_p_wxFSFile swig_types[53]
2520#define SWIGTYPE_p_wxFileDirPickerEvent swig_types[54]
2521#define SWIGTYPE_p_wxFilePickerCtrl swig_types[55]
2522#define SWIGTYPE_p_wxFileSystem swig_types[56]
2523#define SWIGTYPE_p_wxFlexGridSizer swig_types[57]
2524#define SWIGTYPE_p_wxFocusEvent swig_types[58]
2525#define SWIGTYPE_p_wxFont swig_types[59]
2526#define SWIGTYPE_p_wxFontPickerCtrl swig_types[60]
2527#define SWIGTYPE_p_wxFontPickerEvent swig_types[61]
2528#define SWIGTYPE_p_wxGBSizerItem swig_types[62]
2529#define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530#define SWIGTYPE_p_wxGauge swig_types[64]
2531#define SWIGTYPE_p_wxGenericDirCtrl swig_types[65]
2532#define SWIGTYPE_p_wxGenericDragImage swig_types[66]
2533#define SWIGTYPE_p_wxGridBagSizer swig_types[67]
2534#define SWIGTYPE_p_wxGridSizer swig_types[68]
2535#define SWIGTYPE_p_wxHelpEvent swig_types[69]
2536#define SWIGTYPE_p_wxHelpProvider swig_types[70]
2537#define SWIGTYPE_p_wxHyperlinkCtrl swig_types[71]
2538#define SWIGTYPE_p_wxHyperlinkEvent swig_types[72]
2539#define SWIGTYPE_p_wxICOHandler swig_types[73]
2540#define SWIGTYPE_p_wxIcon swig_types[74]
2541#define SWIGTYPE_p_wxIconizeEvent swig_types[75]
2542#define SWIGTYPE_p_wxIdleEvent swig_types[76]
2543#define SWIGTYPE_p_wxImage swig_types[77]
2544#define SWIGTYPE_p_wxImageHandler swig_types[78]
2545#define SWIGTYPE_p_wxImageList swig_types[79]
2546#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[80]
2547#define SWIGTYPE_p_wxInitDialogEvent swig_types[81]
2548#define SWIGTYPE_p_wxItemContainer swig_types[82]
2549#define SWIGTYPE_p_wxJPEGHandler swig_types[83]
2550#define SWIGTYPE_p_wxKeyEvent swig_types[84]
2551#define SWIGTYPE_p_wxLayoutConstraints swig_types[85]
2552#define SWIGTYPE_p_wxListBox swig_types[86]
2553#define SWIGTYPE_p_wxListEvent swig_types[87]
2554#define SWIGTYPE_p_wxListItem swig_types[88]
2555#define SWIGTYPE_p_wxListItemAttr swig_types[89]
2556#define SWIGTYPE_p_wxListView swig_types[90]
2557#define SWIGTYPE_p_wxListbook swig_types[91]
2558#define SWIGTYPE_p_wxListbookEvent swig_types[92]
2559#define SWIGTYPE_p_wxMaximizeEvent swig_types[93]
2560#define SWIGTYPE_p_wxMemoryDC swig_types[94]
2561#define SWIGTYPE_p_wxMenu swig_types[95]
2562#define SWIGTYPE_p_wxMenuBar swig_types[96]
2563#define SWIGTYPE_p_wxMenuEvent swig_types[97]
2564#define SWIGTYPE_p_wxMenuItem swig_types[98]
2565#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[99]
2566#define SWIGTYPE_p_wxMouseEvent swig_types[100]
2567#define SWIGTYPE_p_wxMoveEvent swig_types[101]
2568#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[102]
2569#define SWIGTYPE_p_wxNcPaintEvent swig_types[103]
2570#define SWIGTYPE_p_wxNotebook swig_types[104]
2571#define SWIGTYPE_p_wxNotebookEvent swig_types[105]
2572#define SWIGTYPE_p_wxNotifyEvent swig_types[106]
2573#define SWIGTYPE_p_wxObject swig_types[107]
2574#define SWIGTYPE_p_wxPCXHandler swig_types[108]
2575#define SWIGTYPE_p_wxPNGHandler swig_types[109]
2576#define SWIGTYPE_p_wxPNMHandler swig_types[110]
2577#define SWIGTYPE_p_wxPaintEvent swig_types[111]
2578#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[112]
2579#define SWIGTYPE_p_wxPaperSize swig_types[113]
2580#define SWIGTYPE_p_wxPickerBase swig_types[114]
2581#define SWIGTYPE_p_wxPoint swig_types[115]
2582#define SWIGTYPE_p_wxPyApp swig_types[116]
2583#define SWIGTYPE_p_wxPyCommandEvent swig_types[117]
2584#define SWIGTYPE_p_wxPyControl swig_types[118]
2585#define SWIGTYPE_p_wxPyEvent swig_types[119]
2586#define SWIGTYPE_p_wxPyImageHandler swig_types[120]
2587#define SWIGTYPE_p_wxPyListCtrl swig_types[121]
2588#define SWIGTYPE_p_wxPySizer swig_types[122]
2589#define SWIGTYPE_p_wxPyTreeCtrl swig_types[123]
2590#define SWIGTYPE_p_wxPyTreeItemData swig_types[124]
2591#define SWIGTYPE_p_wxPyValidator swig_types[125]
2592#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[126]
2593#define SWIGTYPE_p_wxRadioBox swig_types[127]
2594#define SWIGTYPE_p_wxRadioButton swig_types[128]
2595#define SWIGTYPE_p_wxRect swig_types[129]
2596#define SWIGTYPE_p_wxScrollBar swig_types[130]
2597#define SWIGTYPE_p_wxScrollEvent swig_types[131]
2598#define SWIGTYPE_p_wxScrollWinEvent swig_types[132]
2599#define SWIGTYPE_p_wxSetCursorEvent swig_types[133]
2600#define SWIGTYPE_p_wxShowEvent swig_types[134]
2601#define SWIGTYPE_p_wxSimpleHelpProvider swig_types[135]
2602#define SWIGTYPE_p_wxSize swig_types[136]
2603#define SWIGTYPE_p_wxSizeEvent swig_types[137]
2604#define SWIGTYPE_p_wxSizer swig_types[138]
2605#define SWIGTYPE_p_wxSizerItem swig_types[139]
2606#define SWIGTYPE_p_wxSlider swig_types[140]
2607#define SWIGTYPE_p_wxSpinButton swig_types[141]
2608#define SWIGTYPE_p_wxSpinCtrl swig_types[142]
2609#define SWIGTYPE_p_wxSpinEvent swig_types[143]
2610#define SWIGTYPE_p_wxStaticBitmap swig_types[144]
2611#define SWIGTYPE_p_wxStaticBox swig_types[145]
2612#define SWIGTYPE_p_wxStaticBoxSizer swig_types[146]
2613#define SWIGTYPE_p_wxStaticLine swig_types[147]
2614#define SWIGTYPE_p_wxStaticText swig_types[148]
2615#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[149]
2616#define SWIGTYPE_p_wxString swig_types[150]
2617#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[151]
2618#define SWIGTYPE_p_wxTIFFHandler swig_types[152]
2619#define SWIGTYPE_p_wxTextAttr swig_types[153]
2620#define SWIGTYPE_p_wxTextCtrl swig_types[154]
2621#define SWIGTYPE_p_wxTextUrlEvent swig_types[155]
2622#define SWIGTYPE_p_wxToggleButton swig_types[156]
2623#define SWIGTYPE_p_wxToolBar swig_types[157]
2624#define SWIGTYPE_p_wxToolBarBase swig_types[158]
2625#define SWIGTYPE_p_wxToolBarToolBase swig_types[159]
2626#define SWIGTYPE_p_wxToolbook swig_types[160]
2627#define SWIGTYPE_p_wxToolbookEvent swig_types[161]
10044bf1
RD
2628#define SWIGTYPE_p_wxTreeEvent swig_types[162]
2629#define SWIGTYPE_p_wxTreeItemId swig_types[163]
2630#define SWIGTYPE_p_wxTreebook swig_types[164]
2631#define SWIGTYPE_p_wxTreebookEvent swig_types[165]
2632#define SWIGTYPE_p_wxUpdateUIEvent swig_types[166]
2633#define SWIGTYPE_p_wxValidator swig_types[167]
2634#define SWIGTYPE_p_wxVisualAttributes swig_types[168]
2635#define SWIGTYPE_p_wxWindow swig_types[169]
2636#define SWIGTYPE_p_wxWindowBase swig_types[170]
2637#define SWIGTYPE_p_wxWindowCreateEvent swig_types[171]
2638#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[172]
2639#define SWIGTYPE_p_wxXPMHandler swig_types[173]
2640static swig_type_info *swig_types[175];
2641static swig_module_info swig_module = {swig_types, 174, 0, 0, 0, 0};
32fe5131
RD
2642#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2643#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
36ed4f51
RD
2644
2645/* -------- TYPES TABLE (END) -------- */
2646
1bd55598
RD
2647#if (PY_VERSION_HEX <= 0x02000000)
2648# if !defined(SWIG_PYTHON_CLASSIC)
2649# error "This python version requires to use swig with the '-classic' option"
2650# endif
2651#endif
2652#if (PY_VERSION_HEX <= 0x02020000)
2653# error "This python version requires to use swig with the '-nomodern' option"
2654#endif
2655#if (PY_VERSION_HEX <= 0x02020000)
2656# error "This python version requires to use swig with the '-nomodernargs' option"
2657#endif
2658#ifndef METH_O
2659# error "This python version requires to use swig with the '-nofastunpack' option"
2660#endif
36ed4f51
RD
2661
2662/*-----------------------------------------------
2663 @(target):= _controls_.so
2664 ------------------------------------------------*/
2665#define SWIG_init init_controls_
2666
2667#define SWIG_name "_controls_"
2668
1bd55598
RD
2669#define SWIGVERSION 0x010329
2670
2671
2672#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2673#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2674
2675
2676#include <stdexcept>
2677
2678
2679namespace swig {
2680 class PyObject_ptr {
2681 protected:
2682 PyObject *_obj;
2683
2684 public:
2685 PyObject_ptr() :_obj(0)
2686 {
2687 }
2688
2689 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2690 {
2691 Py_XINCREF(_obj);
2692 }
2693
2694 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2695 {
2696 if (initial_ref) Py_XINCREF(_obj);
2697 }
2698
2699 PyObject_ptr & operator=(const PyObject_ptr& item)
2700 {
2701 Py_XINCREF(item._obj);
2702 Py_XDECREF(_obj);
2703 _obj = item._obj;
2704 return *this;
2705 }
2706
2707 ~PyObject_ptr()
2708 {
2709 Py_XDECREF(_obj);
2710 }
2711
2712 operator PyObject *() const
2713 {
2714 return _obj;
2715 }
2716
2717 PyObject *operator->() const
2718 {
2719 return _obj;
2720 }
2721 };
2722}
2723
2724
2725namespace swig {
2726 struct PyObject_var : PyObject_ptr {
2727 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2728
2729 PyObject_var & operator = (PyObject* obj)
2730 {
2731 Py_XDECREF(_obj);
2732 _obj = obj;
2733 return *this;
2734 }
2735 };
2736}
2737
2738
36ed4f51
RD
2739#include "wx/wxPython/wxPython.h"
2740#include "wx/wxPython/pyclasses.h"
2741
2742 static const wxString wxPyPanelNameStr(wxPanelNameStr);
2743 static const wxString wxPyEmptyString(wxEmptyString);
2744 static const wxString wxPyControlNameStr(wxControlNameStr);
2745
2746 const wxArrayString wxPyEmptyStringArray;
2747
2748 static const wxString wxPyButtonNameStr(wxButtonNameStr);
2749
1bd55598 2750 #define SWIG_From_long PyInt_FromLong
36ed4f51
RD
2751
2752
1bd55598
RD
2753SWIGINTERNINLINE PyObject *
2754SWIG_From_int (int value)
2755{
2756 return SWIG_From_long (value);
2757}
36ed4f51
RD
2758
2759
1bd55598
RD
2760#include <limits.h>
2761#ifndef LLONG_MIN
2762# define LLONG_MIN LONG_LONG_MIN
2763#endif
2764#ifndef LLONG_MAX
2765# define LLONG_MAX LONG_LONG_MAX
2766#endif
2767#ifndef ULLONG_MAX
2768# define ULLONG_MAX ULONG_LONG_MAX
2769#endif
36ed4f51
RD
2770
2771
2772SWIGINTERN int
1bd55598 2773SWIG_AsVal_long (PyObject* obj, long* val)
36ed4f51
RD
2774{
2775 if (PyNumber_Check(obj)) {
2776 if (val) *val = PyInt_AsLong(obj);
1bd55598 2777 return SWIG_OK;
36ed4f51 2778 }
1bd55598 2779 return SWIG_TypeError;
36ed4f51
RD
2780}
2781
2782
36ed4f51 2783SWIGINTERN int
1bd55598
RD
2784SWIG_AsVal_int (PyObject * obj, int *val)
2785{
36ed4f51 2786 long v;
1bd55598
RD
2787 int res = SWIG_AsVal_long (obj, &v);
2788 if (SWIG_IsOK(res)) {
2789 if ((v < INT_MIN || v > INT_MAX)) {
2790 return SWIG_OverflowError;
36ed4f51 2791 } else {
1bd55598 2792 if (val) *val = static_cast< int >(v);
36ed4f51 2793 }
1bd55598
RD
2794 }
2795 return res;
d55e5bfc
RD
2796}
2797
c370783e 2798 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
d55e5bfc 2799
36ed4f51 2800SWIGINTERN int
1bd55598 2801SWIG_AsVal_bool (PyObject *obj, bool *val)
d55e5bfc 2802{
c370783e
RD
2803 if (obj == Py_True) {
2804 if (val) *val = true;
1bd55598
RD
2805 return SWIG_OK;
2806 } else if (obj == Py_False) {
c370783e 2807 if (val) *val = false;
1bd55598 2808 return SWIG_OK;
36ed4f51 2809 } else {
1bd55598
RD
2810 long v = 0;
2811 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2812 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2813 return res;
c370783e 2814 }
d55e5bfc
RD
2815}
2816
2817 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
2818 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
2819 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
2820 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
2821 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
2822 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
2823
2824#include <wx/checklst.h>
d55e5bfc
RD
2825
2826 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
1bd55598 2827SWIGINTERN void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData=NULL){
e9d6f3a4
RD
2828 if (clientData)
2829 {
d55e5bfc
RD
2830 wxPyClientData* data = new wxPyClientData(clientData);
2831 self->Insert(item, pos, data);
e9d6f3a4
RD
2832 }
2833 else
d55e5bfc
RD
2834 self->Insert(item, pos);
2835 }
50f151d7
RD
2836
2837SWIGINTERN int
2838SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2839{
2840 long v = 0;
2841 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2842 return SWIG_TypeError;
2843 }
2844 else if (val)
2845 *val = (unsigned long)v;
2846 return SWIG_OK;
2847}
2848
2849
2850SWIGINTERN int
2851SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
2852{
2853 unsigned long v;
2854 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2855 if (SWIG_IsOK(res)) {
2856 if ((v > UINT_MAX)) {
2857 return SWIG_OverflowError;
2858 } else {
2859 if (val) *val = static_cast< unsigned int >(v);
2860 }
2861 }
2862 return res;
2863}
2864
1bd55598 2865SWIGINTERN PyObject *wxListBox_GetSelections(wxListBox *self){
e9d6f3a4 2866 wxPyBlock_t blocked = wxPyBeginBlockThreads();
7e08d4ef
RD
2867 wxArrayInt lst;
2868 self->GetSelections(lst);
2869 PyObject *tup = PyTuple_New(lst.GetCount());
e9d6f3a4
RD
2870 for (size_t i=0; i<lst.GetCount(); i++)
2871 {
7e08d4ef
RD
2872 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
2873 }
e9d6f3a4 2874 wxPyEndBlockThreads(blocked);
7e08d4ef
RD
2875 return tup;
2876 }
1bd55598 2877SWIGINTERN void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2878 #ifdef __WXMSW__
2879 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2880 self->GetItem(item)->SetTextColour(c);
2881 #endif
2882 }
1bd55598 2883SWIGINTERN void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
d55e5bfc
RD
2884 #ifdef __WXMSW__
2885 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2886 self->GetItem(item)->SetBackgroundColour(c);
2887 #endif
2888 }
1bd55598 2889SWIGINTERN void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
d55e5bfc
RD
2890 #ifdef __WXMSW__
2891 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
2892 self->GetItem(item)->SetFont(f);
2893 #endif
2894 }
2895 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
1bd55598 2896SWIGINTERN void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
d55e5bfc
RD
2897 self->AppendText(text);
2898 }
1bd55598 2899SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
d55e5bfc
RD
2900 return self->GetValue().Mid(from, to - from);
2901 }
2902 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
2903 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
2904 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
2905 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
2906 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
2907
1c71765a
RD
2908SWIGINTERNINLINE PyObject*
2909SWIG_From_unsigned_SS_long (unsigned long value)
2910{
2911 return (value > LONG_MAX) ?
2912 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2913}
2914
2915
2916SWIGINTERNINLINE PyObject *
2917SWIG_From_size_t (size_t value)
2918{
2919 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
2920}
2921
2922
50f151d7
RD
2923SWIGINTERNINLINE PyObject *
2924SWIG_From_unsigned_SS_int (unsigned int value)
2925{
2926 return SWIG_From_unsigned_SS_long (value);
2927}
2928
2929
d55e5bfc
RD
2930#include <wx/slider.h>
2931
2932
2933 static const wxString wxPySliderNameStr(wxSliderNameStr);
2934 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
2935
2936#if !wxUSE_TOGGLEBTN
2937// implement dummy items for platforms that don't have this class
2938
2939#define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
2940
2941class wxToggleButton : public wxControl
2942{
2943public:
2944 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
2945 const wxPoint&, const wxSize&, long,
2946 const wxValidator&, const wxString&)
2947 { wxPyRaiseNotImplemented(); }
2948
2949 wxToggleButton()
2950 { wxPyRaiseNotImplemented(); }
2951};
2952#endif
2953
51b83b37 2954 static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
d55e5bfc 2955
7e08d4ef 2956SWIGINTERNINLINE int
1bd55598 2957SWIG_AsVal_size_t (PyObject * obj, size_t *val)
7e08d4ef 2958{
7e08d4ef 2959 unsigned long v;
1bd55598
RD
2960 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2961 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2962 return res;
7e08d4ef 2963}
7e08d4ef 2964
d55e5bfc 2965 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
1bd55598 2966SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
d55e5bfc
RD
2967 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
2968 if (udata) {
2969 Py_INCREF(udata->m_obj);
2970 return udata->m_obj;
2971 } else {
2972 Py_INCREF(Py_None);
2973 return Py_None;
2974 }
2975 }
1bd55598 2976SWIGINTERN void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
d55e5bfc
RD
2977 self->SetClientData(new wxPyUserData(clientData));
2978 }
1bd55598 2979SWIGINTERN 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
2980 wxPyUserData* udata = NULL;
2981 if (clientData && clientData != Py_None)
2982 udata = new wxPyUserData(clientData);
2983 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
2984 shortHelp, longHelp, udata);
2985 }
1bd55598 2986SWIGINTERN 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
2987 wxPyUserData* udata = NULL;
2988 if (clientData && clientData != Py_None)
2989 udata = new wxPyUserData(clientData);
2990 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
2991 shortHelp, longHelp, udata);
2992 }
1bd55598 2993SWIGINTERN PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
d55e5bfc
RD
2994 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
2995 if (udata) {
2996 Py_INCREF(udata->m_obj);
2997 return udata->m_obj;
2998 } else {
2999 Py_INCREF(Py_None);
3000 return Py_None;
3001 }
3002 }
1bd55598 3003SWIGINTERN void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
d55e5bfc
RD
3004 self->SetToolClientData(id, new wxPyUserData(clientData));
3005 }
3006
3007#include <wx/listctrl.h>
3008
fef4c27a 3009 static const wxString wxPyListCtrlNameStr(wxListCtrlNameStr);
1bd55598 3010SWIGINTERN void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
d55e5bfc
RD
3011 // Python aware sorting function for wxPyListCtrl
3012 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
3013 int retval = 0;
3014 PyObject* func = (PyObject*)funcPtr;
5a446332 3015 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3016
3017 PyObject* args = Py_BuildValue("(ii)", item1, item2);
3018 PyObject* result = PyEval_CallObject(func, args);
3019 Py_DECREF(args);
3020 if (result) {
3021 retval = PyInt_AsLong(result);
3022 Py_DECREF(result);
3023 }
3024
3025 wxPyEndBlockThreads(blocked);
3026 return retval;
3027 }
3028
3029 // C++ Version of a Python aware class
3030class wxPyListCtrl : public wxListCtrl {
32fe5131 3031 DECLARE_ABSTRACT_CLASS(wxPyListCtrl)
d55e5bfc
RD
3032public:
3033 wxPyListCtrl() : wxListCtrl() {}
3034 wxPyListCtrl(wxWindow* parent, wxWindowID id,
3035 const wxPoint& pos,
3036 const wxSize& size,
3037 long style,
3038 const wxValidator& validator,
3039 const wxString& name) :
3040 wxListCtrl(parent, id, pos, size, style, validator, name) {}
3041
3042 bool Create(wxWindow* parent, wxWindowID id,
3043 const wxPoint& pos,
3044 const wxSize& size,
3045 long style,
3046 const wxValidator& validator,
3047 const wxString& name) {
3048 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
3049 }
3050
3051 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
d55e5bfc
RD
3052 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
3053
84f85550
RD
3054 // use the virtual version to avoid a confusing assert in the base class
3055 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
7e08d4ef 3056 DEC_PYCALLBACK_INT_LONGLONG(OnGetItemColumnImage);
84f85550 3057
d55e5bfc
RD
3058 PYPRIVATE;
3059};
3060
3061IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
3062
3063IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
d55e5bfc 3064IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
84f85550 3065IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
7e08d4ef
RD
3066IMP_PYCALLBACK_INT_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemColumnImage);
3067
d55e5bfc 3068
1bd55598 3069SWIGINTERN wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
d55e5bfc
RD
3070 wxListItem item;
3071 item.SetMask( wxLIST_MASK_STATE |
3072 wxLIST_MASK_TEXT |
3073 wxLIST_MASK_IMAGE |
3074 wxLIST_MASK_DATA |
3075 wxLIST_SET_ITEM |
3076 wxLIST_MASK_WIDTH |
3077 wxLIST_MASK_FORMAT
3078 );
3079 if (self->GetColumn(col, item))
3080 return new wxListItem(item);
3081 else
3082 return NULL;
3083 }
1bd55598 3084SWIGINTERN wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col=0){
d55e5bfc
RD
3085 wxListItem* info = new wxListItem;
3086 info->m_itemId = itemId;
3087 info->m_col = col;
3088 info->m_mask = 0xFFFF;
3089 self->GetItem(*info);
3090 return info;
3091 }
1bd55598 3092SWIGINTERN wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
d55e5bfc
RD
3093 wxPoint pos;
3094 self->GetItemPosition(item, pos);
3095 return pos;
3096 }
1bd55598 3097SWIGINTERN wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code=wxLIST_RECT_BOUNDS){
d55e5bfc
RD
3098 wxRect rect;
3099 self->GetItemRect(item, rect, code);
3100 return rect;
3101 }
1bd55598 3102SWIGINTERN bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
d55e5bfc 3103 if (!PyCallable_Check(func))
b411df4a 3104 return false;
d55e5bfc
RD
3105 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
3106 }
1bd55598 3107SWIGINTERN wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
d55e5bfc
RD
3108
3109
3110
3111 return (wxWindow*)self->m_mainWin;
3112
3113 }
3114
3115#include <wx/treectrl.h>
3116#include "wx/wxPython/pytree.h"
3117
3118 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
1bd55598
RD
3119SWIGINTERN bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
3120SWIGINTERN bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
3121SWIGINTERN void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
b02396e8
RD
3122
3123 static wxTreeItemId wxNullTreeItemId;
3124
d55e5bfc
RD
3125 // C++ version of Python aware wxTreeCtrl
3126class wxPyTreeCtrl : public wxTreeCtrl {
32fe5131 3127 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl)
d55e5bfc
RD
3128public:
3129 wxPyTreeCtrl() : wxTreeCtrl() {}
3130 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
3131 const wxPoint& pos,
3132 const wxSize& size,
3133 long style,
3134 const wxValidator& validator,
3135 const wxString& name) :
3136 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
3137
3138 bool Create(wxWindow *parent, wxWindowID id,
3139 const wxPoint& pos,
3140 const wxSize& size,
3141 long style,
3142 const wxValidator& validator,
3143 const wxString& name) {
3144 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
3145 }
3146
3147
3148 int OnCompareItems(const wxTreeItemId& item1,
3149 const wxTreeItemId& item2) {
3150 int rval = 0;
3151 bool found;
5a446332 3152 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3153 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
b411df4a
RD
3154 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
3155 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
d55e5bfc
RD
3156 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
3157 Py_DECREF(o1);
3158 Py_DECREF(o2);
3159 }
3160 wxPyEndBlockThreads(blocked);
3161 if (! found)
3162 rval = wxTreeCtrl::OnCompareItems(item1, item2);
3163 return rval;
3164 }
3165 PYPRIVATE;
3166};
3167
3168IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
3169
3170
1bd55598 3171SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3172 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3173 if (data == NULL) {
3174 data = new wxPyTreeItemData();
3175 data->SetId(item); // set the id
3176 self->SetItemData(item, data);
3177 }
3178 return data;
3179 }
1bd55598 3180SWIGINTERN PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3181 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3182 if (data == NULL) {
3183 data = new wxPyTreeItemData();
3184 data->SetId(item); // set the id
3185 self->SetItemData(item, data);
3186 }
3187 return data->GetData();
3188 }
1bd55598 3189SWIGINTERN void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
d55e5bfc
RD
3190 data->SetId(item); // set the id
3191 self->SetItemData(item, data);
3192 }
1bd55598 3193SWIGINTERN void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
d55e5bfc
RD
3194 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3195 if (data == NULL) {
3196 data = new wxPyTreeItemData(obj);
3197 data->SetId(item); // set the id
3198 self->SetItemData(item, data);
3199 } else
3200 data->SetData(obj);
3201 }
1bd55598 3202SWIGINTERN PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
5a446332 3203 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc
RD
3204 PyObject* rval = PyList_New(0);
3205 wxArrayTreeItemIds array;
3206 size_t num, x;
3207 num = self->GetSelections(array);
3208 for (x=0; x < num; x++) {
3209 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
b411df4a 3210 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
d55e5bfc 3211 PyList_Append(rval, item);
68e533f8 3212 Py_DECREF(item);
d55e5bfc
RD
3213 }
3214 wxPyEndBlockThreads(blocked);
3215 return rval;
3216 }
1bd55598 3217SWIGINTERN PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
d55e5bfc
RD
3218 void* cookie = 0;
3219 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
5a446332 3220 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3221 PyObject* tup = PyTuple_New(2);
b411df4a 3222 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3223 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3224 wxPyEndBlockThreads(blocked);
3225 return tup;
3226 }
1bd55598 3227SWIGINTERN PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
d55e5bfc 3228 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
5a446332 3229 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3230 PyObject* tup = PyTuple_New(2);
b411df4a 3231 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
d55e5bfc
RD
3232 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
3233 wxPyEndBlockThreads(blocked);
3234 return tup;
3235 }
1bd55598 3236SWIGINTERN PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly=false){
d55e5bfc
RD
3237 wxRect rect;
3238 if (self->GetBoundingRect(item, rect, textOnly)) {
5a446332 3239 wxPyBlock_t blocked = wxPyBeginBlockThreads();
d55e5bfc 3240 wxRect* r = new wxRect(rect);
b411df4a 3241 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
d55e5bfc
RD
3242 wxPyEndBlockThreads(blocked);
3243 return val;
3244 }
3245 else
3246 RETURN_NONE();
3247 }
3248 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
c370783e 3249
32fe5131 3250SWIGINTERNINLINE PyObject*
1bd55598 3251 SWIG_From_bool (bool value)
c370783e 3252{
1bd55598 3253 return PyBool_FromLong(value ? 1 : 0);
c370783e
RD
3254}
3255
d55e5bfc
RD
3256 // C++ version of Python aware wxControl
3257class wxPyControl : public wxControl
3258{
3259 DECLARE_DYNAMIC_CLASS(wxPyControl)
3260public:
3261 wxPyControl() : wxControl() {}
3262 wxPyControl(wxWindow* parent, const wxWindowID id,
3263 const wxPoint& pos = wxDefaultPosition,
3264 const wxSize& size = wxDefaultSize,
3265 long style = 0,
3266 const wxValidator& validator=wxDefaultValidator,
3267 const wxString& name = wxPyControlNameStr)
3268 : wxControl(parent, id, pos, size, style, validator, name) {}
3269
a5ee0656 3270 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
d55e5bfc 3271
976dbff5
RD
3272 bool DoEraseBackground(wxDC* dc) {
3273#ifdef __WXMSW__
3274 return wxWindow::DoEraseBackground(dc->GetHDC());
3275#else
3276 dc->SetBackground(wxBrush(GetBackgroundColour()));
3277 dc->Clear();
3278 return true;
3279#endif
3280 }
3281
d55e5bfc
RD
3282 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
3283 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
3284 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
3285 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
3286
3287 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
3288 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
3289 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
3290
3291 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
3292 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
3293
3294 DEC_PYCALLBACK__(InitDialog);
3295 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
3296 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
3297 DEC_PYCALLBACK_BOOL_(Validate);
3298
3299 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
3300 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
3301 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
3302
3303 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
3304 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
3305
a5ee0656 3306 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
a5ee0656 3307 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
d55e5bfc 3308
51b83b37
RD
3309 DEC_PYCALLBACK_BOOL_(HasTransparentBackground);
3310
8d38bd1d
RD
3311 DEC_PYCALLBACK_VOID_(OnInternalIdle);
3312
d55e5bfc
RD
3313 PYPRIVATE;
3314};
3315
3316IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
3317
3318IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
3319IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
3320IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
3321IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
3322
3323IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
3324IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
3325IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
3326
3327IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
3328IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
3329
3330IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
3331IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
3332IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
3333IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
3334
3335IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
3336IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
3337IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
3338
3339IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
3340IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
3341
a5ee0656 3342IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
a5ee0656 3343IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
d55e5bfc 3344
51b83b37 3345IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground);
8d38bd1d
RD
3346
3347IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle);
3348
d55e5bfc
RD
3349
3350
1bd55598 3351SWIGINTERN void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
d55e5bfc
RD
3352
3353#include <wx/generic/dragimgg.h>
3354
53aa7709 3355 static const wxString wxPyDatePickerCtrlNameStr(wxDatePickerCtrlNameStr);
1bd55598 3356SWIGINTERN wxDateTime wxDatePickerCtrl_GetLowerLimit(wxDatePickerCtrl *self){
53aa7709
RD
3357 wxDateTime rv;
3358 self->GetRange(&rv, NULL);
3359 return rv;
3360 }
1bd55598 3361SWIGINTERN wxDateTime wxDatePickerCtrl_GetUpperLimit(wxDatePickerCtrl *self){
53aa7709
RD
3362 wxDateTime rv;
3363 self->GetRange(NULL, &rv);
3364 return rv;
3365 }
704eda0c 3366 static const wxString wxPyHyperlinkCtrlNameStr(wxHyperlinkCtrlNameStr);
b850e7f3
RD
3367 static const wxString wxPyColourPickerCtrlNameStr(wxColourPickerCtrlNameStr);
3368 static const wxString wxPyFilePickerCtrlNameStr(wxFilePickerCtrlNameStr);
3369 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
3370 static const wxString wxPyDirPickerCtrlNameStr(wxDirPickerCtrlNameStr);
3371 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
3372 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
3373 static const wxString wxPyFontPickerCtrlNameStr(wxFontPickerCtrlNameStr);
d55e5bfc
RD
3374#ifdef __cplusplus
3375extern "C" {
3376#endif
1bd55598
RD
3377SWIGINTERN int ButtonNameStr_set(PyObject *) {
3378 SWIG_Error(SWIG_AttributeError,"Variable ButtonNameStr is read-only.");
3379 return 1;
d55e5bfc
RD
3380}
3381
3382
1bd55598
RD
3383SWIGINTERN PyObject *ButtonNameStr_get(void) {
3384 PyObject *pyobj = 0;
3385
3386 {
d55e5bfc 3387#if wxUSE_UNICODE
1bd55598 3388 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3389#else
1bd55598 3390 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
d55e5bfc 3391#endif
1bd55598
RD
3392 }
3393 return pyobj;
3394}
3395
3396
3397SWIGINTERN PyObject *_wrap_new_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3398 PyObject *resultobj = 0;
3399 wxWindow *arg1 = (wxWindow *) 0 ;
3400 int arg2 = (int) -1 ;
3401 wxString const &arg3_defvalue = wxPyEmptyString ;
3402 wxString *arg3 = (wxString *) &arg3_defvalue ;
3403 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3404 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3405 wxSize const &arg5_defvalue = wxDefaultSize ;
3406 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3407 long arg6 = (long) 0 ;
3408 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3409 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3410 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3411 wxString *arg8 = (wxString *) &arg8_defvalue ;
3412 wxButton *result = 0 ;
3413 void *argp1 = 0 ;
3414 int res1 = 0 ;
3415 int val2 ;
3416 int ecode2 = 0 ;
3417 bool temp3 = false ;
3418 wxPoint temp4 ;
3419 wxSize temp5 ;
3420 long val6 ;
3421 int ecode6 = 0 ;
3422 void *argp7 = 0 ;
3423 int res7 = 0 ;
3424 bool temp8 = false ;
3425 PyObject * obj0 = 0 ;
3426 PyObject * obj1 = 0 ;
3427 PyObject * obj2 = 0 ;
3428 PyObject * obj3 = 0 ;
3429 PyObject * obj4 = 0 ;
3430 PyObject * obj5 = 0 ;
3431 PyObject * obj6 = 0 ;
3432 PyObject * obj7 = 0 ;
3433 char * kwnames[] = {
3434 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3435 };
3436
3437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3439 if (!SWIG_IsOK(res1)) {
3440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Button" "', expected argument " "1"" of type '" "wxWindow *""'");
3441 }
3442 arg1 = reinterpret_cast< wxWindow * >(argp1);
3443 if (obj1) {
3444 ecode2 = SWIG_AsVal_int(obj1, &val2);
3445 if (!SWIG_IsOK(ecode2)) {
3446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Button" "', expected argument " "2"" of type '" "int""'");
3447 }
3448 arg2 = static_cast< int >(val2);
3449 }
3450 if (obj2) {
d55e5bfc 3451 {
1bd55598
RD
3452 arg3 = wxString_in_helper(obj2);
3453 if (arg3 == NULL) SWIG_fail;
3454 temp3 = true;
d55e5bfc 3455 }
1bd55598
RD
3456 }
3457 if (obj3) {
d55e5bfc 3458 {
1bd55598
RD
3459 arg4 = &temp4;
3460 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3461 }
1bd55598
RD
3462 }
3463 if (obj4) {
d55e5bfc 3464 {
1bd55598
RD
3465 arg5 = &temp5;
3466 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3467 }
1bd55598
RD
3468 }
3469 if (obj5) {
3470 ecode6 = SWIG_AsVal_long(obj5, &val6);
3471 if (!SWIG_IsOK(ecode6)) {
3472 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Button" "', expected argument " "6"" of type '" "long""'");
3473 }
3474 arg6 = static_cast< long >(val6);
3475 }
3476 if (obj6) {
3477 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3478 if (!SWIG_IsOK(res7)) {
3479 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3480 }
1bd55598
RD
3481 if (!argp7) {
3482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Button" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 3483 }
1bd55598
RD
3484 arg7 = reinterpret_cast< wxValidator * >(argp7);
3485 }
3486 if (obj7) {
d55e5bfc 3487 {
1bd55598
RD
3488 arg8 = wxString_in_helper(obj7);
3489 if (arg8 == NULL) SWIG_fail;
3490 temp8 = true;
d55e5bfc 3491 }
1bd55598
RD
3492 }
3493 {
3494 if (!wxPyCheckForApp()) SWIG_fail;
3495 PyThreadState* __tstate = wxPyBeginAllowThreads();
3496 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3497 wxPyEndAllowThreads(__tstate);
3498 if (PyErr_Occurred()) SWIG_fail;
3499 }
3500 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_NEW | 0 );
3501 {
3502 if (temp3)
3503 delete arg3;
3504 }
3505 {
3506 if (temp8)
3507 delete arg8;
3508 }
3509 return resultobj;
3510fail:
3511 {
3512 if (temp3)
3513 delete arg3;
3514 }
3515 {
3516 if (temp8)
3517 delete arg8;
3518 }
3519 return NULL;
d55e5bfc
RD
3520}
3521
3522
1bd55598
RD
3523SWIGINTERN PyObject *_wrap_new_PreButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3524 PyObject *resultobj = 0;
3525 wxButton *result = 0 ;
3526
3527 if (!SWIG_Python_UnpackTuple(args,"new_PreButton",0,0,0)) SWIG_fail;
3528 {
3529 if (!wxPyCheckForApp()) SWIG_fail;
3530 PyThreadState* __tstate = wxPyBeginAllowThreads();
3531 result = (wxButton *)new wxButton();
3532 wxPyEndAllowThreads(__tstate);
3533 if (PyErr_Occurred()) SWIG_fail;
3534 }
3535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxButton, SWIG_POINTER_OWN | 0 );
3536 return resultobj;
3537fail:
3538 return NULL;
3539}
3540
3541
3542SWIGINTERN PyObject *_wrap_Button_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3543 PyObject *resultobj = 0;
3544 wxButton *arg1 = (wxButton *) 0 ;
3545 wxWindow *arg2 = (wxWindow *) 0 ;
3546 int arg3 = (int) -1 ;
3547 wxString const &arg4_defvalue = wxPyEmptyString ;
3548 wxString *arg4 = (wxString *) &arg4_defvalue ;
3549 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3550 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3551 wxSize const &arg6_defvalue = wxDefaultSize ;
3552 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3553 long arg7 = (long) 0 ;
3554 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3555 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3556 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3557 wxString *arg9 = (wxString *) &arg9_defvalue ;
3558 bool result;
3559 void *argp1 = 0 ;
3560 int res1 = 0 ;
3561 void *argp2 = 0 ;
3562 int res2 = 0 ;
3563 int val3 ;
3564 int ecode3 = 0 ;
3565 bool temp4 = false ;
3566 wxPoint temp5 ;
3567 wxSize temp6 ;
3568 long val7 ;
3569 int ecode7 = 0 ;
3570 void *argp8 = 0 ;
3571 int res8 = 0 ;
3572 bool temp9 = false ;
3573 PyObject * obj0 = 0 ;
3574 PyObject * obj1 = 0 ;
3575 PyObject * obj2 = 0 ;
3576 PyObject * obj3 = 0 ;
3577 PyObject * obj4 = 0 ;
3578 PyObject * obj5 = 0 ;
3579 PyObject * obj6 = 0 ;
3580 PyObject * obj7 = 0 ;
3581 PyObject * obj8 = 0 ;
3582 char * kwnames[] = {
3583 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3584 };
3585
3586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3588 if (!SWIG_IsOK(res1)) {
3589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_Create" "', expected argument " "1"" of type '" "wxButton *""'");
3590 }
3591 arg1 = reinterpret_cast< wxButton * >(argp1);
3592 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3593 if (!SWIG_IsOK(res2)) {
3594 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Button_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3595 }
3596 arg2 = reinterpret_cast< wxWindow * >(argp2);
3597 if (obj2) {
3598 ecode3 = SWIG_AsVal_int(obj2, &val3);
3599 if (!SWIG_IsOK(ecode3)) {
3600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Button_Create" "', expected argument " "3"" of type '" "int""'");
3601 }
3602 arg3 = static_cast< int >(val3);
3603 }
3604 if (obj3) {
d55e5bfc 3605 {
1bd55598
RD
3606 arg4 = wxString_in_helper(obj3);
3607 if (arg4 == NULL) SWIG_fail;
3608 temp4 = true;
d55e5bfc 3609 }
1bd55598
RD
3610 }
3611 if (obj4) {
d55e5bfc 3612 {
1bd55598
RD
3613 arg5 = &temp5;
3614 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3615 }
1bd55598
RD
3616 }
3617 if (obj5) {
d55e5bfc 3618 {
1bd55598
RD
3619 arg6 = &temp6;
3620 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 3621 }
1bd55598
RD
3622 }
3623 if (obj6) {
3624 ecode7 = SWIG_AsVal_long(obj6, &val7);
3625 if (!SWIG_IsOK(ecode7)) {
3626 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Button_Create" "', expected argument " "7"" of type '" "long""'");
3627 }
3628 arg7 = static_cast< long >(val7);
3629 }
3630 if (obj7) {
3631 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
3632 if (!SWIG_IsOK(res8)) {
3633 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3634 }
1bd55598
RD
3635 if (!argp8) {
3636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Button_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 3637 }
1bd55598
RD
3638 arg8 = reinterpret_cast< wxValidator * >(argp8);
3639 }
3640 if (obj8) {
d55e5bfc 3641 {
1bd55598
RD
3642 arg9 = wxString_in_helper(obj8);
3643 if (arg9 == NULL) SWIG_fail;
3644 temp9 = true;
d55e5bfc 3645 }
1bd55598
RD
3646 }
3647 {
3648 PyThreadState* __tstate = wxPyBeginAllowThreads();
3649 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
3650 wxPyEndAllowThreads(__tstate);
3651 if (PyErr_Occurred()) SWIG_fail;
3652 }
3653 {
3654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3655 }
3656 {
3657 if (temp4)
3658 delete arg4;
3659 }
3660 {
3661 if (temp9)
3662 delete arg9;
3663 }
3664 return resultobj;
3665fail:
3666 {
3667 if (temp4)
3668 delete arg4;
3669 }
3670 {
3671 if (temp9)
3672 delete arg9;
3673 }
3674 return NULL;
d55e5bfc
RD
3675}
3676
3677
1bd55598
RD
3678SWIGINTERN PyObject *_wrap_Button_SetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3679 PyObject *resultobj = 0;
3680 wxButton *arg1 = (wxButton *) 0 ;
3681 void *argp1 = 0 ;
3682 int res1 = 0 ;
3683 PyObject *swig_obj[1] ;
3684
3685 if (!args) SWIG_fail;
3686 swig_obj[0] = args;
3687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxButton, 0 | 0 );
3688 if (!SWIG_IsOK(res1)) {
3689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Button_SetDefault" "', expected argument " "1"" of type '" "wxButton *""'");
3690 }
3691 arg1 = reinterpret_cast< wxButton * >(argp1);
3692 {
3693 PyThreadState* __tstate = wxPyBeginAllowThreads();
3694 (arg1)->SetDefault();
3695 wxPyEndAllowThreads(__tstate);
3696 if (PyErr_Occurred()) SWIG_fail;
3697 }
3698 resultobj = SWIG_Py_Void();
3699 return resultobj;
3700fail:
3701 return NULL;
d55e5bfc
RD
3702}
3703
3704
1bd55598
RD
3705SWIGINTERN PyObject *_wrap_Button_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3706 PyObject *resultobj = 0;
3707 wxSize result;
3708
3709 if (!SWIG_Python_UnpackTuple(args,"Button_GetDefaultSize",0,0,0)) SWIG_fail;
3710 {
3711 PyThreadState* __tstate = wxPyBeginAllowThreads();
3712 result = wxButton::GetDefaultSize();
3713 wxPyEndAllowThreads(__tstate);
3714 if (PyErr_Occurred()) SWIG_fail;
3715 }
3716 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
3717 return resultobj;
3718fail:
3719 return NULL;
3720}
3721
3722
3723SWIGINTERN PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3724 PyObject *resultobj = 0;
3725 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
3726 SwigValueWrapper<wxVisualAttributes > result;
3727 int val1 ;
3728 int ecode1 = 0 ;
3729 PyObject * obj0 = 0 ;
3730 char * kwnames[] = {
3731 (char *) "variant", NULL
3732 };
3733
3734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
3735 if (obj0) {
3736 ecode1 = SWIG_AsVal_int(obj0, &val1);
3737 if (!SWIG_IsOK(ecode1)) {
3738 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Button_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
3739 }
3740 arg1 = static_cast< wxWindowVariant >(val1);
3741 }
3742 {
3743 if (!wxPyCheckForApp()) SWIG_fail;
3744 PyThreadState* __tstate = wxPyBeginAllowThreads();
3745 result = wxButton::GetClassDefaultAttributes(arg1);
3746 wxPyEndAllowThreads(__tstate);
3747 if (PyErr_Occurred()) SWIG_fail;
3748 }
3749 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
3750 return resultobj;
3751fail:
3752 return NULL;
3753}
3754
3755
3756SWIGINTERN PyObject *Button_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3757 PyObject *obj;
3758 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3759 SWIG_TypeNewClientData(SWIGTYPE_p_wxButton, SWIG_NewClientData(obj));
3760 return SWIG_Py_Void();
3761}
3762
3763SWIGINTERN PyObject *Button_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3764 return SWIG_Python_InitShadowInstance(args);
3765}
3766
3767SWIGINTERN PyObject *_wrap_new_BitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3768 PyObject *resultobj = 0;
3769 wxWindow *arg1 = (wxWindow *) 0 ;
3770 int arg2 = (int) -1 ;
3771 wxBitmap const &arg3_defvalue = wxNullBitmap ;
3772 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
3773 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3774 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3775 wxSize const &arg5_defvalue = wxDefaultSize ;
3776 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3777 long arg6 = (long) wxBU_AUTODRAW ;
3778 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3779 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3780 wxString const &arg8_defvalue = wxPyButtonNameStr ;
3781 wxString *arg8 = (wxString *) &arg8_defvalue ;
3782 wxBitmapButton *result = 0 ;
3783 void *argp1 = 0 ;
3784 int res1 = 0 ;
3785 int val2 ;
3786 int ecode2 = 0 ;
3787 void *argp3 = 0 ;
3788 int res3 = 0 ;
3789 wxPoint temp4 ;
3790 wxSize temp5 ;
3791 long val6 ;
3792 int ecode6 = 0 ;
3793 void *argp7 = 0 ;
3794 int res7 = 0 ;
3795 bool temp8 = false ;
3796 PyObject * obj0 = 0 ;
3797 PyObject * obj1 = 0 ;
3798 PyObject * obj2 = 0 ;
3799 PyObject * obj3 = 0 ;
3800 PyObject * obj4 = 0 ;
3801 PyObject * obj5 = 0 ;
3802 PyObject * obj6 = 0 ;
3803 PyObject * obj7 = 0 ;
3804 char * kwnames[] = {
3805 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3806 };
3807
3808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
3809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
3810 if (!SWIG_IsOK(res1)) {
3811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapButton" "', expected argument " "1"" of type '" "wxWindow *""'");
3812 }
3813 arg1 = reinterpret_cast< wxWindow * >(argp1);
3814 if (obj1) {
3815 ecode2 = SWIG_AsVal_int(obj1, &val2);
3816 if (!SWIG_IsOK(ecode2)) {
3817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapButton" "', expected argument " "2"" of type '" "int""'");
3818 }
3819 arg2 = static_cast< int >(val2);
3820 }
3821 if (obj2) {
3822 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
3823 if (!SWIG_IsOK(res3)) {
3824 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3825 }
3826 if (!argp3) {
3827 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "3"" of type '" "wxBitmap const &""'");
3828 }
3829 arg3 = reinterpret_cast< wxBitmap * >(argp3);
3830 }
3831 if (obj3) {
d55e5bfc 3832 {
1bd55598
RD
3833 arg4 = &temp4;
3834 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 3835 }
1bd55598
RD
3836 }
3837 if (obj4) {
d55e5bfc 3838 {
1bd55598
RD
3839 arg5 = &temp5;
3840 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3841 }
1bd55598
RD
3842 }
3843 if (obj5) {
3844 ecode6 = SWIG_AsVal_long(obj5, &val6);
3845 if (!SWIG_IsOK(ecode6)) {
3846 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_BitmapButton" "', expected argument " "6"" of type '" "long""'");
3847 }
3848 arg6 = static_cast< long >(val6);
3849 }
3850 if (obj6) {
3851 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
3852 if (!SWIG_IsOK(res7)) {
3853 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3854 }
1bd55598
RD
3855 if (!argp7) {
3856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
f20a2e1f 3857 }
1bd55598
RD
3858 arg7 = reinterpret_cast< wxValidator * >(argp7);
3859 }
3860 if (obj7) {
f20a2e1f 3861 {
1bd55598
RD
3862 arg8 = wxString_in_helper(obj7);
3863 if (arg8 == NULL) SWIG_fail;
3864 temp8 = true;
f20a2e1f 3865 }
1bd55598
RD
3866 }
3867 {
3868 if (!wxPyCheckForApp()) SWIG_fail;
3869 PyThreadState* __tstate = wxPyBeginAllowThreads();
3870 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
3871 wxPyEndAllowThreads(__tstate);
3872 if (PyErr_Occurred()) SWIG_fail;
3873 }
3874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_NEW | 0 );
3875 {
3876 if (temp8)
3877 delete arg8;
3878 }
3879 return resultobj;
3880fail:
3881 {
3882 if (temp8)
3883 delete arg8;
3884 }
3885 return NULL;
f20a2e1f
RD
3886}
3887
3888
1bd55598
RD
3889SWIGINTERN PyObject *_wrap_new_PreBitmapButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3890 PyObject *resultobj = 0;
3891 wxBitmapButton *result = 0 ;
3892
3893 if (!SWIG_Python_UnpackTuple(args,"new_PreBitmapButton",0,0,0)) SWIG_fail;
3894 {
3895 if (!wxPyCheckForApp()) SWIG_fail;
3896 PyThreadState* __tstate = wxPyBeginAllowThreads();
3897 result = (wxBitmapButton *)new wxBitmapButton();
3898 wxPyEndAllowThreads(__tstate);
3899 if (PyErr_Occurred()) SWIG_fail;
3900 }
3901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmapButton, SWIG_POINTER_OWN | 0 );
3902 return resultobj;
3903fail:
3904 return NULL;
3905}
3906
3907
3908SWIGINTERN PyObject *_wrap_BitmapButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3909 PyObject *resultobj = 0;
3910 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
3911 wxWindow *arg2 = (wxWindow *) 0 ;
3912 int arg3 = (int) -1 ;
3913 wxBitmap const &arg4_defvalue = wxNullBitmap ;
3914 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
3915 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3916 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3917 wxSize const &arg6_defvalue = wxDefaultSize ;
3918 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3919 long arg7 = (long) wxBU_AUTODRAW ;
3920 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3921 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3922 wxString const &arg9_defvalue = wxPyButtonNameStr ;
3923 wxString *arg9 = (wxString *) &arg9_defvalue ;
3924 bool result;
3925 void *argp1 = 0 ;
3926 int res1 = 0 ;
3927 void *argp2 = 0 ;
3928 int res2 = 0 ;
3929 int val3 ;
3930 int ecode3 = 0 ;
3931 void *argp4 = 0 ;
3932 int res4 = 0 ;
3933 wxPoint temp5 ;
3934 wxSize temp6 ;
3935 long val7 ;
3936 int ecode7 = 0 ;
3937 void *argp8 = 0 ;
3938 int res8 = 0 ;
3939 bool temp9 = false ;
3940 PyObject * obj0 = 0 ;
3941 PyObject * obj1 = 0 ;
3942 PyObject * obj2 = 0 ;
3943 PyObject * obj3 = 0 ;
3944 PyObject * obj4 = 0 ;
3945 PyObject * obj5 = 0 ;
3946 PyObject * obj6 = 0 ;
3947 PyObject * obj7 = 0 ;
3948 PyObject * obj8 = 0 ;
3949 char * kwnames[] = {
3950 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3951 };
3952
3953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
3954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
3955 if (!SWIG_IsOK(res1)) {
3956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_Create" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
3957 }
3958 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
3959 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
3960 if (!SWIG_IsOK(res2)) {
3961 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
3962 }
3963 arg2 = reinterpret_cast< wxWindow * >(argp2);
3964 if (obj2) {
3965 ecode3 = SWIG_AsVal_int(obj2, &val3);
3966 if (!SWIG_IsOK(ecode3)) {
3967 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_Create" "', expected argument " "3"" of type '" "int""'");
3968 }
3969 arg3 = static_cast< int >(val3);
3970 }
3971 if (obj3) {
3972 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
3973 if (!SWIG_IsOK(res4)) {
3974 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3975 }
1bd55598
RD
3976 if (!argp4) {
3977 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 3978 }
1bd55598
RD
3979 arg4 = reinterpret_cast< wxBitmap * >(argp4);
3980 }
3981 if (obj4) {
d55e5bfc 3982 {
1bd55598
RD
3983 arg5 = &temp5;
3984 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 3985 }
1bd55598
RD
3986 }
3987 if (obj5) {
d55e5bfc 3988 {
1bd55598
RD
3989 arg6 = &temp6;
3990 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3991 }
3992 }
3993 if (obj6) {
3994 ecode7 = SWIG_AsVal_long(obj6, &val7);
3995 if (!SWIG_IsOK(ecode7)) {
3996 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "BitmapButton_Create" "', expected argument " "7"" of type '" "long""'");
3997 }
3998 arg7 = static_cast< long >(val7);
3999 }
4000 if (obj7) {
4001 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4002 if (!SWIG_IsOK(res8)) {
4003 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4004 }
4005 if (!argp8) {
4006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4007 }
1bd55598
RD
4008 arg8 = reinterpret_cast< wxValidator * >(argp8);
4009 }
4010 if (obj8) {
d55e5bfc 4011 {
1bd55598
RD
4012 arg9 = wxString_in_helper(obj8);
4013 if (arg9 == NULL) SWIG_fail;
4014 temp9 = true;
d55e5bfc 4015 }
1bd55598
RD
4016 }
4017 {
4018 PyThreadState* __tstate = wxPyBeginAllowThreads();
4019 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4020 wxPyEndAllowThreads(__tstate);
4021 if (PyErr_Occurred()) SWIG_fail;
4022 }
4023 {
4024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4025 }
4026 {
4027 if (temp9)
4028 delete arg9;
4029 }
4030 return resultobj;
4031fail:
4032 {
4033 if (temp9)
4034 delete arg9;
4035 }
4036 return NULL;
d55e5bfc
RD
4037}
4038
4039
1bd55598
RD
4040SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4041 PyObject *resultobj = 0;
4042 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4043 wxBitmap result;
4044 void *argp1 = 0 ;
4045 int res1 = 0 ;
4046 PyObject *swig_obj[1] ;
4047
4048 if (!args) SWIG_fail;
4049 swig_obj[0] = args;
4050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4051 if (!SWIG_IsOK(res1)) {
4052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4053 }
4054 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4055 {
4056 PyThreadState* __tstate = wxPyBeginAllowThreads();
4057 result = (arg1)->GetBitmapLabel();
4058 wxPyEndAllowThreads(__tstate);
4059 if (PyErr_Occurred()) SWIG_fail;
4060 }
4061 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4062 return resultobj;
4063fail:
4064 return NULL;
d55e5bfc
RD
4065}
4066
4067
1bd55598
RD
4068SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4069 PyObject *resultobj = 0;
4070 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4071 wxBitmap result;
4072 void *argp1 = 0 ;
4073 int res1 = 0 ;
4074 PyObject *swig_obj[1] ;
4075
4076 if (!args) SWIG_fail;
4077 swig_obj[0] = args;
4078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4079 if (!SWIG_IsOK(res1)) {
4080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4081 }
4082 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4083 {
4084 PyThreadState* __tstate = wxPyBeginAllowThreads();
4085 result = (arg1)->GetBitmapDisabled();
4086 wxPyEndAllowThreads(__tstate);
4087 if (PyErr_Occurred()) SWIG_fail;
4088 }
4089 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4090 return resultobj;
4091fail:
4092 return NULL;
d55e5bfc
RD
4093}
4094
4095
1bd55598
RD
4096SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4097 PyObject *resultobj = 0;
4098 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4099 wxBitmap result;
4100 void *argp1 = 0 ;
4101 int res1 = 0 ;
4102 PyObject *swig_obj[1] ;
4103
4104 if (!args) SWIG_fail;
4105 swig_obj[0] = args;
4106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4107 if (!SWIG_IsOK(res1)) {
4108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4109 }
4110 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4111 {
4112 PyThreadState* __tstate = wxPyBeginAllowThreads();
4113 result = (arg1)->GetBitmapFocus();
4114 wxPyEndAllowThreads(__tstate);
4115 if (PyErr_Occurred()) SWIG_fail;
4116 }
4117 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4118 return resultobj;
4119fail:
4120 return NULL;
d55e5bfc
RD
4121}
4122
4123
1bd55598
RD
4124SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4125 PyObject *resultobj = 0;
4126 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4127 wxBitmap result;
4128 void *argp1 = 0 ;
4129 int res1 = 0 ;
4130 PyObject *swig_obj[1] ;
4131
4132 if (!args) SWIG_fail;
4133 swig_obj[0] = args;
4134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4135 if (!SWIG_IsOK(res1)) {
4136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4137 }
4138 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4139 {
4140 PyThreadState* __tstate = wxPyBeginAllowThreads();
4141 result = (arg1)->GetBitmapSelected();
4142 wxPyEndAllowThreads(__tstate);
4143 if (PyErr_Occurred()) SWIG_fail;
4144 }
4145 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4146 return resultobj;
4147fail:
4148 return NULL;
d55e5bfc
RD
4149}
4150
4151
1bd55598
RD
4152SWIGINTERN PyObject *_wrap_BitmapButton_GetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4153 PyObject *resultobj = 0;
4154 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4155 wxBitmap result;
4156 void *argp1 = 0 ;
4157 int res1 = 0 ;
4158 PyObject *swig_obj[1] ;
4159
4160 if (!args) SWIG_fail;
4161 swig_obj[0] = args;
4162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4163 if (!SWIG_IsOK(res1)) {
4164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4165 }
4166 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4167 {
4168 PyThreadState* __tstate = wxPyBeginAllowThreads();
4169 result = (arg1)->GetBitmapHover();
4170 wxPyEndAllowThreads(__tstate);
4171 if (PyErr_Occurred()) SWIG_fail;
4172 }
4173 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
4174 return resultobj;
4175fail:
4176 return NULL;
4177}
4178
4179
4180SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4181 PyObject *resultobj = 0;
4182 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4183 wxBitmap *arg2 = 0 ;
4184 void *argp1 = 0 ;
4185 int res1 = 0 ;
4186 void *argp2 = 0 ;
4187 int res2 = 0 ;
4188 PyObject * obj0 = 0 ;
4189 PyObject * obj1 = 0 ;
4190 char * kwnames[] = {
4191 (char *) "self",(char *) "bitmap", NULL
4192 };
4193
4194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) SWIG_fail;
4195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4196 if (!SWIG_IsOK(res1)) {
4197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4198 }
4199 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4200 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4201 if (!SWIG_IsOK(res2)) {
4202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4203 }
4204 if (!argp2) {
4205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapDisabled" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4206 }
4207 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4208 {
4209 PyThreadState* __tstate = wxPyBeginAllowThreads();
4210 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
4211 wxPyEndAllowThreads(__tstate);
4212 if (PyErr_Occurred()) SWIG_fail;
4213 }
4214 resultobj = SWIG_Py_Void();
4215 return resultobj;
4216fail:
4217 return NULL;
4218}
4219
4220
4221SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4222 PyObject *resultobj = 0;
4223 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4224 wxBitmap *arg2 = 0 ;
4225 void *argp1 = 0 ;
4226 int res1 = 0 ;
4227 void *argp2 = 0 ;
4228 int res2 = 0 ;
4229 PyObject * obj0 = 0 ;
4230 PyObject * obj1 = 0 ;
4231 char * kwnames[] = {
4232 (char *) "self",(char *) "bitmap", NULL
4233 };
4234
4235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) SWIG_fail;
4236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4237 if (!SWIG_IsOK(res1)) {
4238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4239 }
4240 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4241 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4242 if (!SWIG_IsOK(res2)) {
4243 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4244 }
4245 if (!argp2) {
4246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapFocus" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4247 }
4248 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4249 {
4250 PyThreadState* __tstate = wxPyBeginAllowThreads();
4251 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
4252 wxPyEndAllowThreads(__tstate);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 resultobj = SWIG_Py_Void();
4256 return resultobj;
4257fail:
4258 return NULL;
4259}
4260
4261
4262SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4263 PyObject *resultobj = 0;
4264 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4265 wxBitmap *arg2 = 0 ;
4266 void *argp1 = 0 ;
4267 int res1 = 0 ;
4268 void *argp2 = 0 ;
4269 int res2 = 0 ;
4270 PyObject * obj0 = 0 ;
4271 PyObject * obj1 = 0 ;
4272 char * kwnames[] = {
4273 (char *) "self",(char *) "bitmap", NULL
4274 };
4275
4276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) SWIG_fail;
4277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4278 if (!SWIG_IsOK(res1)) {
4279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4280 }
4281 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4282 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4283 if (!SWIG_IsOK(res2)) {
4284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4285 }
4286 if (!argp2) {
4287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapSelected" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4288 }
4289 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4290 {
4291 PyThreadState* __tstate = wxPyBeginAllowThreads();
4292 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
4293 wxPyEndAllowThreads(__tstate);
4294 if (PyErr_Occurred()) SWIG_fail;
4295 }
4296 resultobj = SWIG_Py_Void();
4297 return resultobj;
4298fail:
4299 return NULL;
4300}
4301
4302
4303SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4304 PyObject *resultobj = 0;
4305 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4306 wxBitmap *arg2 = 0 ;
4307 void *argp1 = 0 ;
4308 int res1 = 0 ;
4309 void *argp2 = 0 ;
4310 int res2 = 0 ;
4311 PyObject * obj0 = 0 ;
4312 PyObject * obj1 = 0 ;
4313 char * kwnames[] = {
4314 (char *) "self",(char *) "bitmap", NULL
4315 };
4316
4317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) SWIG_fail;
4318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4319 if (!SWIG_IsOK(res1)) {
4320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4321 }
4322 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4323 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4324 if (!SWIG_IsOK(res2)) {
4325 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4326 }
4327 if (!argp2) {
4328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapLabel" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4329 }
4330 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4331 {
4332 PyThreadState* __tstate = wxPyBeginAllowThreads();
4333 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
4334 wxPyEndAllowThreads(__tstate);
4335 if (PyErr_Occurred()) SWIG_fail;
4336 }
4337 resultobj = SWIG_Py_Void();
4338 return resultobj;
4339fail:
4340 return NULL;
4341}
4342
4343
4344SWIGINTERN PyObject *_wrap_BitmapButton_SetBitmapHover(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4345 PyObject *resultobj = 0;
4346 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4347 wxBitmap *arg2 = 0 ;
4348 void *argp1 = 0 ;
4349 int res1 = 0 ;
4350 void *argp2 = 0 ;
4351 int res2 = 0 ;
4352 PyObject * obj0 = 0 ;
4353 PyObject * obj1 = 0 ;
4354 char * kwnames[] = {
4355 (char *) "self",(char *) "hover", NULL
4356 };
4357
4358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapHover",kwnames,&obj0,&obj1)) SWIG_fail;
4359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4360 if (!SWIG_IsOK(res1)) {
4361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4362 }
4363 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4364 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
4365 if (!SWIG_IsOK(res2)) {
4366 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4367 }
4368 if (!argp2) {
4369 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BitmapButton_SetBitmapHover" "', expected argument " "2"" of type '" "wxBitmap const &""'");
4370 }
4371 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4372 {
4373 PyThreadState* __tstate = wxPyBeginAllowThreads();
4374 (arg1)->SetBitmapHover((wxBitmap const &)*arg2);
4375 wxPyEndAllowThreads(__tstate);
4376 if (PyErr_Occurred()) SWIG_fail;
4377 }
4378 resultobj = SWIG_Py_Void();
4379 return resultobj;
4380fail:
4381 return NULL;
4382}
4383
4384
4385SWIGINTERN PyObject *_wrap_BitmapButton_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4386 PyObject *resultobj = 0;
4387 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4388 int arg2 ;
4389 int arg3 ;
4390 void *argp1 = 0 ;
4391 int res1 = 0 ;
4392 int val2 ;
4393 int ecode2 = 0 ;
4394 int val3 ;
4395 int ecode3 = 0 ;
4396 PyObject * obj0 = 0 ;
4397 PyObject * obj1 = 0 ;
4398 PyObject * obj2 = 0 ;
4399 char * kwnames[] = {
4400 (char *) "self",(char *) "x",(char *) "y", NULL
4401 };
4402
4403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4405 if (!SWIG_IsOK(res1)) {
4406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_SetMargins" "', expected argument " "1"" of type '" "wxBitmapButton *""'");
4407 }
4408 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4409 ecode2 = SWIG_AsVal_int(obj1, &val2);
4410 if (!SWIG_IsOK(ecode2)) {
4411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BitmapButton_SetMargins" "', expected argument " "2"" of type '" "int""'");
4412 }
4413 arg2 = static_cast< int >(val2);
4414 ecode3 = SWIG_AsVal_int(obj2, &val3);
4415 if (!SWIG_IsOK(ecode3)) {
4416 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BitmapButton_SetMargins" "', expected argument " "3"" of type '" "int""'");
4417 }
4418 arg3 = static_cast< int >(val3);
4419 {
4420 PyThreadState* __tstate = wxPyBeginAllowThreads();
4421 (arg1)->SetMargins(arg2,arg3);
4422 wxPyEndAllowThreads(__tstate);
4423 if (PyErr_Occurred()) SWIG_fail;
4424 }
4425 resultobj = SWIG_Py_Void();
4426 return resultobj;
4427fail:
4428 return NULL;
d55e5bfc
RD
4429}
4430
4431
1bd55598
RD
4432SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4433 PyObject *resultobj = 0;
4434 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4435 int result;
4436 void *argp1 = 0 ;
4437 int res1 = 0 ;
4438 PyObject *swig_obj[1] ;
4439
4440 if (!args) SWIG_fail;
4441 swig_obj[0] = args;
4442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4443 if (!SWIG_IsOK(res1)) {
4444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginX" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4445 }
4446 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4447 {
4448 PyThreadState* __tstate = wxPyBeginAllowThreads();
4449 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
4450 wxPyEndAllowThreads(__tstate);
4451 if (PyErr_Occurred()) SWIG_fail;
4452 }
4453 resultobj = SWIG_From_int(static_cast< int >(result));
4454 return resultobj;
4455fail:
4456 return NULL;
d55e5bfc
RD
4457}
4458
4459
1bd55598
RD
4460SWIGINTERN PyObject *_wrap_BitmapButton_GetMarginY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4461 PyObject *resultobj = 0;
4462 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
4463 int result;
4464 void *argp1 = 0 ;
4465 int res1 = 0 ;
4466 PyObject *swig_obj[1] ;
4467
4468 if (!args) SWIG_fail;
4469 swig_obj[0] = args;
4470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmapButton, 0 | 0 );
4471 if (!SWIG_IsOK(res1)) {
4472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BitmapButton_GetMarginY" "', expected argument " "1"" of type '" "wxBitmapButton const *""'");
4473 }
4474 arg1 = reinterpret_cast< wxBitmapButton * >(argp1);
4475 {
4476 PyThreadState* __tstate = wxPyBeginAllowThreads();
4477 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
4478 wxPyEndAllowThreads(__tstate);
4479 if (PyErr_Occurred()) SWIG_fail;
4480 }
4481 resultobj = SWIG_From_int(static_cast< int >(result));
4482 return resultobj;
4483fail:
4484 return NULL;
b1fcee84
RD
4485}
4486
4487
1bd55598
RD
4488SWIGINTERN PyObject *BitmapButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4489 PyObject *obj;
4490 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4491 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmapButton, SWIG_NewClientData(obj));
4492 return SWIG_Py_Void();
d55e5bfc
RD
4493}
4494
1bd55598
RD
4495SWIGINTERN PyObject *BitmapButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4496 return SWIG_Python_InitShadowInstance(args);
4497}
d55e5bfc 4498
1bd55598
RD
4499SWIGINTERN int CheckBoxNameStr_set(PyObject *) {
4500 SWIG_Error(SWIG_AttributeError,"Variable CheckBoxNameStr is read-only.");
4501 return 1;
d55e5bfc
RD
4502}
4503
4504
1bd55598
RD
4505SWIGINTERN PyObject *CheckBoxNameStr_get(void) {
4506 PyObject *pyobj = 0;
4507
4508 {
4509#if wxUSE_UNICODE
4510 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4511#else
4512 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
4513#endif
4514 }
4515 return pyobj;
4516}
4517
4518
4519SWIGINTERN PyObject *_wrap_new_CheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4520 PyObject *resultobj = 0;
4521 wxWindow *arg1 = (wxWindow *) 0 ;
4522 int arg2 = (int) -1 ;
4523 wxString const &arg3_defvalue = wxPyEmptyString ;
4524 wxString *arg3 = (wxString *) &arg3_defvalue ;
4525 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4526 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4527 wxSize const &arg5_defvalue = wxDefaultSize ;
4528 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4529 long arg6 = (long) 0 ;
4530 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4531 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4532 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
4533 wxString *arg8 = (wxString *) &arg8_defvalue ;
4534 wxCheckBox *result = 0 ;
4535 void *argp1 = 0 ;
4536 int res1 = 0 ;
4537 int val2 ;
4538 int ecode2 = 0 ;
4539 bool temp3 = false ;
4540 wxPoint temp4 ;
4541 wxSize temp5 ;
4542 long val6 ;
4543 int ecode6 = 0 ;
4544 void *argp7 = 0 ;
4545 int res7 = 0 ;
4546 bool temp8 = false ;
4547 PyObject * obj0 = 0 ;
4548 PyObject * obj1 = 0 ;
4549 PyObject * obj2 = 0 ;
4550 PyObject * obj3 = 0 ;
4551 PyObject * obj4 = 0 ;
4552 PyObject * obj5 = 0 ;
4553 PyObject * obj6 = 0 ;
4554 PyObject * obj7 = 0 ;
4555 char * kwnames[] = {
4556 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4557 };
4558
4559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
4560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
4561 if (!SWIG_IsOK(res1)) {
4562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckBox" "', expected argument " "1"" of type '" "wxWindow *""'");
4563 }
4564 arg1 = reinterpret_cast< wxWindow * >(argp1);
4565 if (obj1) {
4566 ecode2 = SWIG_AsVal_int(obj1, &val2);
4567 if (!SWIG_IsOK(ecode2)) {
4568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckBox" "', expected argument " "2"" of type '" "int""'");
4569 }
4570 arg2 = static_cast< int >(val2);
4571 }
4572 if (obj2) {
d55e5bfc 4573 {
1bd55598
RD
4574 arg3 = wxString_in_helper(obj2);
4575 if (arg3 == NULL) SWIG_fail;
4576 temp3 = true;
d55e5bfc 4577 }
1bd55598
RD
4578 }
4579 if (obj3) {
4580 {
4581 arg4 = &temp4;
4582 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 4583 }
1bd55598
RD
4584 }
4585 if (obj4) {
d55e5bfc 4586 {
1bd55598
RD
4587 arg5 = &temp5;
4588 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 4589 }
1bd55598
RD
4590 }
4591 if (obj5) {
4592 ecode6 = SWIG_AsVal_long(obj5, &val6);
4593 if (!SWIG_IsOK(ecode6)) {
4594 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckBox" "', expected argument " "6"" of type '" "long""'");
4595 }
4596 arg6 = static_cast< long >(val6);
4597 }
4598 if (obj6) {
4599 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
4600 if (!SWIG_IsOK(res7)) {
4601 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
b1fcee84 4602 }
1bd55598
RD
4603 if (!argp7) {
4604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
4605 }
4606 arg7 = reinterpret_cast< wxValidator * >(argp7);
4607 }
4608 if (obj7) {
b1fcee84 4609 {
1bd55598
RD
4610 arg8 = wxString_in_helper(obj7);
4611 if (arg8 == NULL) SWIG_fail;
4612 temp8 = true;
b1fcee84 4613 }
1bd55598
RD
4614 }
4615 {
4616 if (!wxPyCheckForApp()) SWIG_fail;
4617 PyThreadState* __tstate = wxPyBeginAllowThreads();
4618 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4619 wxPyEndAllowThreads(__tstate);
4620 if (PyErr_Occurred()) SWIG_fail;
4621 }
4622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_NEW | 0 );
4623 {
4624 if (temp3)
4625 delete arg3;
4626 }
4627 {
4628 if (temp8)
4629 delete arg8;
4630 }
4631 return resultobj;
4632fail:
4633 {
4634 if (temp3)
4635 delete arg3;
4636 }
4637 {
4638 if (temp8)
4639 delete arg8;
4640 }
4641 return NULL;
b1fcee84
RD
4642}
4643
4644
1bd55598
RD
4645SWIGINTERN PyObject *_wrap_new_PreCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4646 PyObject *resultobj = 0;
4647 wxCheckBox *result = 0 ;
4648
4649 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckBox",0,0,0)) SWIG_fail;
4650 {
4651 if (!wxPyCheckForApp()) SWIG_fail;
4652 PyThreadState* __tstate = wxPyBeginAllowThreads();
4653 result = (wxCheckBox *)new wxCheckBox();
4654 wxPyEndAllowThreads(__tstate);
4655 if (PyErr_Occurred()) SWIG_fail;
4656 }
4657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckBox, SWIG_POINTER_OWN | 0 );
4658 return resultobj;
4659fail:
4660 return NULL;
4661}
4662
4663
4664SWIGINTERN PyObject *_wrap_CheckBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4665 PyObject *resultobj = 0;
4666 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4667 wxWindow *arg2 = (wxWindow *) 0 ;
4668 int arg3 = (int) -1 ;
4669 wxString const &arg4_defvalue = wxPyEmptyString ;
4670 wxString *arg4 = (wxString *) &arg4_defvalue ;
4671 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4672 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4673 wxSize const &arg6_defvalue = wxDefaultSize ;
4674 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4675 long arg7 = (long) 0 ;
4676 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4677 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4678 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
4679 wxString *arg9 = (wxString *) &arg9_defvalue ;
4680 bool result;
4681 void *argp1 = 0 ;
4682 int res1 = 0 ;
4683 void *argp2 = 0 ;
4684 int res2 = 0 ;
4685 int val3 ;
4686 int ecode3 = 0 ;
4687 bool temp4 = false ;
4688 wxPoint temp5 ;
4689 wxSize temp6 ;
4690 long val7 ;
4691 int ecode7 = 0 ;
4692 void *argp8 = 0 ;
4693 int res8 = 0 ;
4694 bool temp9 = false ;
4695 PyObject * obj0 = 0 ;
4696 PyObject * obj1 = 0 ;
4697 PyObject * obj2 = 0 ;
4698 PyObject * obj3 = 0 ;
4699 PyObject * obj4 = 0 ;
4700 PyObject * obj5 = 0 ;
4701 PyObject * obj6 = 0 ;
4702 PyObject * obj7 = 0 ;
4703 PyObject * obj8 = 0 ;
4704 char * kwnames[] = {
4705 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4706 };
4707
4708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
4709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4710 if (!SWIG_IsOK(res1)) {
4711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Create" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4712 }
4713 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4714 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
4715 if (!SWIG_IsOK(res2)) {
4716 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
4717 }
4718 arg2 = reinterpret_cast< wxWindow * >(argp2);
4719 if (obj2) {
4720 ecode3 = SWIG_AsVal_int(obj2, &val3);
4721 if (!SWIG_IsOK(ecode3)) {
4722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckBox_Create" "', expected argument " "3"" of type '" "int""'");
4723 }
4724 arg3 = static_cast< int >(val3);
4725 }
4726 if (obj3) {
36ed4f51 4727 {
1bd55598
RD
4728 arg4 = wxString_in_helper(obj3);
4729 if (arg4 == NULL) SWIG_fail;
4730 temp4 = true;
36ed4f51 4731 }
1bd55598
RD
4732 }
4733 if (obj4) {
36ed4f51 4734 {
1bd55598
RD
4735 arg5 = &temp5;
4736 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 4737 }
1bd55598
RD
4738 }
4739 if (obj5) {
d55e5bfc 4740 {
1bd55598
RD
4741 arg6 = &temp6;
4742 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 4743 }
1bd55598
RD
4744 }
4745 if (obj6) {
4746 ecode7 = SWIG_AsVal_long(obj6, &val7);
4747 if (!SWIG_IsOK(ecode7)) {
4748 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckBox_Create" "', expected argument " "7"" of type '" "long""'");
4749 }
4750 arg7 = static_cast< long >(val7);
4751 }
4752 if (obj7) {
4753 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
4754 if (!SWIG_IsOK(res8)) {
4755 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 4756 }
1bd55598
RD
4757 if (!argp8) {
4758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
4759 }
4760 arg8 = reinterpret_cast< wxValidator * >(argp8);
4761 }
4762 if (obj8) {
36ed4f51 4763 {
1bd55598
RD
4764 arg9 = wxString_in_helper(obj8);
4765 if (arg9 == NULL) SWIG_fail;
4766 temp9 = true;
36ed4f51 4767 }
1bd55598
RD
4768 }
4769 {
4770 PyThreadState* __tstate = wxPyBeginAllowThreads();
4771 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4772 wxPyEndAllowThreads(__tstate);
4773 if (PyErr_Occurred()) SWIG_fail;
4774 }
4775 {
4776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4777 }
4778 {
4779 if (temp4)
4780 delete arg4;
4781 }
4782 {
4783 if (temp9)
4784 delete arg9;
4785 }
4786 return resultobj;
4787fail:
4788 {
4789 if (temp4)
4790 delete arg4;
4791 }
4792 {
4793 if (temp9)
4794 delete arg9;
4795 }
4796 return NULL;
d55e5bfc
RD
4797}
4798
4799
1bd55598
RD
4800SWIGINTERN PyObject *_wrap_CheckBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4801 PyObject *resultobj = 0;
4802 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4803 bool result;
4804 void *argp1 = 0 ;
4805 int res1 = 0 ;
4806 PyObject *swig_obj[1] ;
4807
4808 if (!args) SWIG_fail;
4809 swig_obj[0] = args;
4810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4811 if (!SWIG_IsOK(res1)) {
4812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_GetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4813 }
4814 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4815 {
4816 PyThreadState* __tstate = wxPyBeginAllowThreads();
4817 result = (bool)(arg1)->GetValue();
4818 wxPyEndAllowThreads(__tstate);
4819 if (PyErr_Occurred()) SWIG_fail;
4820 }
4821 {
4822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4823 }
4824 return resultobj;
4825fail:
4826 return NULL;
d55e5bfc
RD
4827}
4828
4829
1bd55598
RD
4830SWIGINTERN PyObject *_wrap_CheckBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4831 PyObject *resultobj = 0;
4832 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4833 bool result;
4834 void *argp1 = 0 ;
4835 int res1 = 0 ;
4836 PyObject *swig_obj[1] ;
4837
4838 if (!args) SWIG_fail;
4839 swig_obj[0] = args;
4840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4841 if (!SWIG_IsOK(res1)) {
4842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4843 }
4844 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4845 {
4846 PyThreadState* __tstate = wxPyBeginAllowThreads();
4847 result = (bool)(arg1)->IsChecked();
4848 wxPyEndAllowThreads(__tstate);
4849 if (PyErr_Occurred()) SWIG_fail;
4850 }
4851 {
4852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4853 }
4854 return resultobj;
4855fail:
4856 return NULL;
4857}
4858
4859
4860SWIGINTERN PyObject *_wrap_CheckBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4861 PyObject *resultobj = 0;
4862 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4863 bool arg2 ;
4864 void *argp1 = 0 ;
4865 int res1 = 0 ;
4866 bool val2 ;
4867 int ecode2 = 0 ;
4868 PyObject * obj0 = 0 ;
4869 PyObject * obj1 = 0 ;
4870 char * kwnames[] = {
4871 (char *) "self",(char *) "state", NULL
4872 };
4873
4874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
4875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4876 if (!SWIG_IsOK(res1)) {
4877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_SetValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4878 }
4879 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4880 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4881 if (!SWIG_IsOK(ecode2)) {
4882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_SetValue" "', expected argument " "2"" of type '" "bool""'");
4883 }
4884 arg2 = static_cast< bool >(val2);
4885 {
4886 PyThreadState* __tstate = wxPyBeginAllowThreads();
4887 (arg1)->SetValue(arg2);
4888 wxPyEndAllowThreads(__tstate);
4889 if (PyErr_Occurred()) SWIG_fail;
4890 }
4891 resultobj = SWIG_Py_Void();
4892 return resultobj;
4893fail:
4894 return NULL;
d55e5bfc 4895}
1bd55598
RD
4896
4897
4898SWIGINTERN PyObject *_wrap_CheckBox_Get3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4899 PyObject *resultobj = 0;
4900 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4901 wxCheckBoxState result;
4902 void *argp1 = 0 ;
4903 int res1 = 0 ;
4904 PyObject *swig_obj[1] ;
4905
4906 if (!args) SWIG_fail;
4907 swig_obj[0] = args;
4908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4909 if (!SWIG_IsOK(res1)) {
4910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Get3StateValue" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4911 }
4912 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4913 {
4914 PyThreadState* __tstate = wxPyBeginAllowThreads();
4915 result = (wxCheckBoxState)((wxCheckBox const *)arg1)->Get3StateValue();
4916 wxPyEndAllowThreads(__tstate);
4917 if (PyErr_Occurred()) SWIG_fail;
4918 }
4919 resultobj = SWIG_From_int(static_cast< int >(result));
4920 return resultobj;
4921fail:
4922 return NULL;
4923}
4924
4925
4926SWIGINTERN PyObject *_wrap_CheckBox_Set3StateValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4927 PyObject *resultobj = 0;
4928 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4929 wxCheckBoxState arg2 ;
4930 void *argp1 = 0 ;
4931 int res1 = 0 ;
4932 int val2 ;
4933 int ecode2 = 0 ;
4934 PyObject * obj0 = 0 ;
4935 PyObject * obj1 = 0 ;
4936 char * kwnames[] = {
4937 (char *) "self",(char *) "state", NULL
4938 };
4939
4940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) SWIG_fail;
4941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4942 if (!SWIG_IsOK(res1)) {
4943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Set3StateValue" "', expected argument " "1"" of type '" "wxCheckBox *""'");
4944 }
4945 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4946 ecode2 = SWIG_AsVal_int(obj1, &val2);
4947 if (!SWIG_IsOK(ecode2)) {
4948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckBox_Set3StateValue" "', expected argument " "2"" of type '" "wxCheckBoxState""'");
4949 }
4950 arg2 = static_cast< wxCheckBoxState >(val2);
4951 {
4952 PyThreadState* __tstate = wxPyBeginAllowThreads();
4953 (arg1)->Set3StateValue(arg2);
4954 wxPyEndAllowThreads(__tstate);
4955 if (PyErr_Occurred()) SWIG_fail;
4956 }
4957 resultobj = SWIG_Py_Void();
4958 return resultobj;
4959fail:
4960 return NULL;
d55e5bfc
RD
4961}
4962
4963
1bd55598
RD
4964SWIGINTERN PyObject *_wrap_CheckBox_Is3State(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4965 PyObject *resultobj = 0;
4966 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4967 bool result;
4968 void *argp1 = 0 ;
4969 int res1 = 0 ;
4970 PyObject *swig_obj[1] ;
4971
4972 if (!args) SWIG_fail;
4973 swig_obj[0] = args;
4974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
4975 if (!SWIG_IsOK(res1)) {
4976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3State" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
4977 }
4978 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
4979 {
4980 PyThreadState* __tstate = wxPyBeginAllowThreads();
4981 result = (bool)((wxCheckBox const *)arg1)->Is3State();
4982 wxPyEndAllowThreads(__tstate);
4983 if (PyErr_Occurred()) SWIG_fail;
4984 }
4985 {
4986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4987 }
4988 return resultobj;
4989fail:
4990 return NULL;
d55e5bfc
RD
4991}
4992
4993
1bd55598
RD
4994SWIGINTERN PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4995 PyObject *resultobj = 0;
4996 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
4997 bool result;
4998 void *argp1 = 0 ;
4999 int res1 = 0 ;
5000 PyObject *swig_obj[1] ;
5001
5002 if (!args) SWIG_fail;
5003 swig_obj[0] = args;
5004 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCheckBox, 0 | 0 );
5005 if (!SWIG_IsOK(res1)) {
5006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckBox_Is3rdStateAllowedForUser" "', expected argument " "1"" of type '" "wxCheckBox const *""'");
5007 }
5008 arg1 = reinterpret_cast< wxCheckBox * >(argp1);
5009 {
5010 PyThreadState* __tstate = wxPyBeginAllowThreads();
5011 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
5012 wxPyEndAllowThreads(__tstate);
5013 if (PyErr_Occurred()) SWIG_fail;
5014 }
5015 {
5016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5017 }
5018 return resultobj;
5019fail:
5020 return NULL;
d55e5bfc
RD
5021}
5022
5023
1bd55598
RD
5024SWIGINTERN PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5025 PyObject *resultobj = 0;
5026 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5027 SwigValueWrapper<wxVisualAttributes > result;
5028 int val1 ;
5029 int ecode1 = 0 ;
5030 PyObject * obj0 = 0 ;
5031 char * kwnames[] = {
5032 (char *) "variant", NULL
5033 };
5034
5035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5036 if (obj0) {
5037 ecode1 = SWIG_AsVal_int(obj0, &val1);
5038 if (!SWIG_IsOK(ecode1)) {
5039 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CheckBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5040 }
5041 arg1 = static_cast< wxWindowVariant >(val1);
5042 }
5043 {
5044 if (!wxPyCheckForApp()) SWIG_fail;
5045 PyThreadState* __tstate = wxPyBeginAllowThreads();
5046 result = wxCheckBox::GetClassDefaultAttributes(arg1);
5047 wxPyEndAllowThreads(__tstate);
5048 if (PyErr_Occurred()) SWIG_fail;
5049 }
5050 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5051 return resultobj;
5052fail:
5053 return NULL;
d55e5bfc
RD
5054}
5055
5056
1bd55598
RD
5057SWIGINTERN PyObject *CheckBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5058 PyObject *obj;
5059 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5060 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckBox, SWIG_NewClientData(obj));
5061 return SWIG_Py_Void();
d55e5bfc
RD
5062}
5063
1bd55598
RD
5064SWIGINTERN PyObject *CheckBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5065 return SWIG_Python_InitShadowInstance(args);
5066}
d55e5bfc 5067
1bd55598
RD
5068SWIGINTERN int ChoiceNameStr_set(PyObject *) {
5069 SWIG_Error(SWIG_AttributeError,"Variable ChoiceNameStr is read-only.");
5070 return 1;
d55e5bfc
RD
5071}
5072
5073
1bd55598
RD
5074SWIGINTERN PyObject *ChoiceNameStr_get(void) {
5075 PyObject *pyobj = 0;
5076
5077 {
5078#if wxUSE_UNICODE
5079 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5080#else
5081 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
5082#endif
5083 }
5084 return pyobj;
5085}
5086
5087
5088SWIGINTERN PyObject *_wrap_new_Choice(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5089 PyObject *resultobj = 0;
5090 wxWindow *arg1 = (wxWindow *) 0 ;
5091 int arg2 = (int) -1 ;
5092 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5093 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5094 wxSize const &arg4_defvalue = wxDefaultSize ;
5095 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5096 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5097 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5098 long arg6 = (long) 0 ;
5099 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5100 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5101 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
5102 wxString *arg8 = (wxString *) &arg8_defvalue ;
5103 wxChoice *result = 0 ;
5104 void *argp1 = 0 ;
5105 int res1 = 0 ;
5106 int val2 ;
5107 int ecode2 = 0 ;
5108 wxPoint temp3 ;
5109 wxSize temp4 ;
5110 bool temp5 = false ;
5111 long val6 ;
5112 int ecode6 = 0 ;
5113 void *argp7 = 0 ;
5114 int res7 = 0 ;
5115 bool temp8 = false ;
5116 PyObject * obj0 = 0 ;
5117 PyObject * obj1 = 0 ;
5118 PyObject * obj2 = 0 ;
5119 PyObject * obj3 = 0 ;
5120 PyObject * obj4 = 0 ;
5121 PyObject * obj5 = 0 ;
5122 PyObject * obj6 = 0 ;
5123 PyObject * obj7 = 0 ;
5124 char * kwnames[] = {
5125 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5126 };
5127
5128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
5129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5130 if (!SWIG_IsOK(res1)) {
5131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choice" "', expected argument " "1"" of type '" "wxWindow *""'");
5132 }
5133 arg1 = reinterpret_cast< wxWindow * >(argp1);
5134 if (obj1) {
5135 ecode2 = SWIG_AsVal_int(obj1, &val2);
5136 if (!SWIG_IsOK(ecode2)) {
5137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choice" "', expected argument " "2"" of type '" "int""'");
5138 }
5139 arg2 = static_cast< int >(val2);
5140 }
5141 if (obj2) {
36ed4f51 5142 {
1bd55598
RD
5143 arg3 = &temp3;
5144 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 5145 }
1bd55598
RD
5146 }
5147 if (obj3) {
d55e5bfc 5148 {
1bd55598
RD
5149 arg4 = &temp4;
5150 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5151 }
1bd55598
RD
5152 }
5153 if (obj4) {
d55e5bfc 5154 {
1bd55598
RD
5155 if (! PySequence_Check(obj4)) {
5156 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5157 SWIG_fail;
5158 }
5159 arg5 = new wxArrayString;
5160 temp5 = true;
5161 int i, len=PySequence_Length(obj4);
5162 for (i=0; i<len; i++) {
5163 PyObject* item = PySequence_GetItem(obj4, i);
5164 wxString* s = wxString_in_helper(item);
5165 if (PyErr_Occurred()) SWIG_fail;
5166 arg5->Add(*s);
5167 delete s;
5168 Py_DECREF(item);
5169 }
d55e5bfc 5170 }
1bd55598
RD
5171 }
5172 if (obj5) {
5173 ecode6 = SWIG_AsVal_long(obj5, &val6);
5174 if (!SWIG_IsOK(ecode6)) {
5175 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Choice" "', expected argument " "6"" of type '" "long""'");
5176 }
5177 arg6 = static_cast< long >(val6);
5178 }
5179 if (obj6) {
5180 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
5181 if (!SWIG_IsOK(res7)) {
5182 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 5183 }
1bd55598
RD
5184 if (!argp7) {
5185 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Choice" "', expected argument " "7"" of type '" "wxValidator const &""'");
5186 }
5187 arg7 = reinterpret_cast< wxValidator * >(argp7);
5188 }
5189 if (obj7) {
d55e5bfc 5190 {
1bd55598
RD
5191 arg8 = wxString_in_helper(obj7);
5192 if (arg8 == NULL) SWIG_fail;
5193 temp8 = true;
d55e5bfc 5194 }
1bd55598
RD
5195 }
5196 {
5197 if (!wxPyCheckForApp()) SWIG_fail;
5198 PyThreadState* __tstate = wxPyBeginAllowThreads();
5199 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5200 wxPyEndAllowThreads(__tstate);
5201 if (PyErr_Occurred()) SWIG_fail;
5202 }
5203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_NEW | 0 );
5204 {
5205 if (temp5) delete arg5;
5206 }
5207 {
5208 if (temp8)
5209 delete arg8;
5210 }
5211 return resultobj;
5212fail:
5213 {
5214 if (temp5) delete arg5;
5215 }
5216 {
5217 if (temp8)
5218 delete arg8;
5219 }
5220 return NULL;
d55e5bfc
RD
5221}
5222
5223
1bd55598
RD
5224SWIGINTERN PyObject *_wrap_new_PreChoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5225 PyObject *resultobj = 0;
5226 wxChoice *result = 0 ;
5227
5228 if (!SWIG_Python_UnpackTuple(args,"new_PreChoice",0,0,0)) SWIG_fail;
5229 {
5230 if (!wxPyCheckForApp()) SWIG_fail;
5231 PyThreadState* __tstate = wxPyBeginAllowThreads();
5232 result = (wxChoice *)new wxChoice();
5233 wxPyEndAllowThreads(__tstate);
5234 if (PyErr_Occurred()) SWIG_fail;
5235 }
5236 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, SWIG_POINTER_OWN | 0 );
5237 return resultobj;
5238fail:
5239 return NULL;
5240}
5241
5242
5243SWIGINTERN PyObject *_wrap_Choice_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5244 PyObject *resultobj = 0;
5245 wxChoice *arg1 = (wxChoice *) 0 ;
5246 wxWindow *arg2 = (wxWindow *) 0 ;
5247 int arg3 = (int) -1 ;
5248 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5249 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5250 wxSize const &arg5_defvalue = wxDefaultSize ;
5251 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5252 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5253 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5254 long arg7 = (long) 0 ;
5255 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5256 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5257 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
5258 wxString *arg9 = (wxString *) &arg9_defvalue ;
5259 bool result;
5260 void *argp1 = 0 ;
5261 int res1 = 0 ;
5262 void *argp2 = 0 ;
5263 int res2 = 0 ;
5264 int val3 ;
5265 int ecode3 = 0 ;
5266 wxPoint temp4 ;
5267 wxSize temp5 ;
5268 bool temp6 = false ;
5269 long val7 ;
5270 int ecode7 = 0 ;
5271 void *argp8 = 0 ;
5272 int res8 = 0 ;
5273 bool temp9 = false ;
5274 PyObject * obj0 = 0 ;
5275 PyObject * obj1 = 0 ;
5276 PyObject * obj2 = 0 ;
5277 PyObject * obj3 = 0 ;
5278 PyObject * obj4 = 0 ;
5279 PyObject * obj5 = 0 ;
5280 PyObject * obj6 = 0 ;
5281 PyObject * obj7 = 0 ;
5282 PyObject * obj8 = 0 ;
5283 char * kwnames[] = {
5284 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5285 };
5286
5287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5289 if (!SWIG_IsOK(res1)) {
5290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_Create" "', expected argument " "1"" of type '" "wxChoice *""'");
5291 }
5292 arg1 = reinterpret_cast< wxChoice * >(argp1);
5293 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5294 if (!SWIG_IsOK(res2)) {
5295 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choice_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5296 }
5297 arg2 = reinterpret_cast< wxWindow * >(argp2);
5298 if (obj2) {
5299 ecode3 = SWIG_AsVal_int(obj2, &val3);
5300 if (!SWIG_IsOK(ecode3)) {
5301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choice_Create" "', expected argument " "3"" of type '" "int""'");
5302 }
5303 arg3 = static_cast< int >(val3);
5304 }
5305 if (obj3) {
d55e5bfc 5306 {
1bd55598
RD
5307 arg4 = &temp4;
5308 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5309 }
1bd55598
RD
5310 }
5311 if (obj4) {
d55e5bfc 5312 {
1bd55598
RD
5313 arg5 = &temp5;
5314 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5315 }
1bd55598
RD
5316 }
5317 if (obj5) {
d55e5bfc 5318 {
1bd55598
RD
5319 if (! PySequence_Check(obj5)) {
5320 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5321 SWIG_fail;
5322 }
5323 arg6 = new wxArrayString;
5324 temp6 = true;
5325 int i, len=PySequence_Length(obj5);
5326 for (i=0; i<len; i++) {
5327 PyObject* item = PySequence_GetItem(obj5, i);
5328 wxString* s = wxString_in_helper(item);
5329 if (PyErr_Occurred()) SWIG_fail;
5330 arg6->Add(*s);
5331 delete s;
5332 Py_DECREF(item);
5333 }
5334 }
5335 }
5336 if (obj6) {
5337 ecode7 = SWIG_AsVal_long(obj6, &val7);
5338 if (!SWIG_IsOK(ecode7)) {
5339 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Choice_Create" "', expected argument " "7"" of type '" "long""'");
5340 }
5341 arg7 = static_cast< long >(val7);
5342 }
5343 if (obj7) {
5344 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5345 if (!SWIG_IsOK(res8)) {
5346 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 5347 }
1bd55598
RD
5348 if (!argp8) {
5349 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Choice_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5350 }
5351 arg8 = reinterpret_cast< wxValidator * >(argp8);
5352 }
5353 if (obj8) {
d55e5bfc 5354 {
1bd55598
RD
5355 arg9 = wxString_in_helper(obj8);
5356 if (arg9 == NULL) SWIG_fail;
5357 temp9 = true;
d55e5bfc 5358 }
1bd55598
RD
5359 }
5360 {
5361 PyThreadState* __tstate = wxPyBeginAllowThreads();
5362 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5363 wxPyEndAllowThreads(__tstate);
5364 if (PyErr_Occurred()) SWIG_fail;
5365 }
5366 {
5367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5368 }
5369 {
5370 if (temp6) delete arg6;
5371 }
5372 {
5373 if (temp9)
5374 delete arg9;
5375 }
5376 return resultobj;
5377fail:
5378 {
5379 if (temp6) delete arg6;
5380 }
5381 {
5382 if (temp9)
5383 delete arg9;
5384 }
5385 return NULL;
d55e5bfc
RD
5386}
5387
5388
1bd55598
RD
5389SWIGINTERN PyObject *_wrap_Choice_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5390 PyObject *resultobj = 0;
5391 wxChoice *arg1 = (wxChoice *) 0 ;
5392 int result;
5393 void *argp1 = 0 ;
5394 int res1 = 0 ;
5395 PyObject *swig_obj[1] ;
5396
5397 if (!args) SWIG_fail;
5398 swig_obj[0] = args;
5399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoice, 0 | 0 );
5400 if (!SWIG_IsOK(res1)) {
5401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choice_GetCurrentSelection" "', expected argument " "1"" of type '" "wxChoice const *""'");
5402 }
5403 arg1 = reinterpret_cast< wxChoice * >(argp1);
5404 {
5405 PyThreadState* __tstate = wxPyBeginAllowThreads();
5406 result = (int)((wxChoice const *)arg1)->GetCurrentSelection();
5407 wxPyEndAllowThreads(__tstate);
5408 if (PyErr_Occurred()) SWIG_fail;
5409 }
5410 resultobj = SWIG_From_int(static_cast< int >(result));
5411 return resultobj;
5412fail:
5413 return NULL;
5414}
5415
5416
5417SWIGINTERN PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5418 PyObject *resultobj = 0;
5419 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
5420 SwigValueWrapper<wxVisualAttributes > result;
5421 int val1 ;
5422 int ecode1 = 0 ;
5423 PyObject * obj0 = 0 ;
5424 char * kwnames[] = {
5425 (char *) "variant", NULL
5426 };
5427
5428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
5429 if (obj0) {
5430 ecode1 = SWIG_AsVal_int(obj0, &val1);
5431 if (!SWIG_IsOK(ecode1)) {
5432 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Choice_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
5433 }
5434 arg1 = static_cast< wxWindowVariant >(val1);
5435 }
5436 {
5437 if (!wxPyCheckForApp()) SWIG_fail;
5438 PyThreadState* __tstate = wxPyBeginAllowThreads();
5439 result = wxChoice::GetClassDefaultAttributes(arg1);
5440 wxPyEndAllowThreads(__tstate);
5441 if (PyErr_Occurred()) SWIG_fail;
5442 }
5443 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
5444 return resultobj;
5445fail:
5446 return NULL;
f20a2e1f
RD
5447}
5448
5449
1bd55598
RD
5450SWIGINTERN PyObject *Choice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5451 PyObject *obj;
5452 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5453 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoice, SWIG_NewClientData(obj));
5454 return SWIG_Py_Void();
d55e5bfc 5455}
1bd55598
RD
5456
5457SWIGINTERN PyObject *Choice_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5458 return SWIG_Python_InitShadowInstance(args);
5459}
5460
5461SWIGINTERN int ComboBoxNameStr_set(PyObject *) {
5462 SWIG_Error(SWIG_AttributeError,"Variable ComboBoxNameStr is read-only.");
5463 return 1;
d55e5bfc
RD
5464}
5465
5466
1bd55598
RD
5467SWIGINTERN PyObject *ComboBoxNameStr_get(void) {
5468 PyObject *pyobj = 0;
5469
5470 {
d55e5bfc 5471#if wxUSE_UNICODE
1bd55598 5472 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5473#else
1bd55598 5474 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
d55e5bfc 5475#endif
1bd55598
RD
5476 }
5477 return pyobj;
5478}
5479
5480
5481SWIGINTERN PyObject *_wrap_new_ComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5482 PyObject *resultobj = 0;
5483 wxWindow *arg1 = (wxWindow *) 0 ;
5484 int arg2 = (int) -1 ;
5485 wxString const &arg3_defvalue = wxPyEmptyString ;
5486 wxString *arg3 = (wxString *) &arg3_defvalue ;
5487 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5488 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5489 wxSize const &arg5_defvalue = wxDefaultSize ;
5490 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5491 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5492 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5493 long arg7 = (long) 0 ;
5494 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5495 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5496 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
5497 wxString *arg9 = (wxString *) &arg9_defvalue ;
5498 wxComboBox *result = 0 ;
5499 void *argp1 = 0 ;
5500 int res1 = 0 ;
5501 int val2 ;
5502 int ecode2 = 0 ;
5503 bool temp3 = false ;
5504 wxPoint temp4 ;
5505 wxSize temp5 ;
5506 bool temp6 = false ;
5507 long val7 ;
5508 int ecode7 = 0 ;
5509 void *argp8 = 0 ;
5510 int res8 = 0 ;
5511 bool temp9 = false ;
5512 PyObject * obj0 = 0 ;
5513 PyObject * obj1 = 0 ;
5514 PyObject * obj2 = 0 ;
5515 PyObject * obj3 = 0 ;
5516 PyObject * obj4 = 0 ;
5517 PyObject * obj5 = 0 ;
5518 PyObject * obj6 = 0 ;
5519 PyObject * obj7 = 0 ;
5520 PyObject * obj8 = 0 ;
5521 char * kwnames[] = {
5522 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5523 };
5524
5525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
5526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
5527 if (!SWIG_IsOK(res1)) {
5528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ComboBox" "', expected argument " "1"" of type '" "wxWindow *""'");
5529 }
5530 arg1 = reinterpret_cast< wxWindow * >(argp1);
5531 if (obj1) {
5532 ecode2 = SWIG_AsVal_int(obj1, &val2);
5533 if (!SWIG_IsOK(ecode2)) {
5534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ComboBox" "', expected argument " "2"" of type '" "int""'");
5535 }
5536 arg2 = static_cast< int >(val2);
5537 }
5538 if (obj2) {
d55e5bfc 5539 {
1bd55598
RD
5540 arg3 = wxString_in_helper(obj2);
5541 if (arg3 == NULL) SWIG_fail;
5542 temp3 = true;
d55e5bfc 5543 }
1bd55598
RD
5544 }
5545 if (obj3) {
d55e5bfc 5546 {
1bd55598
RD
5547 arg4 = &temp4;
5548 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 5549 }
1bd55598
RD
5550 }
5551 if (obj4) {
d55e5bfc 5552 {
1bd55598
RD
5553 arg5 = &temp5;
5554 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5555 }
1bd55598
RD
5556 }
5557 if (obj5) {
d55e5bfc 5558 {
1bd55598
RD
5559 if (! PySequence_Check(obj5)) {
5560 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5561 SWIG_fail;
5562 }
5563 arg6 = new wxArrayString;
5564 temp6 = true;
5565 int i, len=PySequence_Length(obj5);
5566 for (i=0; i<len; i++) {
5567 PyObject* item = PySequence_GetItem(obj5, i);
5568 wxString* s = wxString_in_helper(item);
5569 if (PyErr_Occurred()) SWIG_fail;
5570 arg6->Add(*s);
5571 delete s;
5572 Py_DECREF(item);
5573 }
d55e5bfc 5574 }
1bd55598
RD
5575 }
5576 if (obj6) {
5577 ecode7 = SWIG_AsVal_long(obj6, &val7);
5578 if (!SWIG_IsOK(ecode7)) {
5579 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_ComboBox" "', expected argument " "7"" of type '" "long""'");
5580 }
5581 arg7 = static_cast< long >(val7);
5582 }
5583 if (obj7) {
5584 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
5585 if (!SWIG_IsOK(res8)) {
5586 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5587 }
5588 if (!argp8) {
5589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ComboBox" "', expected argument " "8"" of type '" "wxValidator const &""'");
5590 }
5591 arg8 = reinterpret_cast< wxValidator * >(argp8);
5592 }
5593 if (obj8) {
d55e5bfc 5594 {
1bd55598
RD
5595 arg9 = wxString_in_helper(obj8);
5596 if (arg9 == NULL) SWIG_fail;
5597 temp9 = true;
d55e5bfc 5598 }
1bd55598
RD
5599 }
5600 {
5601 if (!wxPyCheckForApp()) SWIG_fail;
5602 PyThreadState* __tstate = wxPyBeginAllowThreads();
5603 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);
5604 wxPyEndAllowThreads(__tstate);
5605 if (PyErr_Occurred()) SWIG_fail;
5606 }
5607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_NEW | 0 );
5608 {
5609 if (temp3)
5610 delete arg3;
5611 }
5612 {
5613 if (temp6) delete arg6;
5614 }
5615 {
5616 if (temp9)
5617 delete arg9;
5618 }
5619 return resultobj;
5620fail:
5621 {
5622 if (temp3)
5623 delete arg3;
5624 }
5625 {
5626 if (temp6) delete arg6;
5627 }
5628 {
5629 if (temp9)
5630 delete arg9;
5631 }
5632 return NULL;
d55e5bfc
RD
5633}
5634
5635
1bd55598
RD
5636SWIGINTERN PyObject *_wrap_new_PreComboBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5637 PyObject *resultobj = 0;
5638 wxComboBox *result = 0 ;
5639
5640 if (!SWIG_Python_UnpackTuple(args,"new_PreComboBox",0,0,0)) SWIG_fail;
5641 {
5642 if (!wxPyCheckForApp()) SWIG_fail;
5643 PyThreadState* __tstate = wxPyBeginAllowThreads();
5644 result = (wxComboBox *)new wxComboBox();
5645 wxPyEndAllowThreads(__tstate);
5646 if (PyErr_Occurred()) SWIG_fail;
5647 }
5648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxComboBox, SWIG_POINTER_OWN | 0 );
5649 return resultobj;
5650fail:
5651 return NULL;
5652}
5653
5654
5655SWIGINTERN PyObject *_wrap_ComboBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5656 PyObject *resultobj = 0;
5657 wxComboBox *arg1 = (wxComboBox *) 0 ;
5658 wxWindow *arg2 = (wxWindow *) 0 ;
5659 int arg3 = (int) -1 ;
5660 wxString const &arg4_defvalue = wxPyEmptyString ;
5661 wxString *arg4 = (wxString *) &arg4_defvalue ;
5662 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5663 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5664 wxSize const &arg6_defvalue = wxDefaultSize ;
5665 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5666 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
5667 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
5668 long arg8 = (long) 0 ;
5669 wxValidator const &arg9_defvalue = wxDefaultValidator ;
5670 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
5671 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
5672 wxString *arg10 = (wxString *) &arg10_defvalue ;
5673 bool result;
5674 void *argp1 = 0 ;
5675 int res1 = 0 ;
5676 void *argp2 = 0 ;
5677 int res2 = 0 ;
5678 int val3 ;
5679 int ecode3 = 0 ;
5680 bool temp4 = false ;
5681 wxPoint temp5 ;
5682 wxSize temp6 ;
5683 bool temp7 = false ;
5684 long val8 ;
5685 int ecode8 = 0 ;
5686 void *argp9 = 0 ;
5687 int res9 = 0 ;
5688 bool temp10 = false ;
5689 PyObject * obj0 = 0 ;
5690 PyObject * obj1 = 0 ;
5691 PyObject * obj2 = 0 ;
5692 PyObject * obj3 = 0 ;
5693 PyObject * obj4 = 0 ;
5694 PyObject * obj5 = 0 ;
5695 PyObject * obj6 = 0 ;
5696 PyObject * obj7 = 0 ;
5697 PyObject * obj8 = 0 ;
5698 PyObject * obj9 = 0 ;
5699 char * kwnames[] = {
5700 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5701 };
5702
5703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
5704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5705 if (!SWIG_IsOK(res1)) {
5706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Create" "', expected argument " "1"" of type '" "wxComboBox *""'");
5707 }
5708 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5709 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
5710 if (!SWIG_IsOK(res2)) {
5711 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ComboBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
5712 }
5713 arg2 = reinterpret_cast< wxWindow * >(argp2);
5714 if (obj2) {
5715 ecode3 = SWIG_AsVal_int(obj2, &val3);
5716 if (!SWIG_IsOK(ecode3)) {
5717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Create" "', expected argument " "3"" of type '" "int""'");
5718 }
5719 arg3 = static_cast< int >(val3);
5720 }
5721 if (obj3) {
d55e5bfc 5722 {
1bd55598
RD
5723 arg4 = wxString_in_helper(obj3);
5724 if (arg4 == NULL) SWIG_fail;
5725 temp4 = true;
d55e5bfc 5726 }
1bd55598
RD
5727 }
5728 if (obj4) {
d55e5bfc 5729 {
1bd55598
RD
5730 arg5 = &temp5;
5731 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 5732 }
1bd55598
RD
5733 }
5734 if (obj5) {
d55e5bfc 5735 {
1bd55598
RD
5736 arg6 = &temp6;
5737 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 5738 }
1bd55598
RD
5739 }
5740 if (obj6) {
d55e5bfc 5741 {
1bd55598
RD
5742 if (! PySequence_Check(obj6)) {
5743 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5744 SWIG_fail;
5745 }
5746 arg7 = new wxArrayString;
5747 temp7 = true;
5748 int i, len=PySequence_Length(obj6);
5749 for (i=0; i<len; i++) {
5750 PyObject* item = PySequence_GetItem(obj6, i);
5751 wxString* s = wxString_in_helper(item);
5752 if (PyErr_Occurred()) SWIG_fail;
5753 arg7->Add(*s);
5754 delete s;
5755 Py_DECREF(item);
5756 }
d55e5bfc 5757 }
1bd55598
RD
5758 }
5759 if (obj7) {
5760 ecode8 = SWIG_AsVal_long(obj7, &val8);
5761 if (!SWIG_IsOK(ecode8)) {
5762 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "ComboBox_Create" "', expected argument " "8"" of type '" "long""'");
5763 }
5764 arg8 = static_cast< long >(val8);
5765 }
5766 if (obj8) {
5767 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
5768 if (!SWIG_IsOK(res9)) {
5769 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5770 }
1bd55598
RD
5771 if (!argp9) {
5772 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ComboBox_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 5773 }
1bd55598
RD
5774 arg9 = reinterpret_cast< wxValidator * >(argp9);
5775 }
5776 if (obj9) {
d55e5bfc 5777 {
1bd55598
RD
5778 arg10 = wxString_in_helper(obj9);
5779 if (arg10 == NULL) SWIG_fail;
5780 temp10 = true;
d55e5bfc 5781 }
1bd55598
RD
5782 }
5783 {
5784 PyThreadState* __tstate = wxPyBeginAllowThreads();
5785 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);
5786 wxPyEndAllowThreads(__tstate);
5787 if (PyErr_Occurred()) SWIG_fail;
5788 }
5789 {
5790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5791 }
5792 {
5793 if (temp4)
5794 delete arg4;
5795 }
5796 {
5797 if (temp7) delete arg7;
5798 }
5799 {
5800 if (temp10)
5801 delete arg10;
5802 }
5803 return resultobj;
5804fail:
5805 {
5806 if (temp4)
5807 delete arg4;
5808 }
5809 {
5810 if (temp7) delete arg7;
5811 }
5812 {
5813 if (temp10)
5814 delete arg10;
5815 }
5816 return NULL;
d55e5bfc
RD
5817}
5818
5819
1bd55598
RD
5820SWIGINTERN PyObject *_wrap_ComboBox_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5821 PyObject *resultobj = 0;
5822 wxComboBox *arg1 = (wxComboBox *) 0 ;
5823 wxString result;
5824 void *argp1 = 0 ;
5825 int res1 = 0 ;
5826 PyObject *swig_obj[1] ;
5827
5828 if (!args) SWIG_fail;
5829 swig_obj[0] = args;
5830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5831 if (!SWIG_IsOK(res1)) {
5832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetValue" "', expected argument " "1"" of type '" "wxComboBox const *""'");
5833 }
5834 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5835 {
5836 PyThreadState* __tstate = wxPyBeginAllowThreads();
5837 result = ((wxComboBox const *)arg1)->GetValue();
5838 wxPyEndAllowThreads(__tstate);
5839 if (PyErr_Occurred()) SWIG_fail;
5840 }
5841 {
d55e5bfc 5842#if wxUSE_UNICODE
1bd55598 5843 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 5844#else
1bd55598 5845 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 5846#endif
1bd55598
RD
5847 }
5848 return resultobj;
5849fail:
5850 return NULL;
5851}
5852
5853
5854SWIGINTERN PyObject *_wrap_ComboBox_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5855 PyObject *resultobj = 0;
5856 wxComboBox *arg1 = (wxComboBox *) 0 ;
5857 wxString *arg2 = 0 ;
5858 void *argp1 = 0 ;
5859 int res1 = 0 ;
5860 bool temp2 = false ;
5861 PyObject * obj0 = 0 ;
5862 PyObject * obj1 = 0 ;
5863 char * kwnames[] = {
5864 (char *) "self",(char *) "value", NULL
5865 };
5866
5867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
5868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5869 if (!SWIG_IsOK(res1)) {
5870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetValue" "', expected argument " "1"" of type '" "wxComboBox *""'");
5871 }
5872 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5873 {
5874 arg2 = wxString_in_helper(obj1);
5875 if (arg2 == NULL) SWIG_fail;
5876 temp2 = true;
5877 }
5878 {
5879 PyThreadState* __tstate = wxPyBeginAllowThreads();
5880 (arg1)->SetValue((wxString const &)*arg2);
5881 wxPyEndAllowThreads(__tstate);
5882 if (PyErr_Occurred()) SWIG_fail;
5883 }
5884 resultobj = SWIG_Py_Void();
5885 {
5886 if (temp2)
5887 delete arg2;
5888 }
5889 return resultobj;
5890fail:
5891 {
5892 if (temp2)
5893 delete arg2;
5894 }
5895 return NULL;
d55e5bfc
RD
5896}
5897
5898
1bd55598
RD
5899SWIGINTERN PyObject *_wrap_ComboBox_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5900 PyObject *resultobj = 0;
5901 wxComboBox *arg1 = (wxComboBox *) 0 ;
5902 void *argp1 = 0 ;
5903 int res1 = 0 ;
5904 PyObject *swig_obj[1] ;
5905
5906 if (!args) SWIG_fail;
5907 swig_obj[0] = args;
5908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5909 if (!SWIG_IsOK(res1)) {
5910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Copy" "', expected argument " "1"" of type '" "wxComboBox *""'");
5911 }
5912 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5913 {
5914 PyThreadState* __tstate = wxPyBeginAllowThreads();
5915 (arg1)->Copy();
5916 wxPyEndAllowThreads(__tstate);
5917 if (PyErr_Occurred()) SWIG_fail;
5918 }
5919 resultobj = SWIG_Py_Void();
5920 return resultobj;
5921fail:
5922 return NULL;
d55e5bfc
RD
5923}
5924
5925
1bd55598
RD
5926SWIGINTERN PyObject *_wrap_ComboBox_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5927 PyObject *resultobj = 0;
5928 wxComboBox *arg1 = (wxComboBox *) 0 ;
5929 void *argp1 = 0 ;
5930 int res1 = 0 ;
5931 PyObject *swig_obj[1] ;
5932
5933 if (!args) SWIG_fail;
5934 swig_obj[0] = args;
5935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5936 if (!SWIG_IsOK(res1)) {
5937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Cut" "', expected argument " "1"" of type '" "wxComboBox *""'");
5938 }
5939 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5940 {
5941 PyThreadState* __tstate = wxPyBeginAllowThreads();
5942 (arg1)->Cut();
5943 wxPyEndAllowThreads(__tstate);
5944 if (PyErr_Occurred()) SWIG_fail;
5945 }
5946 resultobj = SWIG_Py_Void();
5947 return resultobj;
5948fail:
5949 return NULL;
d55e5bfc
RD
5950}
5951
5952
1bd55598
RD
5953SWIGINTERN PyObject *_wrap_ComboBox_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5954 PyObject *resultobj = 0;
5955 wxComboBox *arg1 = (wxComboBox *) 0 ;
5956 void *argp1 = 0 ;
5957 int res1 = 0 ;
5958 PyObject *swig_obj[1] ;
5959
5960 if (!args) SWIG_fail;
5961 swig_obj[0] = args;
5962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5963 if (!SWIG_IsOK(res1)) {
5964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Paste" "', expected argument " "1"" of type '" "wxComboBox *""'");
5965 }
5966 arg1 = reinterpret_cast< wxComboBox * >(argp1);
5967 {
5968 PyThreadState* __tstate = wxPyBeginAllowThreads();
5969 (arg1)->Paste();
5970 wxPyEndAllowThreads(__tstate);
5971 if (PyErr_Occurred()) SWIG_fail;
5972 }
5973 resultobj = SWIG_Py_Void();
5974 return resultobj;
5975fail:
5976 return NULL;
5977}
5978
5979
5980SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5981 PyObject *resultobj = 0;
5982 wxComboBox *arg1 = (wxComboBox *) 0 ;
5983 long arg2 ;
5984 void *argp1 = 0 ;
5985 int res1 = 0 ;
5986 long val2 ;
5987 int ecode2 = 0 ;
5988 PyObject * obj0 = 0 ;
5989 PyObject * obj1 = 0 ;
5990 char * kwnames[] = {
5991 (char *) "self",(char *) "pos", NULL
5992 };
5993
5994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
5995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
5996 if (!SWIG_IsOK(res1)) {
5997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox *""'");
5998 }
5999 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6000 ecode2 = SWIG_AsVal_long(obj1, &val2);
6001 if (!SWIG_IsOK(ecode2)) {
6002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
6003 }
6004 arg2 = static_cast< long >(val2);
6005 {
6006 PyThreadState* __tstate = wxPyBeginAllowThreads();
6007 (arg1)->SetInsertionPoint(arg2);
6008 wxPyEndAllowThreads(__tstate);
6009 if (PyErr_Occurred()) SWIG_fail;
6010 }
6011 resultobj = SWIG_Py_Void();
6012 return resultobj;
6013fail:
6014 return NULL;
d55e5bfc
RD
6015}
6016
6017
1bd55598
RD
6018SWIGINTERN PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6019 PyObject *resultobj = 0;
6020 wxComboBox *arg1 = (wxComboBox *) 0 ;
6021 long result;
6022 void *argp1 = 0 ;
6023 int res1 = 0 ;
6024 PyObject *swig_obj[1] ;
6025
6026 if (!args) SWIG_fail;
6027 swig_obj[0] = args;
6028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6029 if (!SWIG_IsOK(res1)) {
6030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetInsertionPoint" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6031 }
6032 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6033 {
6034 PyThreadState* __tstate = wxPyBeginAllowThreads();
6035 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
6036 wxPyEndAllowThreads(__tstate);
6037 if (PyErr_Occurred()) SWIG_fail;
6038 }
6039 resultobj = SWIG_From_long(static_cast< long >(result));
6040 return resultobj;
6041fail:
6042 return NULL;
d55e5bfc
RD
6043}
6044
6045
1bd55598
RD
6046SWIGINTERN PyObject *_wrap_ComboBox_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6047 PyObject *resultobj = 0;
6048 wxComboBox *arg1 = (wxComboBox *) 0 ;
6049 long result;
6050 void *argp1 = 0 ;
6051 int res1 = 0 ;
6052 PyObject *swig_obj[1] ;
6053
6054 if (!args) SWIG_fail;
6055 swig_obj[0] = args;
6056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6057 if (!SWIG_IsOK(res1)) {
6058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetLastPosition" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6059 }
6060 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6061 {
6062 PyThreadState* __tstate = wxPyBeginAllowThreads();
6063 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
6064 wxPyEndAllowThreads(__tstate);
6065 if (PyErr_Occurred()) SWIG_fail;
6066 }
6067 resultobj = SWIG_From_long(static_cast< long >(result));
6068 return resultobj;
6069fail:
6070 return NULL;
6071}
6072
6073
6074SWIGINTERN PyObject *_wrap_ComboBox_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6075 PyObject *resultobj = 0;
6076 wxComboBox *arg1 = (wxComboBox *) 0 ;
6077 long arg2 ;
6078 long arg3 ;
6079 wxString *arg4 = 0 ;
6080 void *argp1 = 0 ;
6081 int res1 = 0 ;
6082 long val2 ;
6083 int ecode2 = 0 ;
6084 long val3 ;
6085 int ecode3 = 0 ;
6086 bool temp4 = false ;
6087 PyObject * obj0 = 0 ;
6088 PyObject * obj1 = 0 ;
6089 PyObject * obj2 = 0 ;
6090 PyObject * obj3 = 0 ;
6091 char * kwnames[] = {
2131d850 6092 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
1bd55598
RD
6093 };
6094
6095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6097 if (!SWIG_IsOK(res1)) {
6098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Replace" "', expected argument " "1"" of type '" "wxComboBox *""'");
6099 }
6100 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6101 ecode2 = SWIG_AsVal_long(obj1, &val2);
6102 if (!SWIG_IsOK(ecode2)) {
6103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Replace" "', expected argument " "2"" of type '" "long""'");
6104 }
6105 arg2 = static_cast< long >(val2);
6106 ecode3 = SWIG_AsVal_long(obj2, &val3);
6107 if (!SWIG_IsOK(ecode3)) {
6108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Replace" "', expected argument " "3"" of type '" "long""'");
6109 }
6110 arg3 = static_cast< long >(val3);
6111 {
6112 arg4 = wxString_in_helper(obj3);
6113 if (arg4 == NULL) SWIG_fail;
6114 temp4 = true;
6115 }
6116 {
6117 PyThreadState* __tstate = wxPyBeginAllowThreads();
6118 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
6119 wxPyEndAllowThreads(__tstate);
6120 if (PyErr_Occurred()) SWIG_fail;
6121 }
6122 resultobj = SWIG_Py_Void();
6123 {
6124 if (temp4)
6125 delete arg4;
6126 }
6127 return resultobj;
6128fail:
6129 {
6130 if (temp4)
6131 delete arg4;
6132 }
6133 return NULL;
6134}
6135
6136
6137SWIGINTERN PyObject *_wrap_ComboBox_SetMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6138 PyObject *resultobj = 0;
6139 wxComboBox *arg1 = (wxComboBox *) 0 ;
6140 long arg2 ;
6141 long arg3 ;
6142 void *argp1 = 0 ;
6143 int res1 = 0 ;
6144 long val2 ;
6145 int ecode2 = 0 ;
6146 long val3 ;
6147 int ecode3 = 0 ;
6148 PyObject * obj0 = 0 ;
6149 PyObject * obj1 = 0 ;
6150 PyObject * obj2 = 0 ;
6151 char * kwnames[] = {
2131d850 6152 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
6153 };
6154
6155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6157 if (!SWIG_IsOK(res1)) {
6158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetMark" "', expected argument " "1"" of type '" "wxComboBox *""'");
6159 }
6160 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6161 ecode2 = SWIG_AsVal_long(obj1, &val2);
6162 if (!SWIG_IsOK(ecode2)) {
6163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetMark" "', expected argument " "2"" of type '" "long""'");
6164 }
6165 arg2 = static_cast< long >(val2);
6166 ecode3 = SWIG_AsVal_long(obj2, &val3);
6167 if (!SWIG_IsOK(ecode3)) {
6168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_SetMark" "', expected argument " "3"" of type '" "long""'");
6169 }
6170 arg3 = static_cast< long >(val3);
6171 {
6172 PyThreadState* __tstate = wxPyBeginAllowThreads();
6173 (arg1)->SetSelection(arg2,arg3);
6174 wxPyEndAllowThreads(__tstate);
6175 if (PyErr_Occurred()) SWIG_fail;
6176 }
6177 resultobj = SWIG_Py_Void();
6178 return resultobj;
6179fail:
6180 return NULL;
d55e5bfc
RD
6181}
6182
6183
1bd55598
RD
6184SWIGINTERN PyObject *_wrap_ComboBox_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6185 PyObject *resultobj = 0;
6186 wxComboBox *arg1 = (wxComboBox *) 0 ;
6187 int result;
6188 void *argp1 = 0 ;
6189 int res1 = 0 ;
6190 PyObject *swig_obj[1] ;
6191
6192 if (!args) SWIG_fail;
6193 swig_obj[0] = args;
6194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6195 if (!SWIG_IsOK(res1)) {
6196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6197 }
6198 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6199 {
6200 PyThreadState* __tstate = wxPyBeginAllowThreads();
6201 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6202 wxPyEndAllowThreads(__tstate);
6203 if (PyErr_Occurred()) SWIG_fail;
6204 }
6205 resultobj = SWIG_From_int(static_cast< int >(result));
6206 return resultobj;
6207fail:
6208 return NULL;
6209}
6210
6211
6212SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6213 PyObject *resultobj = 0;
6214 wxComboBox *arg1 = (wxComboBox *) 0 ;
6215 wxString *arg2 = 0 ;
6216 bool result;
6217 void *argp1 = 0 ;
6218 int res1 = 0 ;
6219 bool temp2 = false ;
6220 PyObject * obj0 = 0 ;
6221 PyObject * obj1 = 0 ;
6222 char * kwnames[] = {
6223 (char *) "self",(char *) "string", NULL
6224 };
6225
6226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6228 if (!SWIG_IsOK(res1)) {
6229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6230 }
6231 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6232 {
6233 arg2 = wxString_in_helper(obj1);
6234 if (arg2 == NULL) SWIG_fail;
6235 temp2 = true;
6236 }
6237 {
6238 PyThreadState* __tstate = wxPyBeginAllowThreads();
6239 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6240 wxPyEndAllowThreads(__tstate);
6241 if (PyErr_Occurred()) SWIG_fail;
6242 }
6243 {
6244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6245 }
6246 {
6247 if (temp2)
6248 delete arg2;
6249 }
6250 return resultobj;
6251fail:
6252 {
6253 if (temp2)
6254 delete arg2;
6255 }
6256 return NULL;
6257}
6258
6259
50f151d7
RD
6260SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6261 PyObject *resultobj = 0;
6262 wxComboBox *arg1 = (wxComboBox *) 0 ;
6263 int arg2 ;
6264 wxString *arg3 = 0 ;
6265 void *argp1 = 0 ;
6266 int res1 = 0 ;
6267 int val2 ;
6268 int ecode2 = 0 ;
6269 bool temp3 = false ;
6270 PyObject * obj0 = 0 ;
6271 PyObject * obj1 = 0 ;
6272 PyObject * obj2 = 0 ;
6273 char * kwnames[] = {
6274 (char *) "self",(char *) "n",(char *) "string", NULL
6275 };
6276
6277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6279 if (!SWIG_IsOK(res1)) {
6280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6281 }
6282 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6283 ecode2 = SWIG_AsVal_int(obj1, &val2);
6284 if (!SWIG_IsOK(ecode2)) {
6285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6286 }
6287 arg2 = static_cast< int >(val2);
6288 {
6289 arg3 = wxString_in_helper(obj2);
6290 if (arg3 == NULL) SWIG_fail;
6291 temp3 = true;
6292 }
6293 {
6294 PyThreadState* __tstate = wxPyBeginAllowThreads();
6295 (arg1)->SetString(arg2,(wxString const &)*arg3);
6296 wxPyEndAllowThreads(__tstate);
6297 if (PyErr_Occurred()) SWIG_fail;
6298 }
6299 resultobj = SWIG_Py_Void();
6300 {
6301 if (temp3)
6302 delete arg3;
6303 }
6304 return resultobj;
6305fail:
6306 {
6307 if (temp3)
6308 delete arg3;
6309 }
6310 return NULL;
6311}
6312
6313
1bd55598
RD
6314SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6315 PyObject *resultobj = 0;
6316 wxComboBox *arg1 = (wxComboBox *) 0 ;
6317 bool arg2 ;
6318 void *argp1 = 0 ;
6319 int res1 = 0 ;
6320 bool val2 ;
6321 int ecode2 = 0 ;
6322 PyObject * obj0 = 0 ;
6323 PyObject * obj1 = 0 ;
6324 char * kwnames[] = {
6325 (char *) "self",(char *) "editable", NULL
6326 };
6327
6328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6330 if (!SWIG_IsOK(res1)) {
6331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6332 }
6333 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6334 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6335 if (!SWIG_IsOK(ecode2)) {
6336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6337 }
6338 arg2 = static_cast< bool >(val2);
6339 {
6340 PyThreadState* __tstate = wxPyBeginAllowThreads();
6341 (arg1)->SetEditable(arg2);
6342 wxPyEndAllowThreads(__tstate);
6343 if (PyErr_Occurred()) SWIG_fail;
6344 }
6345 resultobj = SWIG_Py_Void();
6346 return resultobj;
6347fail:
6348 return NULL;
d55e5bfc
RD
6349}
6350
6351
1bd55598
RD
6352SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6353 PyObject *resultobj = 0;
6354 wxComboBox *arg1 = (wxComboBox *) 0 ;
6355 void *argp1 = 0 ;
6356 int res1 = 0 ;
6357 PyObject *swig_obj[1] ;
6358
6359 if (!args) SWIG_fail;
6360 swig_obj[0] = args;
6361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6362 if (!SWIG_IsOK(res1)) {
6363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6364 }
6365 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6366 {
6367 PyThreadState* __tstate = wxPyBeginAllowThreads();
6368 (arg1)->SetInsertionPointEnd();
6369 wxPyEndAllowThreads(__tstate);
6370 if (PyErr_Occurred()) SWIG_fail;
6371 }
6372 resultobj = SWIG_Py_Void();
6373 return resultobj;
6374fail:
6375 return NULL;
6376}
6377
6378
6379SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6380 PyObject *resultobj = 0;
6381 wxComboBox *arg1 = (wxComboBox *) 0 ;
6382 long arg2 ;
6383 long arg3 ;
6384 void *argp1 = 0 ;
6385 int res1 = 0 ;
6386 long val2 ;
6387 int ecode2 = 0 ;
6388 long val3 ;
6389 int ecode3 = 0 ;
6390 PyObject * obj0 = 0 ;
6391 PyObject * obj1 = 0 ;
6392 PyObject * obj2 = 0 ;
6393 char * kwnames[] = {
2131d850 6394 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
6395 };
6396
6397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6399 if (!SWIG_IsOK(res1)) {
6400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6401 }
6402 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6403 ecode2 = SWIG_AsVal_long(obj1, &val2);
6404 if (!SWIG_IsOK(ecode2)) {
6405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6406 }
6407 arg2 = static_cast< long >(val2);
6408 ecode3 = SWIG_AsVal_long(obj2, &val3);
6409 if (!SWIG_IsOK(ecode3)) {
6410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6411 }
6412 arg3 = static_cast< long >(val3);
6413 {
6414 PyThreadState* __tstate = wxPyBeginAllowThreads();
6415 (arg1)->Remove(arg2,arg3);
6416 wxPyEndAllowThreads(__tstate);
6417 if (PyErr_Occurred()) SWIG_fail;
6418 }
6419 resultobj = SWIG_Py_Void();
6420 return resultobj;
6421fail:
6422 return NULL;
d55e5bfc
RD
6423}
6424
6425
1bd55598
RD
6426SWIGINTERN PyObject *_wrap_ComboBox_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6427 PyObject *resultobj = 0;
6428 wxComboBox *arg1 = (wxComboBox *) 0 ;
6429 bool result;
6430 void *argp1 = 0 ;
6431 int res1 = 0 ;
6432 PyObject *swig_obj[1] ;
6433
6434 if (!args) SWIG_fail;
6435 swig_obj[0] = args;
6436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6437 if (!SWIG_IsOK(res1)) {
6438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6439 }
6440 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6441 {
6442 PyThreadState* __tstate = wxPyBeginAllowThreads();
6443 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6444 wxPyEndAllowThreads(__tstate);
6445 if (PyErr_Occurred()) SWIG_fail;
6446 }
6447 {
6448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6449 }
6450 return resultobj;
6451fail:
6452 return NULL;
d55e5bfc
RD
6453}
6454
6455
1bd55598
RD
6456SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6457 PyObject *resultobj = 0;
6458 wxComboBox *arg1 = (wxComboBox *) 0 ;
6459 void *argp1 = 0 ;
6460 int res1 = 0 ;
6461 PyObject *swig_obj[1] ;
6462
6463 if (!args) SWIG_fail;
6464 swig_obj[0] = args;
6465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6466 if (!SWIG_IsOK(res1)) {
6467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6468 }
6469 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6470 {
6471 PyThreadState* __tstate = wxPyBeginAllowThreads();
6472 (arg1)->Undo();
6473 wxPyEndAllowThreads(__tstate);
6474 if (PyErr_Occurred()) SWIG_fail;
6475 }
6476 resultobj = SWIG_Py_Void();
6477 return resultobj;
6478fail:
6479 return NULL;
d55e5bfc
RD
6480}
6481
6482
1bd55598
RD
6483SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6484 PyObject *resultobj = 0;
6485 wxComboBox *arg1 = (wxComboBox *) 0 ;
6486 void *argp1 = 0 ;
6487 int res1 = 0 ;
6488 PyObject *swig_obj[1] ;
6489
6490 if (!args) SWIG_fail;
6491 swig_obj[0] = args;
6492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6493 if (!SWIG_IsOK(res1)) {
6494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6495 }
6496 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6497 {
6498 PyThreadState* __tstate = wxPyBeginAllowThreads();
6499 (arg1)->Redo();
6500 wxPyEndAllowThreads(__tstate);
6501 if (PyErr_Occurred()) SWIG_fail;
6502 }
6503 resultobj = SWIG_Py_Void();
6504 return resultobj;
6505fail:
6506 return NULL;
d55e5bfc
RD
6507}
6508
6509
1bd55598
RD
6510SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6511 PyObject *resultobj = 0;
6512 wxComboBox *arg1 = (wxComboBox *) 0 ;
6513 void *argp1 = 0 ;
6514 int res1 = 0 ;
6515 PyObject *swig_obj[1] ;
6516
6517 if (!args) SWIG_fail;
6518 swig_obj[0] = args;
6519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6520 if (!SWIG_IsOK(res1)) {
6521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6522 }
6523 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6524 {
6525 PyThreadState* __tstate = wxPyBeginAllowThreads();
6526 (arg1)->SelectAll();
6527 wxPyEndAllowThreads(__tstate);
6528 if (PyErr_Occurred()) SWIG_fail;
6529 }
6530 resultobj = SWIG_Py_Void();
6531 return resultobj;
6532fail:
6533 return NULL;
943e8dfd
RD
6534}
6535
6536
1bd55598
RD
6537SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6538 PyObject *resultobj = 0;
6539 wxComboBox *arg1 = (wxComboBox *) 0 ;
6540 bool result;
6541 void *argp1 = 0 ;
6542 int res1 = 0 ;
6543 PyObject *swig_obj[1] ;
6544
6545 if (!args) SWIG_fail;
6546 swig_obj[0] = args;
6547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6548 if (!SWIG_IsOK(res1)) {
6549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6550 }
6551 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6552 {
6553 PyThreadState* __tstate = wxPyBeginAllowThreads();
6554 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6555 wxPyEndAllowThreads(__tstate);
6556 if (PyErr_Occurred()) SWIG_fail;
6557 }
6558 {
6559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6560 }
6561 return resultobj;
6562fail:
6563 return NULL;
121b9a67
RD
6564}
6565
6566
1bd55598
RD
6567SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6568 PyObject *resultobj = 0;
6569 wxComboBox *arg1 = (wxComboBox *) 0 ;
6570 bool result;
6571 void *argp1 = 0 ;
6572 int res1 = 0 ;
6573 PyObject *swig_obj[1] ;
6574
6575 if (!args) SWIG_fail;
6576 swig_obj[0] = args;
6577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6578 if (!SWIG_IsOK(res1)) {
6579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6580 }
6581 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6582 {
6583 PyThreadState* __tstate = wxPyBeginAllowThreads();
6584 result = (bool)((wxComboBox const *)arg1)->CanCut();
6585 wxPyEndAllowThreads(__tstate);
6586 if (PyErr_Occurred()) SWIG_fail;
6587 }
6588 {
6589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6590 }
6591 return resultobj;
6592fail:
6593 return NULL;
121b9a67
RD
6594}
6595
6596
1bd55598
RD
6597SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6598 PyObject *resultobj = 0;
6599 wxComboBox *arg1 = (wxComboBox *) 0 ;
6600 bool result;
6601 void *argp1 = 0 ;
6602 int res1 = 0 ;
6603 PyObject *swig_obj[1] ;
6604
6605 if (!args) SWIG_fail;
6606 swig_obj[0] = args;
6607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6608 if (!SWIG_IsOK(res1)) {
6609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6610 }
6611 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6612 {
6613 PyThreadState* __tstate = wxPyBeginAllowThreads();
6614 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6615 wxPyEndAllowThreads(__tstate);
6616 if (PyErr_Occurred()) SWIG_fail;
6617 }
6618 {
6619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6620 }
6621 return resultobj;
6622fail:
6623 return NULL;
d55e5bfc
RD
6624}
6625
6626
1bd55598
RD
6627SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6628 PyObject *resultobj = 0;
6629 wxComboBox *arg1 = (wxComboBox *) 0 ;
6630 bool result;
6631 void *argp1 = 0 ;
6632 int res1 = 0 ;
6633 PyObject *swig_obj[1] ;
6634
6635 if (!args) SWIG_fail;
6636 swig_obj[0] = args;
6637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6638 if (!SWIG_IsOK(res1)) {
6639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6640 }
6641 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6642 {
6643 PyThreadState* __tstate = wxPyBeginAllowThreads();
6644 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6645 wxPyEndAllowThreads(__tstate);
6646 if (PyErr_Occurred()) SWIG_fail;
6647 }
6648 {
6649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6650 }
6651 return resultobj;
6652fail:
6653 return NULL;
d55e5bfc
RD
6654}
6655
6656
1bd55598
RD
6657SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6658 PyObject *resultobj = 0;
6659 wxComboBox *arg1 = (wxComboBox *) 0 ;
6660 bool result;
6661 void *argp1 = 0 ;
6662 int res1 = 0 ;
6663 PyObject *swig_obj[1] ;
6664
6665 if (!args) SWIG_fail;
6666 swig_obj[0] = args;
6667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6668 if (!SWIG_IsOK(res1)) {
6669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6670 }
6671 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6672 {
6673 PyThreadState* __tstate = wxPyBeginAllowThreads();
6674 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6675 wxPyEndAllowThreads(__tstate);
6676 if (PyErr_Occurred()) SWIG_fail;
6677 }
6678 {
6679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6680 }
6681 return resultobj;
6682fail:
6683 return NULL;
d55e5bfc
RD
6684}
6685
6686
1bd55598
RD
6687SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6688 PyObject *resultobj = 0;
6689 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6690 SwigValueWrapper<wxVisualAttributes > result;
6691 int val1 ;
6692 int ecode1 = 0 ;
6693 PyObject * obj0 = 0 ;
6694 char * kwnames[] = {
6695 (char *) "variant", NULL
6696 };
6697
6698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6699 if (obj0) {
6700 ecode1 = SWIG_AsVal_int(obj0, &val1);
6701 if (!SWIG_IsOK(ecode1)) {
6702 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6703 }
6704 arg1 = static_cast< wxWindowVariant >(val1);
6705 }
6706 {
6707 if (!wxPyCheckForApp()) SWIG_fail;
6708 PyThreadState* __tstate = wxPyBeginAllowThreads();
6709 result = wxComboBox::GetClassDefaultAttributes(arg1);
6710 wxPyEndAllowThreads(__tstate);
6711 if (PyErr_Occurred()) SWIG_fail;
6712 }
6713 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6714 return resultobj;
6715fail:
6716 return NULL;
5cbf236d
RD
6717}
6718
6719
1bd55598
RD
6720SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6721 PyObject *obj;
6722 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6723 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6724 return SWIG_Py_Void();
5cbf236d
RD
6725}
6726
1bd55598
RD
6727SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6728 return SWIG_Python_InitShadowInstance(args);
5cbf236d
RD
6729}
6730
1bd55598
RD
6731SWIGINTERN int GaugeNameStr_set(PyObject *) {
6732 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6733 return 1;
5cbf236d
RD
6734}
6735
6736
1bd55598
RD
6737SWIGINTERN PyObject *GaugeNameStr_get(void) {
6738 PyObject *pyobj = 0;
6739
6740 {
6741#if wxUSE_UNICODE
6742 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6743#else
6744 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6745#endif
6746 }
6747 return pyobj;
6748}
6749
6750
6751SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6752 PyObject *resultobj = 0;
6753 wxWindow *arg1 = (wxWindow *) 0 ;
6754 int arg2 = (int) -1 ;
6755 int arg3 = (int) 100 ;
6756 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6757 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6758 wxSize const &arg5_defvalue = wxDefaultSize ;
6759 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6760 long arg6 = (long) wxGA_HORIZONTAL ;
6761 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6762 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6763 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6764 wxString *arg8 = (wxString *) &arg8_defvalue ;
6765 wxGauge *result = 0 ;
6766 void *argp1 = 0 ;
6767 int res1 = 0 ;
6768 int val2 ;
6769 int ecode2 = 0 ;
6770 int val3 ;
6771 int ecode3 = 0 ;
6772 wxPoint temp4 ;
6773 wxSize temp5 ;
6774 long val6 ;
6775 int ecode6 = 0 ;
6776 void *argp7 = 0 ;
6777 int res7 = 0 ;
6778 bool temp8 = false ;
6779 PyObject * obj0 = 0 ;
6780 PyObject * obj1 = 0 ;
6781 PyObject * obj2 = 0 ;
6782 PyObject * obj3 = 0 ;
6783 PyObject * obj4 = 0 ;
6784 PyObject * obj5 = 0 ;
6785 PyObject * obj6 = 0 ;
6786 PyObject * obj7 = 0 ;
6787 char * kwnames[] = {
6788 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6789 };
6790
6791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6793 if (!SWIG_IsOK(res1)) {
6794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6795 }
6796 arg1 = reinterpret_cast< wxWindow * >(argp1);
6797 if (obj1) {
6798 ecode2 = SWIG_AsVal_int(obj1, &val2);
6799 if (!SWIG_IsOK(ecode2)) {
6800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6801 }
6802 arg2 = static_cast< int >(val2);
6803 }
6804 if (obj2) {
6805 ecode3 = SWIG_AsVal_int(obj2, &val3);
6806 if (!SWIG_IsOK(ecode3)) {
6807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6808 }
6809 arg3 = static_cast< int >(val3);
6810 }
6811 if (obj3) {
5cbf236d 6812 {
1bd55598
RD
6813 arg4 = &temp4;
6814 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5cbf236d 6815 }
1bd55598
RD
6816 }
6817 if (obj4) {
5cbf236d 6818 {
1bd55598
RD
6819 arg5 = &temp5;
6820 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6821 }
1bd55598
RD
6822 }
6823 if (obj5) {
6824 ecode6 = SWIG_AsVal_long(obj5, &val6);
6825 if (!SWIG_IsOK(ecode6)) {
6826 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6827 }
6828 arg6 = static_cast< long >(val6);
6829 }
6830 if (obj6) {
6831 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6832 if (!SWIG_IsOK(res7)) {
6833 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6834 }
6835 if (!argp7) {
6836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
5cbf236d 6837 }
1bd55598
RD
6838 arg7 = reinterpret_cast< wxValidator * >(argp7);
6839 }
6840 if (obj7) {
5cbf236d 6841 {
1bd55598
RD
6842 arg8 = wxString_in_helper(obj7);
6843 if (arg8 == NULL) SWIG_fail;
6844 temp8 = true;
5cbf236d 6845 }
1bd55598
RD
6846 }
6847 {
6848 if (!wxPyCheckForApp()) SWIG_fail;
6849 PyThreadState* __tstate = wxPyBeginAllowThreads();
6850 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6851 wxPyEndAllowThreads(__tstate);
6852 if (PyErr_Occurred()) SWIG_fail;
6853 }
6854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6855 {
6856 if (temp8)
6857 delete arg8;
6858 }
6859 return resultobj;
6860fail:
6861 {
6862 if (temp8)
6863 delete arg8;
6864 }
6865 return NULL;
5cbf236d
RD
6866}
6867
6868
1bd55598
RD
6869SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6870 PyObject *resultobj = 0;
6871 wxGauge *result = 0 ;
6872
6873 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6874 {
6875 if (!wxPyCheckForApp()) SWIG_fail;
6876 PyThreadState* __tstate = wxPyBeginAllowThreads();
6877 result = (wxGauge *)new wxGauge();
6878 wxPyEndAllowThreads(__tstate);
6879 if (PyErr_Occurred()) SWIG_fail;
6880 }
6881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6882 return resultobj;
6883fail:
6884 return NULL;
6885}
6886
6887
6888SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6889 PyObject *resultobj = 0;
6890 wxGauge *arg1 = (wxGauge *) 0 ;
6891 wxWindow *arg2 = (wxWindow *) 0 ;
6892 int arg3 = (int) -1 ;
6893 int arg4 = (int) 100 ;
6894 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6895 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6896 wxSize const &arg6_defvalue = wxDefaultSize ;
6897 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6898 long arg7 = (long) wxGA_HORIZONTAL ;
6899 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6900 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6901 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6902 wxString *arg9 = (wxString *) &arg9_defvalue ;
6903 bool result;
6904 void *argp1 = 0 ;
6905 int res1 = 0 ;
6906 void *argp2 = 0 ;
6907 int res2 = 0 ;
6908 int val3 ;
6909 int ecode3 = 0 ;
6910 int val4 ;
6911 int ecode4 = 0 ;
6912 wxPoint temp5 ;
6913 wxSize temp6 ;
6914 long val7 ;
6915 int ecode7 = 0 ;
6916 void *argp8 = 0 ;
6917 int res8 = 0 ;
6918 bool temp9 = false ;
6919 PyObject * obj0 = 0 ;
6920 PyObject * obj1 = 0 ;
6921 PyObject * obj2 = 0 ;
6922 PyObject * obj3 = 0 ;
6923 PyObject * obj4 = 0 ;
6924 PyObject * obj5 = 0 ;
6925 PyObject * obj6 = 0 ;
6926 PyObject * obj7 = 0 ;
6927 PyObject * obj8 = 0 ;
6928 char * kwnames[] = {
6929 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6930 };
6931
6932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6934 if (!SWIG_IsOK(res1)) {
6935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6936 }
6937 arg1 = reinterpret_cast< wxGauge * >(argp1);
6938 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6939 if (!SWIG_IsOK(res2)) {
6940 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6941 }
6942 arg2 = reinterpret_cast< wxWindow * >(argp2);
6943 if (obj2) {
6944 ecode3 = SWIG_AsVal_int(obj2, &val3);
6945 if (!SWIG_IsOK(ecode3)) {
6946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6947 }
6948 arg3 = static_cast< int >(val3);
6949 }
6950 if (obj3) {
6951 ecode4 = SWIG_AsVal_int(obj3, &val4);
6952 if (!SWIG_IsOK(ecode4)) {
6953 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6954 }
6955 arg4 = static_cast< int >(val4);
6956 }
6957 if (obj4) {
5cbf236d 6958 {
1bd55598
RD
6959 arg5 = &temp5;
6960 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5cbf236d 6961 }
1bd55598
RD
6962 }
6963 if (obj5) {
5cbf236d 6964 {
1bd55598
RD
6965 arg6 = &temp6;
6966 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5cbf236d 6967 }
1bd55598
RD
6968 }
6969 if (obj6) {
6970 ecode7 = SWIG_AsVal_long(obj6, &val7);
6971 if (!SWIG_IsOK(ecode7)) {
6972 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6973 }
6974 arg7 = static_cast< long >(val7);
6975 }
6976 if (obj7) {
6977 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6978 if (!SWIG_IsOK(res8)) {
6979 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
5cbf236d 6980 }
1bd55598
RD
6981 if (!argp8) {
6982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6983 }
6984 arg8 = reinterpret_cast< wxValidator * >(argp8);
6985 }
6986 if (obj8) {
5cbf236d 6987 {
1bd55598
RD
6988 arg9 = wxString_in_helper(obj8);
6989 if (arg9 == NULL) SWIG_fail;
6990 temp9 = true;
5cbf236d 6991 }
1bd55598
RD
6992 }
6993 {
6994 PyThreadState* __tstate = wxPyBeginAllowThreads();
6995 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6996 wxPyEndAllowThreads(__tstate);
6997 if (PyErr_Occurred()) SWIG_fail;
6998 }
6999 {
7000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7001 }
7002 {
7003 if (temp9)
7004 delete arg9;
7005 }
7006 return resultobj;
7007fail:
7008 {
7009 if (temp9)
7010 delete arg9;
7011 }
7012 return NULL;
7013}
7014
7015
7016SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7017 PyObject *resultobj = 0;
7018 wxGauge *arg1 = (wxGauge *) 0 ;
7019 int arg2 ;
7020 void *argp1 = 0 ;
7021 int res1 = 0 ;
7022 int val2 ;
7023 int ecode2 = 0 ;
7024 PyObject * obj0 = 0 ;
7025 PyObject * obj1 = 0 ;
7026 char * kwnames[] = {
7027 (char *) "self",(char *) "range", NULL
7028 };
7029
7030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7032 if (!SWIG_IsOK(res1)) {
7033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7034 }
7035 arg1 = reinterpret_cast< wxGauge * >(argp1);
7036 ecode2 = SWIG_AsVal_int(obj1, &val2);
7037 if (!SWIG_IsOK(ecode2)) {
7038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7039 }
7040 arg2 = static_cast< int >(val2);
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 (arg1)->SetRange(arg2);
7044 wxPyEndAllowThreads(__tstate);
7045 if (PyErr_Occurred()) SWIG_fail;
7046 }
7047 resultobj = SWIG_Py_Void();
7048 return resultobj;
7049fail:
7050 return NULL;
5cbf236d
RD
7051}
7052
7053
1bd55598
RD
7054SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7055 PyObject *resultobj = 0;
7056 wxGauge *arg1 = (wxGauge *) 0 ;
7057 int result;
7058 void *argp1 = 0 ;
7059 int res1 = 0 ;
7060 PyObject *swig_obj[1] ;
7061
7062 if (!args) SWIG_fail;
7063 swig_obj[0] = args;
7064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7065 if (!SWIG_IsOK(res1)) {
7066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7067 }
7068 arg1 = reinterpret_cast< wxGauge * >(argp1);
7069 {
7070 PyThreadState* __tstate = wxPyBeginAllowThreads();
7071 result = (int)((wxGauge const *)arg1)->GetRange();
7072 wxPyEndAllowThreads(__tstate);
7073 if (PyErr_Occurred()) SWIG_fail;
7074 }
7075 resultobj = SWIG_From_int(static_cast< int >(result));
7076 return resultobj;
7077fail:
7078 return NULL;
7079}
7080
7081
7082SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7083 PyObject *resultobj = 0;
7084 wxGauge *arg1 = (wxGauge *) 0 ;
7085 int arg2 ;
7086 void *argp1 = 0 ;
7087 int res1 = 0 ;
7088 int val2 ;
7089 int ecode2 = 0 ;
7090 PyObject * obj0 = 0 ;
7091 PyObject * obj1 = 0 ;
7092 char * kwnames[] = {
7093 (char *) "self",(char *) "pos", NULL
7094 };
7095
7096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7098 if (!SWIG_IsOK(res1)) {
7099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7100 }
7101 arg1 = reinterpret_cast< wxGauge * >(argp1);
7102 ecode2 = SWIG_AsVal_int(obj1, &val2);
7103 if (!SWIG_IsOK(ecode2)) {
7104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7105 }
7106 arg2 = static_cast< int >(val2);
7107 {
7108 PyThreadState* __tstate = wxPyBeginAllowThreads();
7109 (arg1)->SetValue(arg2);
7110 wxPyEndAllowThreads(__tstate);
7111 if (PyErr_Occurred()) SWIG_fail;
7112 }
7113 resultobj = SWIG_Py_Void();
7114 return resultobj;
7115fail:
7116 return NULL;
5cbf236d
RD
7117}
7118
7119
1bd55598
RD
7120SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7121 PyObject *resultobj = 0;
7122 wxGauge *arg1 = (wxGauge *) 0 ;
7123 int result;
7124 void *argp1 = 0 ;
7125 int res1 = 0 ;
7126 PyObject *swig_obj[1] ;
7127
7128 if (!args) SWIG_fail;
7129 swig_obj[0] = args;
7130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7131 if (!SWIG_IsOK(res1)) {
7132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7133 }
7134 arg1 = reinterpret_cast< wxGauge * >(argp1);
7135 {
7136 PyThreadState* __tstate = wxPyBeginAllowThreads();
7137 result = (int)((wxGauge const *)arg1)->GetValue();
7138 wxPyEndAllowThreads(__tstate);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 resultobj = SWIG_From_int(static_cast< int >(result));
7142 return resultobj;
7143fail:
7144 return NULL;
f20a2e1f
RD
7145}
7146
7147
1bd55598
RD
7148SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7149 PyObject *resultobj = 0;
7150 wxGauge *arg1 = (wxGauge *) 0 ;
7151 bool result;
7152 void *argp1 = 0 ;
7153 int res1 = 0 ;
7154 PyObject *swig_obj[1] ;
7155
7156 if (!args) SWIG_fail;
7157 swig_obj[0] = args;
7158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7159 if (!SWIG_IsOK(res1)) {
7160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7161 }
7162 arg1 = reinterpret_cast< wxGauge * >(argp1);
7163 {
7164 PyThreadState* __tstate = wxPyBeginAllowThreads();
7165 result = (bool)((wxGauge const *)arg1)->IsVertical();
7166 wxPyEndAllowThreads(__tstate);
7167 if (PyErr_Occurred()) SWIG_fail;
7168 }
7169 {
7170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7171 }
7172 return resultobj;
7173fail:
7174 return NULL;
7175}
7176
7177
7178SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7179 PyObject *resultobj = 0;
7180 wxGauge *arg1 = (wxGauge *) 0 ;
7181 int arg2 ;
7182 void *argp1 = 0 ;
7183 int res1 = 0 ;
7184 int val2 ;
7185 int ecode2 = 0 ;
7186 PyObject * obj0 = 0 ;
7187 PyObject * obj1 = 0 ;
7188 char * kwnames[] = {
7189 (char *) "self",(char *) "w", NULL
7190 };
7191
7192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7194 if (!SWIG_IsOK(res1)) {
7195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7196 }
7197 arg1 = reinterpret_cast< wxGauge * >(argp1);
7198 ecode2 = SWIG_AsVal_int(obj1, &val2);
7199 if (!SWIG_IsOK(ecode2)) {
7200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7201 }
7202 arg2 = static_cast< int >(val2);
7203 {
7204 PyThreadState* __tstate = wxPyBeginAllowThreads();
7205 (arg1)->SetShadowWidth(arg2);
7206 wxPyEndAllowThreads(__tstate);
7207 if (PyErr_Occurred()) SWIG_fail;
7208 }
7209 resultobj = SWIG_Py_Void();
7210 return resultobj;
7211fail:
7212 return NULL;
d55e5bfc
RD
7213}
7214
7215
1bd55598
RD
7216SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7217 PyObject *resultobj = 0;
7218 wxGauge *arg1 = (wxGauge *) 0 ;
7219 int result;
7220 void *argp1 = 0 ;
7221 int res1 = 0 ;
7222 PyObject *swig_obj[1] ;
7223
7224 if (!args) SWIG_fail;
7225 swig_obj[0] = args;
7226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7227 if (!SWIG_IsOK(res1)) {
7228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7229 }
7230 arg1 = reinterpret_cast< wxGauge * >(argp1);
7231 {
7232 PyThreadState* __tstate = wxPyBeginAllowThreads();
7233 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7234 wxPyEndAllowThreads(__tstate);
7235 if (PyErr_Occurred()) SWIG_fail;
7236 }
7237 resultobj = SWIG_From_int(static_cast< int >(result));
7238 return resultobj;
7239fail:
7240 return NULL;
7241}
7242
7243
7244SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7245 PyObject *resultobj = 0;
7246 wxGauge *arg1 = (wxGauge *) 0 ;
7247 int arg2 ;
7248 void *argp1 = 0 ;
7249 int res1 = 0 ;
7250 int val2 ;
7251 int ecode2 = 0 ;
7252 PyObject * obj0 = 0 ;
7253 PyObject * obj1 = 0 ;
7254 char * kwnames[] = {
7255 (char *) "self",(char *) "w", NULL
7256 };
7257
7258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7260 if (!SWIG_IsOK(res1)) {
7261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7262 }
7263 arg1 = reinterpret_cast< wxGauge * >(argp1);
7264 ecode2 = SWIG_AsVal_int(obj1, &val2);
7265 if (!SWIG_IsOK(ecode2)) {
7266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7267 }
7268 arg2 = static_cast< int >(val2);
7269 {
7270 PyThreadState* __tstate = wxPyBeginAllowThreads();
7271 (arg1)->SetBezelFace(arg2);
7272 wxPyEndAllowThreads(__tstate);
7273 if (PyErr_Occurred()) SWIG_fail;
7274 }
7275 resultobj = SWIG_Py_Void();
7276 return resultobj;
7277fail:
7278 return NULL;
d55e5bfc
RD
7279}
7280
7281
1bd55598
RD
7282SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7283 PyObject *resultobj = 0;
7284 wxGauge *arg1 = (wxGauge *) 0 ;
7285 int result;
7286 void *argp1 = 0 ;
7287 int res1 = 0 ;
7288 PyObject *swig_obj[1] ;
7289
7290 if (!args) SWIG_fail;
7291 swig_obj[0] = args;
7292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7293 if (!SWIG_IsOK(res1)) {
7294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7295 }
7296 arg1 = reinterpret_cast< wxGauge * >(argp1);
7297 {
7298 PyThreadState* __tstate = wxPyBeginAllowThreads();
7299 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7300 wxPyEndAllowThreads(__tstate);
7301 if (PyErr_Occurred()) SWIG_fail;
7302 }
7303 resultobj = SWIG_From_int(static_cast< int >(result));
7304 return resultobj;
7305fail:
7306 return NULL;
7307}
7308
7309
7310SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7311 PyObject *resultobj = 0;
7312 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7313 SwigValueWrapper<wxVisualAttributes > result;
7314 int val1 ;
7315 int ecode1 = 0 ;
7316 PyObject * obj0 = 0 ;
7317 char * kwnames[] = {
7318 (char *) "variant", NULL
7319 };
7320
7321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7322 if (obj0) {
7323 ecode1 = SWIG_AsVal_int(obj0, &val1);
7324 if (!SWIG_IsOK(ecode1)) {
7325 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7326 }
7327 arg1 = static_cast< wxWindowVariant >(val1);
7328 }
7329 {
7330 if (!wxPyCheckForApp()) SWIG_fail;
7331 PyThreadState* __tstate = wxPyBeginAllowThreads();
7332 result = wxGauge::GetClassDefaultAttributes(arg1);
7333 wxPyEndAllowThreads(__tstate);
7334 if (PyErr_Occurred()) SWIG_fail;
7335 }
7336 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7337 return resultobj;
7338fail:
7339 return NULL;
d55e5bfc
RD
7340}
7341
7342
1bd55598
RD
7343SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7344 PyObject *obj;
7345 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7346 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7347 return SWIG_Py_Void();
d55e5bfc
RD
7348}
7349
1bd55598
RD
7350SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7351 return SWIG_Python_InitShadowInstance(args);
7352}
d55e5bfc 7353
1bd55598
RD
7354SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7355 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7356 return 1;
d55e5bfc
RD
7357}
7358
7359
1bd55598
RD
7360SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7361 PyObject *pyobj = 0;
7362
7363 {
7364#if wxUSE_UNICODE
7365 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7366#else
7367 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7368#endif
7369 }
7370 return pyobj;
d55e5bfc
RD
7371}
7372
7373
1bd55598
RD
7374SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7375 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7376 return 1;
d55e5bfc
RD
7377}
7378
7379
1bd55598
RD
7380SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7381 PyObject *pyobj = 0;
7382
7383 {
7384#if wxUSE_UNICODE
7385 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7386#else
7387 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7388#endif
7389 }
7390 return pyobj;
d55e5bfc
RD
7391}
7392
7393
1bd55598
RD
7394SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7395 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7396 return 1;
d55e5bfc
RD
7397}
7398
7399
1bd55598
RD
7400SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7401 PyObject *pyobj = 0;
7402
7403 {
7404#if wxUSE_UNICODE
7405 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7406#else
7407 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7408#endif
7409 }
7410 return pyobj;
7411}
7412
7413
7414SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7415 PyObject *resultobj = 0;
7416 wxWindow *arg1 = (wxWindow *) 0 ;
7417 int arg2 = (int) -1 ;
7418 wxString const &arg3_defvalue = wxPyEmptyString ;
7419 wxString *arg3 = (wxString *) &arg3_defvalue ;
7420 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7421 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7422 wxSize const &arg5_defvalue = wxDefaultSize ;
7423 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7424 long arg6 = (long) 0 ;
7425 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7426 wxString *arg7 = (wxString *) &arg7_defvalue ;
7427 wxStaticBox *result = 0 ;
7428 void *argp1 = 0 ;
7429 int res1 = 0 ;
7430 int val2 ;
7431 int ecode2 = 0 ;
7432 bool temp3 = false ;
7433 wxPoint temp4 ;
7434 wxSize temp5 ;
7435 long val6 ;
7436 int ecode6 = 0 ;
7437 bool temp7 = false ;
7438 PyObject * obj0 = 0 ;
7439 PyObject * obj1 = 0 ;
7440 PyObject * obj2 = 0 ;
7441 PyObject * obj3 = 0 ;
7442 PyObject * obj4 = 0 ;
7443 PyObject * obj5 = 0 ;
7444 PyObject * obj6 = 0 ;
7445 char * kwnames[] = {
7446 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7447 };
7448
7449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7451 if (!SWIG_IsOK(res1)) {
7452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7453 }
7454 arg1 = reinterpret_cast< wxWindow * >(argp1);
7455 if (obj1) {
7456 ecode2 = SWIG_AsVal_int(obj1, &val2);
7457 if (!SWIG_IsOK(ecode2)) {
7458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7459 }
7460 arg2 = static_cast< int >(val2);
7461 }
7462 if (obj2) {
36ed4f51 7463 {
1bd55598
RD
7464 arg3 = wxString_in_helper(obj2);
7465 if (arg3 == NULL) SWIG_fail;
7466 temp3 = true;
36ed4f51 7467 }
1bd55598
RD
7468 }
7469 if (obj3) {
d55e5bfc 7470 {
1bd55598
RD
7471 arg4 = &temp4;
7472 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7473 }
1bd55598
RD
7474 }
7475 if (obj4) {
d55e5bfc 7476 {
1bd55598
RD
7477 arg5 = &temp5;
7478 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7479 }
1bd55598
RD
7480 }
7481 if (obj5) {
7482 ecode6 = SWIG_AsVal_long(obj5, &val6);
7483 if (!SWIG_IsOK(ecode6)) {
7484 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7485 }
7486 arg6 = static_cast< long >(val6);
7487 }
7488 if (obj6) {
36ed4f51 7489 {
1bd55598
RD
7490 arg7 = wxString_in_helper(obj6);
7491 if (arg7 == NULL) SWIG_fail;
7492 temp7 = true;
36ed4f51 7493 }
1bd55598
RD
7494 }
7495 {
7496 if (!wxPyCheckForApp()) SWIG_fail;
7497 PyThreadState* __tstate = wxPyBeginAllowThreads();
7498 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7499 wxPyEndAllowThreads(__tstate);
7500 if (PyErr_Occurred()) SWIG_fail;
7501 }
7502 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7503 {
7504 if (temp3)
7505 delete arg3;
7506 }
7507 {
7508 if (temp7)
7509 delete arg7;
7510 }
7511 return resultobj;
7512fail:
7513 {
7514 if (temp3)
7515 delete arg3;
7516 }
7517 {
7518 if (temp7)
7519 delete arg7;
7520 }
7521 return NULL;
7522}
d55e5bfc 7523
1bd55598
RD
7524
7525SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7526 PyObject *resultobj = 0;
7527 wxStaticBox *result = 0 ;
7528
7529 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7530 {
7531 if (!wxPyCheckForApp()) SWIG_fail;
7532 PyThreadState* __tstate = wxPyBeginAllowThreads();
7533 result = (wxStaticBox *)new wxStaticBox();
7534 wxPyEndAllowThreads(__tstate);
7535 if (PyErr_Occurred()) SWIG_fail;
7536 }
7537 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7538 return resultobj;
7539fail:
7540 return NULL;
7541}
7542
7543
7544SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7545 PyObject *resultobj = 0;
7546 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7547 wxWindow *arg2 = (wxWindow *) 0 ;
7548 int arg3 = (int) -1 ;
7549 wxString const &arg4_defvalue = wxPyEmptyString ;
7550 wxString *arg4 = (wxString *) &arg4_defvalue ;
7551 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7552 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7553 wxSize const &arg6_defvalue = wxDefaultSize ;
7554 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7555 long arg7 = (long) 0 ;
7556 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7557 wxString *arg8 = (wxString *) &arg8_defvalue ;
7558 bool result;
7559 void *argp1 = 0 ;
7560 int res1 = 0 ;
7561 void *argp2 = 0 ;
7562 int res2 = 0 ;
7563 int val3 ;
7564 int ecode3 = 0 ;
7565 bool temp4 = false ;
7566 wxPoint temp5 ;
7567 wxSize temp6 ;
7568 long val7 ;
7569 int ecode7 = 0 ;
7570 bool temp8 = false ;
7571 PyObject * obj0 = 0 ;
7572 PyObject * obj1 = 0 ;
7573 PyObject * obj2 = 0 ;
7574 PyObject * obj3 = 0 ;
7575 PyObject * obj4 = 0 ;
7576 PyObject * obj5 = 0 ;
7577 PyObject * obj6 = 0 ;
7578 PyObject * obj7 = 0 ;
7579 char * kwnames[] = {
7580 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7581 };
7582
7583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7585 if (!SWIG_IsOK(res1)) {
7586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7587 }
7588 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7590 if (!SWIG_IsOK(res2)) {
7591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7592 }
7593 arg2 = reinterpret_cast< wxWindow * >(argp2);
7594 if (obj2) {
7595 ecode3 = SWIG_AsVal_int(obj2, &val3);
7596 if (!SWIG_IsOK(ecode3)) {
7597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7598 }
7599 arg3 = static_cast< int >(val3);
7600 }
7601 if (obj3) {
36ed4f51 7602 {
1bd55598
RD
7603 arg4 = wxString_in_helper(obj3);
7604 if (arg4 == NULL) SWIG_fail;
7605 temp4 = true;
36ed4f51 7606 }
1bd55598
RD
7607 }
7608 if (obj4) {
d55e5bfc 7609 {
1bd55598
RD
7610 arg5 = &temp5;
7611 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 7612 }
1bd55598
RD
7613 }
7614 if (obj5) {
d55e5bfc 7615 {
1bd55598
RD
7616 arg6 = &temp6;
7617 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 7618 }
1bd55598
RD
7619 }
7620 if (obj6) {
7621 ecode7 = SWIG_AsVal_long(obj6, &val7);
7622 if (!SWIG_IsOK(ecode7)) {
7623 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7624 }
7625 arg7 = static_cast< long >(val7);
7626 }
7627 if (obj7) {
36ed4f51 7628 {
1bd55598
RD
7629 arg8 = wxString_in_helper(obj7);
7630 if (arg8 == NULL) SWIG_fail;
7631 temp8 = true;
36ed4f51 7632 }
1bd55598
RD
7633 }
7634 {
7635 PyThreadState* __tstate = wxPyBeginAllowThreads();
7636 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7637 wxPyEndAllowThreads(__tstate);
7638 if (PyErr_Occurred()) SWIG_fail;
7639 }
7640 {
7641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7642 }
7643 {
7644 if (temp4)
7645 delete arg4;
7646 }
7647 {
7648 if (temp8)
7649 delete arg8;
7650 }
7651 return resultobj;
7652fail:
7653 {
7654 if (temp4)
7655 delete arg4;
7656 }
7657 {
7658 if (temp8)
7659 delete arg8;
7660 }
7661 return NULL;
d55e5bfc
RD
7662}
7663
7664
1bd55598
RD
7665SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7666 PyObject *resultobj = 0;
7667 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7668 SwigValueWrapper<wxVisualAttributes > result;
7669 int val1 ;
7670 int ecode1 = 0 ;
7671 PyObject * obj0 = 0 ;
7672 char * kwnames[] = {
7673 (char *) "variant", NULL
7674 };
7675
7676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7677 if (obj0) {
7678 ecode1 = SWIG_AsVal_int(obj0, &val1);
7679 if (!SWIG_IsOK(ecode1)) {
7680 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7681 }
7682 arg1 = static_cast< wxWindowVariant >(val1);
7683 }
7684 {
7685 if (!wxPyCheckForApp()) SWIG_fail;
7686 PyThreadState* __tstate = wxPyBeginAllowThreads();
7687 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7688 wxPyEndAllowThreads(__tstate);
7689 if (PyErr_Occurred()) SWIG_fail;
7690 }
7691 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7692 return resultobj;
7693fail:
7694 return NULL;
7695}
7696
7697
7698SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7699 PyObject *obj;
7700 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7701 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7702 return SWIG_Py_Void();
7703}
7704
7705SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7706 return SWIG_Python_InitShadowInstance(args);
7707}
7708
7709SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7710 PyObject *resultobj = 0;
7711 wxWindow *arg1 = (wxWindow *) 0 ;
7712 int arg2 = (int) -1 ;
7713 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7714 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7715 wxSize const &arg4_defvalue = wxDefaultSize ;
7716 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7717 long arg5 = (long) wxLI_HORIZONTAL ;
7718 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7719 wxString *arg6 = (wxString *) &arg6_defvalue ;
7720 wxStaticLine *result = 0 ;
7721 void *argp1 = 0 ;
7722 int res1 = 0 ;
7723 int val2 ;
7724 int ecode2 = 0 ;
7725 wxPoint temp3 ;
7726 wxSize temp4 ;
7727 long val5 ;
7728 int ecode5 = 0 ;
7729 bool temp6 = false ;
7730 PyObject * obj0 = 0 ;
7731 PyObject * obj1 = 0 ;
7732 PyObject * obj2 = 0 ;
7733 PyObject * obj3 = 0 ;
7734 PyObject * obj4 = 0 ;
7735 PyObject * obj5 = 0 ;
7736 char * kwnames[] = {
7737 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7738 };
7739
7740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7742 if (!SWIG_IsOK(res1)) {
7743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7744 }
7745 arg1 = reinterpret_cast< wxWindow * >(argp1);
7746 if (obj1) {
7747 ecode2 = SWIG_AsVal_int(obj1, &val2);
7748 if (!SWIG_IsOK(ecode2)) {
7749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7750 }
7751 arg2 = static_cast< int >(val2);
7752 }
7753 if (obj2) {
7754 {
7755 arg3 = &temp3;
7756 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
f20a2e1f 7757 }
1bd55598
RD
7758 }
7759 if (obj3) {
f20a2e1f 7760 {
1bd55598
RD
7761 arg4 = &temp4;
7762 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 7763 }
1bd55598
RD
7764 }
7765 if (obj4) {
7766 ecode5 = SWIG_AsVal_long(obj4, &val5);
7767 if (!SWIG_IsOK(ecode5)) {
7768 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7769 }
7770 arg5 = static_cast< long >(val5);
7771 }
7772 if (obj5) {
f20a2e1f 7773 {
1bd55598
RD
7774 arg6 = wxString_in_helper(obj5);
7775 if (arg6 == NULL) SWIG_fail;
7776 temp6 = true;
f20a2e1f 7777 }
1bd55598
RD
7778 }
7779 {
7780 if (!wxPyCheckForApp()) SWIG_fail;
7781 PyThreadState* __tstate = wxPyBeginAllowThreads();
7782 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7783 wxPyEndAllowThreads(__tstate);
7784 if (PyErr_Occurred()) SWIG_fail;
7785 }
7786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7787 {
7788 if (temp6)
7789 delete arg6;
7790 }
7791 return resultobj;
7792fail:
7793 {
7794 if (temp6)
7795 delete arg6;
7796 }
7797 return NULL;
d55e5bfc
RD
7798}
7799
7800
1bd55598
RD
7801SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7802 PyObject *resultobj = 0;
7803 wxStaticLine *result = 0 ;
7804
7805 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7806 {
7807 if (!wxPyCheckForApp()) SWIG_fail;
7808 PyThreadState* __tstate = wxPyBeginAllowThreads();
7809 result = (wxStaticLine *)new wxStaticLine();
7810 wxPyEndAllowThreads(__tstate);
7811 if (PyErr_Occurred()) SWIG_fail;
7812 }
7813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7814 return resultobj;
7815fail:
7816 return NULL;
7817}
7818
7819
7820SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7821 PyObject *resultobj = 0;
7822 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7823 wxWindow *arg2 = (wxWindow *) 0 ;
7824 int arg3 = (int) -1 ;
7825 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7826 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7827 wxSize const &arg5_defvalue = wxDefaultSize ;
7828 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7829 long arg6 = (long) wxLI_HORIZONTAL ;
7830 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7831 wxString *arg7 = (wxString *) &arg7_defvalue ;
7832 bool result;
7833 void *argp1 = 0 ;
7834 int res1 = 0 ;
7835 void *argp2 = 0 ;
7836 int res2 = 0 ;
7837 int val3 ;
7838 int ecode3 = 0 ;
7839 wxPoint temp4 ;
7840 wxSize temp5 ;
7841 long val6 ;
7842 int ecode6 = 0 ;
7843 bool temp7 = false ;
7844 PyObject * obj0 = 0 ;
7845 PyObject * obj1 = 0 ;
7846 PyObject * obj2 = 0 ;
7847 PyObject * obj3 = 0 ;
7848 PyObject * obj4 = 0 ;
7849 PyObject * obj5 = 0 ;
7850 PyObject * obj6 = 0 ;
7851 char * kwnames[] = {
7852 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7853 };
7854
7855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7857 if (!SWIG_IsOK(res1)) {
7858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7859 }
7860 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7861 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7862 if (!SWIG_IsOK(res2)) {
7863 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7864 }
7865 arg2 = reinterpret_cast< wxWindow * >(argp2);
7866 if (obj2) {
7867 ecode3 = SWIG_AsVal_int(obj2, &val3);
7868 if (!SWIG_IsOK(ecode3)) {
7869 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7870 }
7871 arg3 = static_cast< int >(val3);
7872 }
7873 if (obj3) {
d55e5bfc 7874 {
1bd55598
RD
7875 arg4 = &temp4;
7876 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 7877 }
1bd55598
RD
7878 }
7879 if (obj4) {
d55e5bfc 7880 {
1bd55598
RD
7881 arg5 = &temp5;
7882 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7883 }
7884 }
7885 if (obj5) {
7886 ecode6 = SWIG_AsVal_long(obj5, &val6);
7887 if (!SWIG_IsOK(ecode6)) {
7888 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7889 }
7890 arg6 = static_cast< long >(val6);
7891 }
7892 if (obj6) {
7893 {
7894 arg7 = wxString_in_helper(obj6);
7895 if (arg7 == NULL) SWIG_fail;
7896 temp7 = true;
d55e5bfc 7897 }
1bd55598
RD
7898 }
7899 {
7900 PyThreadState* __tstate = wxPyBeginAllowThreads();
7901 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7902 wxPyEndAllowThreads(__tstate);
7903 if (PyErr_Occurred()) SWIG_fail;
7904 }
7905 {
7906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7907 }
7908 {
7909 if (temp7)
7910 delete arg7;
7911 }
7912 return resultobj;
7913fail:
7914 {
7915 if (temp7)
7916 delete arg7;
7917 }
7918 return NULL;
d55e5bfc
RD
7919}
7920
7921
1bd55598
RD
7922SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7923 PyObject *resultobj = 0;
7924 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7925 bool result;
7926 void *argp1 = 0 ;
7927 int res1 = 0 ;
7928 PyObject *swig_obj[1] ;
7929
7930 if (!args) SWIG_fail;
7931 swig_obj[0] = args;
7932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7933 if (!SWIG_IsOK(res1)) {
7934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7935 }
7936 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7937 {
7938 PyThreadState* __tstate = wxPyBeginAllowThreads();
7939 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7940 wxPyEndAllowThreads(__tstate);
7941 if (PyErr_Occurred()) SWIG_fail;
7942 }
7943 {
7944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7945 }
7946 return resultobj;
7947fail:
7948 return NULL;
d55e5bfc
RD
7949}
7950
7951
1bd55598
RD
7952SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7953 PyObject *resultobj = 0;
7954 int result;
7955
7956 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7957 {
7958 PyThreadState* __tstate = wxPyBeginAllowThreads();
7959 result = (int)wxStaticLine::GetDefaultSize();
7960 wxPyEndAllowThreads(__tstate);
7961 if (PyErr_Occurred()) SWIG_fail;
7962 }
7963 resultobj = SWIG_From_int(static_cast< int >(result));
7964 return resultobj;
7965fail:
7966 return NULL;
7967}
7968
7969
7970SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7971 PyObject *resultobj = 0;
7972 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7973 SwigValueWrapper<wxVisualAttributes > result;
7974 int val1 ;
7975 int ecode1 = 0 ;
7976 PyObject * obj0 = 0 ;
7977 char * kwnames[] = {
7978 (char *) "variant", NULL
7979 };
7980
7981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7982 if (obj0) {
7983 ecode1 = SWIG_AsVal_int(obj0, &val1);
7984 if (!SWIG_IsOK(ecode1)) {
7985 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7986 }
7987 arg1 = static_cast< wxWindowVariant >(val1);
7988 }
7989 {
7990 if (!wxPyCheckForApp()) SWIG_fail;
7991 PyThreadState* __tstate = wxPyBeginAllowThreads();
7992 result = wxStaticLine::GetClassDefaultAttributes(arg1);
7993 wxPyEndAllowThreads(__tstate);
7994 if (PyErr_Occurred()) SWIG_fail;
7995 }
7996 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7997 return resultobj;
7998fail:
7999 return NULL;
8000}
8001
8002
8003SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8004 PyObject *obj;
8005 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8006 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
8007 return SWIG_Py_Void();
8008}
8009
8010SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8011 return SWIG_Python_InitShadowInstance(args);
8012}
8013
8014SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8015 PyObject *resultobj = 0;
8016 wxWindow *arg1 = (wxWindow *) 0 ;
8017 int arg2 = (int) -1 ;
8018 wxString const &arg3_defvalue = wxPyEmptyString ;
8019 wxString *arg3 = (wxString *) &arg3_defvalue ;
8020 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8021 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8022 wxSize const &arg5_defvalue = wxDefaultSize ;
8023 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8024 long arg6 = (long) 0 ;
8025 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8026 wxString *arg7 = (wxString *) &arg7_defvalue ;
8027 wxStaticText *result = 0 ;
8028 void *argp1 = 0 ;
8029 int res1 = 0 ;
8030 int val2 ;
8031 int ecode2 = 0 ;
8032 bool temp3 = false ;
8033 wxPoint temp4 ;
8034 wxSize temp5 ;
8035 long val6 ;
8036 int ecode6 = 0 ;
8037 bool temp7 = false ;
8038 PyObject * obj0 = 0 ;
8039 PyObject * obj1 = 0 ;
8040 PyObject * obj2 = 0 ;
8041 PyObject * obj3 = 0 ;
8042 PyObject * obj4 = 0 ;
8043 PyObject * obj5 = 0 ;
8044 PyObject * obj6 = 0 ;
8045 char * kwnames[] = {
8046 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8047 };
8048
8049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8051 if (!SWIG_IsOK(res1)) {
8052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8053 }
8054 arg1 = reinterpret_cast< wxWindow * >(argp1);
8055 if (obj1) {
8056 ecode2 = SWIG_AsVal_int(obj1, &val2);
8057 if (!SWIG_IsOK(ecode2)) {
8058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8059 }
8060 arg2 = static_cast< int >(val2);
8061 }
8062 if (obj2) {
d55e5bfc 8063 {
1bd55598
RD
8064 arg3 = wxString_in_helper(obj2);
8065 if (arg3 == NULL) SWIG_fail;
8066 temp3 = true;
d55e5bfc 8067 }
1bd55598
RD
8068 }
8069 if (obj3) {
d55e5bfc 8070 {
1bd55598
RD
8071 arg4 = &temp4;
8072 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8073 }
1bd55598
RD
8074 }
8075 if (obj4) {
d55e5bfc 8076 {
1bd55598
RD
8077 arg5 = &temp5;
8078 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8079 }
1bd55598
RD
8080 }
8081 if (obj5) {
8082 ecode6 = SWIG_AsVal_long(obj5, &val6);
8083 if (!SWIG_IsOK(ecode6)) {
8084 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8085 }
8086 arg6 = static_cast< long >(val6);
8087 }
8088 if (obj6) {
d55e5bfc 8089 {
1bd55598
RD
8090 arg7 = wxString_in_helper(obj6);
8091 if (arg7 == NULL) SWIG_fail;
8092 temp7 = true;
d55e5bfc 8093 }
1bd55598
RD
8094 }
8095 {
8096 if (!wxPyCheckForApp()) SWIG_fail;
8097 PyThreadState* __tstate = wxPyBeginAllowThreads();
8098 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8099 wxPyEndAllowThreads(__tstate);
8100 if (PyErr_Occurred()) SWIG_fail;
8101 }
8102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8103 {
8104 if (temp3)
8105 delete arg3;
8106 }
8107 {
8108 if (temp7)
8109 delete arg7;
8110 }
8111 return resultobj;
8112fail:
8113 {
8114 if (temp3)
8115 delete arg3;
8116 }
8117 {
8118 if (temp7)
8119 delete arg7;
8120 }
8121 return NULL;
d55e5bfc
RD
8122}
8123
8124
1bd55598
RD
8125SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8126 PyObject *resultobj = 0;
8127 wxStaticText *result = 0 ;
8128
8129 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8130 {
8131 if (!wxPyCheckForApp()) SWIG_fail;
8132 PyThreadState* __tstate = wxPyBeginAllowThreads();
8133 result = (wxStaticText *)new wxStaticText();
8134 wxPyEndAllowThreads(__tstate);
8135 if (PyErr_Occurred()) SWIG_fail;
8136 }
8137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8138 return resultobj;
8139fail:
8140 return NULL;
8141}
8142
8143
8144SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8145 PyObject *resultobj = 0;
8146 wxStaticText *arg1 = (wxStaticText *) 0 ;
8147 wxWindow *arg2 = (wxWindow *) 0 ;
8148 int arg3 = (int) -1 ;
8149 wxString const &arg4_defvalue = wxPyEmptyString ;
8150 wxString *arg4 = (wxString *) &arg4_defvalue ;
8151 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8152 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8153 wxSize const &arg6_defvalue = wxDefaultSize ;
8154 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8155 long arg7 = (long) 0 ;
8156 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8157 wxString *arg8 = (wxString *) &arg8_defvalue ;
8158 bool result;
8159 void *argp1 = 0 ;
8160 int res1 = 0 ;
8161 void *argp2 = 0 ;
8162 int res2 = 0 ;
8163 int val3 ;
8164 int ecode3 = 0 ;
8165 bool temp4 = false ;
8166 wxPoint temp5 ;
8167 wxSize temp6 ;
8168 long val7 ;
8169 int ecode7 = 0 ;
8170 bool temp8 = false ;
8171 PyObject * obj0 = 0 ;
8172 PyObject * obj1 = 0 ;
8173 PyObject * obj2 = 0 ;
8174 PyObject * obj3 = 0 ;
8175 PyObject * obj4 = 0 ;
8176 PyObject * obj5 = 0 ;
8177 PyObject * obj6 = 0 ;
8178 PyObject * obj7 = 0 ;
8179 char * kwnames[] = {
8180 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8181 };
8182
8183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8185 if (!SWIG_IsOK(res1)) {
8186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8187 }
8188 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8189 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8190 if (!SWIG_IsOK(res2)) {
8191 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8192 }
8193 arg2 = reinterpret_cast< wxWindow * >(argp2);
8194 if (obj2) {
8195 ecode3 = SWIG_AsVal_int(obj2, &val3);
8196 if (!SWIG_IsOK(ecode3)) {
8197 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8198 }
8199 arg3 = static_cast< int >(val3);
8200 }
8201 if (obj3) {
d55e5bfc 8202 {
1bd55598
RD
8203 arg4 = wxString_in_helper(obj3);
8204 if (arg4 == NULL) SWIG_fail;
8205 temp4 = true;
d55e5bfc 8206 }
1bd55598
RD
8207 }
8208 if (obj4) {
d55e5bfc 8209 {
1bd55598
RD
8210 arg5 = &temp5;
8211 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8212 }
1bd55598
RD
8213 }
8214 if (obj5) {
d55e5bfc 8215 {
1bd55598
RD
8216 arg6 = &temp6;
8217 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 8218 }
1bd55598
RD
8219 }
8220 if (obj6) {
8221 ecode7 = SWIG_AsVal_long(obj6, &val7);
8222 if (!SWIG_IsOK(ecode7)) {
8223 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8224 }
8225 arg7 = static_cast< long >(val7);
8226 }
8227 if (obj7) {
d55e5bfc 8228 {
1bd55598
RD
8229 arg8 = wxString_in_helper(obj7);
8230 if (arg8 == NULL) SWIG_fail;
8231 temp8 = true;
d55e5bfc 8232 }
1bd55598
RD
8233 }
8234 {
8235 PyThreadState* __tstate = wxPyBeginAllowThreads();
8236 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8237 wxPyEndAllowThreads(__tstate);
8238 if (PyErr_Occurred()) SWIG_fail;
8239 }
8240 {
8241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8242 }
8243 {
8244 if (temp4)
8245 delete arg4;
8246 }
8247 {
8248 if (temp8)
8249 delete arg8;
8250 }
8251 return resultobj;
8252fail:
8253 {
8254 if (temp4)
8255 delete arg4;
8256 }
8257 {
8258 if (temp8)
8259 delete arg8;
8260 }
8261 return NULL;
8262}
8263
8264
8265SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8266 PyObject *resultobj = 0;
8267 wxStaticText *arg1 = (wxStaticText *) 0 ;
8268 int arg2 ;
8269 void *argp1 = 0 ;
8270 int res1 = 0 ;
8271 int val2 ;
8272 int ecode2 = 0 ;
8273 PyObject * obj0 = 0 ;
8274 PyObject * obj1 = 0 ;
8275 char * kwnames[] = {
8276 (char *) "self",(char *) "width", NULL
8277 };
8278
8279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8281 if (!SWIG_IsOK(res1)) {
8282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8283 }
8284 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8285 ecode2 = SWIG_AsVal_int(obj1, &val2);
8286 if (!SWIG_IsOK(ecode2)) {
8287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8288 }
8289 arg2 = static_cast< int >(val2);
8290 {
8291 PyThreadState* __tstate = wxPyBeginAllowThreads();
8292 (arg1)->Wrap(arg2);
8293 wxPyEndAllowThreads(__tstate);
8294 if (PyErr_Occurred()) SWIG_fail;
8295 }
8296 resultobj = SWIG_Py_Void();
8297 return resultobj;
8298fail:
8299 return NULL;
8300}
8301
8302
8303SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8304 PyObject *resultobj = 0;
8305 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8306 SwigValueWrapper<wxVisualAttributes > result;
8307 int val1 ;
8308 int ecode1 = 0 ;
8309 PyObject * obj0 = 0 ;
8310 char * kwnames[] = {
8311 (char *) "variant", NULL
8312 };
8313
8314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8315 if (obj0) {
8316 ecode1 = SWIG_AsVal_int(obj0, &val1);
8317 if (!SWIG_IsOK(ecode1)) {
8318 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8319 }
8320 arg1 = static_cast< wxWindowVariant >(val1);
8321 }
8322 {
8323 if (!wxPyCheckForApp()) SWIG_fail;
8324 PyThreadState* __tstate = wxPyBeginAllowThreads();
8325 result = wxStaticText::GetClassDefaultAttributes(arg1);
8326 wxPyEndAllowThreads(__tstate);
8327 if (PyErr_Occurred()) SWIG_fail;
8328 }
8329 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8330 return resultobj;
8331fail:
8332 return NULL;
8333}
8334
8335
8336SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8337 PyObject *obj;
8338 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8339 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8340 return SWIG_Py_Void();
8341}
8342
8343SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8344 return SWIG_Python_InitShadowInstance(args);
8345}
8346
8347SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8348 PyObject *resultobj = 0;
8349 wxWindow *arg1 = (wxWindow *) 0 ;
8350 int arg2 = (int) -1 ;
8351 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8352 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8353 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8354 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8355 wxSize const &arg5_defvalue = wxDefaultSize ;
8356 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8357 long arg6 = (long) 0 ;
8358 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8359 wxString *arg7 = (wxString *) &arg7_defvalue ;
8360 wxStaticBitmap *result = 0 ;
8361 void *argp1 = 0 ;
8362 int res1 = 0 ;
8363 int val2 ;
8364 int ecode2 = 0 ;
8365 void *argp3 = 0 ;
8366 int res3 = 0 ;
8367 wxPoint temp4 ;
8368 wxSize temp5 ;
8369 long val6 ;
8370 int ecode6 = 0 ;
8371 bool temp7 = false ;
8372 PyObject * obj0 = 0 ;
8373 PyObject * obj1 = 0 ;
8374 PyObject * obj2 = 0 ;
8375 PyObject * obj3 = 0 ;
8376 PyObject * obj4 = 0 ;
8377 PyObject * obj5 = 0 ;
8378 PyObject * obj6 = 0 ;
8379 char * kwnames[] = {
8380 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8381 };
8382
8383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8385 if (!SWIG_IsOK(res1)) {
8386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8387 }
8388 arg1 = reinterpret_cast< wxWindow * >(argp1);
8389 if (obj1) {
8390 ecode2 = SWIG_AsVal_int(obj1, &val2);
8391 if (!SWIG_IsOK(ecode2)) {
8392 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8393 }
8394 arg2 = static_cast< int >(val2);
8395 }
8396 if (obj2) {
8397 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8398 if (!SWIG_IsOK(res3)) {
8399 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 8400 }
1bd55598
RD
8401 if (!argp3) {
8402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
d55e5bfc 8403 }
1bd55598
RD
8404 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8405 }
8406 if (obj3) {
d55e5bfc 8407 {
1bd55598
RD
8408 arg4 = &temp4;
8409 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 8410 }
1bd55598
RD
8411 }
8412 if (obj4) {
f20a2e1f 8413 {
1bd55598
RD
8414 arg5 = &temp5;
8415 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 8416 }
1bd55598
RD
8417 }
8418 if (obj5) {
8419 ecode6 = SWIG_AsVal_long(obj5, &val6);
8420 if (!SWIG_IsOK(ecode6)) {
8421 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8422 }
8423 arg6 = static_cast< long >(val6);
8424 }
8425 if (obj6) {
f20a2e1f 8426 {
1bd55598
RD
8427 arg7 = wxString_in_helper(obj6);
8428 if (arg7 == NULL) SWIG_fail;
8429 temp7 = true;
f20a2e1f 8430 }
1bd55598
RD
8431 }
8432 {
8433 if (!wxPyCheckForApp()) SWIG_fail;
8434 PyThreadState* __tstate = wxPyBeginAllowThreads();
8435 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8436 wxPyEndAllowThreads(__tstate);
8437 if (PyErr_Occurred()) SWIG_fail;
8438 }
8439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8440 {
8441 if (temp7)
8442 delete arg7;
8443 }
8444 return resultobj;
8445fail:
8446 {
8447 if (temp7)
8448 delete arg7;
8449 }
8450 return NULL;
f20a2e1f
RD
8451}
8452
8453
1bd55598
RD
8454SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8455 PyObject *resultobj = 0;
8456 wxStaticBitmap *result = 0 ;
8457
8458 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8459 {
8460 if (!wxPyCheckForApp()) SWIG_fail;
8461 PyThreadState* __tstate = wxPyBeginAllowThreads();
8462 result = (wxStaticBitmap *)new wxStaticBitmap();
8463 wxPyEndAllowThreads(__tstate);
8464 if (PyErr_Occurred()) SWIG_fail;
8465 }
8466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8467 return resultobj;
8468fail:
8469 return NULL;
8470}
8471
8472
8473SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8474 PyObject *resultobj = 0;
8475 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8476 wxWindow *arg2 = (wxWindow *) 0 ;
8477 int arg3 = (int) -1 ;
8478 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8479 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8480 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8481 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8482 wxSize const &arg6_defvalue = wxDefaultSize ;
8483 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8484 long arg7 = (long) 0 ;
8485 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8486 wxString *arg8 = (wxString *) &arg8_defvalue ;
8487 bool result;
8488 void *argp1 = 0 ;
8489 int res1 = 0 ;
8490 void *argp2 = 0 ;
8491 int res2 = 0 ;
8492 int val3 ;
8493 int ecode3 = 0 ;
8494 void *argp4 = 0 ;
8495 int res4 = 0 ;
8496 wxPoint temp5 ;
8497 wxSize temp6 ;
8498 long val7 ;
8499 int ecode7 = 0 ;
8500 bool temp8 = false ;
8501 PyObject * obj0 = 0 ;
8502 PyObject * obj1 = 0 ;
8503 PyObject * obj2 = 0 ;
8504 PyObject * obj3 = 0 ;
8505 PyObject * obj4 = 0 ;
8506 PyObject * obj5 = 0 ;
8507 PyObject * obj6 = 0 ;
8508 PyObject * obj7 = 0 ;
8509 char * kwnames[] = {
8510 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8511 };
8512
8513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8515 if (!SWIG_IsOK(res1)) {
8516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8517 }
8518 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8519 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8520 if (!SWIG_IsOK(res2)) {
8521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8522 }
8523 arg2 = reinterpret_cast< wxWindow * >(argp2);
8524 if (obj2) {
8525 ecode3 = SWIG_AsVal_int(obj2, &val3);
8526 if (!SWIG_IsOK(ecode3)) {
8527 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8528 }
8529 arg3 = static_cast< int >(val3);
8530 }
8531 if (obj3) {
8532 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8533 if (!SWIG_IsOK(res4)) {
8534 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 8535 }
1bd55598
RD
8536 if (!argp4) {
8537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
d55e5bfc 8538 }
1bd55598
RD
8539 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8540 }
8541 if (obj4) {
d55e5bfc 8542 {
1bd55598
RD
8543 arg5 = &temp5;
8544 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8545 }
1bd55598
RD
8546 }
8547 if (obj5) {
d55e5bfc 8548 {
1bd55598
RD
8549 arg6 = &temp6;
8550 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 8551 }
1bd55598
RD
8552 }
8553 if (obj6) {
8554 ecode7 = SWIG_AsVal_long(obj6, &val7);
8555 if (!SWIG_IsOK(ecode7)) {
8556 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8557 }
8558 arg7 = static_cast< long >(val7);
8559 }
8560 if (obj7) {
d55e5bfc 8561 {
1bd55598
RD
8562 arg8 = wxString_in_helper(obj7);
8563 if (arg8 == NULL) SWIG_fail;
8564 temp8 = true;
d55e5bfc 8565 }
1bd55598
RD
8566 }
8567 {
8568 PyThreadState* __tstate = wxPyBeginAllowThreads();
8569 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8570 wxPyEndAllowThreads(__tstate);
8571 if (PyErr_Occurred()) SWIG_fail;
8572 }
8573 {
8574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8575 }
8576 {
8577 if (temp8)
8578 delete arg8;
8579 }
8580 return resultobj;
8581fail:
8582 {
8583 if (temp8)
8584 delete arg8;
8585 }
8586 return NULL;
d55e5bfc
RD
8587}
8588
8589
1bd55598
RD
8590SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8591 PyObject *resultobj = 0;
8592 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8593 wxBitmap result;
8594 void *argp1 = 0 ;
8595 int res1 = 0 ;
8596 PyObject *swig_obj[1] ;
8597
8598 if (!args) SWIG_fail;
8599 swig_obj[0] = args;
8600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8601 if (!SWIG_IsOK(res1)) {
8602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8603 }
8604 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8605 {
8606 PyThreadState* __tstate = wxPyBeginAllowThreads();
8607 result = (arg1)->GetBitmap();
8608 wxPyEndAllowThreads(__tstate);
8609 if (PyErr_Occurred()) SWIG_fail;
8610 }
8611 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8612 return resultobj;
8613fail:
8614 return NULL;
8615}
8616
8617
8618SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8619 PyObject *resultobj = 0;
8620 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8621 wxBitmap *arg2 = 0 ;
8622 void *argp1 = 0 ;
8623 int res1 = 0 ;
8624 void *argp2 = 0 ;
8625 int res2 = 0 ;
8626 PyObject * obj0 = 0 ;
8627 PyObject * obj1 = 0 ;
8628 char * kwnames[] = {
8629 (char *) "self",(char *) "bitmap", NULL
8630 };
8631
8632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8634 if (!SWIG_IsOK(res1)) {
8635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8636 }
8637 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8638 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8639 if (!SWIG_IsOK(res2)) {
8640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8641 }
8642 if (!argp2) {
8643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8644 }
8645 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8646 {
8647 PyThreadState* __tstate = wxPyBeginAllowThreads();
8648 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8649 wxPyEndAllowThreads(__tstate);
8650 if (PyErr_Occurred()) SWIG_fail;
8651 }
8652 resultobj = SWIG_Py_Void();
8653 return resultobj;
8654fail:
8655 return NULL;
8656}
8657
8658
8659SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8660 PyObject *resultobj = 0;
8661 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8662 wxIcon *arg2 = 0 ;
8663 void *argp1 = 0 ;
8664 int res1 = 0 ;
8665 void *argp2 = 0 ;
8666 int res2 = 0 ;
8667 PyObject * obj0 = 0 ;
8668 PyObject * obj1 = 0 ;
8669 char * kwnames[] = {
8670 (char *) "self",(char *) "icon", NULL
8671 };
8672
8673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8675 if (!SWIG_IsOK(res1)) {
8676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8677 }
8678 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8679 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8680 if (!SWIG_IsOK(res2)) {
8681 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8682 }
8683 if (!argp2) {
8684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8685 }
8686 arg2 = reinterpret_cast< wxIcon * >(argp2);
8687 {
8688 PyThreadState* __tstate = wxPyBeginAllowThreads();
8689 (arg1)->SetIcon((wxIcon const &)*arg2);
8690 wxPyEndAllowThreads(__tstate);
8691 if (PyErr_Occurred()) SWIG_fail;
8692 }
8693 resultobj = SWIG_Py_Void();
8694 return resultobj;
8695fail:
8696 return NULL;
8697}
8698
8699
8700SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8701 PyObject *resultobj = 0;
8702 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8703 SwigValueWrapper<wxVisualAttributes > result;
8704 int val1 ;
8705 int ecode1 = 0 ;
8706 PyObject * obj0 = 0 ;
8707 char * kwnames[] = {
8708 (char *) "variant", NULL
8709 };
8710
8711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8712 if (obj0) {
8713 ecode1 = SWIG_AsVal_int(obj0, &val1);
8714 if (!SWIG_IsOK(ecode1)) {
8715 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8716 }
8717 arg1 = static_cast< wxWindowVariant >(val1);
8718 }
8719 {
8720 if (!wxPyCheckForApp()) SWIG_fail;
8721 PyThreadState* __tstate = wxPyBeginAllowThreads();
8722 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8723 wxPyEndAllowThreads(__tstate);
8724 if (PyErr_Occurred()) SWIG_fail;
8725 }
8726 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8727 return resultobj;
8728fail:
8729 return NULL;
d55e5bfc
RD
8730}
8731
8732
1bd55598
RD
8733SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8734 PyObject *obj;
8735 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8736 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8737 return SWIG_Py_Void();
d55e5bfc
RD
8738}
8739
1bd55598
RD
8740SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8741 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
8742}
8743
1bd55598
RD
8744SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8745 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8746 return 1;
f20a2e1f
RD
8747}
8748
8749
1bd55598
RD
8750SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8751 PyObject *pyobj = 0;
8752
8753 {
8754#if wxUSE_UNICODE
8755 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8756#else
8757 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8758#endif
8759 }
8760 return pyobj;
8761}
8762
8763
8764SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8765 PyObject *resultobj = 0;
8766 wxWindow *arg1 = (wxWindow *) 0 ;
8767 int arg2 = (int) -1 ;
8768 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8769 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8770 wxSize const &arg4_defvalue = wxDefaultSize ;
8771 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8772 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8773 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8774 long arg6 = (long) 0 ;
8775 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8776 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8777 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8778 wxString *arg8 = (wxString *) &arg8_defvalue ;
8779 wxListBox *result = 0 ;
8780 void *argp1 = 0 ;
8781 int res1 = 0 ;
8782 int val2 ;
8783 int ecode2 = 0 ;
8784 wxPoint temp3 ;
8785 wxSize temp4 ;
8786 bool temp5 = false ;
8787 long val6 ;
8788 int ecode6 = 0 ;
8789 void *argp7 = 0 ;
8790 int res7 = 0 ;
8791 bool temp8 = false ;
8792 PyObject * obj0 = 0 ;
8793 PyObject * obj1 = 0 ;
8794 PyObject * obj2 = 0 ;
8795 PyObject * obj3 = 0 ;
8796 PyObject * obj4 = 0 ;
8797 PyObject * obj5 = 0 ;
8798 PyObject * obj6 = 0 ;
8799 PyObject * obj7 = 0 ;
8800 char * kwnames[] = {
8801 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8802 };
8803
8804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8806 if (!SWIG_IsOK(res1)) {
8807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8808 }
8809 arg1 = reinterpret_cast< wxWindow * >(argp1);
8810 if (obj1) {
8811 ecode2 = SWIG_AsVal_int(obj1, &val2);
8812 if (!SWIG_IsOK(ecode2)) {
8813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8814 }
8815 arg2 = static_cast< int >(val2);
8816 }
8817 if (obj2) {
d55e5bfc 8818 {
1bd55598
RD
8819 arg3 = &temp3;
8820 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 8821 }
1bd55598
RD
8822 }
8823 if (obj3) {
d55e5bfc 8824 {
1bd55598
RD
8825 arg4 = &temp4;
8826 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8827 }
1bd55598
RD
8828 }
8829 if (obj4) {
d55e5bfc 8830 {
1bd55598
RD
8831 if (! PySequence_Check(obj4)) {
8832 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8833 SWIG_fail;
8834 }
8835 arg5 = new wxArrayString;
8836 temp5 = true;
8837 int i, len=PySequence_Length(obj4);
8838 for (i=0; i<len; i++) {
8839 PyObject* item = PySequence_GetItem(obj4, i);
8840 wxString* s = wxString_in_helper(item);
8841 if (PyErr_Occurred()) SWIG_fail;
8842 arg5->Add(*s);
8843 delete s;
8844 Py_DECREF(item);
8845 }
d55e5bfc 8846 }
1bd55598
RD
8847 }
8848 if (obj5) {
8849 ecode6 = SWIG_AsVal_long(obj5, &val6);
8850 if (!SWIG_IsOK(ecode6)) {
8851 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8852 }
8853 arg6 = static_cast< long >(val6);
8854 }
8855 if (obj6) {
8856 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8857 if (!SWIG_IsOK(res7)) {
8858 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8859 }
1bd55598
RD
8860 if (!argp7) {
8861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 8862 }
1bd55598
RD
8863 arg7 = reinterpret_cast< wxValidator * >(argp7);
8864 }
8865 if (obj7) {
d55e5bfc 8866 {
1bd55598
RD
8867 arg8 = wxString_in_helper(obj7);
8868 if (arg8 == NULL) SWIG_fail;
8869 temp8 = true;
d55e5bfc 8870 }
1bd55598
RD
8871 }
8872 {
8873 if (!wxPyCheckForApp()) SWIG_fail;
8874 PyThreadState* __tstate = wxPyBeginAllowThreads();
8875 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8876 wxPyEndAllowThreads(__tstate);
8877 if (PyErr_Occurred()) SWIG_fail;
8878 }
8879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8880 {
8881 if (temp5) delete arg5;
8882 }
8883 {
8884 if (temp8)
8885 delete arg8;
8886 }
8887 return resultobj;
8888fail:
8889 {
8890 if (temp5) delete arg5;
8891 }
8892 {
8893 if (temp8)
8894 delete arg8;
8895 }
8896 return NULL;
d55e5bfc
RD
8897}
8898
8899
1bd55598
RD
8900SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8901 PyObject *resultobj = 0;
8902 wxListBox *result = 0 ;
8903
8904 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8905 {
8906 if (!wxPyCheckForApp()) SWIG_fail;
8907 PyThreadState* __tstate = wxPyBeginAllowThreads();
8908 result = (wxListBox *)new wxListBox();
8909 wxPyEndAllowThreads(__tstate);
8910 if (PyErr_Occurred()) SWIG_fail;
8911 }
8912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8913 return resultobj;
8914fail:
8915 return NULL;
8916}
8917
8918
8919SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8920 PyObject *resultobj = 0;
8921 wxListBox *arg1 = (wxListBox *) 0 ;
8922 wxWindow *arg2 = (wxWindow *) 0 ;
8923 int arg3 = (int) -1 ;
8924 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8925 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8926 wxSize const &arg5_defvalue = wxDefaultSize ;
8927 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8928 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8929 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8930 long arg7 = (long) 0 ;
8931 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8932 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8933 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8934 wxString *arg9 = (wxString *) &arg9_defvalue ;
8935 bool result;
8936 void *argp1 = 0 ;
8937 int res1 = 0 ;
8938 void *argp2 = 0 ;
8939 int res2 = 0 ;
8940 int val3 ;
8941 int ecode3 = 0 ;
8942 wxPoint temp4 ;
8943 wxSize temp5 ;
8944 bool temp6 = false ;
8945 long val7 ;
8946 int ecode7 = 0 ;
8947 void *argp8 = 0 ;
8948 int res8 = 0 ;
8949 bool temp9 = false ;
8950 PyObject * obj0 = 0 ;
8951 PyObject * obj1 = 0 ;
8952 PyObject * obj2 = 0 ;
8953 PyObject * obj3 = 0 ;
8954 PyObject * obj4 = 0 ;
8955 PyObject * obj5 = 0 ;
8956 PyObject * obj6 = 0 ;
8957 PyObject * obj7 = 0 ;
8958 PyObject * obj8 = 0 ;
8959 char * kwnames[] = {
8960 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8961 };
8962
8963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8965 if (!SWIG_IsOK(res1)) {
8966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8967 }
8968 arg1 = reinterpret_cast< wxListBox * >(argp1);
8969 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8970 if (!SWIG_IsOK(res2)) {
8971 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8972 }
8973 arg2 = reinterpret_cast< wxWindow * >(argp2);
8974 if (obj2) {
8975 ecode3 = SWIG_AsVal_int(obj2, &val3);
8976 if (!SWIG_IsOK(ecode3)) {
8977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8978 }
8979 arg3 = static_cast< int >(val3);
8980 }
8981 if (obj3) {
d55e5bfc 8982 {
1bd55598
RD
8983 arg4 = &temp4;
8984 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 8985 }
1bd55598
RD
8986 }
8987 if (obj4) {
d55e5bfc 8988 {
1bd55598
RD
8989 arg5 = &temp5;
8990 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 8991 }
1bd55598
RD
8992 }
8993 if (obj5) {
943e8dfd 8994 {
1bd55598
RD
8995 if (! PySequence_Check(obj5)) {
8996 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8997 SWIG_fail;
8998 }
8999 arg6 = new wxArrayString;
9000 temp6 = true;
9001 int i, len=PySequence_Length(obj5);
9002 for (i=0; i<len; i++) {
9003 PyObject* item = PySequence_GetItem(obj5, i);
9004 wxString* s = wxString_in_helper(item);
9005 if (PyErr_Occurred()) SWIG_fail;
9006 arg6->Add(*s);
9007 delete s;
9008 Py_DECREF(item);
9009 }
943e8dfd 9010 }
1bd55598
RD
9011 }
9012 if (obj6) {
9013 ecode7 = SWIG_AsVal_long(obj6, &val7);
9014 if (!SWIG_IsOK(ecode7)) {
9015 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
9016 }
9017 arg7 = static_cast< long >(val7);
9018 }
9019 if (obj7) {
9020 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9021 if (!SWIG_IsOK(res8)) {
9022 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
943e8dfd 9023 }
1bd55598
RD
9024 if (!argp8) {
9025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
f20a2e1f 9026 }
1bd55598
RD
9027 arg8 = reinterpret_cast< wxValidator * >(argp8);
9028 }
9029 if (obj8) {
f20a2e1f 9030 {
1bd55598
RD
9031 arg9 = wxString_in_helper(obj8);
9032 if (arg9 == NULL) SWIG_fail;
9033 temp9 = true;
f20a2e1f 9034 }
1bd55598
RD
9035 }
9036 {
9037 PyThreadState* __tstate = wxPyBeginAllowThreads();
9038 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9039 wxPyEndAllowThreads(__tstate);
9040 if (PyErr_Occurred()) SWIG_fail;
9041 }
9042 {
9043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9044 }
9045 {
9046 if (temp6) delete arg6;
9047 }
9048 {
9049 if (temp9)
9050 delete arg9;
9051 }
9052 return resultobj;
9053fail:
9054 {
9055 if (temp6) delete arg6;
9056 }
9057 {
9058 if (temp9)
9059 delete arg9;
9060 }
9061 return NULL;
9062}
9063
9064
9065SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9066 PyObject *resultobj = 0;
9067 wxListBox *arg1 = (wxListBox *) 0 ;
9068 wxString *arg2 = 0 ;
9069 int arg3 ;
9070 PyObject *arg4 = (PyObject *) NULL ;
9071 void *argp1 = 0 ;
9072 int res1 = 0 ;
9073 bool temp2 = false ;
9074 int val3 ;
9075 int ecode3 = 0 ;
9076 PyObject * obj0 = 0 ;
9077 PyObject * obj1 = 0 ;
9078 PyObject * obj2 = 0 ;
9079 PyObject * obj3 = 0 ;
9080 char * kwnames[] = {
9081 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9082 };
9083
9084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9086 if (!SWIG_IsOK(res1)) {
9087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9088 }
9089 arg1 = reinterpret_cast< wxListBox * >(argp1);
9090 {
9091 arg2 = wxString_in_helper(obj1);
9092 if (arg2 == NULL) SWIG_fail;
9093 temp2 = true;
9094 }
9095 ecode3 = SWIG_AsVal_int(obj2, &val3);
9096 if (!SWIG_IsOK(ecode3)) {
9097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9098 }
9099 arg3 = static_cast< int >(val3);
9100 if (obj3) {
9101 arg4 = obj3;
9102 }
9103 {
9104 PyThreadState* __tstate = wxPyBeginAllowThreads();
9105 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9106 wxPyEndAllowThreads(__tstate);
9107 if (PyErr_Occurred()) SWIG_fail;
9108 }
9109 resultobj = SWIG_Py_Void();
9110 {
9111 if (temp2)
9112 delete arg2;
9113 }
9114 return resultobj;
9115fail:
9116 {
9117 if (temp2)
9118 delete arg2;
9119 }
9120 return NULL;
9121}
9122
9123
9124SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9125 PyObject *resultobj = 0;
9126 wxListBox *arg1 = (wxListBox *) 0 ;
9127 wxArrayString *arg2 = 0 ;
50f151d7 9128 unsigned int arg3 ;
1bd55598
RD
9129 void *argp1 = 0 ;
9130 int res1 = 0 ;
9131 bool temp2 = false ;
50f151d7 9132 unsigned int val3 ;
1bd55598
RD
9133 int ecode3 = 0 ;
9134 PyObject * obj0 = 0 ;
9135 PyObject * obj1 = 0 ;
9136 PyObject * obj2 = 0 ;
9137 char * kwnames[] = {
9138 (char *) "self",(char *) "items",(char *) "pos", NULL
9139 };
9140
9141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9143 if (!SWIG_IsOK(res1)) {
9144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9145 }
9146 arg1 = reinterpret_cast< wxListBox * >(argp1);
9147 {
9148 if (! PySequence_Check(obj1)) {
9149 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9150 SWIG_fail;
9151 }
9152 arg2 = new wxArrayString;
9153 temp2 = true;
9154 int i, len=PySequence_Length(obj1);
9155 for (i=0; i<len; i++) {
9156 PyObject* item = PySequence_GetItem(obj1, i);
9157 wxString* s = wxString_in_helper(item);
9158 if (PyErr_Occurred()) SWIG_fail;
9159 arg2->Add(*s);
9160 delete s;
9161 Py_DECREF(item);
f20a2e1f 9162 }
1bd55598 9163 }
50f151d7 9164 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
1bd55598 9165 if (!SWIG_IsOK(ecode3)) {
50f151d7 9166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
1bd55598 9167 }
50f151d7 9168 arg3 = static_cast< unsigned int >(val3);
1bd55598
RD
9169 {
9170 PyThreadState* __tstate = wxPyBeginAllowThreads();
9171 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9172 wxPyEndAllowThreads(__tstate);
9173 if (PyErr_Occurred()) SWIG_fail;
9174 }
9175 resultobj = SWIG_Py_Void();
9176 {
9177 if (temp2) delete arg2;
9178 }
9179 return resultobj;
9180fail:
9181 {
9182 if (temp2) delete arg2;
9183 }
9184 return NULL;
f20a2e1f
RD
9185}
9186
9187
1bd55598
RD
9188SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9189 PyObject *resultobj = 0;
9190 wxListBox *arg1 = (wxListBox *) 0 ;
9191 wxArrayString *arg2 = 0 ;
9192 void *argp1 = 0 ;
9193 int res1 = 0 ;
9194 bool temp2 = false ;
9195 PyObject * obj0 = 0 ;
9196 PyObject * obj1 = 0 ;
9197 char * kwnames[] = {
9198 (char *) "self",(char *) "items", NULL
9199 };
9200
9201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9203 if (!SWIG_IsOK(res1)) {
9204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9205 }
9206 arg1 = reinterpret_cast< wxListBox * >(argp1);
9207 {
9208 if (! PySequence_Check(obj1)) {
9209 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9210 SWIG_fail;
9211 }
9212 arg2 = new wxArrayString;
9213 temp2 = true;
9214 int i, len=PySequence_Length(obj1);
9215 for (i=0; i<len; i++) {
9216 PyObject* item = PySequence_GetItem(obj1, i);
9217 wxString* s = wxString_in_helper(item);
9218 if (PyErr_Occurred()) SWIG_fail;
9219 arg2->Add(*s);
9220 delete s;
9221 Py_DECREF(item);
bfddbb17 9222 }
1bd55598
RD
9223 }
9224 {
9225 PyThreadState* __tstate = wxPyBeginAllowThreads();
9226 (arg1)->Set((wxArrayString const &)*arg2);
9227 wxPyEndAllowThreads(__tstate);
9228 if (PyErr_Occurred()) SWIG_fail;
9229 }
9230 resultobj = SWIG_Py_Void();
9231 {
9232 if (temp2) delete arg2;
9233 }
9234 return resultobj;
9235fail:
9236 {
9237 if (temp2) delete arg2;
9238 }
9239 return NULL;
9240}
9241
9242
9243SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9244 PyObject *resultobj = 0;
9245 wxListBox *arg1 = (wxListBox *) 0 ;
9246 int arg2 ;
9247 bool result;
9248 void *argp1 = 0 ;
9249 int res1 = 0 ;
9250 int val2 ;
9251 int ecode2 = 0 ;
9252 PyObject * obj0 = 0 ;
9253 PyObject * obj1 = 0 ;
9254 char * kwnames[] = {
9255 (char *) "self",(char *) "n", NULL
9256 };
9257
9258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9260 if (!SWIG_IsOK(res1)) {
9261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9262 }
9263 arg1 = reinterpret_cast< wxListBox * >(argp1);
9264 ecode2 = SWIG_AsVal_int(obj1, &val2);
9265 if (!SWIG_IsOK(ecode2)) {
9266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9267 }
9268 arg2 = static_cast< int >(val2);
9269 {
9270 PyThreadState* __tstate = wxPyBeginAllowThreads();
9271 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9272 wxPyEndAllowThreads(__tstate);
9273 if (PyErr_Occurred()) SWIG_fail;
9274 }
9275 {
9276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9277 }
9278 return resultobj;
9279fail:
9280 return NULL;
9281}
9282
9283
9284SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9285 PyObject *resultobj = 0;
9286 wxListBox *arg1 = (wxListBox *) 0 ;
9287 int arg2 ;
9288 bool arg3 = (bool) true ;
9289 void *argp1 = 0 ;
9290 int res1 = 0 ;
9291 int val2 ;
9292 int ecode2 = 0 ;
9293 bool val3 ;
9294 int ecode3 = 0 ;
9295 PyObject * obj0 = 0 ;
9296 PyObject * obj1 = 0 ;
9297 PyObject * obj2 = 0 ;
9298 char * kwnames[] = {
9299 (char *) "self",(char *) "n",(char *) "select", NULL
9300 };
9301
9302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9304 if (!SWIG_IsOK(res1)) {
9305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9306 }
9307 arg1 = reinterpret_cast< wxListBox * >(argp1);
9308 ecode2 = SWIG_AsVal_int(obj1, &val2);
9309 if (!SWIG_IsOK(ecode2)) {
9310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9311 }
9312 arg2 = static_cast< int >(val2);
9313 if (obj2) {
9314 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9315 if (!SWIG_IsOK(ecode3)) {
9316 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9317 }
9318 arg3 = static_cast< bool >(val3);
9319 }
9320 {
9321 PyThreadState* __tstate = wxPyBeginAllowThreads();
9322 (arg1)->SetSelection(arg2,arg3);
9323 wxPyEndAllowThreads(__tstate);
9324 if (PyErr_Occurred()) SWIG_fail;
9325 }
9326 resultobj = SWIG_Py_Void();
9327 return resultobj;
9328fail:
9329 return NULL;
9330}
9331
9332
9333SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9334 PyObject *resultobj = 0;
9335 wxListBox *arg1 = (wxListBox *) 0 ;
9336 int arg2 ;
9337 void *argp1 = 0 ;
9338 int res1 = 0 ;
9339 int val2 ;
9340 int ecode2 = 0 ;
9341 PyObject * obj0 = 0 ;
9342 PyObject * obj1 = 0 ;
9343 char * kwnames[] = {
9344 (char *) "self",(char *) "n", NULL
9345 };
9346
9347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9349 if (!SWIG_IsOK(res1)) {
9350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9351 }
9352 arg1 = reinterpret_cast< wxListBox * >(argp1);
9353 ecode2 = SWIG_AsVal_int(obj1, &val2);
9354 if (!SWIG_IsOK(ecode2)) {
9355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9356 }
9357 arg2 = static_cast< int >(val2);
9358 {
9359 PyThreadState* __tstate = wxPyBeginAllowThreads();
9360 (arg1)->Select(arg2);
9361 wxPyEndAllowThreads(__tstate);
9362 if (PyErr_Occurred()) SWIG_fail;
9363 }
9364 resultobj = SWIG_Py_Void();
9365 return resultobj;
9366fail:
9367 return NULL;
9368}
9369
9370
9371SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9372 PyObject *resultobj = 0;
9373 wxListBox *arg1 = (wxListBox *) 0 ;
9374 int arg2 ;
9375 void *argp1 = 0 ;
9376 int res1 = 0 ;
9377 int val2 ;
9378 int ecode2 = 0 ;
9379 PyObject * obj0 = 0 ;
9380 PyObject * obj1 = 0 ;
9381 char * kwnames[] = {
9382 (char *) "self",(char *) "n", NULL
9383 };
9384
9385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9387 if (!SWIG_IsOK(res1)) {
9388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9389 }
9390 arg1 = reinterpret_cast< wxListBox * >(argp1);
9391 ecode2 = SWIG_AsVal_int(obj1, &val2);
9392 if (!SWIG_IsOK(ecode2)) {
9393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9394 }
9395 arg2 = static_cast< int >(val2);
9396 {
9397 PyThreadState* __tstate = wxPyBeginAllowThreads();
9398 (arg1)->Deselect(arg2);
9399 wxPyEndAllowThreads(__tstate);
9400 if (PyErr_Occurred()) SWIG_fail;
9401 }
9402 resultobj = SWIG_Py_Void();
9403 return resultobj;
9404fail:
9405 return NULL;
9406}
9407
9408
9409SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9410 PyObject *resultobj = 0;
9411 wxListBox *arg1 = (wxListBox *) 0 ;
9412 int arg2 = (int) -1 ;
9413 void *argp1 = 0 ;
9414 int res1 = 0 ;
9415 int val2 ;
9416 int ecode2 = 0 ;
9417 PyObject * obj0 = 0 ;
9418 PyObject * obj1 = 0 ;
9419 char * kwnames[] = {
9420 (char *) "self",(char *) "itemToLeaveSelected", NULL
9421 };
9422
9423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9425 if (!SWIG_IsOK(res1)) {
9426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9427 }
9428 arg1 = reinterpret_cast< wxListBox * >(argp1);
9429 if (obj1) {
9430 ecode2 = SWIG_AsVal_int(obj1, &val2);
9431 if (!SWIG_IsOK(ecode2)) {
9432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9433 }
9434 arg2 = static_cast< int >(val2);
9435 }
9436 {
9437 PyThreadState* __tstate = wxPyBeginAllowThreads();
9438 (arg1)->DeselectAll(arg2);
9439 wxPyEndAllowThreads(__tstate);
9440 if (PyErr_Occurred()) SWIG_fail;
9441 }
9442 resultobj = SWIG_Py_Void();
9443 return resultobj;
9444fail:
9445 return NULL;
9446}
9447
9448
9449SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9450 PyObject *resultobj = 0;
9451 wxListBox *arg1 = (wxListBox *) 0 ;
9452 wxString *arg2 = 0 ;
9453 bool arg3 = (bool) true ;
9454 bool result;
9455 void *argp1 = 0 ;
9456 int res1 = 0 ;
9457 bool temp2 = false ;
9458 bool val3 ;
9459 int ecode3 = 0 ;
9460 PyObject * obj0 = 0 ;
9461 PyObject * obj1 = 0 ;
9462 PyObject * obj2 = 0 ;
9463 char * kwnames[] = {
9464 (char *) "self",(char *) "s",(char *) "select", NULL
9465 };
9466
9467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9469 if (!SWIG_IsOK(res1)) {
9470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9471 }
9472 arg1 = reinterpret_cast< wxListBox * >(argp1);
9473 {
9474 arg2 = wxString_in_helper(obj1);
9475 if (arg2 == NULL) SWIG_fail;
9476 temp2 = true;
9477 }
9478 if (obj2) {
9479 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9480 if (!SWIG_IsOK(ecode3)) {
9481 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9482 }
9483 arg3 = static_cast< bool >(val3);
9484 }
9485 {
9486 PyThreadState* __tstate = wxPyBeginAllowThreads();
9487 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9488 wxPyEndAllowThreads(__tstate);
9489 if (PyErr_Occurred()) SWIG_fail;
9490 }
9491 {
9492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9493 }
9494 {
9495 if (temp2)
9496 delete arg2;
9497 }
9498 return resultobj;
9499fail:
9500 {
9501 if (temp2)
9502 delete arg2;
9503 }
9504 return NULL;
d55e5bfc
RD
9505}
9506
9507
1bd55598
RD
9508SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9509 PyObject *resultobj = 0;
9510 wxListBox *arg1 = (wxListBox *) 0 ;
9511 PyObject *result = 0 ;
9512 void *argp1 = 0 ;
9513 int res1 = 0 ;
9514 PyObject *swig_obj[1] ;
9515
9516 if (!args) SWIG_fail;
9517 swig_obj[0] = args;
9518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9519 if (!SWIG_IsOK(res1)) {
9520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9521 }
9522 arg1 = reinterpret_cast< wxListBox * >(argp1);
9523 {
9524 PyThreadState* __tstate = wxPyBeginAllowThreads();
9525 result = (PyObject *)wxListBox_GetSelections(arg1);
9526 wxPyEndAllowThreads(__tstate);
9527 if (PyErr_Occurred()) SWIG_fail;
9528 }
9529 resultobj = result;
9530 return resultobj;
9531fail:
9532 return NULL;
9533}
9534
9535
9536SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9537 PyObject *resultobj = 0;
9538 wxListBox *arg1 = (wxListBox *) 0 ;
9539 int arg2 ;
9540 void *argp1 = 0 ;
9541 int res1 = 0 ;
9542 int val2 ;
9543 int ecode2 = 0 ;
9544 PyObject * obj0 = 0 ;
9545 PyObject * obj1 = 0 ;
9546 char * kwnames[] = {
9547 (char *) "self",(char *) "n", NULL
9548 };
9549
9550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9552 if (!SWIG_IsOK(res1)) {
9553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9554 }
9555 arg1 = reinterpret_cast< wxListBox * >(argp1);
9556 ecode2 = SWIG_AsVal_int(obj1, &val2);
9557 if (!SWIG_IsOK(ecode2)) {
9558 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9559 }
9560 arg2 = static_cast< int >(val2);
9561 {
9562 PyThreadState* __tstate = wxPyBeginAllowThreads();
9563 (arg1)->SetFirstItem(arg2);
9564 wxPyEndAllowThreads(__tstate);
9565 if (PyErr_Occurred()) SWIG_fail;
9566 }
9567 resultobj = SWIG_Py_Void();
9568 return resultobj;
9569fail:
9570 return NULL;
9571}
9572
9573
9574SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9575 PyObject *resultobj = 0;
9576 wxListBox *arg1 = (wxListBox *) 0 ;
9577 wxString *arg2 = 0 ;
9578 void *argp1 = 0 ;
9579 int res1 = 0 ;
9580 bool temp2 = false ;
9581 PyObject * obj0 = 0 ;
9582 PyObject * obj1 = 0 ;
9583 char * kwnames[] = {
9584 (char *) "self",(char *) "s", NULL
9585 };
9586
9587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9589 if (!SWIG_IsOK(res1)) {
9590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9591 }
9592 arg1 = reinterpret_cast< wxListBox * >(argp1);
9593 {
9594 arg2 = wxString_in_helper(obj1);
9595 if (arg2 == NULL) SWIG_fail;
9596 temp2 = true;
9597 }
9598 {
9599 PyThreadState* __tstate = wxPyBeginAllowThreads();
9600 (arg1)->SetFirstItem((wxString const &)*arg2);
9601 wxPyEndAllowThreads(__tstate);
9602 if (PyErr_Occurred()) SWIG_fail;
9603 }
9604 resultobj = SWIG_Py_Void();
9605 {
9606 if (temp2)
9607 delete arg2;
9608 }
9609 return resultobj;
9610fail:
9611 {
9612 if (temp2)
9613 delete arg2;
9614 }
9615 return NULL;
9616}
9617
9618
9619SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9620 PyObject *resultobj = 0;
9621 wxListBox *arg1 = (wxListBox *) 0 ;
9622 int arg2 ;
9623 void *argp1 = 0 ;
9624 int res1 = 0 ;
9625 int val2 ;
9626 int ecode2 = 0 ;
9627 PyObject * obj0 = 0 ;
9628 PyObject * obj1 = 0 ;
9629 char * kwnames[] = {
9630 (char *) "self",(char *) "n", NULL
9631 };
9632
9633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9635 if (!SWIG_IsOK(res1)) {
9636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9637 }
9638 arg1 = reinterpret_cast< wxListBox * >(argp1);
9639 ecode2 = SWIG_AsVal_int(obj1, &val2);
9640 if (!SWIG_IsOK(ecode2)) {
9641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9642 }
9643 arg2 = static_cast< int >(val2);
9644 {
9645 PyThreadState* __tstate = wxPyBeginAllowThreads();
9646 (arg1)->EnsureVisible(arg2);
9647 wxPyEndAllowThreads(__tstate);
9648 if (PyErr_Occurred()) SWIG_fail;
9649 }
9650 resultobj = SWIG_Py_Void();
9651 return resultobj;
9652fail:
9653 return NULL;
9654}
9655
9656
9657SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9658 PyObject *resultobj = 0;
9659 wxListBox *arg1 = (wxListBox *) 0 ;
9660 wxString *arg2 = 0 ;
9661 void *argp1 = 0 ;
9662 int res1 = 0 ;
9663 bool temp2 = false ;
9664 PyObject * obj0 = 0 ;
9665 PyObject * obj1 = 0 ;
9666 char * kwnames[] = {
9667 (char *) "self",(char *) "s", NULL
9668 };
9669
9670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9672 if (!SWIG_IsOK(res1)) {
9673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9674 }
9675 arg1 = reinterpret_cast< wxListBox * >(argp1);
9676 {
9677 arg2 = wxString_in_helper(obj1);
9678 if (arg2 == NULL) SWIG_fail;
9679 temp2 = true;
9680 }
9681 {
9682 PyThreadState* __tstate = wxPyBeginAllowThreads();
9683 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9684 wxPyEndAllowThreads(__tstate);
9685 if (PyErr_Occurred()) SWIG_fail;
9686 }
9687 resultobj = SWIG_Py_Void();
9688 {
9689 if (temp2)
9690 delete arg2;
9691 }
9692 return resultobj;
9693fail:
9694 {
9695 if (temp2)
9696 delete arg2;
9697 }
9698 return NULL;
d55e5bfc
RD
9699}
9700
9701
1bd55598
RD
9702SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9703 PyObject *resultobj = 0;
9704 wxListBox *arg1 = (wxListBox *) 0 ;
9705 bool result;
9706 void *argp1 = 0 ;
9707 int res1 = 0 ;
9708 PyObject *swig_obj[1] ;
9709
9710 if (!args) SWIG_fail;
9711 swig_obj[0] = args;
9712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9713 if (!SWIG_IsOK(res1)) {
9714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9715 }
9716 arg1 = reinterpret_cast< wxListBox * >(argp1);
9717 {
9718 PyThreadState* __tstate = wxPyBeginAllowThreads();
9719 result = (bool)((wxListBox const *)arg1)->IsSorted();
9720 wxPyEndAllowThreads(__tstate);
9721 if (PyErr_Occurred()) SWIG_fail;
9722 }
9723 {
9724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9725 }
9726 return resultobj;
9727fail:
9728 return NULL;
9729}
9730
9731
9732SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9733 PyObject *resultobj = 0;
9734 wxListBox *arg1 = (wxListBox *) 0 ;
9735 wxPoint *arg2 = 0 ;
9736 int result;
9737 void *argp1 = 0 ;
9738 int res1 = 0 ;
9739 wxPoint temp2 ;
9740 PyObject * obj0 = 0 ;
9741 PyObject * obj1 = 0 ;
9742 char * kwnames[] = {
9743 (char *) "self",(char *) "pt", NULL
9744 };
9745
9746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9748 if (!SWIG_IsOK(res1)) {
9749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9750 }
9751 arg1 = reinterpret_cast< wxListBox * >(argp1);
9752 {
9753 arg2 = &temp2;
9754 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9755 }
9756 {
9757 PyThreadState* __tstate = wxPyBeginAllowThreads();
9758 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9759 wxPyEndAllowThreads(__tstate);
9760 if (PyErr_Occurred()) SWIG_fail;
9761 }
9762 resultobj = SWIG_From_int(static_cast< int >(result));
9763 return resultobj;
9764fail:
9765 return NULL;
9766}
9767
9768
9769SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9770 PyObject *resultobj = 0;
9771 wxListBox *arg1 = (wxListBox *) 0 ;
9772 int arg2 ;
9773 wxColour *arg3 = 0 ;
9774 void *argp1 = 0 ;
9775 int res1 = 0 ;
9776 int val2 ;
9777 int ecode2 = 0 ;
9778 wxColour temp3 ;
9779 PyObject * obj0 = 0 ;
9780 PyObject * obj1 = 0 ;
9781 PyObject * obj2 = 0 ;
9782 char * kwnames[] = {
9783 (char *) "self",(char *) "item",(char *) "c", NULL
9784 };
9785
9786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9788 if (!SWIG_IsOK(res1)) {
9789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9790 }
9791 arg1 = reinterpret_cast< wxListBox * >(argp1);
9792 ecode2 = SWIG_AsVal_int(obj1, &val2);
9793 if (!SWIG_IsOK(ecode2)) {
9794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9795 }
9796 arg2 = static_cast< int >(val2);
9797 {
9798 arg3 = &temp3;
9799 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9800 }
9801 {
9802 PyThreadState* __tstate = wxPyBeginAllowThreads();
9803 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9804 wxPyEndAllowThreads(__tstate);
9805 if (PyErr_Occurred()) SWIG_fail;
9806 }
9807 resultobj = SWIG_Py_Void();
9808 return resultobj;
9809fail:
9810 return NULL;
9811}
9812
9813
9814SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9815 PyObject *resultobj = 0;
9816 wxListBox *arg1 = (wxListBox *) 0 ;
9817 int arg2 ;
9818 wxColour *arg3 = 0 ;
9819 void *argp1 = 0 ;
9820 int res1 = 0 ;
9821 int val2 ;
9822 int ecode2 = 0 ;
9823 wxColour temp3 ;
9824 PyObject * obj0 = 0 ;
9825 PyObject * obj1 = 0 ;
9826 PyObject * obj2 = 0 ;
9827 char * kwnames[] = {
9828 (char *) "self",(char *) "item",(char *) "c", NULL
9829 };
9830
9831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9833 if (!SWIG_IsOK(res1)) {
9834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9835 }
9836 arg1 = reinterpret_cast< wxListBox * >(argp1);
9837 ecode2 = SWIG_AsVal_int(obj1, &val2);
9838 if (!SWIG_IsOK(ecode2)) {
9839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9840 }
9841 arg2 = static_cast< int >(val2);
9842 {
9843 arg3 = &temp3;
9844 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9845 }
9846 {
9847 PyThreadState* __tstate = wxPyBeginAllowThreads();
9848 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9849 wxPyEndAllowThreads(__tstate);
9850 if (PyErr_Occurred()) SWIG_fail;
9851 }
9852 resultobj = SWIG_Py_Void();
9853 return resultobj;
9854fail:
9855 return NULL;
9856}
9857
9858
9859SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9860 PyObject *resultobj = 0;
9861 wxListBox *arg1 = (wxListBox *) 0 ;
9862 int arg2 ;
9863 wxFont *arg3 = 0 ;
9864 void *argp1 = 0 ;
9865 int res1 = 0 ;
9866 int val2 ;
9867 int ecode2 = 0 ;
9868 void *argp3 = 0 ;
9869 int res3 = 0 ;
9870 PyObject * obj0 = 0 ;
9871 PyObject * obj1 = 0 ;
9872 PyObject * obj2 = 0 ;
9873 char * kwnames[] = {
9874 (char *) "self",(char *) "item",(char *) "f", NULL
9875 };
9876
9877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9879 if (!SWIG_IsOK(res1)) {
9880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9881 }
9882 arg1 = reinterpret_cast< wxListBox * >(argp1);
9883 ecode2 = SWIG_AsVal_int(obj1, &val2);
9884 if (!SWIG_IsOK(ecode2)) {
9885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9886 }
9887 arg2 = static_cast< int >(val2);
9888 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9889 if (!SWIG_IsOK(res3)) {
9890 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9891 }
9892 if (!argp3) {
9893 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9894 }
9895 arg3 = reinterpret_cast< wxFont * >(argp3);
9896 {
9897 PyThreadState* __tstate = wxPyBeginAllowThreads();
9898 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9899 wxPyEndAllowThreads(__tstate);
9900 if (PyErr_Occurred()) SWIG_fail;
9901 }
9902 resultobj = SWIG_Py_Void();
9903 return resultobj;
9904fail:
9905 return NULL;
9906}
9907
9908
9909SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9910 PyObject *resultobj = 0;
9911 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9912 SwigValueWrapper<wxVisualAttributes > result;
9913 int val1 ;
9914 int ecode1 = 0 ;
9915 PyObject * obj0 = 0 ;
9916 char * kwnames[] = {
9917 (char *) "variant", NULL
9918 };
9919
9920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9921 if (obj0) {
9922 ecode1 = SWIG_AsVal_int(obj0, &val1);
9923 if (!SWIG_IsOK(ecode1)) {
9924 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9925 }
9926 arg1 = static_cast< wxWindowVariant >(val1);
9927 }
9928 {
9929 if (!wxPyCheckForApp()) SWIG_fail;
9930 PyThreadState* __tstate = wxPyBeginAllowThreads();
9931 result = wxListBox::GetClassDefaultAttributes(arg1);
9932 wxPyEndAllowThreads(__tstate);
9933 if (PyErr_Occurred()) SWIG_fail;
9934 }
9935 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9936 return resultobj;
9937fail:
9938 return NULL;
9939}
9940
9941
9942SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9943 PyObject *obj;
9944 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9945 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9946 return SWIG_Py_Void();
9947}
9948
9949SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9950 return SWIG_Python_InitShadowInstance(args);
9951}
9952
9953SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9954 PyObject *resultobj = 0;
9955 wxWindow *arg1 = (wxWindow *) 0 ;
9956 int arg2 = (int) -1 ;
9957 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9958 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9959 wxSize const &arg4_defvalue = wxDefaultSize ;
9960 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9961 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9962 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9963 long arg6 = (long) 0 ;
9964 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9965 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9966 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9967 wxString *arg8 = (wxString *) &arg8_defvalue ;
9968 wxCheckListBox *result = 0 ;
9969 void *argp1 = 0 ;
9970 int res1 = 0 ;
9971 int val2 ;
9972 int ecode2 = 0 ;
9973 wxPoint temp3 ;
9974 wxSize temp4 ;
9975 bool temp5 = false ;
9976 long val6 ;
9977 int ecode6 = 0 ;
9978 void *argp7 = 0 ;
9979 int res7 = 0 ;
9980 bool temp8 = false ;
9981 PyObject * obj0 = 0 ;
9982 PyObject * obj1 = 0 ;
9983 PyObject * obj2 = 0 ;
9984 PyObject * obj3 = 0 ;
9985 PyObject * obj4 = 0 ;
9986 PyObject * obj5 = 0 ;
9987 PyObject * obj6 = 0 ;
9988 PyObject * obj7 = 0 ;
9989 char * kwnames[] = {
9990 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9991 };
9992
9993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
9994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9995 if (!SWIG_IsOK(res1)) {
9996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
9997 }
9998 arg1 = reinterpret_cast< wxWindow * >(argp1);
9999 if (obj1) {
10000 ecode2 = SWIG_AsVal_int(obj1, &val2);
10001 if (!SWIG_IsOK(ecode2)) {
10002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
10003 }
10004 arg2 = static_cast< int >(val2);
10005 }
10006 if (obj2) {
10007 {
10008 arg3 = &temp3;
10009 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
bfddbb17 10010 }
1bd55598
RD
10011 }
10012 if (obj3) {
10013 {
10014 arg4 = &temp4;
10015 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10016 }
1bd55598
RD
10017 }
10018 if (obj4) {
10019 {
10020 if (! PySequence_Check(obj4)) {
10021 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10022 SWIG_fail;
10023 }
10024 arg5 = new wxArrayString;
10025 temp5 = true;
10026 int i, len=PySequence_Length(obj4);
10027 for (i=0; i<len; i++) {
10028 PyObject* item = PySequence_GetItem(obj4, i);
10029 wxString* s = wxString_in_helper(item);
10030 if (PyErr_Occurred()) SWIG_fail;
10031 arg5->Add(*s);
10032 delete s;
10033 Py_DECREF(item);
10034 }
d55e5bfc 10035 }
1bd55598
RD
10036 }
10037 if (obj5) {
10038 ecode6 = SWIG_AsVal_long(obj5, &val6);
10039 if (!SWIG_IsOK(ecode6)) {
10040 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10041 }
10042 arg6 = static_cast< long >(val6);
10043 }
10044 if (obj6) {
10045 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10046 if (!SWIG_IsOK(res7)) {
10047 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10048 }
1bd55598
RD
10049 if (!argp7) {
10050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 10051 }
1bd55598
RD
10052 arg7 = reinterpret_cast< wxValidator * >(argp7);
10053 }
10054 if (obj7) {
10055 {
10056 arg8 = wxString_in_helper(obj7);
10057 if (arg8 == NULL) SWIG_fail;
10058 temp8 = true;
d55e5bfc 10059 }
1bd55598
RD
10060 }
10061 {
10062 if (!wxPyCheckForApp()) SWIG_fail;
10063 PyThreadState* __tstate = wxPyBeginAllowThreads();
10064 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10065 wxPyEndAllowThreads(__tstate);
10066 if (PyErr_Occurred()) SWIG_fail;
10067 }
10068 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10069 {
10070 if (temp5) delete arg5;
10071 }
10072 {
10073 if (temp8)
10074 delete arg8;
10075 }
10076 return resultobj;
10077fail:
10078 {
10079 if (temp5) delete arg5;
10080 }
10081 {
10082 if (temp8)
10083 delete arg8;
10084 }
10085 return NULL;
10086}
10087
10088
10089SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10090 PyObject *resultobj = 0;
10091 wxCheckListBox *result = 0 ;
10092
10093 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10094 {
10095 if (!wxPyCheckForApp()) SWIG_fail;
10096 PyThreadState* __tstate = wxPyBeginAllowThreads();
10097 result = (wxCheckListBox *)new wxCheckListBox();
10098 wxPyEndAllowThreads(__tstate);
10099 if (PyErr_Occurred()) SWIG_fail;
10100 }
10101 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10102 return resultobj;
10103fail:
10104 return NULL;
10105}
10106
10107
10108SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10109 PyObject *resultobj = 0;
10110 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10111 wxWindow *arg2 = (wxWindow *) 0 ;
10112 int arg3 = (int) -1 ;
10113 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10114 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10115 wxSize const &arg5_defvalue = wxDefaultSize ;
10116 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10117 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10118 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10119 long arg7 = (long) 0 ;
10120 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10121 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10122 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10123 wxString *arg9 = (wxString *) &arg9_defvalue ;
10124 bool result;
10125 void *argp1 = 0 ;
10126 int res1 = 0 ;
10127 void *argp2 = 0 ;
10128 int res2 = 0 ;
10129 int val3 ;
10130 int ecode3 = 0 ;
10131 wxPoint temp4 ;
10132 wxSize temp5 ;
10133 bool temp6 = false ;
10134 long val7 ;
10135 int ecode7 = 0 ;
10136 void *argp8 = 0 ;
10137 int res8 = 0 ;
10138 bool temp9 = false ;
10139 PyObject * obj0 = 0 ;
10140 PyObject * obj1 = 0 ;
10141 PyObject * obj2 = 0 ;
10142 PyObject * obj3 = 0 ;
10143 PyObject * obj4 = 0 ;
10144 PyObject * obj5 = 0 ;
10145 PyObject * obj6 = 0 ;
10146 PyObject * obj7 = 0 ;
10147 PyObject * obj8 = 0 ;
10148 char * kwnames[] = {
10149 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10150 };
10151
10152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10154 if (!SWIG_IsOK(res1)) {
10155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10156 }
10157 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10158 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10159 if (!SWIG_IsOK(res2)) {
10160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10161 }
10162 arg2 = reinterpret_cast< wxWindow * >(argp2);
10163 if (obj2) {
10164 ecode3 = SWIG_AsVal_int(obj2, &val3);
10165 if (!SWIG_IsOK(ecode3)) {
10166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10167 }
10168 arg3 = static_cast< int >(val3);
10169 }
10170 if (obj3) {
d55e5bfc 10171 {
1bd55598
RD
10172 arg4 = &temp4;
10173 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 10174 }
1bd55598
RD
10175 }
10176 if (obj4) {
d55e5bfc 10177 {
1bd55598
RD
10178 arg5 = &temp5;
10179 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 10180 }
1bd55598
RD
10181 }
10182 if (obj5) {
d55e5bfc 10183 {
1bd55598
RD
10184 if (! PySequence_Check(obj5)) {
10185 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10186 SWIG_fail;
10187 }
10188 arg6 = new wxArrayString;
10189 temp6 = true;
10190 int i, len=PySequence_Length(obj5);
10191 for (i=0; i<len; i++) {
10192 PyObject* item = PySequence_GetItem(obj5, i);
10193 wxString* s = wxString_in_helper(item);
10194 if (PyErr_Occurred()) SWIG_fail;
10195 arg6->Add(*s);
10196 delete s;
10197 Py_DECREF(item);
10198 }
10199 }
10200 }
10201 if (obj6) {
10202 ecode7 = SWIG_AsVal_long(obj6, &val7);
10203 if (!SWIG_IsOK(ecode7)) {
10204 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10205 }
10206 arg7 = static_cast< long >(val7);
10207 }
10208 if (obj7) {
10209 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10210 if (!SWIG_IsOK(res8)) {
10211 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10212 }
10213 if (!argp8) {
10214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 10215 }
1bd55598
RD
10216 arg8 = reinterpret_cast< wxValidator * >(argp8);
10217 }
10218 if (obj8) {
d55e5bfc 10219 {
1bd55598
RD
10220 arg9 = wxString_in_helper(obj8);
10221 if (arg9 == NULL) SWIG_fail;
10222 temp9 = true;
d55e5bfc 10223 }
1bd55598
RD
10224 }
10225 {
10226 PyThreadState* __tstate = wxPyBeginAllowThreads();
10227 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 {
10232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10233 }
10234 {
10235 if (temp6) delete arg6;
10236 }
10237 {
10238 if (temp9)
10239 delete arg9;
10240 }
10241 return resultobj;
10242fail:
10243 {
10244 if (temp6) delete arg6;
10245 }
10246 {
10247 if (temp9)
10248 delete arg9;
10249 }
10250 return NULL;
10251}
10252
10253
10254SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10255 PyObject *resultobj = 0;
10256 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10257 unsigned int arg2 ;
1bd55598
RD
10258 bool result;
10259 void *argp1 = 0 ;
10260 int res1 = 0 ;
50f151d7 10261 unsigned int val2 ;
1bd55598
RD
10262 int ecode2 = 0 ;
10263 PyObject * obj0 = 0 ;
10264 PyObject * obj1 = 0 ;
10265 char * kwnames[] = {
10266 (char *) "self",(char *) "index", NULL
10267 };
10268
10269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10271 if (!SWIG_IsOK(res1)) {
10272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10273 }
10274 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10275 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 10276 if (!SWIG_IsOK(ecode2)) {
50f151d7 10277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 10278 }
50f151d7 10279 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
10280 {
10281 PyThreadState* __tstate = wxPyBeginAllowThreads();
10282 result = (bool)(arg1)->IsChecked(arg2);
10283 wxPyEndAllowThreads(__tstate);
10284 if (PyErr_Occurred()) SWIG_fail;
10285 }
10286 {
10287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10288 }
10289 return resultobj;
10290fail:
10291 return NULL;
10292}
10293
10294
10295SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10296 PyObject *resultobj = 0;
10297 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
50f151d7 10298 unsigned int arg2 ;
1bd55598
RD
10299 int arg3 = (int) true ;
10300 void *argp1 = 0 ;
10301 int res1 = 0 ;
50f151d7 10302 unsigned int val2 ;
1bd55598
RD
10303 int ecode2 = 0 ;
10304 int val3 ;
10305 int ecode3 = 0 ;
10306 PyObject * obj0 = 0 ;
10307 PyObject * obj1 = 0 ;
10308 PyObject * obj2 = 0 ;
10309 char * kwnames[] = {
10310 (char *) "self",(char *) "index",(char *) "check", NULL
10311 };
10312
10313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10315 if (!SWIG_IsOK(res1)) {
10316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10317 }
10318 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
50f151d7 10319 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 10320 if (!SWIG_IsOK(ecode2)) {
50f151d7 10321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 10322 }
50f151d7 10323 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
10324 if (obj2) {
10325 ecode3 = SWIG_AsVal_int(obj2, &val3);
10326 if (!SWIG_IsOK(ecode3)) {
10327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10328 }
10329 arg3 = static_cast< int >(val3);
10330 }
10331 {
10332 PyThreadState* __tstate = wxPyBeginAllowThreads();
10333 (arg1)->Check(arg2,arg3);
10334 wxPyEndAllowThreads(__tstate);
10335 if (PyErr_Occurred()) SWIG_fail;
10336 }
10337 resultobj = SWIG_Py_Void();
10338 return resultobj;
10339fail:
10340 return NULL;
d55e5bfc
RD
10341}
10342
10343
1bd55598
RD
10344SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10345 PyObject *obj;
10346 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10347 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10348 return SWIG_Py_Void();
d55e5bfc
RD
10349}
10350
1bd55598
RD
10351SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10352 return SWIG_Python_InitShadowInstance(args);
10353}
d55e5bfc 10354
1bd55598
RD
10355SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10356 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10357 return 1;
d55e5bfc
RD
10358}
10359
10360
1bd55598
RD
10361SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10362 PyObject *pyobj = 0;
10363
10364 {
d55e5bfc 10365#if wxUSE_UNICODE
1bd55598 10366 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
d55e5bfc 10367#else
1bd55598 10368 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
d55e5bfc 10369#endif
1bd55598
RD
10370 }
10371 return pyobj;
10372}
10373
10374
10375SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10376 PyObject *resultobj = 0;
10377 wxColour const &arg1_defvalue = wxNullColour ;
10378 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10379 wxColour const &arg2_defvalue = wxNullColour ;
10380 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10381 wxFont const &arg3_defvalue = wxNullFont ;
10382 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10383 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10384 wxTextAttr *result = 0 ;
10385 wxColour temp1 ;
10386 wxColour temp2 ;
10387 void *argp3 = 0 ;
10388 int res3 = 0 ;
10389 int val4 ;
10390 int ecode4 = 0 ;
10391 PyObject * obj0 = 0 ;
10392 PyObject * obj1 = 0 ;
10393 PyObject * obj2 = 0 ;
10394 PyObject * obj3 = 0 ;
10395 char * kwnames[] = {
10396 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10397 };
10398
10399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10400 if (obj0) {
d55e5bfc 10401 {
1bd55598
RD
10402 arg1 = &temp1;
10403 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 10404 }
1bd55598
RD
10405 }
10406 if (obj1) {
d55e5bfc 10407 {
1bd55598
RD
10408 arg2 = &temp2;
10409 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 10410 }
1bd55598
RD
10411 }
10412 if (obj2) {
10413 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10414 if (!SWIG_IsOK(res3)) {
10415 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10416 }
1bd55598
RD
10417 if (!argp3) {
10418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 10419 }
1bd55598
RD
10420 arg3 = reinterpret_cast< wxFont * >(argp3);
10421 }
10422 if (obj3) {
10423 ecode4 = SWIG_AsVal_int(obj3, &val4);
10424 if (!SWIG_IsOK(ecode4)) {
10425 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10426 }
10427 arg4 = static_cast< wxTextAttrAlignment >(val4);
10428 }
10429 {
10430 PyThreadState* __tstate = wxPyBeginAllowThreads();
10431 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10432 wxPyEndAllowThreads(__tstate);
10433 if (PyErr_Occurred()) SWIG_fail;
10434 }
10435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10436 return resultobj;
10437fail:
10438 return NULL;
d55e5bfc
RD
10439}
10440
10441
1bd55598
RD
10442SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10443 PyObject *resultobj = 0;
10444 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10445 void *argp1 = 0 ;
10446 int res1 = 0 ;
10447 PyObject *swig_obj[1] ;
10448
10449 if (!args) SWIG_fail;
10450 swig_obj[0] = args;
10451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10452 if (!SWIG_IsOK(res1)) {
10453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10454 }
10455 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10456 {
10457 PyThreadState* __tstate = wxPyBeginAllowThreads();
10458 delete arg1;
d55e5bfc 10459
1bd55598
RD
10460 wxPyEndAllowThreads(__tstate);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 resultobj = SWIG_Py_Void();
10464 return resultobj;
10465fail:
10466 return NULL;
d55e5bfc
RD
10467}
10468
10469
1bd55598
RD
10470SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10471 PyObject *resultobj = 0;
10472 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10473 void *argp1 = 0 ;
10474 int res1 = 0 ;
10475 PyObject *swig_obj[1] ;
10476
10477 if (!args) SWIG_fail;
10478 swig_obj[0] = args;
10479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10480 if (!SWIG_IsOK(res1)) {
10481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10482 }
10483 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10484 {
10485 PyThreadState* __tstate = wxPyBeginAllowThreads();
10486 (arg1)->Init();
10487 wxPyEndAllowThreads(__tstate);
10488 if (PyErr_Occurred()) SWIG_fail;
10489 }
10490 resultobj = SWIG_Py_Void();
10491 return resultobj;
10492fail:
10493 return NULL;
10494}
10495
10496
2131d850
RD
10497SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10498 PyObject *resultobj = 0;
10499 wxTextAttr *arg1 = 0 ;
10500 wxTextAttr *arg2 = 0 ;
10501 wxTextAttr result;
10502 void *argp1 = 0 ;
10503 int res1 = 0 ;
10504 void *argp2 = 0 ;
10505 int res2 = 0 ;
10506 PyObject * obj0 = 0 ;
10507 PyObject * obj1 = 0 ;
10508 char * kwnames[] = {
10509 (char *) "base",(char *) "overlay", NULL
10510 };
10511
10512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10513 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10514 if (!SWIG_IsOK(res1)) {
10515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10516 }
10517 if (!argp1) {
10518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10519 }
10520 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10521 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10522 if (!SWIG_IsOK(res2)) {
10523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10524 }
10525 if (!argp2) {
10526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10527 }
10528 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10529 {
10530 PyThreadState* __tstate = wxPyBeginAllowThreads();
10531 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10536 return resultobj;
10537fail:
10538 return NULL;
10539}
10540
10541
1bd55598
RD
10542SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10543 PyObject *resultobj = 0;
10544 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10545 wxColour *arg2 = 0 ;
10546 void *argp1 = 0 ;
10547 int res1 = 0 ;
10548 wxColour temp2 ;
10549 PyObject * obj0 = 0 ;
10550 PyObject * obj1 = 0 ;
10551 char * kwnames[] = {
10552 (char *) "self",(char *) "colText", NULL
10553 };
10554
10555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10557 if (!SWIG_IsOK(res1)) {
10558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10559 }
10560 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10561 {
10562 arg2 = &temp2;
10563 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10564 }
10565 {
10566 PyThreadState* __tstate = wxPyBeginAllowThreads();
10567 (arg1)->SetTextColour((wxColour const &)*arg2);
10568 wxPyEndAllowThreads(__tstate);
10569 if (PyErr_Occurred()) SWIG_fail;
10570 }
10571 resultobj = SWIG_Py_Void();
10572 return resultobj;
10573fail:
10574 return NULL;
10575}
10576
10577
10578SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10579 PyObject *resultobj = 0;
10580 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10581 wxColour *arg2 = 0 ;
10582 void *argp1 = 0 ;
10583 int res1 = 0 ;
10584 wxColour temp2 ;
10585 PyObject * obj0 = 0 ;
10586 PyObject * obj1 = 0 ;
10587 char * kwnames[] = {
10588 (char *) "self",(char *) "colBack", NULL
10589 };
10590
10591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10593 if (!SWIG_IsOK(res1)) {
10594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10595 }
10596 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10597 {
10598 arg2 = &temp2;
10599 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10600 }
10601 {
10602 PyThreadState* __tstate = wxPyBeginAllowThreads();
10603 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10604 wxPyEndAllowThreads(__tstate);
10605 if (PyErr_Occurred()) SWIG_fail;
10606 }
10607 resultobj = SWIG_Py_Void();
10608 return resultobj;
10609fail:
10610 return NULL;
10611}
10612
10613
10614SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10615 PyObject *resultobj = 0;
10616 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10617 wxFont *arg2 = 0 ;
10618 long arg3 = (long) wxTEXT_ATTR_FONT ;
10619 void *argp1 = 0 ;
10620 int res1 = 0 ;
10621 void *argp2 = 0 ;
10622 int res2 = 0 ;
10623 long val3 ;
10624 int ecode3 = 0 ;
10625 PyObject * obj0 = 0 ;
10626 PyObject * obj1 = 0 ;
10627 PyObject * obj2 = 0 ;
10628 char * kwnames[] = {
10629 (char *) "self",(char *) "font",(char *) "flags", NULL
10630 };
10631
10632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10634 if (!SWIG_IsOK(res1)) {
10635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10636 }
10637 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10638 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10639 if (!SWIG_IsOK(res2)) {
10640 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10641 }
10642 if (!argp2) {
10643 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10644 }
10645 arg2 = reinterpret_cast< wxFont * >(argp2);
10646 if (obj2) {
10647 ecode3 = SWIG_AsVal_long(obj2, &val3);
10648 if (!SWIG_IsOK(ecode3)) {
10649 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10650 }
10651 arg3 = static_cast< long >(val3);
10652 }
10653 {
10654 PyThreadState* __tstate = wxPyBeginAllowThreads();
10655 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10656 wxPyEndAllowThreads(__tstate);
10657 if (PyErr_Occurred()) SWIG_fail;
10658 }
10659 resultobj = SWIG_Py_Void();
10660 return resultobj;
10661fail:
10662 return NULL;
10663}
10664
10665
10666SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10667 PyObject *resultobj = 0;
10668 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10669 wxTextAttrAlignment arg2 ;
10670 void *argp1 = 0 ;
10671 int res1 = 0 ;
10672 int val2 ;
10673 int ecode2 = 0 ;
10674 PyObject * obj0 = 0 ;
10675 PyObject * obj1 = 0 ;
10676 char * kwnames[] = {
10677 (char *) "self",(char *) "alignment", NULL
10678 };
10679
10680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10682 if (!SWIG_IsOK(res1)) {
10683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10684 }
10685 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10686 ecode2 = SWIG_AsVal_int(obj1, &val2);
10687 if (!SWIG_IsOK(ecode2)) {
10688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10689 }
10690 arg2 = static_cast< wxTextAttrAlignment >(val2);
10691 {
10692 PyThreadState* __tstate = wxPyBeginAllowThreads();
10693 (arg1)->SetAlignment(arg2);
10694 wxPyEndAllowThreads(__tstate);
10695 if (PyErr_Occurred()) SWIG_fail;
10696 }
10697 resultobj = SWIG_Py_Void();
10698 return resultobj;
10699fail:
10700 return NULL;
10701}
10702
10703
10704SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10705 PyObject *resultobj = 0;
10706 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10707 wxArrayInt *arg2 = 0 ;
10708 void *argp1 = 0 ;
10709 int res1 = 0 ;
10710 bool temp2 = false ;
10711 PyObject * obj0 = 0 ;
10712 PyObject * obj1 = 0 ;
10713 char * kwnames[] = {
10714 (char *) "self",(char *) "tabs", NULL
10715 };
10716
10717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10719 if (!SWIG_IsOK(res1)) {
10720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10721 }
10722 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10723 {
10724 if (! PySequence_Check(obj1)) {
10725 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10726 SWIG_fail;
10727 }
10728 arg2 = new wxArrayInt;
10729 temp2 = true;
10730 int i, len=PySequence_Length(obj1);
10731 for (i=0; i<len; i++) {
10732 PyObject* item = PySequence_GetItem(obj1, i);
10733 PyObject* number = PyNumber_Int(item);
10734 arg2->Add(PyInt_AS_LONG(number));
10735 Py_DECREF(item);
10736 Py_DECREF(number);
d55e5bfc 10737 }
1bd55598
RD
10738 }
10739 {
10740 PyThreadState* __tstate = wxPyBeginAllowThreads();
10741 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10742 wxPyEndAllowThreads(__tstate);
10743 if (PyErr_Occurred()) SWIG_fail;
10744 }
10745 resultobj = SWIG_Py_Void();
10746 {
10747 if (temp2) delete arg2;
10748 }
10749 return resultobj;
10750fail:
10751 {
10752 if (temp2) delete arg2;
10753 }
10754 return NULL;
10755}
10756
10757
10758SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10759 PyObject *resultobj = 0;
10760 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10761 int arg2 ;
10762 int arg3 = (int) 0 ;
10763 void *argp1 = 0 ;
10764 int res1 = 0 ;
10765 int val2 ;
10766 int ecode2 = 0 ;
10767 int val3 ;
10768 int ecode3 = 0 ;
10769 PyObject * obj0 = 0 ;
10770 PyObject * obj1 = 0 ;
10771 PyObject * obj2 = 0 ;
10772 char * kwnames[] = {
10773 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10774 };
10775
10776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10778 if (!SWIG_IsOK(res1)) {
10779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10780 }
10781 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10782 ecode2 = SWIG_AsVal_int(obj1, &val2);
10783 if (!SWIG_IsOK(ecode2)) {
10784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10785 }
10786 arg2 = static_cast< int >(val2);
10787 if (obj2) {
10788 ecode3 = SWIG_AsVal_int(obj2, &val3);
10789 if (!SWIG_IsOK(ecode3)) {
10790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10791 }
10792 arg3 = static_cast< int >(val3);
10793 }
10794 {
10795 PyThreadState* __tstate = wxPyBeginAllowThreads();
10796 (arg1)->SetLeftIndent(arg2,arg3);
10797 wxPyEndAllowThreads(__tstate);
10798 if (PyErr_Occurred()) SWIG_fail;
10799 }
10800 resultobj = SWIG_Py_Void();
10801 return resultobj;
10802fail:
10803 return NULL;
10804}
10805
10806
10807SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10808 PyObject *resultobj = 0;
10809 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10810 int arg2 ;
10811 void *argp1 = 0 ;
10812 int res1 = 0 ;
10813 int val2 ;
10814 int ecode2 = 0 ;
10815 PyObject * obj0 = 0 ;
10816 PyObject * obj1 = 0 ;
10817 char * kwnames[] = {
10818 (char *) "self",(char *) "indent", NULL
10819 };
10820
10821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10823 if (!SWIG_IsOK(res1)) {
10824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10825 }
10826 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10827 ecode2 = SWIG_AsVal_int(obj1, &val2);
10828 if (!SWIG_IsOK(ecode2)) {
10829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10830 }
10831 arg2 = static_cast< int >(val2);
10832 {
10833 PyThreadState* __tstate = wxPyBeginAllowThreads();
10834 (arg1)->SetRightIndent(arg2);
10835 wxPyEndAllowThreads(__tstate);
10836 if (PyErr_Occurred()) SWIG_fail;
10837 }
10838 resultobj = SWIG_Py_Void();
10839 return resultobj;
10840fail:
10841 return NULL;
10842}
10843
10844
10845SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10846 PyObject *resultobj = 0;
10847 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10848 long arg2 ;
10849 void *argp1 = 0 ;
10850 int res1 = 0 ;
10851 long val2 ;
10852 int ecode2 = 0 ;
10853 PyObject * obj0 = 0 ;
10854 PyObject * obj1 = 0 ;
10855 char * kwnames[] = {
10856 (char *) "self",(char *) "flags", NULL
10857 };
10858
10859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10861 if (!SWIG_IsOK(res1)) {
10862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10863 }
10864 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10865 ecode2 = SWIG_AsVal_long(obj1, &val2);
10866 if (!SWIG_IsOK(ecode2)) {
10867 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10868 }
10869 arg2 = static_cast< long >(val2);
10870 {
10871 PyThreadState* __tstate = wxPyBeginAllowThreads();
10872 (arg1)->SetFlags(arg2);
10873 wxPyEndAllowThreads(__tstate);
10874 if (PyErr_Occurred()) SWIG_fail;
10875 }
10876 resultobj = SWIG_Py_Void();
10877 return resultobj;
10878fail:
10879 return NULL;
d55e5bfc
RD
10880}
10881
10882
1bd55598
RD
10883SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10884 PyObject *resultobj = 0;
10885 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10886 bool result;
10887 void *argp1 = 0 ;
10888 int res1 = 0 ;
10889 PyObject *swig_obj[1] ;
10890
10891 if (!args) SWIG_fail;
10892 swig_obj[0] = args;
10893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10894 if (!SWIG_IsOK(res1)) {
10895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10896 }
10897 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10898 {
10899 PyThreadState* __tstate = wxPyBeginAllowThreads();
10900 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10901 wxPyEndAllowThreads(__tstate);
10902 if (PyErr_Occurred()) SWIG_fail;
10903 }
10904 {
10905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10906 }
10907 return resultobj;
10908fail:
10909 return NULL;
d55e5bfc
RD
10910}
10911
10912
1bd55598
RD
10913SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10914 PyObject *resultobj = 0;
10915 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10916 bool result;
10917 void *argp1 = 0 ;
10918 int res1 = 0 ;
10919 PyObject *swig_obj[1] ;
10920
10921 if (!args) SWIG_fail;
10922 swig_obj[0] = args;
10923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10924 if (!SWIG_IsOK(res1)) {
10925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10926 }
10927 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10928 {
10929 PyThreadState* __tstate = wxPyBeginAllowThreads();
10930 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10931 wxPyEndAllowThreads(__tstate);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 }
10934 {
10935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10936 }
10937 return resultobj;
10938fail:
10939 return NULL;
d55e5bfc
RD
10940}
10941
10942
1bd55598
RD
10943SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10944 PyObject *resultobj = 0;
10945 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10946 bool result;
10947 void *argp1 = 0 ;
10948 int res1 = 0 ;
10949 PyObject *swig_obj[1] ;
10950
10951 if (!args) SWIG_fail;
10952 swig_obj[0] = args;
10953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10954 if (!SWIG_IsOK(res1)) {
10955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10956 }
10957 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10958 {
10959 PyThreadState* __tstate = wxPyBeginAllowThreads();
10960 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10961 wxPyEndAllowThreads(__tstate);
10962 if (PyErr_Occurred()) SWIG_fail;
10963 }
10964 {
10965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10966 }
10967 return resultobj;
10968fail:
10969 return NULL;
d55e5bfc
RD
10970}
10971
10972
1bd55598
RD
10973SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10974 PyObject *resultobj = 0;
10975 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10976 bool result;
10977 void *argp1 = 0 ;
10978 int res1 = 0 ;
10979 PyObject *swig_obj[1] ;
10980
10981 if (!args) SWIG_fail;
10982 swig_obj[0] = args;
10983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10984 if (!SWIG_IsOK(res1)) {
10985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10986 }
10987 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10988 {
10989 PyThreadState* __tstate = wxPyBeginAllowThreads();
10990 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
10991 wxPyEndAllowThreads(__tstate);
10992 if (PyErr_Occurred()) SWIG_fail;
10993 }
10994 {
10995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10996 }
10997 return resultobj;
10998fail:
10999 return NULL;
d55e5bfc
RD
11000}
11001
11002
1bd55598
RD
11003SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11004 PyObject *resultobj = 0;
11005 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11006 bool result;
11007 void *argp1 = 0 ;
11008 int res1 = 0 ;
11009 PyObject *swig_obj[1] ;
11010
11011 if (!args) SWIG_fail;
11012 swig_obj[0] = args;
11013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11014 if (!SWIG_IsOK(res1)) {
11015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11016 }
11017 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11018 {
11019 PyThreadState* __tstate = wxPyBeginAllowThreads();
11020 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11021 wxPyEndAllowThreads(__tstate);
11022 if (PyErr_Occurred()) SWIG_fail;
11023 }
11024 {
11025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11026 }
11027 return resultobj;
11028fail:
11029 return NULL;
d55e5bfc
RD
11030}
11031
11032
1bd55598
RD
11033SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11034 PyObject *resultobj = 0;
11035 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11036 bool result;
11037 void *argp1 = 0 ;
11038 int res1 = 0 ;
11039 PyObject *swig_obj[1] ;
11040
11041 if (!args) SWIG_fail;
11042 swig_obj[0] = args;
11043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11044 if (!SWIG_IsOK(res1)) {
11045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11046 }
11047 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11048 {
11049 PyThreadState* __tstate = wxPyBeginAllowThreads();
11050 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11051 wxPyEndAllowThreads(__tstate);
11052 if (PyErr_Occurred()) SWIG_fail;
11053 }
11054 {
11055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11056 }
11057 return resultobj;
11058fail:
11059 return NULL;
d55e5bfc
RD
11060}
11061
11062
1bd55598
RD
11063SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11064 PyObject *resultobj = 0;
11065 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11066 bool result;
11067 void *argp1 = 0 ;
11068 int res1 = 0 ;
11069 PyObject *swig_obj[1] ;
11070
11071 if (!args) SWIG_fail;
11072 swig_obj[0] = args;
11073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11074 if (!SWIG_IsOK(res1)) {
11075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11076 }
11077 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11078 {
11079 PyThreadState* __tstate = wxPyBeginAllowThreads();
11080 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11081 wxPyEndAllowThreads(__tstate);
11082 if (PyErr_Occurred()) SWIG_fail;
11083 }
11084 {
11085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11086 }
11087 return resultobj;
11088fail:
11089 return NULL;
11090}
11091
11092
11093SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11094 PyObject *resultobj = 0;
11095 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11096 long arg2 ;
11097 bool result;
11098 void *argp1 = 0 ;
11099 int res1 = 0 ;
11100 long val2 ;
11101 int ecode2 = 0 ;
11102 PyObject * obj0 = 0 ;
11103 PyObject * obj1 = 0 ;
11104 char * kwnames[] = {
11105 (char *) "self",(char *) "flag", NULL
11106 };
11107
11108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11110 if (!SWIG_IsOK(res1)) {
11111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11112 }
11113 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11114 ecode2 = SWIG_AsVal_long(obj1, &val2);
11115 if (!SWIG_IsOK(ecode2)) {
11116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11117 }
11118 arg2 = static_cast< long >(val2);
11119 {
11120 PyThreadState* __tstate = wxPyBeginAllowThreads();
11121 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11122 wxPyEndAllowThreads(__tstate);
11123 if (PyErr_Occurred()) SWIG_fail;
11124 }
11125 {
11126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11127 }
11128 return resultobj;
11129fail:
11130 return NULL;
d55e5bfc
RD
11131}
11132
11133
1bd55598
RD
11134SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11135 PyObject *resultobj = 0;
11136 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11137 wxColour *result = 0 ;
11138 void *argp1 = 0 ;
11139 int res1 = 0 ;
11140 PyObject *swig_obj[1] ;
11141
11142 if (!args) SWIG_fail;
11143 swig_obj[0] = args;
11144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11145 if (!SWIG_IsOK(res1)) {
11146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11147 }
11148 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11149 {
11150 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11151 {
1bd55598
RD
11152 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11153 result = (wxColour *) &_result_ref;
d55e5bfc 11154 }
1bd55598
RD
11155 wxPyEndAllowThreads(__tstate);
11156 if (PyErr_Occurred()) SWIG_fail;
11157 }
11158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11159 return resultobj;
11160fail:
11161 return NULL;
d55e5bfc
RD
11162}
11163
11164
1bd55598
RD
11165SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11166 PyObject *resultobj = 0;
11167 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11168 wxColour *result = 0 ;
11169 void *argp1 = 0 ;
11170 int res1 = 0 ;
11171 PyObject *swig_obj[1] ;
11172
11173 if (!args) SWIG_fail;
11174 swig_obj[0] = args;
11175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11176 if (!SWIG_IsOK(res1)) {
11177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11178 }
11179 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11180 {
11181 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11182 {
1bd55598
RD
11183 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11184 result = (wxColour *) &_result_ref;
d55e5bfc 11185 }
1bd55598
RD
11186 wxPyEndAllowThreads(__tstate);
11187 if (PyErr_Occurred()) SWIG_fail;
11188 }
11189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11190 return resultobj;
11191fail:
11192 return NULL;
d55e5bfc
RD
11193}
11194
11195
1bd55598
RD
11196SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11197 PyObject *resultobj = 0;
11198 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11199 wxFont *result = 0 ;
11200 void *argp1 = 0 ;
11201 int res1 = 0 ;
11202 PyObject *swig_obj[1] ;
11203
11204 if (!args) SWIG_fail;
11205 swig_obj[0] = args;
11206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11207 if (!SWIG_IsOK(res1)) {
11208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11209 }
11210 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11211 {
11212 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 11213 {
1bd55598
RD
11214 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11215 result = (wxFont *) &_result_ref;
d55e5bfc 11216 }
1bd55598
RD
11217 wxPyEndAllowThreads(__tstate);
11218 if (PyErr_Occurred()) SWIG_fail;
11219 }
11220 {
11221 wxFont* resultptr = new wxFont(*result);
11222 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11223 }
11224 return resultobj;
11225fail:
11226 return NULL;
d55e5bfc
RD
11227}
11228
11229
1bd55598
RD
11230SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11231 PyObject *resultobj = 0;
11232 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11233 wxTextAttrAlignment result;
11234 void *argp1 = 0 ;
11235 int res1 = 0 ;
11236 PyObject *swig_obj[1] ;
11237
11238 if (!args) SWIG_fail;
11239 swig_obj[0] = args;
11240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11241 if (!SWIG_IsOK(res1)) {
11242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11243 }
11244 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11245 {
11246 PyThreadState* __tstate = wxPyBeginAllowThreads();
11247 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11248 wxPyEndAllowThreads(__tstate);
11249 if (PyErr_Occurred()) SWIG_fail;
11250 }
11251 resultobj = SWIG_From_int(static_cast< int >(result));
11252 return resultobj;
11253fail:
11254 return NULL;
d55e5bfc
RD
11255}
11256
11257
1bd55598
RD
11258SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11259 PyObject *resultobj = 0;
11260 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11261 wxArrayInt *result = 0 ;
11262 void *argp1 = 0 ;
11263 int res1 = 0 ;
11264 PyObject *swig_obj[1] ;
11265
11266 if (!args) SWIG_fail;
11267 swig_obj[0] = args;
11268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11269 if (!SWIG_IsOK(res1)) {
11270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11271 }
11272 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11273 {
11274 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 11275 {
1bd55598
RD
11276 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11277 result = (wxArrayInt *) &_result_ref;
36ed4f51 11278 }
1bd55598
RD
11279 wxPyEndAllowThreads(__tstate);
11280 if (PyErr_Occurred()) SWIG_fail;
11281 }
11282 {
11283 resultobj = PyList_New(0);
11284 size_t idx;
11285 for (idx = 0; idx < result->GetCount(); idx += 1) {
11286 PyObject* val = PyInt_FromLong( result->Item(idx) );
11287 PyList_Append(resultobj, val);
11288 Py_DECREF(val);
d55e5bfc 11289 }
1bd55598
RD
11290 }
11291 return resultobj;
11292fail:
11293 return NULL;
d55e5bfc
RD
11294}
11295
11296
1bd55598
RD
11297SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11298 PyObject *resultobj = 0;
11299 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11300 long result;
11301 void *argp1 = 0 ;
11302 int res1 = 0 ;
11303 PyObject *swig_obj[1] ;
11304
11305 if (!args) SWIG_fail;
11306 swig_obj[0] = args;
11307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11308 if (!SWIG_IsOK(res1)) {
11309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11310 }
11311 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11312 {
11313 PyThreadState* __tstate = wxPyBeginAllowThreads();
11314 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11315 wxPyEndAllowThreads(__tstate);
11316 if (PyErr_Occurred()) SWIG_fail;
11317 }
11318 resultobj = SWIG_From_long(static_cast< long >(result));
11319 return resultobj;
11320fail:
11321 return NULL;
d55e5bfc
RD
11322}
11323
11324
1bd55598
RD
11325SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11326 PyObject *resultobj = 0;
11327 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11328 long result;
11329 void *argp1 = 0 ;
11330 int res1 = 0 ;
11331 PyObject *swig_obj[1] ;
11332
11333 if (!args) SWIG_fail;
11334 swig_obj[0] = args;
11335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11336 if (!SWIG_IsOK(res1)) {
11337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11338 }
11339 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11340 {
11341 PyThreadState* __tstate = wxPyBeginAllowThreads();
11342 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11343 wxPyEndAllowThreads(__tstate);
11344 if (PyErr_Occurred()) SWIG_fail;
11345 }
11346 resultobj = SWIG_From_long(static_cast< long >(result));
11347 return resultobj;
11348fail:
11349 return NULL;
d55e5bfc
RD
11350}
11351
11352
1bd55598
RD
11353SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11354 PyObject *resultobj = 0;
11355 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11356 long result;
11357 void *argp1 = 0 ;
11358 int res1 = 0 ;
11359 PyObject *swig_obj[1] ;
11360
11361 if (!args) SWIG_fail;
11362 swig_obj[0] = args;
11363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11364 if (!SWIG_IsOK(res1)) {
11365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11366 }
11367 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11368 {
11369 PyThreadState* __tstate = wxPyBeginAllowThreads();
11370 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 resultobj = SWIG_From_long(static_cast< long >(result));
11375 return resultobj;
11376fail:
11377 return NULL;
d55e5bfc
RD
11378}
11379
11380
1bd55598
RD
11381SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11382 PyObject *resultobj = 0;
11383 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11384 long result;
11385 void *argp1 = 0 ;
11386 int res1 = 0 ;
11387 PyObject *swig_obj[1] ;
11388
11389 if (!args) SWIG_fail;
11390 swig_obj[0] = args;
11391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11392 if (!SWIG_IsOK(res1)) {
11393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11394 }
11395 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11396 {
11397 PyThreadState* __tstate = wxPyBeginAllowThreads();
11398 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11399 wxPyEndAllowThreads(__tstate);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 resultobj = SWIG_From_long(static_cast< long >(result));
11403 return resultobj;
11404fail:
11405 return NULL;
d55e5bfc
RD
11406}
11407
11408
1bd55598
RD
11409SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11410 PyObject *resultobj = 0;
11411 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11412 bool result;
11413 void *argp1 = 0 ;
11414 int res1 = 0 ;
11415 PyObject *swig_obj[1] ;
11416
11417 if (!args) SWIG_fail;
11418 swig_obj[0] = args;
11419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11420 if (!SWIG_IsOK(res1)) {
11421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11422 }
11423 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11424 {
11425 PyThreadState* __tstate = wxPyBeginAllowThreads();
11426 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11427 wxPyEndAllowThreads(__tstate);
11428 if (PyErr_Occurred()) SWIG_fail;
11429 }
11430 {
11431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11432 }
11433 return resultobj;
11434fail:
11435 return NULL;
11436}
11437
11438
11439SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11440 PyObject *resultobj = 0;
11441 wxTextAttr *arg1 = 0 ;
11442 wxTextAttr *arg2 = 0 ;
11443 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11444 wxTextAttr result;
11445 void *argp1 = 0 ;
11446 int res1 = 0 ;
11447 void *argp2 = 0 ;
11448 int res2 = 0 ;
11449 void *argp3 = 0 ;
11450 int res3 = 0 ;
11451 PyObject * obj0 = 0 ;
11452 PyObject * obj1 = 0 ;
11453 PyObject * obj2 = 0 ;
11454 char * kwnames[] = {
11455 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11456 };
11457
11458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11459 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11460 if (!SWIG_IsOK(res1)) {
11461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11462 }
11463 if (!argp1) {
11464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11465 }
11466 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11467 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11468 if (!SWIG_IsOK(res2)) {
11469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11470 }
11471 if (!argp2) {
11472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11473 }
11474 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11475 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11476 if (!SWIG_IsOK(res3)) {
11477 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11478 }
11479 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11480 {
11481 PyThreadState* __tstate = wxPyBeginAllowThreads();
11482 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11483 wxPyEndAllowThreads(__tstate);
11484 if (PyErr_Occurred()) SWIG_fail;
11485 }
11486 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11487 return resultobj;
11488fail:
11489 return NULL;
11490}
11491
11492
11493SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11494 PyObject *obj;
11495 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11496 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11497 return SWIG_Py_Void();
11498}
11499
11500SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11501 return SWIG_Python_InitShadowInstance(args);
11502}
11503
11504SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11505 PyObject *resultobj = 0;
11506 wxWindow *arg1 = (wxWindow *) 0 ;
11507 int arg2 = (int) -1 ;
11508 wxString const &arg3_defvalue = wxPyEmptyString ;
11509 wxString *arg3 = (wxString *) &arg3_defvalue ;
11510 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11511 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11512 wxSize const &arg5_defvalue = wxDefaultSize ;
11513 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11514 long arg6 = (long) 0 ;
11515 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11516 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11517 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11518 wxString *arg8 = (wxString *) &arg8_defvalue ;
11519 wxTextCtrl *result = 0 ;
11520 void *argp1 = 0 ;
11521 int res1 = 0 ;
11522 int val2 ;
11523 int ecode2 = 0 ;
11524 bool temp3 = false ;
11525 wxPoint temp4 ;
11526 wxSize temp5 ;
11527 long val6 ;
11528 int ecode6 = 0 ;
11529 void *argp7 = 0 ;
11530 int res7 = 0 ;
11531 bool temp8 = false ;
11532 PyObject * obj0 = 0 ;
11533 PyObject * obj1 = 0 ;
11534 PyObject * obj2 = 0 ;
11535 PyObject * obj3 = 0 ;
11536 PyObject * obj4 = 0 ;
11537 PyObject * obj5 = 0 ;
11538 PyObject * obj6 = 0 ;
11539 PyObject * obj7 = 0 ;
11540 char * kwnames[] = {
11541 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11542 };
11543
11544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11546 if (!SWIG_IsOK(res1)) {
11547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11548 }
11549 arg1 = reinterpret_cast< wxWindow * >(argp1);
11550 if (obj1) {
11551 ecode2 = SWIG_AsVal_int(obj1, &val2);
11552 if (!SWIG_IsOK(ecode2)) {
11553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11554 }
11555 arg2 = static_cast< int >(val2);
11556 }
11557 if (obj2) {
36ed4f51 11558 {
1bd55598
RD
11559 arg3 = wxString_in_helper(obj2);
11560 if (arg3 == NULL) SWIG_fail;
11561 temp3 = true;
36ed4f51 11562 }
1bd55598
RD
11563 }
11564 if (obj3) {
36ed4f51 11565 {
1bd55598
RD
11566 arg4 = &temp4;
11567 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 11568 }
1bd55598
RD
11569 }
11570 if (obj4) {
d55e5bfc 11571 {
1bd55598
RD
11572 arg5 = &temp5;
11573 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11574 }
1bd55598
RD
11575 }
11576 if (obj5) {
11577 ecode6 = SWIG_AsVal_long(obj5, &val6);
11578 if (!SWIG_IsOK(ecode6)) {
11579 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11580 }
11581 arg6 = static_cast< long >(val6);
11582 }
11583 if (obj6) {
11584 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11585 if (!SWIG_IsOK(res7)) {
11586 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11587 }
1bd55598
RD
11588 if (!argp7) {
11589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 11590 }
1bd55598
RD
11591 arg7 = reinterpret_cast< wxValidator * >(argp7);
11592 }
11593 if (obj7) {
d55e5bfc 11594 {
1bd55598
RD
11595 arg8 = wxString_in_helper(obj7);
11596 if (arg8 == NULL) SWIG_fail;
11597 temp8 = true;
d55e5bfc 11598 }
1bd55598
RD
11599 }
11600 {
11601 if (!wxPyCheckForApp()) SWIG_fail;
11602 PyThreadState* __tstate = wxPyBeginAllowThreads();
11603 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11604 wxPyEndAllowThreads(__tstate);
11605 if (PyErr_Occurred()) SWIG_fail;
11606 }
11607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11608 {
11609 if (temp3)
11610 delete arg3;
11611 }
11612 {
11613 if (temp8)
11614 delete arg8;
11615 }
11616 return resultobj;
11617fail:
11618 {
11619 if (temp3)
11620 delete arg3;
11621 }
11622 {
11623 if (temp8)
11624 delete arg8;
11625 }
11626 return NULL;
d55e5bfc
RD
11627}
11628
11629
1bd55598
RD
11630SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11631 PyObject *resultobj = 0;
11632 wxTextCtrl *result = 0 ;
11633
11634 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11635 {
11636 if (!wxPyCheckForApp()) SWIG_fail;
11637 PyThreadState* __tstate = wxPyBeginAllowThreads();
11638 result = (wxTextCtrl *)new wxTextCtrl();
11639 wxPyEndAllowThreads(__tstate);
11640 if (PyErr_Occurred()) SWIG_fail;
11641 }
11642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11643 return resultobj;
11644fail:
11645 return NULL;
11646}
11647
11648
11649SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11650 PyObject *resultobj = 0;
11651 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11652 wxWindow *arg2 = (wxWindow *) 0 ;
11653 int arg3 = (int) -1 ;
11654 wxString const &arg4_defvalue = wxPyEmptyString ;
11655 wxString *arg4 = (wxString *) &arg4_defvalue ;
11656 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11657 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11658 wxSize const &arg6_defvalue = wxDefaultSize ;
11659 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11660 long arg7 = (long) 0 ;
11661 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11662 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11663 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11664 wxString *arg9 = (wxString *) &arg9_defvalue ;
11665 bool result;
11666 void *argp1 = 0 ;
11667 int res1 = 0 ;
11668 void *argp2 = 0 ;
11669 int res2 = 0 ;
11670 int val3 ;
11671 int ecode3 = 0 ;
11672 bool temp4 = false ;
11673 wxPoint temp5 ;
11674 wxSize temp6 ;
11675 long val7 ;
11676 int ecode7 = 0 ;
11677 void *argp8 = 0 ;
11678 int res8 = 0 ;
11679 bool temp9 = false ;
11680 PyObject * obj0 = 0 ;
11681 PyObject * obj1 = 0 ;
11682 PyObject * obj2 = 0 ;
11683 PyObject * obj3 = 0 ;
11684 PyObject * obj4 = 0 ;
11685 PyObject * obj5 = 0 ;
11686 PyObject * obj6 = 0 ;
11687 PyObject * obj7 = 0 ;
11688 PyObject * obj8 = 0 ;
11689 char * kwnames[] = {
11690 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11691 };
11692
11693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11695 if (!SWIG_IsOK(res1)) {
11696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11697 }
11698 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11699 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11700 if (!SWIG_IsOK(res2)) {
11701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11702 }
11703 arg2 = reinterpret_cast< wxWindow * >(argp2);
11704 if (obj2) {
11705 ecode3 = SWIG_AsVal_int(obj2, &val3);
11706 if (!SWIG_IsOK(ecode3)) {
11707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11708 }
11709 arg3 = static_cast< int >(val3);
11710 }
11711 if (obj3) {
d55e5bfc 11712 {
1bd55598
RD
11713 arg4 = wxString_in_helper(obj3);
11714 if (arg4 == NULL) SWIG_fail;
11715 temp4 = true;
d55e5bfc 11716 }
1bd55598
RD
11717 }
11718 if (obj4) {
d55e5bfc 11719 {
1bd55598
RD
11720 arg5 = &temp5;
11721 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 11722 }
1bd55598
RD
11723 }
11724 if (obj5) {
d55e5bfc 11725 {
1bd55598
RD
11726 arg6 = &temp6;
11727 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 11728 }
1bd55598
RD
11729 }
11730 if (obj6) {
11731 ecode7 = SWIG_AsVal_long(obj6, &val7);
11732 if (!SWIG_IsOK(ecode7)) {
11733 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11734 }
11735 arg7 = static_cast< long >(val7);
11736 }
11737 if (obj7) {
11738 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11739 if (!SWIG_IsOK(res8)) {
11740 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 11741 }
1bd55598
RD
11742 if (!argp8) {
11743 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11744 }
11745 arg8 = reinterpret_cast< wxValidator * >(argp8);
11746 }
11747 if (obj8) {
d55e5bfc 11748 {
1bd55598
RD
11749 arg9 = wxString_in_helper(obj8);
11750 if (arg9 == NULL) SWIG_fail;
11751 temp9 = true;
d55e5bfc 11752 }
1bd55598
RD
11753 }
11754 {
11755 PyThreadState* __tstate = wxPyBeginAllowThreads();
11756 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11757 wxPyEndAllowThreads(__tstate);
11758 if (PyErr_Occurred()) SWIG_fail;
11759 }
11760 {
11761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11762 }
11763 {
11764 if (temp4)
11765 delete arg4;
11766 }
11767 {
11768 if (temp9)
11769 delete arg9;
11770 }
11771 return resultobj;
11772fail:
11773 {
11774 if (temp4)
11775 delete arg4;
11776 }
11777 {
11778 if (temp9)
11779 delete arg9;
11780 }
11781 return NULL;
d55e5bfc
RD
11782}
11783
11784
1bd55598
RD
11785SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11786 PyObject *resultobj = 0;
11787 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11788 wxString result;
11789 void *argp1 = 0 ;
11790 int res1 = 0 ;
11791 PyObject *swig_obj[1] ;
11792
11793 if (!args) SWIG_fail;
11794 swig_obj[0] = args;
11795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11796 if (!SWIG_IsOK(res1)) {
11797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11798 }
11799 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11800 {
11801 PyThreadState* __tstate = wxPyBeginAllowThreads();
11802 result = ((wxTextCtrl const *)arg1)->GetValue();
11803 wxPyEndAllowThreads(__tstate);
11804 if (PyErr_Occurred()) SWIG_fail;
11805 }
11806 {
11807#if wxUSE_UNICODE
11808 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11809#else
11810 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11811#endif
11812 }
11813 return resultobj;
11814fail:
11815 return NULL;
11816}
11817
11818
11819SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11820 PyObject *resultobj = 0;
11821 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11822 wxString *arg2 = 0 ;
11823 void *argp1 = 0 ;
11824 int res1 = 0 ;
11825 bool temp2 = false ;
11826 PyObject * obj0 = 0 ;
11827 PyObject * obj1 = 0 ;
11828 char * kwnames[] = {
11829 (char *) "self",(char *) "value", NULL
11830 };
11831
11832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11834 if (!SWIG_IsOK(res1)) {
11835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11836 }
11837 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11838 {
11839 arg2 = wxString_in_helper(obj1);
11840 if (arg2 == NULL) SWIG_fail;
11841 temp2 = true;
11842 }
11843 {
11844 PyThreadState* __tstate = wxPyBeginAllowThreads();
11845 (arg1)->SetValue((wxString const &)*arg2);
11846 wxPyEndAllowThreads(__tstate);
11847 if (PyErr_Occurred()) SWIG_fail;
11848 }
11849 resultobj = SWIG_Py_Void();
11850 {
11851 if (temp2)
11852 delete arg2;
11853 }
11854 return resultobj;
11855fail:
11856 {
11857 if (temp2)
11858 delete arg2;
11859 }
11860 return NULL;
11861}
11862
11863
11864SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11865 PyObject *resultobj = 0;
11866 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11867 long arg2 ;
11868 long arg3 ;
11869 wxString result;
11870 void *argp1 = 0 ;
11871 int res1 = 0 ;
11872 long val2 ;
11873 int ecode2 = 0 ;
11874 long val3 ;
11875 int ecode3 = 0 ;
11876 PyObject * obj0 = 0 ;
11877 PyObject * obj1 = 0 ;
11878 PyObject * obj2 = 0 ;
11879 char * kwnames[] = {
2131d850 11880 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
11881 };
11882
11883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11885 if (!SWIG_IsOK(res1)) {
11886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11887 }
11888 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11889 ecode2 = SWIG_AsVal_long(obj1, &val2);
11890 if (!SWIG_IsOK(ecode2)) {
11891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11892 }
11893 arg2 = static_cast< long >(val2);
11894 ecode3 = SWIG_AsVal_long(obj2, &val3);
11895 if (!SWIG_IsOK(ecode3)) {
11896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11897 }
11898 arg3 = static_cast< long >(val3);
11899 {
11900 PyThreadState* __tstate = wxPyBeginAllowThreads();
11901 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11902 wxPyEndAllowThreads(__tstate);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 {
11906#if wxUSE_UNICODE
11907 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11908#else
11909 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11910#endif
11911 }
11912 return resultobj;
11913fail:
11914 return NULL;
11915}
11916
11917
11918SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11919 PyObject *resultobj = 0;
11920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11921 long arg2 ;
11922 int result;
11923 void *argp1 = 0 ;
11924 int res1 = 0 ;
11925 long val2 ;
11926 int ecode2 = 0 ;
11927 PyObject * obj0 = 0 ;
11928 PyObject * obj1 = 0 ;
11929 char * kwnames[] = {
11930 (char *) "self",(char *) "lineNo", NULL
11931 };
11932
11933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11935 if (!SWIG_IsOK(res1)) {
11936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', 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_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11942 }
11943 arg2 = static_cast< long >(val2);
11944 {
11945 PyThreadState* __tstate = wxPyBeginAllowThreads();
11946 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11947 wxPyEndAllowThreads(__tstate);
11948 if (PyErr_Occurred()) SWIG_fail;
11949 }
11950 resultobj = SWIG_From_int(static_cast< int >(result));
11951 return resultobj;
11952fail:
11953 return NULL;
11954}
11955
11956
11957SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11958 PyObject *resultobj = 0;
11959 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11960 long arg2 ;
11961 wxString result;
11962 void *argp1 = 0 ;
11963 int res1 = 0 ;
11964 long val2 ;
11965 int ecode2 = 0 ;
11966 PyObject * obj0 = 0 ;
11967 PyObject * obj1 = 0 ;
11968 char * kwnames[] = {
11969 (char *) "self",(char *) "lineNo", NULL
11970 };
11971
11972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
11973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11974 if (!SWIG_IsOK(res1)) {
11975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11976 }
11977 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11978 ecode2 = SWIG_AsVal_long(obj1, &val2);
11979 if (!SWIG_IsOK(ecode2)) {
11980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
11981 }
11982 arg2 = static_cast< long >(val2);
11983 {
11984 PyThreadState* __tstate = wxPyBeginAllowThreads();
11985 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
11986 wxPyEndAllowThreads(__tstate);
11987 if (PyErr_Occurred()) SWIG_fail;
11988 }
11989 {
11990#if wxUSE_UNICODE
11991 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11992#else
11993 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11994#endif
11995 }
11996 return resultobj;
11997fail:
11998 return NULL;
d55e5bfc
RD
11999}
12000
12001
1bd55598
RD
12002SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12003 PyObject *resultobj = 0;
12004 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12005 int result;
12006 void *argp1 = 0 ;
12007 int res1 = 0 ;
12008 PyObject *swig_obj[1] ;
12009
12010 if (!args) SWIG_fail;
12011 swig_obj[0] = args;
12012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12013 if (!SWIG_IsOK(res1)) {
12014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12015 }
12016 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12017 {
12018 PyThreadState* __tstate = wxPyBeginAllowThreads();
12019 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12020 wxPyEndAllowThreads(__tstate);
12021 if (PyErr_Occurred()) SWIG_fail;
12022 }
12023 resultobj = SWIG_From_int(static_cast< int >(result));
12024 return resultobj;
12025fail:
12026 return NULL;
d55e5bfc
RD
12027}
12028
12029
1bd55598
RD
12030SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12031 PyObject *resultobj = 0;
12032 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12033 bool result;
12034 void *argp1 = 0 ;
12035 int res1 = 0 ;
12036 PyObject *swig_obj[1] ;
12037
12038 if (!args) SWIG_fail;
12039 swig_obj[0] = args;
12040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12041 if (!SWIG_IsOK(res1)) {
12042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12043 }
12044 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12045 {
12046 PyThreadState* __tstate = wxPyBeginAllowThreads();
12047 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12048 wxPyEndAllowThreads(__tstate);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 }
12051 {
12052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12053 }
12054 return resultobj;
12055fail:
12056 return NULL;
d55e5bfc
RD
12057}
12058
12059
1bd55598
RD
12060SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12061 PyObject *resultobj = 0;
12062 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12063 bool result;
12064 void *argp1 = 0 ;
12065 int res1 = 0 ;
12066 PyObject *swig_obj[1] ;
12067
12068 if (!args) SWIG_fail;
12069 swig_obj[0] = args;
12070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12071 if (!SWIG_IsOK(res1)) {
12072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12073 }
12074 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12075 {
12076 PyThreadState* __tstate = wxPyBeginAllowThreads();
12077 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12078 wxPyEndAllowThreads(__tstate);
12079 if (PyErr_Occurred()) SWIG_fail;
12080 }
12081 {
12082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12083 }
12084 return resultobj;
12085fail:
12086 return NULL;
d55e5bfc
RD
12087}
12088
12089
1bd55598
RD
12090SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12091 PyObject *resultobj = 0;
12092 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12093 bool result;
12094 void *argp1 = 0 ;
12095 int res1 = 0 ;
12096 PyObject *swig_obj[1] ;
12097
12098 if (!args) SWIG_fail;
12099 swig_obj[0] = args;
12100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12101 if (!SWIG_IsOK(res1)) {
12102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12103 }
12104 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12105 {
12106 PyThreadState* __tstate = wxPyBeginAllowThreads();
12107 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12108 wxPyEndAllowThreads(__tstate);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
12111 {
12112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12113 }
12114 return resultobj;
12115fail:
12116 return NULL;
d55e5bfc
RD
12117}
12118
12119
1bd55598
RD
12120SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12121 PyObject *resultobj = 0;
12122 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12123 bool result;
12124 void *argp1 = 0 ;
12125 int res1 = 0 ;
12126 PyObject *swig_obj[1] ;
12127
12128 if (!args) SWIG_fail;
12129 swig_obj[0] = args;
12130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12131 if (!SWIG_IsOK(res1)) {
12132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12133 }
12134 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12135 {
12136 PyThreadState* __tstate = wxPyBeginAllowThreads();
12137 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12138 wxPyEndAllowThreads(__tstate);
12139 if (PyErr_Occurred()) SWIG_fail;
12140 }
12141 {
12142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12143 }
12144 return resultobj;
12145fail:
12146 return NULL;
12147}
12148
12149
12150SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12151 PyObject *resultobj = 0;
12152 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12153 long *arg2 = (long *) 0 ;
12154 long *arg3 = (long *) 0 ;
12155 void *argp1 = 0 ;
12156 int res1 = 0 ;
12157 long temp2 ;
12158 int res2 = SWIG_TMPOBJ ;
12159 long temp3 ;
12160 int res3 = SWIG_TMPOBJ ;
12161 PyObject *swig_obj[1] ;
12162
12163 arg2 = &temp2;
12164 arg3 = &temp3;
12165 if (!args) SWIG_fail;
12166 swig_obj[0] = args;
12167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12168 if (!SWIG_IsOK(res1)) {
12169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12170 }
12171 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12172 {
12173 PyThreadState* __tstate = wxPyBeginAllowThreads();
12174 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12175 wxPyEndAllowThreads(__tstate);
12176 if (PyErr_Occurred()) SWIG_fail;
12177 }
12178 resultobj = SWIG_Py_Void();
12179 if (SWIG_IsTmpObj(res2)) {
12180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12181 } else {
12182 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12184 }
12185 if (SWIG_IsTmpObj(res3)) {
12186 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12187 } else {
12188 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12189 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12190 }
12191 return resultobj;
12192fail:
12193 return NULL;
d55e5bfc
RD
12194}
12195
12196
1bd55598
RD
12197SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12198 PyObject *resultobj = 0;
12199 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12200 wxString result;
12201 void *argp1 = 0 ;
12202 int res1 = 0 ;
12203 PyObject *swig_obj[1] ;
12204
12205 if (!args) SWIG_fail;
12206 swig_obj[0] = args;
12207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12208 if (!SWIG_IsOK(res1)) {
12209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12210 }
12211 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12212 {
12213 PyThreadState* __tstate = wxPyBeginAllowThreads();
12214 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12215 wxPyEndAllowThreads(__tstate);
12216 if (PyErr_Occurred()) SWIG_fail;
12217 }
12218 {
d55e5bfc 12219#if wxUSE_UNICODE
1bd55598 12220 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
d55e5bfc 12221#else
1bd55598 12222 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
d55e5bfc 12223#endif
1bd55598
RD
12224 }
12225 return resultobj;
12226fail:
12227 return NULL;
d55e5bfc
RD
12228}
12229
12230
1bd55598
RD
12231SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12232 PyObject *resultobj = 0;
12233 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12234 void *argp1 = 0 ;
12235 int res1 = 0 ;
12236 PyObject *swig_obj[1] ;
12237
12238 if (!args) SWIG_fail;
12239 swig_obj[0] = args;
12240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12241 if (!SWIG_IsOK(res1)) {
12242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12243 }
12244 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12245 {
12246 PyThreadState* __tstate = wxPyBeginAllowThreads();
12247 (arg1)->Clear();
12248 wxPyEndAllowThreads(__tstate);
12249 if (PyErr_Occurred()) SWIG_fail;
12250 }
12251 resultobj = SWIG_Py_Void();
12252 return resultobj;
12253fail:
12254 return NULL;
12255}
12256
12257
12258SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12259 PyObject *resultobj = 0;
12260 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12261 long arg2 ;
12262 long arg3 ;
12263 wxString *arg4 = 0 ;
12264 void *argp1 = 0 ;
12265 int res1 = 0 ;
12266 long val2 ;
12267 int ecode2 = 0 ;
12268 long val3 ;
12269 int ecode3 = 0 ;
12270 bool temp4 = false ;
12271 PyObject * obj0 = 0 ;
12272 PyObject * obj1 = 0 ;
12273 PyObject * obj2 = 0 ;
12274 PyObject * obj3 = 0 ;
12275 char * kwnames[] = {
2131d850 12276 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
1bd55598
RD
12277 };
12278
12279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12281 if (!SWIG_IsOK(res1)) {
12282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12283 }
12284 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12285 ecode2 = SWIG_AsVal_long(obj1, &val2);
12286 if (!SWIG_IsOK(ecode2)) {
12287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12288 }
12289 arg2 = static_cast< long >(val2);
12290 ecode3 = SWIG_AsVal_long(obj2, &val3);
12291 if (!SWIG_IsOK(ecode3)) {
12292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12293 }
12294 arg3 = static_cast< long >(val3);
12295 {
12296 arg4 = wxString_in_helper(obj3);
12297 if (arg4 == NULL) SWIG_fail;
12298 temp4 = true;
12299 }
12300 {
12301 PyThreadState* __tstate = wxPyBeginAllowThreads();
12302 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12303 wxPyEndAllowThreads(__tstate);
12304 if (PyErr_Occurred()) SWIG_fail;
12305 }
12306 resultobj = SWIG_Py_Void();
12307 {
12308 if (temp4)
12309 delete arg4;
12310 }
12311 return resultobj;
12312fail:
12313 {
12314 if (temp4)
12315 delete arg4;
12316 }
12317 return NULL;
12318}
12319
12320
12321SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12322 PyObject *resultobj = 0;
12323 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12324 long arg2 ;
12325 long arg3 ;
12326 void *argp1 = 0 ;
12327 int res1 = 0 ;
12328 long val2 ;
12329 int ecode2 = 0 ;
12330 long val3 ;
12331 int ecode3 = 0 ;
12332 PyObject * obj0 = 0 ;
12333 PyObject * obj1 = 0 ;
12334 PyObject * obj2 = 0 ;
12335 char * kwnames[] = {
2131d850 12336 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
12337 };
12338
12339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12341 if (!SWIG_IsOK(res1)) {
12342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12343 }
12344 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12345 ecode2 = SWIG_AsVal_long(obj1, &val2);
12346 if (!SWIG_IsOK(ecode2)) {
12347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12348 }
12349 arg2 = static_cast< long >(val2);
12350 ecode3 = SWIG_AsVal_long(obj2, &val3);
12351 if (!SWIG_IsOK(ecode3)) {
12352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12353 }
12354 arg3 = static_cast< long >(val3);
12355 {
12356 PyThreadState* __tstate = wxPyBeginAllowThreads();
12357 (arg1)->Remove(arg2,arg3);
12358 wxPyEndAllowThreads(__tstate);
12359 if (PyErr_Occurred()) SWIG_fail;
12360 }
12361 resultobj = SWIG_Py_Void();
12362 return resultobj;
12363fail:
12364 return NULL;
12365}
12366
12367
12368SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12369 PyObject *resultobj = 0;
12370 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12371 wxString *arg2 = 0 ;
12372 bool result;
12373 void *argp1 = 0 ;
12374 int res1 = 0 ;
12375 bool temp2 = false ;
12376 PyObject * obj0 = 0 ;
12377 PyObject * obj1 = 0 ;
12378 char * kwnames[] = {
12379 (char *) "self",(char *) "file", NULL
12380 };
12381
12382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12384 if (!SWIG_IsOK(res1)) {
12385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12386 }
12387 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12388 {
12389 arg2 = wxString_in_helper(obj1);
12390 if (arg2 == NULL) SWIG_fail;
12391 temp2 = true;
12392 }
12393 {
12394 PyThreadState* __tstate = wxPyBeginAllowThreads();
12395 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12396 wxPyEndAllowThreads(__tstate);
12397 if (PyErr_Occurred()) SWIG_fail;
12398 }
12399 {
12400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12401 }
12402 {
12403 if (temp2)
12404 delete arg2;
12405 }
12406 return resultobj;
12407fail:
12408 {
12409 if (temp2)
12410 delete arg2;
12411 }
12412 return NULL;
12413}
12414
12415
12416SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12417 PyObject *resultobj = 0;
12418 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12419 wxString const &arg2_defvalue = wxPyEmptyString ;
12420 wxString *arg2 = (wxString *) &arg2_defvalue ;
12421 bool result;
12422 void *argp1 = 0 ;
12423 int res1 = 0 ;
12424 bool temp2 = false ;
12425 PyObject * obj0 = 0 ;
12426 PyObject * obj1 = 0 ;
12427 char * kwnames[] = {
12428 (char *) "self",(char *) "file", NULL
12429 };
12430
12431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12433 if (!SWIG_IsOK(res1)) {
12434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12435 }
12436 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12437 if (obj1) {
d55e5bfc 12438 {
1bd55598
RD
12439 arg2 = wxString_in_helper(obj1);
12440 if (arg2 == NULL) SWIG_fail;
12441 temp2 = true;
d55e5bfc 12442 }
1bd55598
RD
12443 }
12444 {
12445 PyThreadState* __tstate = wxPyBeginAllowThreads();
12446 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12447 wxPyEndAllowThreads(__tstate);
12448 if (PyErr_Occurred()) SWIG_fail;
12449 }
12450 {
12451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12452 }
12453 {
12454 if (temp2)
12455 delete arg2;
12456 }
12457 return resultobj;
12458fail:
12459 {
12460 if (temp2)
12461 delete arg2;
12462 }
12463 return NULL;
d55e5bfc
RD
12464}
12465
12466
1bd55598
RD
12467SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12468 PyObject *resultobj = 0;
12469 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12470 void *argp1 = 0 ;
12471 int res1 = 0 ;
12472 PyObject *swig_obj[1] ;
12473
12474 if (!args) SWIG_fail;
12475 swig_obj[0] = args;
12476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12477 if (!SWIG_IsOK(res1)) {
12478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12479 }
12480 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12481 {
12482 PyThreadState* __tstate = wxPyBeginAllowThreads();
12483 (arg1)->MarkDirty();
12484 wxPyEndAllowThreads(__tstate);
12485 if (PyErr_Occurred()) SWIG_fail;
12486 }
12487 resultobj = SWIG_Py_Void();
12488 return resultobj;
12489fail:
12490 return NULL;
d55e5bfc
RD
12491}
12492
12493
1bd55598
RD
12494SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12495 PyObject *resultobj = 0;
12496 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12497 void *argp1 = 0 ;
12498 int res1 = 0 ;
12499 PyObject *swig_obj[1] ;
12500
12501 if (!args) SWIG_fail;
12502 swig_obj[0] = args;
12503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12504 if (!SWIG_IsOK(res1)) {
12505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12506 }
12507 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12508 {
12509 PyThreadState* __tstate = wxPyBeginAllowThreads();
12510 (arg1)->DiscardEdits();
12511 wxPyEndAllowThreads(__tstate);
12512 if (PyErr_Occurred()) SWIG_fail;
12513 }
12514 resultobj = SWIG_Py_Void();
12515 return resultobj;
12516fail:
12517 return NULL;
12518}
12519
12520
b02396e8
RD
12521SWIGINTERN PyObject *_wrap_TextCtrl_SetModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12522 PyObject *resultobj = 0;
12523 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12524 bool arg2 ;
12525 void *argp1 = 0 ;
12526 int res1 = 0 ;
12527 bool val2 ;
12528 int ecode2 = 0 ;
12529 PyObject * obj0 = 0 ;
12530 PyObject * obj1 = 0 ;
12531 char * kwnames[] = {
12532 (char *) "self",(char *) "modified", NULL
12533 };
12534
12535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetModified",kwnames,&obj0,&obj1)) SWIG_fail;
12536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12537 if (!SWIG_IsOK(res1)) {
12538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetModified" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12539 }
12540 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12541 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12542 if (!SWIG_IsOK(ecode2)) {
12543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetModified" "', expected argument " "2"" of type '" "bool""'");
12544 }
12545 arg2 = static_cast< bool >(val2);
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 (arg1)->SetModified(arg2);
12549 wxPyEndAllowThreads(__tstate);
12550 if (PyErr_Occurred()) SWIG_fail;
12551 }
12552 resultobj = SWIG_Py_Void();
12553 return resultobj;
12554fail:
12555 return NULL;
12556}
12557
12558
1bd55598
RD
12559SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12560 PyObject *resultobj = 0;
12561 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12562 unsigned long arg2 ;
12563 void *argp1 = 0 ;
12564 int res1 = 0 ;
12565 unsigned long val2 ;
12566 int ecode2 = 0 ;
12567 PyObject * obj0 = 0 ;
12568 PyObject * obj1 = 0 ;
12569 char * kwnames[] = {
12570 (char *) "self",(char *) "len", NULL
12571 };
12572
12573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12575 if (!SWIG_IsOK(res1)) {
12576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12577 }
12578 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12579 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12580 if (!SWIG_IsOK(ecode2)) {
12581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12582 }
12583 arg2 = static_cast< unsigned long >(val2);
12584 {
12585 PyThreadState* __tstate = wxPyBeginAllowThreads();
12586 (arg1)->SetMaxLength(arg2);
12587 wxPyEndAllowThreads(__tstate);
12588 if (PyErr_Occurred()) SWIG_fail;
12589 }
12590 resultobj = SWIG_Py_Void();
12591 return resultobj;
12592fail:
12593 return NULL;
12594}
12595
12596
12597SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12598 PyObject *resultobj = 0;
12599 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12600 wxString *arg2 = 0 ;
12601 void *argp1 = 0 ;
12602 int res1 = 0 ;
12603 bool temp2 = false ;
12604 PyObject * obj0 = 0 ;
12605 PyObject * obj1 = 0 ;
12606 char * kwnames[] = {
12607 (char *) "self",(char *) "text", NULL
12608 };
12609
12610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12612 if (!SWIG_IsOK(res1)) {
12613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12614 }
12615 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12616 {
12617 arg2 = wxString_in_helper(obj1);
12618 if (arg2 == NULL) SWIG_fail;
12619 temp2 = true;
12620 }
12621 {
12622 PyThreadState* __tstate = wxPyBeginAllowThreads();
12623 (arg1)->WriteText((wxString const &)*arg2);
12624 wxPyEndAllowThreads(__tstate);
12625 if (PyErr_Occurred()) SWIG_fail;
12626 }
12627 resultobj = SWIG_Py_Void();
12628 {
12629 if (temp2)
12630 delete arg2;
12631 }
12632 return resultobj;
12633fail:
12634 {
12635 if (temp2)
12636 delete arg2;
12637 }
12638 return NULL;
d55e5bfc
RD
12639}
12640
12641
1bd55598
RD
12642SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12643 PyObject *resultobj = 0;
12644 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12645 wxString *arg2 = 0 ;
12646 void *argp1 = 0 ;
12647 int res1 = 0 ;
12648 bool temp2 = false ;
12649 PyObject * obj0 = 0 ;
12650 PyObject * obj1 = 0 ;
12651 char * kwnames[] = {
12652 (char *) "self",(char *) "text", NULL
12653 };
12654
12655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12657 if (!SWIG_IsOK(res1)) {
12658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12659 }
12660 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12661 {
12662 arg2 = wxString_in_helper(obj1);
12663 if (arg2 == NULL) SWIG_fail;
12664 temp2 = true;
12665 }
12666 {
12667 PyThreadState* __tstate = wxPyBeginAllowThreads();
12668 (arg1)->AppendText((wxString const &)*arg2);
12669 wxPyEndAllowThreads(__tstate);
12670 if (PyErr_Occurred()) SWIG_fail;
12671 }
12672 resultobj = SWIG_Py_Void();
12673 {
12674 if (temp2)
12675 delete arg2;
12676 }
12677 return resultobj;
12678fail:
12679 {
12680 if (temp2)
12681 delete arg2;
12682 }
12683 return NULL;
12684}
12685
12686
12687SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12688 PyObject *resultobj = 0;
12689 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12690 wxKeyEvent *arg2 = 0 ;
12691 bool result;
12692 void *argp1 = 0 ;
12693 int res1 = 0 ;
12694 void *argp2 = 0 ;
12695 int res2 = 0 ;
12696 PyObject * obj0 = 0 ;
12697 PyObject * obj1 = 0 ;
12698 char * kwnames[] = {
12699 (char *) "self",(char *) "event", NULL
12700 };
12701
12702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12704 if (!SWIG_IsOK(res1)) {
12705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12706 }
12707 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12708 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12709 if (!SWIG_IsOK(res2)) {
12710 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12711 }
12712 if (!argp2) {
12713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12714 }
12715 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12716 {
12717 PyThreadState* __tstate = wxPyBeginAllowThreads();
12718 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12719 wxPyEndAllowThreads(__tstate);
12720 if (PyErr_Occurred()) SWIG_fail;
12721 }
12722 {
12723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12724 }
12725 return resultobj;
12726fail:
12727 return NULL;
12728}
12729
12730
12731SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12732 PyObject *resultobj = 0;
12733 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12734 long arg2 ;
12735 long arg3 ;
12736 wxTextAttr *arg4 = 0 ;
12737 bool result;
12738 void *argp1 = 0 ;
12739 int res1 = 0 ;
12740 long val2 ;
12741 int ecode2 = 0 ;
12742 long val3 ;
12743 int ecode3 = 0 ;
12744 void *argp4 = 0 ;
12745 int res4 = 0 ;
12746 PyObject * obj0 = 0 ;
12747 PyObject * obj1 = 0 ;
12748 PyObject * obj2 = 0 ;
12749 PyObject * obj3 = 0 ;
12750 char * kwnames[] = {
12751 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12752 };
12753
12754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12756 if (!SWIG_IsOK(res1)) {
12757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12758 }
12759 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12760 ecode2 = SWIG_AsVal_long(obj1, &val2);
12761 if (!SWIG_IsOK(ecode2)) {
12762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12763 }
12764 arg2 = static_cast< long >(val2);
12765 ecode3 = SWIG_AsVal_long(obj2, &val3);
12766 if (!SWIG_IsOK(ecode3)) {
12767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12768 }
12769 arg3 = static_cast< long >(val3);
12770 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12771 if (!SWIG_IsOK(res4)) {
12772 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12773 }
12774 if (!argp4) {
12775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12776 }
12777 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12778 {
12779 PyThreadState* __tstate = wxPyBeginAllowThreads();
12780 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12781 wxPyEndAllowThreads(__tstate);
12782 if (PyErr_Occurred()) SWIG_fail;
12783 }
12784 {
12785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12786 }
12787 return resultobj;
12788fail:
12789 return NULL;
12790}
12791
12792
12793SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12794 PyObject *resultobj = 0;
12795 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12796 long arg2 ;
12797 wxTextAttr *arg3 = 0 ;
12798 bool result;
12799 void *argp1 = 0 ;
12800 int res1 = 0 ;
12801 long val2 ;
12802 int ecode2 = 0 ;
12803 void *argp3 = 0 ;
12804 int res3 = 0 ;
12805 PyObject * obj0 = 0 ;
12806 PyObject * obj1 = 0 ;
12807 PyObject * obj2 = 0 ;
12808 char * kwnames[] = {
12809 (char *) "self",(char *) "position",(char *) "style", NULL
12810 };
12811
12812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12814 if (!SWIG_IsOK(res1)) {
12815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12816 }
12817 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12818 ecode2 = SWIG_AsVal_long(obj1, &val2);
12819 if (!SWIG_IsOK(ecode2)) {
12820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12821 }
12822 arg2 = static_cast< long >(val2);
12823 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12824 if (!SWIG_IsOK(res3)) {
12825 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12826 }
12827 if (!argp3) {
12828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12829 }
12830 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12831 {
12832 PyThreadState* __tstate = wxPyBeginAllowThreads();
12833 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12834 wxPyEndAllowThreads(__tstate);
12835 if (PyErr_Occurred()) SWIG_fail;
12836 }
12837 {
12838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12839 }
12840 return resultobj;
12841fail:
12842 return NULL;
12843}
12844
12845
12846SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12847 PyObject *resultobj = 0;
12848 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12849 wxTextAttr *arg2 = 0 ;
12850 bool result;
12851 void *argp1 = 0 ;
12852 int res1 = 0 ;
12853 void *argp2 = 0 ;
12854 int res2 = 0 ;
12855 PyObject * obj0 = 0 ;
12856 PyObject * obj1 = 0 ;
12857 char * kwnames[] = {
12858 (char *) "self",(char *) "style", NULL
12859 };
12860
12861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12863 if (!SWIG_IsOK(res1)) {
12864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12865 }
12866 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12867 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12868 if (!SWIG_IsOK(res2)) {
12869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12870 }
12871 if (!argp2) {
12872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12873 }
12874 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12875 {
12876 PyThreadState* __tstate = wxPyBeginAllowThreads();
12877 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12878 wxPyEndAllowThreads(__tstate);
12879 if (PyErr_Occurred()) SWIG_fail;
12880 }
12881 {
12882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12883 }
12884 return resultobj;
12885fail:
12886 return NULL;
d55e5bfc
RD
12887}
12888
12889
1bd55598
RD
12890SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12891 PyObject *resultobj = 0;
12892 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12893 wxTextAttr *result = 0 ;
12894 void *argp1 = 0 ;
12895 int res1 = 0 ;
12896 PyObject *swig_obj[1] ;
12897
12898 if (!args) SWIG_fail;
12899 swig_obj[0] = args;
12900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12901 if (!SWIG_IsOK(res1)) {
12902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12903 }
12904 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12905 {
12906 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 12907 {
1bd55598
RD
12908 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12909 result = (wxTextAttr *) &_result_ref;
d55e5bfc 12910 }
1bd55598
RD
12911 wxPyEndAllowThreads(__tstate);
12912 if (PyErr_Occurred()) SWIG_fail;
12913 }
12914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12915 return resultobj;
12916fail:
12917 return NULL;
12918}
12919
12920
12921SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12922 PyObject *resultobj = 0;
12923 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12924 long arg2 ;
12925 long arg3 ;
12926 long result;
12927 void *argp1 = 0 ;
12928 int res1 = 0 ;
12929 long val2 ;
12930 int ecode2 = 0 ;
12931 long val3 ;
12932 int ecode3 = 0 ;
12933 PyObject * obj0 = 0 ;
12934 PyObject * obj1 = 0 ;
12935 PyObject * obj2 = 0 ;
12936 char * kwnames[] = {
12937 (char *) "self",(char *) "x",(char *) "y", NULL
12938 };
12939
12940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12942 if (!SWIG_IsOK(res1)) {
12943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12944 }
12945 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12946 ecode2 = SWIG_AsVal_long(obj1, &val2);
12947 if (!SWIG_IsOK(ecode2)) {
12948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12949 }
12950 arg2 = static_cast< long >(val2);
12951 ecode3 = SWIG_AsVal_long(obj2, &val3);
12952 if (!SWIG_IsOK(ecode3)) {
12953 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12954 }
12955 arg3 = static_cast< long >(val3);
12956 {
12957 PyThreadState* __tstate = wxPyBeginAllowThreads();
12958 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12959 wxPyEndAllowThreads(__tstate);
12960 if (PyErr_Occurred()) SWIG_fail;
12961 }
12962 resultobj = SWIG_From_long(static_cast< long >(result));
12963 return resultobj;
12964fail:
12965 return NULL;
12966}
12967
12968
12969SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12970 PyObject *resultobj = 0;
12971 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12972 long arg2 ;
12973 long *arg3 = (long *) 0 ;
12974 long *arg4 = (long *) 0 ;
12975 void *argp1 = 0 ;
12976 int res1 = 0 ;
12977 long val2 ;
12978 int ecode2 = 0 ;
12979 long temp3 ;
12980 int res3 = SWIG_TMPOBJ ;
12981 long temp4 ;
12982 int res4 = SWIG_TMPOBJ ;
12983 PyObject * obj0 = 0 ;
12984 PyObject * obj1 = 0 ;
12985 char * kwnames[] = {
12986 (char *) "self",(char *) "pos", NULL
12987 };
12988
12989 arg3 = &temp3;
12990 arg4 = &temp4;
12991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
12992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12993 if (!SWIG_IsOK(res1)) {
12994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12995 }
12996 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12997 ecode2 = SWIG_AsVal_long(obj1, &val2);
12998 if (!SWIG_IsOK(ecode2)) {
12999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
13000 }
13001 arg2 = static_cast< long >(val2);
13002 {
13003 PyThreadState* __tstate = wxPyBeginAllowThreads();
13004 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
13005 wxPyEndAllowThreads(__tstate);
13006 if (PyErr_Occurred()) SWIG_fail;
13007 }
13008 resultobj = SWIG_Py_Void();
13009 if (SWIG_IsTmpObj(res3)) {
13010 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13011 } else {
13012 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13013 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13014 }
13015 if (SWIG_IsTmpObj(res4)) {
13016 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13017 } else {
13018 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13019 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13020 }
13021 return resultobj;
13022fail:
13023 return NULL;
13024}
13025
13026
13027SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13028 PyObject *resultobj = 0;
13029 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13030 long arg2 ;
13031 void *argp1 = 0 ;
13032 int res1 = 0 ;
13033 long val2 ;
13034 int ecode2 = 0 ;
13035 PyObject * obj0 = 0 ;
13036 PyObject * obj1 = 0 ;
13037 char * kwnames[] = {
13038 (char *) "self",(char *) "pos", NULL
13039 };
13040
13041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
13042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13043 if (!SWIG_IsOK(res1)) {
13044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13045 }
13046 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13047 ecode2 = SWIG_AsVal_long(obj1, &val2);
13048 if (!SWIG_IsOK(ecode2)) {
13049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
13050 }
13051 arg2 = static_cast< long >(val2);
13052 {
13053 PyThreadState* __tstate = wxPyBeginAllowThreads();
13054 (arg1)->ShowPosition(arg2);
13055 wxPyEndAllowThreads(__tstate);
13056 if (PyErr_Occurred()) SWIG_fail;
13057 }
13058 resultobj = SWIG_Py_Void();
13059 return resultobj;
13060fail:
13061 return NULL;
13062}
13063
13064
13065SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13066 PyObject *resultobj = 0;
13067 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13068 wxPoint *arg2 = 0 ;
13069 long *arg3 = (long *) 0 ;
13070 long *arg4 = (long *) 0 ;
13071 wxTextCtrlHitTestResult result;
13072 void *argp1 = 0 ;
13073 int res1 = 0 ;
13074 wxPoint temp2 ;
13075 long temp3 ;
13076 int res3 = SWIG_TMPOBJ ;
13077 long temp4 ;
13078 int res4 = SWIG_TMPOBJ ;
13079 PyObject * obj0 = 0 ;
13080 PyObject * obj1 = 0 ;
13081 char * kwnames[] = {
13082 (char *) "self",(char *) "pt", NULL
13083 };
13084
13085 arg3 = &temp3;
13086 arg4 = &temp4;
13087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13089 if (!SWIG_IsOK(res1)) {
13090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13091 }
13092 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13093 {
13094 arg2 = &temp2;
13095 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13096 }
13097 {
13098 PyThreadState* __tstate = wxPyBeginAllowThreads();
13099 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13100 wxPyEndAllowThreads(__tstate);
13101 if (PyErr_Occurred()) SWIG_fail;
13102 }
13103 resultobj = SWIG_From_int(static_cast< int >(result));
13104 if (SWIG_IsTmpObj(res3)) {
13105 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13106 } else {
13107 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13108 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13109 }
13110 if (SWIG_IsTmpObj(res4)) {
13111 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13112 } else {
13113 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13114 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13115 }
13116 return resultobj;
13117fail:
13118 return NULL;
13119}
13120
13121
13122SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13123 PyObject *resultobj = 0;
13124 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13125 wxPoint *arg2 = 0 ;
13126 long *arg3 = (long *) 0 ;
13127 wxTextCtrlHitTestResult result;
13128 void *argp1 = 0 ;
13129 int res1 = 0 ;
13130 wxPoint temp2 ;
13131 long temp3 ;
13132 int res3 = SWIG_TMPOBJ ;
13133 PyObject * obj0 = 0 ;
13134 PyObject * obj1 = 0 ;
13135 char * kwnames[] = {
13136 (char *) "self",(char *) "pt", NULL
13137 };
13138
13139 arg3 = &temp3;
13140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13142 if (!SWIG_IsOK(res1)) {
13143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13144 }
13145 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13146 {
13147 arg2 = &temp2;
13148 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13149 }
13150 {
13151 PyThreadState* __tstate = wxPyBeginAllowThreads();
13152 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13153 wxPyEndAllowThreads(__tstate);
13154 if (PyErr_Occurred()) SWIG_fail;
13155 }
13156 resultobj = SWIG_From_int(static_cast< int >(result));
13157 if (SWIG_IsTmpObj(res3)) {
13158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13159 } else {
13160 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13162 }
13163 return resultobj;
13164fail:
13165 return NULL;
d55e5bfc
RD
13166}
13167
13168
1bd55598
RD
13169SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13170 PyObject *resultobj = 0;
13171 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13172 void *argp1 = 0 ;
13173 int res1 = 0 ;
13174 PyObject *swig_obj[1] ;
13175
13176 if (!args) SWIG_fail;
13177 swig_obj[0] = args;
13178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13179 if (!SWIG_IsOK(res1)) {
13180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13181 }
13182 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13183 {
13184 PyThreadState* __tstate = wxPyBeginAllowThreads();
13185 (arg1)->Copy();
13186 wxPyEndAllowThreads(__tstate);
13187 if (PyErr_Occurred()) SWIG_fail;
13188 }
13189 resultobj = SWIG_Py_Void();
13190 return resultobj;
13191fail:
13192 return NULL;
d55e5bfc
RD
13193}
13194
13195
1bd55598
RD
13196SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13197 PyObject *resultobj = 0;
13198 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13199 void *argp1 = 0 ;
13200 int res1 = 0 ;
13201 PyObject *swig_obj[1] ;
13202
13203 if (!args) SWIG_fail;
13204 swig_obj[0] = args;
13205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13206 if (!SWIG_IsOK(res1)) {
13207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13208 }
13209 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13210 {
13211 PyThreadState* __tstate = wxPyBeginAllowThreads();
13212 (arg1)->Cut();
13213 wxPyEndAllowThreads(__tstate);
13214 if (PyErr_Occurred()) SWIG_fail;
13215 }
13216 resultobj = SWIG_Py_Void();
13217 return resultobj;
13218fail:
13219 return NULL;
d55e5bfc
RD
13220}
13221
13222
1bd55598
RD
13223SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13224 PyObject *resultobj = 0;
13225 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13226 void *argp1 = 0 ;
13227 int res1 = 0 ;
13228 PyObject *swig_obj[1] ;
13229
13230 if (!args) SWIG_fail;
13231 swig_obj[0] = args;
13232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13233 if (!SWIG_IsOK(res1)) {
13234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13235 }
13236 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13237 {
13238 PyThreadState* __tstate = wxPyBeginAllowThreads();
13239 (arg1)->Paste();
13240 wxPyEndAllowThreads(__tstate);
13241 if (PyErr_Occurred()) SWIG_fail;
13242 }
13243 resultobj = SWIG_Py_Void();
13244 return resultobj;
13245fail:
13246 return NULL;
d55e5bfc
RD
13247}
13248
13249
1bd55598
RD
13250SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13251 PyObject *resultobj = 0;
13252 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13253 bool result;
13254 void *argp1 = 0 ;
13255 int res1 = 0 ;
13256 PyObject *swig_obj[1] ;
13257
13258 if (!args) SWIG_fail;
13259 swig_obj[0] = args;
13260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13261 if (!SWIG_IsOK(res1)) {
13262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13263 }
13264 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13265 {
13266 PyThreadState* __tstate = wxPyBeginAllowThreads();
13267 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13268 wxPyEndAllowThreads(__tstate);
13269 if (PyErr_Occurred()) SWIG_fail;
13270 }
13271 {
13272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13273 }
13274 return resultobj;
13275fail:
13276 return NULL;
d55e5bfc
RD
13277}
13278
13279
1bd55598
RD
13280SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13281 PyObject *resultobj = 0;
13282 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13283 bool result;
13284 void *argp1 = 0 ;
13285 int res1 = 0 ;
13286 PyObject *swig_obj[1] ;
13287
13288 if (!args) SWIG_fail;
13289 swig_obj[0] = args;
13290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13291 if (!SWIG_IsOK(res1)) {
13292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13293 }
13294 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13295 {
13296 PyThreadState* __tstate = wxPyBeginAllowThreads();
13297 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13298 wxPyEndAllowThreads(__tstate);
13299 if (PyErr_Occurred()) SWIG_fail;
13300 }
13301 {
13302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13303 }
13304 return resultobj;
13305fail:
13306 return NULL;
d55e5bfc
RD
13307}
13308
13309
1bd55598
RD
13310SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13311 PyObject *resultobj = 0;
13312 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13313 bool result;
13314 void *argp1 = 0 ;
13315 int res1 = 0 ;
13316 PyObject *swig_obj[1] ;
13317
13318 if (!args) SWIG_fail;
13319 swig_obj[0] = args;
13320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13321 if (!SWIG_IsOK(res1)) {
13322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13323 }
13324 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13325 {
13326 PyThreadState* __tstate = wxPyBeginAllowThreads();
13327 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13328 wxPyEndAllowThreads(__tstate);
13329 if (PyErr_Occurred()) SWIG_fail;
13330 }
13331 {
13332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13333 }
13334 return resultobj;
13335fail:
13336 return NULL;
d55e5bfc
RD
13337}
13338
13339
1bd55598
RD
13340SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13341 PyObject *resultobj = 0;
13342 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13343 void *argp1 = 0 ;
13344 int res1 = 0 ;
13345 PyObject *swig_obj[1] ;
13346
13347 if (!args) SWIG_fail;
13348 swig_obj[0] = args;
13349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13350 if (!SWIG_IsOK(res1)) {
13351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13352 }
13353 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13354 {
13355 PyThreadState* __tstate = wxPyBeginAllowThreads();
13356 (arg1)->Undo();
13357 wxPyEndAllowThreads(__tstate);
13358 if (PyErr_Occurred()) SWIG_fail;
13359 }
13360 resultobj = SWIG_Py_Void();
13361 return resultobj;
13362fail:
13363 return NULL;
d55e5bfc
RD
13364}
13365
13366
1bd55598
RD
13367SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13368 PyObject *resultobj = 0;
13369 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13370 void *argp1 = 0 ;
13371 int res1 = 0 ;
13372 PyObject *swig_obj[1] ;
13373
13374 if (!args) SWIG_fail;
13375 swig_obj[0] = args;
13376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13377 if (!SWIG_IsOK(res1)) {
13378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13379 }
13380 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13381 {
13382 PyThreadState* __tstate = wxPyBeginAllowThreads();
13383 (arg1)->Redo();
13384 wxPyEndAllowThreads(__tstate);
13385 if (PyErr_Occurred()) SWIG_fail;
13386 }
13387 resultobj = SWIG_Py_Void();
13388 return resultobj;
13389fail:
13390 return NULL;
d55e5bfc
RD
13391}
13392
13393
1bd55598
RD
13394SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13395 PyObject *resultobj = 0;
13396 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13397 bool result;
13398 void *argp1 = 0 ;
13399 int res1 = 0 ;
13400 PyObject *swig_obj[1] ;
13401
13402 if (!args) SWIG_fail;
13403 swig_obj[0] = args;
13404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13405 if (!SWIG_IsOK(res1)) {
13406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13407 }
13408 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13409 {
13410 PyThreadState* __tstate = wxPyBeginAllowThreads();
13411 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13412 wxPyEndAllowThreads(__tstate);
13413 if (PyErr_Occurred()) SWIG_fail;
13414 }
13415 {
13416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13417 }
13418 return resultobj;
13419fail:
13420 return NULL;
d55e5bfc
RD
13421}
13422
13423
1bd55598
RD
13424SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13425 PyObject *resultobj = 0;
13426 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13427 bool result;
13428 void *argp1 = 0 ;
13429 int res1 = 0 ;
13430 PyObject *swig_obj[1] ;
13431
13432 if (!args) SWIG_fail;
13433 swig_obj[0] = args;
13434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13435 if (!SWIG_IsOK(res1)) {
13436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13437 }
13438 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13439 {
13440 PyThreadState* __tstate = wxPyBeginAllowThreads();
13441 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13442 wxPyEndAllowThreads(__tstate);
13443 if (PyErr_Occurred()) SWIG_fail;
13444 }
13445 {
13446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13447 }
13448 return resultobj;
13449fail:
13450 return NULL;
13451}
13452
13453
13454SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13455 PyObject *resultobj = 0;
13456 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13457 long arg2 ;
13458 void *argp1 = 0 ;
13459 int res1 = 0 ;
13460 long val2 ;
13461 int ecode2 = 0 ;
13462 PyObject * obj0 = 0 ;
13463 PyObject * obj1 = 0 ;
13464 char * kwnames[] = {
13465 (char *) "self",(char *) "pos", NULL
13466 };
13467
13468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13470 if (!SWIG_IsOK(res1)) {
13471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13472 }
13473 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13474 ecode2 = SWIG_AsVal_long(obj1, &val2);
13475 if (!SWIG_IsOK(ecode2)) {
13476 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13477 }
13478 arg2 = static_cast< long >(val2);
13479 {
13480 PyThreadState* __tstate = wxPyBeginAllowThreads();
13481 (arg1)->SetInsertionPoint(arg2);
13482 wxPyEndAllowThreads(__tstate);
13483 if (PyErr_Occurred()) SWIG_fail;
13484 }
13485 resultobj = SWIG_Py_Void();
13486 return resultobj;
13487fail:
13488 return NULL;
d55e5bfc
RD
13489}
13490
13491
1bd55598
RD
13492SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13493 PyObject *resultobj = 0;
13494 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13495 void *argp1 = 0 ;
13496 int res1 = 0 ;
13497 PyObject *swig_obj[1] ;
13498
13499 if (!args) SWIG_fail;
13500 swig_obj[0] = args;
13501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13502 if (!SWIG_IsOK(res1)) {
13503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13504 }
13505 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13506 {
13507 PyThreadState* __tstate = wxPyBeginAllowThreads();
13508 (arg1)->SetInsertionPointEnd();
13509 wxPyEndAllowThreads(__tstate);
13510 if (PyErr_Occurred()) SWIG_fail;
13511 }
13512 resultobj = SWIG_Py_Void();
13513 return resultobj;
13514fail:
13515 return NULL;
d55e5bfc
RD
13516}
13517
13518
1bd55598
RD
13519SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13520 PyObject *resultobj = 0;
13521 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13522 long result;
13523 void *argp1 = 0 ;
13524 int res1 = 0 ;
13525 PyObject *swig_obj[1] ;
13526
13527 if (!args) SWIG_fail;
13528 swig_obj[0] = args;
13529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13530 if (!SWIG_IsOK(res1)) {
13531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13532 }
13533 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13534 {
13535 PyThreadState* __tstate = wxPyBeginAllowThreads();
13536 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13537 wxPyEndAllowThreads(__tstate);
13538 if (PyErr_Occurred()) SWIG_fail;
13539 }
13540 resultobj = SWIG_From_long(static_cast< long >(result));
13541 return resultobj;
13542fail:
13543 return NULL;
d55e5bfc
RD
13544}
13545
13546
1bd55598
RD
13547SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13548 PyObject *resultobj = 0;
13549 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13550 long result;
13551 void *argp1 = 0 ;
13552 int res1 = 0 ;
13553 PyObject *swig_obj[1] ;
13554
13555 if (!args) SWIG_fail;
13556 swig_obj[0] = args;
13557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13558 if (!SWIG_IsOK(res1)) {
13559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13560 }
13561 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13562 {
13563 PyThreadState* __tstate = wxPyBeginAllowThreads();
13564 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13565 wxPyEndAllowThreads(__tstate);
13566 if (PyErr_Occurred()) SWIG_fail;
13567 }
13568 resultobj = SWIG_From_long(static_cast< long >(result));
13569 return resultobj;
13570fail:
13571 return NULL;
13572}
13573
13574
13575SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13576 PyObject *resultobj = 0;
13577 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13578 long arg2 ;
13579 long arg3 ;
13580 void *argp1 = 0 ;
13581 int res1 = 0 ;
13582 long val2 ;
13583 int ecode2 = 0 ;
13584 long val3 ;
13585 int ecode3 = 0 ;
13586 PyObject * obj0 = 0 ;
13587 PyObject * obj1 = 0 ;
13588 PyObject * obj2 = 0 ;
13589 char * kwnames[] = {
2131d850 13590 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
13591 };
13592
13593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13595 if (!SWIG_IsOK(res1)) {
13596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13597 }
13598 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13599 ecode2 = SWIG_AsVal_long(obj1, &val2);
13600 if (!SWIG_IsOK(ecode2)) {
13601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13602 }
13603 arg2 = static_cast< long >(val2);
13604 ecode3 = SWIG_AsVal_long(obj2, &val3);
13605 if (!SWIG_IsOK(ecode3)) {
13606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13607 }
13608 arg3 = static_cast< long >(val3);
13609 {
13610 PyThreadState* __tstate = wxPyBeginAllowThreads();
13611 (arg1)->SetSelection(arg2,arg3);
13612 wxPyEndAllowThreads(__tstate);
13613 if (PyErr_Occurred()) SWIG_fail;
13614 }
13615 resultobj = SWIG_Py_Void();
13616 return resultobj;
13617fail:
13618 return NULL;
d55e5bfc
RD
13619}
13620
13621
1bd55598
RD
13622SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13623 PyObject *resultobj = 0;
13624 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13625 void *argp1 = 0 ;
13626 int res1 = 0 ;
13627 PyObject *swig_obj[1] ;
13628
13629 if (!args) SWIG_fail;
13630 swig_obj[0] = args;
13631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13632 if (!SWIG_IsOK(res1)) {
13633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13634 }
13635 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13636 {
13637 PyThreadState* __tstate = wxPyBeginAllowThreads();
13638 (arg1)->SelectAll();
13639 wxPyEndAllowThreads(__tstate);
13640 if (PyErr_Occurred()) SWIG_fail;
13641 }
13642 resultobj = SWIG_Py_Void();
13643 return resultobj;
13644fail:
13645 return NULL;
13646}
13647
13648
13649SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13650 PyObject *resultobj = 0;
13651 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13652 bool arg2 ;
13653 void *argp1 = 0 ;
13654 int res1 = 0 ;
13655 bool val2 ;
13656 int ecode2 = 0 ;
13657 PyObject * obj0 = 0 ;
13658 PyObject * obj1 = 0 ;
13659 char * kwnames[] = {
13660 (char *) "self",(char *) "editable", NULL
13661 };
13662
13663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13665 if (!SWIG_IsOK(res1)) {
13666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13667 }
13668 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13669 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13670 if (!SWIG_IsOK(ecode2)) {
13671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13672 }
13673 arg2 = static_cast< bool >(val2);
13674 {
13675 PyThreadState* __tstate = wxPyBeginAllowThreads();
13676 (arg1)->SetEditable(arg2);
13677 wxPyEndAllowThreads(__tstate);
13678 if (PyErr_Occurred()) SWIG_fail;
13679 }
13680 resultobj = SWIG_Py_Void();
13681 return resultobj;
13682fail:
13683 return NULL;
13684}
13685
13686
13687SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13688 PyObject *resultobj = 0;
13689 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13690 wxString *arg2 = 0 ;
13691 void *argp1 = 0 ;
13692 int res1 = 0 ;
13693 bool temp2 = false ;
13694 PyObject * obj0 = 0 ;
13695 PyObject * obj1 = 0 ;
13696 char * kwnames[] = {
13697 (char *) "self",(char *) "text", NULL
13698 };
13699
13700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13702 if (!SWIG_IsOK(res1)) {
13703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13704 }
13705 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13706 {
13707 arg2 = wxString_in_helper(obj1);
13708 if (arg2 == NULL) SWIG_fail;
13709 temp2 = true;
13710 }
13711 {
13712 PyThreadState* __tstate = wxPyBeginAllowThreads();
13713 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13714 wxPyEndAllowThreads(__tstate);
13715 if (PyErr_Occurred()) SWIG_fail;
13716 }
13717 resultobj = SWIG_Py_Void();
13718 {
13719 if (temp2)
13720 delete arg2;
13721 }
13722 return resultobj;
13723fail:
13724 {
13725 if (temp2)
13726 delete arg2;
13727 }
13728 return NULL;
13729}
13730
13731
13732SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13733 PyObject *resultobj = 0;
13734 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13735 long arg2 ;
13736 long arg3 ;
13737 wxString result;
13738 void *argp1 = 0 ;
13739 int res1 = 0 ;
13740 long val2 ;
13741 int ecode2 = 0 ;
13742 long val3 ;
13743 int ecode3 = 0 ;
13744 PyObject * obj0 = 0 ;
13745 PyObject * obj1 = 0 ;
13746 PyObject * obj2 = 0 ;
13747 char * kwnames[] = {
2131d850 13748 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
13749 };
13750
13751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13753 if (!SWIG_IsOK(res1)) {
13754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13755 }
13756 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13757 ecode2 = SWIG_AsVal_long(obj1, &val2);
13758 if (!SWIG_IsOK(ecode2)) {
13759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13760 }
13761 arg2 = static_cast< long >(val2);
13762 ecode3 = SWIG_AsVal_long(obj2, &val3);
13763 if (!SWIG_IsOK(ecode3)) {
13764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13765 }
13766 arg3 = static_cast< long >(val3);
13767 {
13768 PyThreadState* __tstate = wxPyBeginAllowThreads();
13769 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13770 wxPyEndAllowThreads(__tstate);
13771 if (PyErr_Occurred()) SWIG_fail;
13772 }
13773 {
13774#if wxUSE_UNICODE
13775 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13776#else
13777 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13778#endif
13779 }
13780 return resultobj;
13781fail:
13782 return NULL;
d55e5bfc
RD
13783}
13784
13785
1bd55598
RD
13786SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13787 PyObject *resultobj = 0;
13788 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13789 SwigValueWrapper<wxVisualAttributes > result;
13790 int val1 ;
13791 int ecode1 = 0 ;
13792 PyObject * obj0 = 0 ;
13793 char * kwnames[] = {
13794 (char *) "variant", NULL
13795 };
13796
13797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13798 if (obj0) {
13799 ecode1 = SWIG_AsVal_int(obj0, &val1);
13800 if (!SWIG_IsOK(ecode1)) {
13801 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13802 }
13803 arg1 = static_cast< wxWindowVariant >(val1);
13804 }
13805 {
13806 if (!wxPyCheckForApp()) SWIG_fail;
13807 PyThreadState* __tstate = wxPyBeginAllowThreads();
13808 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13809 wxPyEndAllowThreads(__tstate);
13810 if (PyErr_Occurred()) SWIG_fail;
13811 }
13812 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13813 return resultobj;
13814fail:
13815 return NULL;
13816}
13817
13818
13819SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13820 PyObject *obj;
13821 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13822 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13823 return SWIG_Py_Void();
13824}
13825
13826SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13827 return SWIG_Python_InitShadowInstance(args);
13828}
13829
13830SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13831 PyObject *resultobj = 0;
13832 int arg1 ;
13833 wxMouseEvent *arg2 = 0 ;
13834 long arg3 ;
13835 long arg4 ;
13836 wxTextUrlEvent *result = 0 ;
13837 int val1 ;
13838 int ecode1 = 0 ;
13839 void *argp2 = 0 ;
13840 int res2 = 0 ;
13841 long val3 ;
13842 int ecode3 = 0 ;
13843 long val4 ;
13844 int ecode4 = 0 ;
13845 PyObject * obj0 = 0 ;
13846 PyObject * obj1 = 0 ;
13847 PyObject * obj2 = 0 ;
13848 PyObject * obj3 = 0 ;
13849 char * kwnames[] = {
13850 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13851 };
13852
13853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13854 ecode1 = SWIG_AsVal_int(obj0, &val1);
13855 if (!SWIG_IsOK(ecode1)) {
13856 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13857 }
13858 arg1 = static_cast< int >(val1);
13859 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13860 if (!SWIG_IsOK(res2)) {
13861 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13862 }
13863 if (!argp2) {
13864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13865 }
13866 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13867 ecode3 = SWIG_AsVal_long(obj2, &val3);
13868 if (!SWIG_IsOK(ecode3)) {
13869 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13870 }
13871 arg3 = static_cast< long >(val3);
13872 ecode4 = SWIG_AsVal_long(obj3, &val4);
13873 if (!SWIG_IsOK(ecode4)) {
13874 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13875 }
13876 arg4 = static_cast< long >(val4);
13877 {
13878 PyThreadState* __tstate = wxPyBeginAllowThreads();
13879 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13880 wxPyEndAllowThreads(__tstate);
13881 if (PyErr_Occurred()) SWIG_fail;
13882 }
13883 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13884 return resultobj;
13885fail:
13886 return NULL;
d55e5bfc
RD
13887}
13888
13889
1bd55598
RD
13890SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13891 PyObject *resultobj = 0;
13892 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13893 wxMouseEvent *result = 0 ;
13894 void *argp1 = 0 ;
13895 int res1 = 0 ;
13896 PyObject *swig_obj[1] ;
13897
13898 if (!args) SWIG_fail;
13899 swig_obj[0] = args;
13900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13901 if (!SWIG_IsOK(res1)) {
13902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13903 }
13904 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13905 {
13906 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 13907 {
1bd55598
RD
13908 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13909 result = (wxMouseEvent *) &_result_ref;
d55e5bfc 13910 }
1bd55598
RD
13911 wxPyEndAllowThreads(__tstate);
13912 if (PyErr_Occurred()) SWIG_fail;
13913 }
13914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13915 return resultobj;
13916fail:
13917 return NULL;
d55e5bfc
RD
13918}
13919
13920
1bd55598
RD
13921SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13922 PyObject *resultobj = 0;
13923 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13924 long result;
13925 void *argp1 = 0 ;
13926 int res1 = 0 ;
13927 PyObject *swig_obj[1] ;
13928
13929 if (!args) SWIG_fail;
13930 swig_obj[0] = args;
13931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13932 if (!SWIG_IsOK(res1)) {
13933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13934 }
13935 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13936 {
13937 PyThreadState* __tstate = wxPyBeginAllowThreads();
13938 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13939 wxPyEndAllowThreads(__tstate);
13940 if (PyErr_Occurred()) SWIG_fail;
13941 }
13942 resultobj = SWIG_From_long(static_cast< long >(result));
13943 return resultobj;
13944fail:
13945 return NULL;
d55e5bfc
RD
13946}
13947
13948
1bd55598
RD
13949SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13950 PyObject *resultobj = 0;
13951 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13952 long result;
13953 void *argp1 = 0 ;
13954 int res1 = 0 ;
13955 PyObject *swig_obj[1] ;
13956
13957 if (!args) SWIG_fail;
13958 swig_obj[0] = args;
13959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13960 if (!SWIG_IsOK(res1)) {
13961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13962 }
13963 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13964 {
13965 PyThreadState* __tstate = wxPyBeginAllowThreads();
13966 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
13967 wxPyEndAllowThreads(__tstate);
13968 if (PyErr_Occurred()) SWIG_fail;
13969 }
13970 resultobj = SWIG_From_long(static_cast< long >(result));
13971 return resultobj;
13972fail:
13973 return NULL;
d55e5bfc
RD
13974}
13975
13976
1bd55598
RD
13977SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13978 PyObject *obj;
13979 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13980 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
13981 return SWIG_Py_Void();
68e533f8
RD
13982}
13983
1bd55598
RD
13984SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13985 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
13986}
13987
1bd55598
RD
13988SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
13989 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
13990 return 1;
d55e5bfc
RD
13991}
13992
13993
1bd55598
RD
13994SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
13995 PyObject *pyobj = 0;
13996
13997 {
13998#if wxUSE_UNICODE
13999 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14000#else
14001 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
14002#endif
14003 }
14004 return pyobj;
14005}
14006
14007
14008SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14009 PyObject *resultobj = 0;
14010 wxWindow *arg1 = (wxWindow *) 0 ;
14011 int arg2 = (int) -1 ;
14012 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14013 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14014 wxSize const &arg4_defvalue = wxDefaultSize ;
14015 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14016 long arg5 = (long) wxSB_HORIZONTAL ;
14017 wxValidator const &arg6_defvalue = wxDefaultValidator ;
14018 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
14019 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
14020 wxString *arg7 = (wxString *) &arg7_defvalue ;
14021 wxScrollBar *result = 0 ;
14022 void *argp1 = 0 ;
14023 int res1 = 0 ;
14024 int val2 ;
14025 int ecode2 = 0 ;
14026 wxPoint temp3 ;
14027 wxSize temp4 ;
14028 long val5 ;
14029 int ecode5 = 0 ;
14030 void *argp6 = 0 ;
14031 int res6 = 0 ;
14032 bool temp7 = false ;
14033 PyObject * obj0 = 0 ;
14034 PyObject * obj1 = 0 ;
14035 PyObject * obj2 = 0 ;
14036 PyObject * obj3 = 0 ;
14037 PyObject * obj4 = 0 ;
14038 PyObject * obj5 = 0 ;
14039 PyObject * obj6 = 0 ;
14040 char * kwnames[] = {
14041 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14042 };
14043
14044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14046 if (!SWIG_IsOK(res1)) {
14047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
14048 }
14049 arg1 = reinterpret_cast< wxWindow * >(argp1);
14050 if (obj1) {
14051 ecode2 = SWIG_AsVal_int(obj1, &val2);
14052 if (!SWIG_IsOK(ecode2)) {
14053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
14054 }
14055 arg2 = static_cast< int >(val2);
14056 }
14057 if (obj2) {
d55e5bfc 14058 {
1bd55598
RD
14059 arg3 = &temp3;
14060 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14061 }
1bd55598
RD
14062 }
14063 if (obj3) {
36ed4f51 14064 {
1bd55598
RD
14065 arg4 = &temp4;
14066 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14067 }
1bd55598
RD
14068 }
14069 if (obj4) {
14070 ecode5 = SWIG_AsVal_long(obj4, &val5);
14071 if (!SWIG_IsOK(ecode5)) {
14072 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14073 }
14074 arg5 = static_cast< long >(val5);
14075 }
14076 if (obj5) {
14077 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14078 if (!SWIG_IsOK(res6)) {
14079 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14080 }
1bd55598
RD
14081 if (!argp6) {
14082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 14083 }
1bd55598
RD
14084 arg6 = reinterpret_cast< wxValidator * >(argp6);
14085 }
14086 if (obj6) {
d55e5bfc 14087 {
1bd55598
RD
14088 arg7 = wxString_in_helper(obj6);
14089 if (arg7 == NULL) SWIG_fail;
14090 temp7 = true;
d55e5bfc 14091 }
1bd55598
RD
14092 }
14093 {
14094 if (!wxPyCheckForApp()) SWIG_fail;
14095 PyThreadState* __tstate = wxPyBeginAllowThreads();
14096 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14097 wxPyEndAllowThreads(__tstate);
14098 if (PyErr_Occurred()) SWIG_fail;
14099 }
14100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14101 {
14102 if (temp7)
14103 delete arg7;
14104 }
14105 return resultobj;
14106fail:
14107 {
14108 if (temp7)
14109 delete arg7;
14110 }
14111 return NULL;
d55e5bfc
RD
14112}
14113
14114
1bd55598
RD
14115SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14116 PyObject *resultobj = 0;
14117 wxScrollBar *result = 0 ;
14118
14119 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14120 {
14121 if (!wxPyCheckForApp()) SWIG_fail;
14122 PyThreadState* __tstate = wxPyBeginAllowThreads();
14123 result = (wxScrollBar *)new wxScrollBar();
14124 wxPyEndAllowThreads(__tstate);
14125 if (PyErr_Occurred()) SWIG_fail;
14126 }
14127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14128 return resultobj;
14129fail:
14130 return NULL;
14131}
14132
14133
14134SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14135 PyObject *resultobj = 0;
14136 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14137 wxWindow *arg2 = (wxWindow *) 0 ;
14138 int arg3 = (int) -1 ;
14139 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14140 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14141 wxSize const &arg5_defvalue = wxDefaultSize ;
14142 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14143 long arg6 = (long) wxSB_HORIZONTAL ;
14144 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14145 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14146 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14147 wxString *arg8 = (wxString *) &arg8_defvalue ;
14148 bool result;
14149 void *argp1 = 0 ;
14150 int res1 = 0 ;
14151 void *argp2 = 0 ;
14152 int res2 = 0 ;
14153 int val3 ;
14154 int ecode3 = 0 ;
14155 wxPoint temp4 ;
14156 wxSize temp5 ;
14157 long val6 ;
14158 int ecode6 = 0 ;
14159 void *argp7 = 0 ;
14160 int res7 = 0 ;
14161 bool temp8 = false ;
14162 PyObject * obj0 = 0 ;
14163 PyObject * obj1 = 0 ;
14164 PyObject * obj2 = 0 ;
14165 PyObject * obj3 = 0 ;
14166 PyObject * obj4 = 0 ;
14167 PyObject * obj5 = 0 ;
14168 PyObject * obj6 = 0 ;
14169 PyObject * obj7 = 0 ;
14170 char * kwnames[] = {
14171 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14172 };
14173
14174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14176 if (!SWIG_IsOK(res1)) {
14177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14178 }
14179 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14180 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14181 if (!SWIG_IsOK(res2)) {
14182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14183 }
14184 arg2 = reinterpret_cast< wxWindow * >(argp2);
14185 if (obj2) {
14186 ecode3 = SWIG_AsVal_int(obj2, &val3);
14187 if (!SWIG_IsOK(ecode3)) {
14188 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14189 }
14190 arg3 = static_cast< int >(val3);
14191 }
14192 if (obj3) {
d55e5bfc 14193 {
1bd55598
RD
14194 arg4 = &temp4;
14195 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14196 }
1bd55598
RD
14197 }
14198 if (obj4) {
d55e5bfc 14199 {
1bd55598
RD
14200 arg5 = &temp5;
14201 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14202 }
1bd55598
RD
14203 }
14204 if (obj5) {
14205 ecode6 = SWIG_AsVal_long(obj5, &val6);
14206 if (!SWIG_IsOK(ecode6)) {
14207 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14208 }
14209 arg6 = static_cast< long >(val6);
14210 }
14211 if (obj6) {
14212 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14213 if (!SWIG_IsOK(res7)) {
14214 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14215 }
1bd55598
RD
14216 if (!argp7) {
14217 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 14218 }
1bd55598
RD
14219 arg7 = reinterpret_cast< wxValidator * >(argp7);
14220 }
14221 if (obj7) {
d55e5bfc 14222 {
1bd55598
RD
14223 arg8 = wxString_in_helper(obj7);
14224 if (arg8 == NULL) SWIG_fail;
14225 temp8 = true;
d55e5bfc 14226 }
1bd55598
RD
14227 }
14228 {
14229 PyThreadState* __tstate = wxPyBeginAllowThreads();
14230 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14231 wxPyEndAllowThreads(__tstate);
14232 if (PyErr_Occurred()) SWIG_fail;
14233 }
14234 {
14235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14236 }
14237 {
14238 if (temp8)
14239 delete arg8;
14240 }
14241 return resultobj;
14242fail:
14243 {
14244 if (temp8)
14245 delete arg8;
14246 }
14247 return NULL;
d55e5bfc
RD
14248}
14249
14250
1bd55598
RD
14251SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14252 PyObject *resultobj = 0;
14253 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14254 int result;
14255 void *argp1 = 0 ;
14256 int res1 = 0 ;
14257 PyObject *swig_obj[1] ;
14258
14259 if (!args) SWIG_fail;
14260 swig_obj[0] = args;
14261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14262 if (!SWIG_IsOK(res1)) {
14263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14264 }
14265 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14266 {
14267 PyThreadState* __tstate = wxPyBeginAllowThreads();
14268 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14269 wxPyEndAllowThreads(__tstate);
14270 if (PyErr_Occurred()) SWIG_fail;
14271 }
14272 resultobj = SWIG_From_int(static_cast< int >(result));
14273 return resultobj;
14274fail:
14275 return NULL;
d55e5bfc
RD
14276}
14277
14278
1bd55598
RD
14279SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14280 PyObject *resultobj = 0;
14281 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14282 int result;
14283 void *argp1 = 0 ;
14284 int res1 = 0 ;
14285 PyObject *swig_obj[1] ;
14286
14287 if (!args) SWIG_fail;
14288 swig_obj[0] = args;
14289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14290 if (!SWIG_IsOK(res1)) {
14291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14292 }
14293 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14294 {
14295 PyThreadState* __tstate = wxPyBeginAllowThreads();
14296 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14297 wxPyEndAllowThreads(__tstate);
14298 if (PyErr_Occurred()) SWIG_fail;
14299 }
14300 resultobj = SWIG_From_int(static_cast< int >(result));
14301 return resultobj;
14302fail:
14303 return NULL;
d55e5bfc
RD
14304}
14305
14306
1bd55598
RD
14307SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14308 PyObject *resultobj = 0;
14309 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14310 int result;
14311 void *argp1 = 0 ;
14312 int res1 = 0 ;
14313 PyObject *swig_obj[1] ;
14314
14315 if (!args) SWIG_fail;
14316 swig_obj[0] = args;
14317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14318 if (!SWIG_IsOK(res1)) {
14319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14320 }
14321 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14322 {
14323 PyThreadState* __tstate = wxPyBeginAllowThreads();
14324 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14325 wxPyEndAllowThreads(__tstate);
14326 if (PyErr_Occurred()) SWIG_fail;
14327 }
14328 resultobj = SWIG_From_int(static_cast< int >(result));
14329 return resultobj;
14330fail:
14331 return NULL;
d55e5bfc
RD
14332}
14333
14334
1bd55598
RD
14335SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14336 PyObject *resultobj = 0;
14337 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14338 int result;
14339 void *argp1 = 0 ;
14340 int res1 = 0 ;
14341 PyObject *swig_obj[1] ;
14342
14343 if (!args) SWIG_fail;
14344 swig_obj[0] = args;
14345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14346 if (!SWIG_IsOK(res1)) {
14347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14348 }
14349 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14350 {
14351 PyThreadState* __tstate = wxPyBeginAllowThreads();
14352 result = (int)((wxScrollBar const *)arg1)->GetRange();
14353 wxPyEndAllowThreads(__tstate);
14354 if (PyErr_Occurred()) SWIG_fail;
14355 }
14356 resultobj = SWIG_From_int(static_cast< int >(result));
14357 return resultobj;
14358fail:
14359 return NULL;
d55e5bfc
RD
14360}
14361
14362
1bd55598
RD
14363SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14364 PyObject *resultobj = 0;
14365 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14366 bool result;
14367 void *argp1 = 0 ;
14368 int res1 = 0 ;
14369 PyObject *swig_obj[1] ;
14370
14371 if (!args) SWIG_fail;
14372 swig_obj[0] = args;
14373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14374 if (!SWIG_IsOK(res1)) {
14375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14376 }
14377 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14378 {
14379 PyThreadState* __tstate = wxPyBeginAllowThreads();
14380 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14381 wxPyEndAllowThreads(__tstate);
14382 if (PyErr_Occurred()) SWIG_fail;
14383 }
14384 {
14385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14386 }
14387 return resultobj;
14388fail:
14389 return NULL;
14390}
14391
14392
14393SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14394 PyObject *resultobj = 0;
14395 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14396 int arg2 ;
14397 void *argp1 = 0 ;
14398 int res1 = 0 ;
14399 int val2 ;
14400 int ecode2 = 0 ;
14401 PyObject * obj0 = 0 ;
14402 PyObject * obj1 = 0 ;
14403 char * kwnames[] = {
14404 (char *) "self",(char *) "viewStart", NULL
14405 };
14406
14407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14409 if (!SWIG_IsOK(res1)) {
14410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14411 }
14412 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14413 ecode2 = SWIG_AsVal_int(obj1, &val2);
14414 if (!SWIG_IsOK(ecode2)) {
14415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14416 }
14417 arg2 = static_cast< int >(val2);
14418 {
14419 PyThreadState* __tstate = wxPyBeginAllowThreads();
14420 (arg1)->SetThumbPosition(arg2);
14421 wxPyEndAllowThreads(__tstate);
14422 if (PyErr_Occurred()) SWIG_fail;
14423 }
14424 resultobj = SWIG_Py_Void();
14425 return resultobj;
14426fail:
14427 return NULL;
14428}
14429
14430
14431SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14432 PyObject *resultobj = 0;
14433 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14434 SwigValueWrapper<wxVisualAttributes > result;
14435 int val1 ;
14436 int ecode1 = 0 ;
14437 PyObject * obj0 = 0 ;
14438 char * kwnames[] = {
14439 (char *) "variant", NULL
14440 };
14441
14442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14443 if (obj0) {
14444 ecode1 = SWIG_AsVal_int(obj0, &val1);
14445 if (!SWIG_IsOK(ecode1)) {
14446 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14447 }
14448 arg1 = static_cast< wxWindowVariant >(val1);
14449 }
14450 {
14451 if (!wxPyCheckForApp()) SWIG_fail;
14452 PyThreadState* __tstate = wxPyBeginAllowThreads();
14453 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14454 wxPyEndAllowThreads(__tstate);
14455 if (PyErr_Occurred()) SWIG_fail;
14456 }
14457 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14458 return resultobj;
14459fail:
14460 return NULL;
d55e5bfc
RD
14461}
14462
14463
1bd55598
RD
14464SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14465 PyObject *obj;
14466 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14467 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14468 return SWIG_Py_Void();
d55e5bfc
RD
14469}
14470
1bd55598
RD
14471SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14472 return SWIG_Python_InitShadowInstance(args);
14473}
d55e5bfc 14474
1bd55598
RD
14475SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14476 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14477 return 1;
14478}
14479
14480
14481SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14482 PyObject *pyobj = 0;
14483
14484 {
d55e5bfc 14485#if wxUSE_UNICODE
1bd55598 14486 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14487#else
1bd55598 14488 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
d55e5bfc 14489#endif
1bd55598
RD
14490 }
14491 return pyobj;
d55e5bfc
RD
14492}
14493
14494
1bd55598
RD
14495SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14496 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14497 return 1;
d55e5bfc
RD
14498}
14499
14500
1bd55598
RD
14501SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14502 PyObject *pyobj = 0;
14503
14504 {
14505#if wxUSE_UNICODE
14506 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14507#else
14508 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14509#endif
14510 }
14511 return pyobj;
14512}
14513
14514
14515SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14516 PyObject *resultobj = 0;
14517 wxWindow *arg1 = (wxWindow *) 0 ;
14518 int arg2 = (int) -1 ;
14519 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14520 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14521 wxSize const &arg4_defvalue = wxDefaultSize ;
14522 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14523 long arg5 = (long) wxSP_HORIZONTAL ;
14524 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14525 wxString *arg6 = (wxString *) &arg6_defvalue ;
14526 wxSpinButton *result = 0 ;
14527 void *argp1 = 0 ;
14528 int res1 = 0 ;
14529 int val2 ;
14530 int ecode2 = 0 ;
14531 wxPoint temp3 ;
14532 wxSize temp4 ;
14533 long val5 ;
14534 int ecode5 = 0 ;
14535 bool temp6 = false ;
14536 PyObject * obj0 = 0 ;
14537 PyObject * obj1 = 0 ;
14538 PyObject * obj2 = 0 ;
14539 PyObject * obj3 = 0 ;
14540 PyObject * obj4 = 0 ;
14541 PyObject * obj5 = 0 ;
14542 char * kwnames[] = {
14543 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14544 };
14545
14546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14548 if (!SWIG_IsOK(res1)) {
14549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14550 }
14551 arg1 = reinterpret_cast< wxWindow * >(argp1);
14552 if (obj1) {
14553 ecode2 = SWIG_AsVal_int(obj1, &val2);
14554 if (!SWIG_IsOK(ecode2)) {
14555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14556 }
14557 arg2 = static_cast< int >(val2);
14558 }
14559 if (obj2) {
d55e5bfc 14560 {
1bd55598
RD
14561 arg3 = &temp3;
14562 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 14563 }
1bd55598
RD
14564 }
14565 if (obj3) {
d55e5bfc 14566 {
1bd55598
RD
14567 arg4 = &temp4;
14568 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14569 }
1bd55598
RD
14570 }
14571 if (obj4) {
14572 ecode5 = SWIG_AsVal_long(obj4, &val5);
14573 if (!SWIG_IsOK(ecode5)) {
14574 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14575 }
14576 arg5 = static_cast< long >(val5);
14577 }
14578 if (obj5) {
d55e5bfc 14579 {
1bd55598
RD
14580 arg6 = wxString_in_helper(obj5);
14581 if (arg6 == NULL) SWIG_fail;
14582 temp6 = true;
d55e5bfc 14583 }
1bd55598
RD
14584 }
14585 {
14586 if (!wxPyCheckForApp()) SWIG_fail;
14587 PyThreadState* __tstate = wxPyBeginAllowThreads();
14588 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14589 wxPyEndAllowThreads(__tstate);
14590 if (PyErr_Occurred()) SWIG_fail;
14591 }
14592 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14593 {
14594 if (temp6)
14595 delete arg6;
14596 }
14597 return resultobj;
14598fail:
14599 {
14600 if (temp6)
14601 delete arg6;
14602 }
14603 return NULL;
d55e5bfc
RD
14604}
14605
14606
1bd55598
RD
14607SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14608 PyObject *resultobj = 0;
14609 wxSpinButton *result = 0 ;
14610
14611 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14612 {
14613 if (!wxPyCheckForApp()) SWIG_fail;
14614 PyThreadState* __tstate = wxPyBeginAllowThreads();
14615 result = (wxSpinButton *)new wxSpinButton();
14616 wxPyEndAllowThreads(__tstate);
14617 if (PyErr_Occurred()) SWIG_fail;
14618 }
14619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14620 return resultobj;
14621fail:
14622 return NULL;
14623}
14624
14625
14626SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14627 PyObject *resultobj = 0;
14628 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14629 wxWindow *arg2 = (wxWindow *) 0 ;
14630 int arg3 = (int) -1 ;
14631 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14632 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14633 wxSize const &arg5_defvalue = wxDefaultSize ;
14634 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14635 long arg6 = (long) wxSP_HORIZONTAL ;
14636 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14637 wxString *arg7 = (wxString *) &arg7_defvalue ;
14638 bool result;
14639 void *argp1 = 0 ;
14640 int res1 = 0 ;
14641 void *argp2 = 0 ;
14642 int res2 = 0 ;
14643 int val3 ;
14644 int ecode3 = 0 ;
14645 wxPoint temp4 ;
14646 wxSize temp5 ;
14647 long val6 ;
14648 int ecode6 = 0 ;
14649 bool temp7 = false ;
14650 PyObject * obj0 = 0 ;
14651 PyObject * obj1 = 0 ;
14652 PyObject * obj2 = 0 ;
14653 PyObject * obj3 = 0 ;
14654 PyObject * obj4 = 0 ;
14655 PyObject * obj5 = 0 ;
14656 PyObject * obj6 = 0 ;
14657 char * kwnames[] = {
14658 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14659 };
14660
14661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14663 if (!SWIG_IsOK(res1)) {
14664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14665 }
14666 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14667 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14668 if (!SWIG_IsOK(res2)) {
14669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14670 }
14671 arg2 = reinterpret_cast< wxWindow * >(argp2);
14672 if (obj2) {
14673 ecode3 = SWIG_AsVal_int(obj2, &val3);
14674 if (!SWIG_IsOK(ecode3)) {
14675 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14676 }
14677 arg3 = static_cast< int >(val3);
14678 }
14679 if (obj3) {
d55e5bfc 14680 {
1bd55598
RD
14681 arg4 = &temp4;
14682 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 14683 }
1bd55598
RD
14684 }
14685 if (obj4) {
d55e5bfc 14686 {
1bd55598
RD
14687 arg5 = &temp5;
14688 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 14689 }
1bd55598
RD
14690 }
14691 if (obj5) {
14692 ecode6 = SWIG_AsVal_long(obj5, &val6);
14693 if (!SWIG_IsOK(ecode6)) {
14694 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14695 }
14696 arg6 = static_cast< long >(val6);
14697 }
14698 if (obj6) {
14699 {
14700 arg7 = wxString_in_helper(obj6);
14701 if (arg7 == NULL) SWIG_fail;
14702 temp7 = true;
14703 }
14704 }
14705 {
14706 PyThreadState* __tstate = wxPyBeginAllowThreads();
14707 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14708 wxPyEndAllowThreads(__tstate);
14709 if (PyErr_Occurred()) SWIG_fail;
14710 }
14711 {
14712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14713 }
14714 {
14715 if (temp7)
14716 delete arg7;
14717 }
14718 return resultobj;
14719fail:
14720 {
14721 if (temp7)
14722 delete arg7;
14723 }
14724 return NULL;
d55e5bfc
RD
14725}
14726
14727
1bd55598
RD
14728SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14729 PyObject *resultobj = 0;
14730 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14731 int result;
14732 void *argp1 = 0 ;
14733 int res1 = 0 ;
14734 PyObject *swig_obj[1] ;
14735
14736 if (!args) SWIG_fail;
14737 swig_obj[0] = args;
14738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14739 if (!SWIG_IsOK(res1)) {
14740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14741 }
14742 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14743 {
14744 PyThreadState* __tstate = wxPyBeginAllowThreads();
14745 result = (int)((wxSpinButton const *)arg1)->GetValue();
14746 wxPyEndAllowThreads(__tstate);
14747 if (PyErr_Occurred()) SWIG_fail;
14748 }
14749 resultobj = SWIG_From_int(static_cast< int >(result));
14750 return resultobj;
14751fail:
14752 return NULL;
d55e5bfc
RD
14753}
14754
14755
1bd55598
RD
14756SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14757 PyObject *resultobj = 0;
14758 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14759 int result;
14760 void *argp1 = 0 ;
14761 int res1 = 0 ;
14762 PyObject *swig_obj[1] ;
14763
14764 if (!args) SWIG_fail;
14765 swig_obj[0] = args;
14766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14767 if (!SWIG_IsOK(res1)) {
14768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14769 }
14770 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14771 {
14772 PyThreadState* __tstate = wxPyBeginAllowThreads();
14773 result = (int)((wxSpinButton const *)arg1)->GetMin();
14774 wxPyEndAllowThreads(__tstate);
14775 if (PyErr_Occurred()) SWIG_fail;
14776 }
14777 resultobj = SWIG_From_int(static_cast< int >(result));
14778 return resultobj;
14779fail:
14780 return NULL;
d55e5bfc
RD
14781}
14782
14783
1bd55598
RD
14784SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14785 PyObject *resultobj = 0;
14786 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14787 int result;
14788 void *argp1 = 0 ;
14789 int res1 = 0 ;
14790 PyObject *swig_obj[1] ;
14791
14792 if (!args) SWIG_fail;
14793 swig_obj[0] = args;
14794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14795 if (!SWIG_IsOK(res1)) {
14796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14797 }
14798 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14799 {
14800 PyThreadState* __tstate = wxPyBeginAllowThreads();
14801 result = (int)((wxSpinButton const *)arg1)->GetMax();
14802 wxPyEndAllowThreads(__tstate);
14803 if (PyErr_Occurred()) SWIG_fail;
14804 }
14805 resultobj = SWIG_From_int(static_cast< int >(result));
14806 return resultobj;
14807fail:
14808 return NULL;
14809}
14810
14811
14812SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14813 PyObject *resultobj = 0;
14814 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14815 int arg2 ;
14816 void *argp1 = 0 ;
14817 int res1 = 0 ;
14818 int val2 ;
14819 int ecode2 = 0 ;
14820 PyObject * obj0 = 0 ;
14821 PyObject * obj1 = 0 ;
14822 char * kwnames[] = {
14823 (char *) "self",(char *) "val", NULL
14824 };
14825
14826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14828 if (!SWIG_IsOK(res1)) {
14829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14830 }
14831 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14832 ecode2 = SWIG_AsVal_int(obj1, &val2);
14833 if (!SWIG_IsOK(ecode2)) {
14834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14835 }
14836 arg2 = static_cast< int >(val2);
14837 {
14838 PyThreadState* __tstate = wxPyBeginAllowThreads();
14839 (arg1)->SetValue(arg2);
14840 wxPyEndAllowThreads(__tstate);
14841 if (PyErr_Occurred()) SWIG_fail;
14842 }
14843 resultobj = SWIG_Py_Void();
14844 return resultobj;
14845fail:
14846 return NULL;
14847}
14848
14849
14850SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14851 PyObject *resultobj = 0;
14852 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14853 int arg2 ;
14854 void *argp1 = 0 ;
14855 int res1 = 0 ;
14856 int val2 ;
14857 int ecode2 = 0 ;
14858 PyObject * obj0 = 0 ;
14859 PyObject * obj1 = 0 ;
14860 char * kwnames[] = {
14861 (char *) "self",(char *) "minVal", NULL
14862 };
14863
14864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14866 if (!SWIG_IsOK(res1)) {
14867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14868 }
14869 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14870 ecode2 = SWIG_AsVal_int(obj1, &val2);
14871 if (!SWIG_IsOK(ecode2)) {
14872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14873 }
14874 arg2 = static_cast< int >(val2);
14875 {
14876 PyThreadState* __tstate = wxPyBeginAllowThreads();
14877 (arg1)->SetMin(arg2);
14878 wxPyEndAllowThreads(__tstate);
14879 if (PyErr_Occurred()) SWIG_fail;
14880 }
14881 resultobj = SWIG_Py_Void();
14882 return resultobj;
14883fail:
14884 return NULL;
14885}
14886
14887
14888SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14889 PyObject *resultobj = 0;
14890 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14891 int arg2 ;
14892 void *argp1 = 0 ;
14893 int res1 = 0 ;
14894 int val2 ;
14895 int ecode2 = 0 ;
14896 PyObject * obj0 = 0 ;
14897 PyObject * obj1 = 0 ;
14898 char * kwnames[] = {
14899 (char *) "self",(char *) "maxVal", NULL
14900 };
14901
14902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14904 if (!SWIG_IsOK(res1)) {
14905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14906 }
14907 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14908 ecode2 = SWIG_AsVal_int(obj1, &val2);
14909 if (!SWIG_IsOK(ecode2)) {
14910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14911 }
14912 arg2 = static_cast< int >(val2);
14913 {
14914 PyThreadState* __tstate = wxPyBeginAllowThreads();
14915 (arg1)->SetMax(arg2);
14916 wxPyEndAllowThreads(__tstate);
14917 if (PyErr_Occurred()) SWIG_fail;
14918 }
14919 resultobj = SWIG_Py_Void();
14920 return resultobj;
14921fail:
14922 return NULL;
14923}
14924
14925
14926SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14927 PyObject *resultobj = 0;
14928 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14929 int arg2 ;
14930 int arg3 ;
14931 void *argp1 = 0 ;
14932 int res1 = 0 ;
14933 int val2 ;
14934 int ecode2 = 0 ;
14935 int val3 ;
14936 int ecode3 = 0 ;
14937 PyObject * obj0 = 0 ;
14938 PyObject * obj1 = 0 ;
14939 PyObject * obj2 = 0 ;
14940 char * kwnames[] = {
14941 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14942 };
14943
14944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14946 if (!SWIG_IsOK(res1)) {
14947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14948 }
14949 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14950 ecode2 = SWIG_AsVal_int(obj1, &val2);
14951 if (!SWIG_IsOK(ecode2)) {
14952 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14953 }
14954 arg2 = static_cast< int >(val2);
14955 ecode3 = SWIG_AsVal_int(obj2, &val3);
14956 if (!SWIG_IsOK(ecode3)) {
14957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14958 }
14959 arg3 = static_cast< int >(val3);
14960 {
14961 PyThreadState* __tstate = wxPyBeginAllowThreads();
14962 (arg1)->SetRange(arg2,arg3);
14963 wxPyEndAllowThreads(__tstate);
14964 if (PyErr_Occurred()) SWIG_fail;
14965 }
14966 resultobj = SWIG_Py_Void();
14967 return resultobj;
14968fail:
14969 return NULL;
d55e5bfc
RD
14970}
14971
14972
1bd55598
RD
14973SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14974 PyObject *resultobj = 0;
14975 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14976 bool result;
14977 void *argp1 = 0 ;
14978 int res1 = 0 ;
14979 PyObject *swig_obj[1] ;
14980
14981 if (!args) SWIG_fail;
14982 swig_obj[0] = args;
14983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14984 if (!SWIG_IsOK(res1)) {
14985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14986 }
14987 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14988 {
14989 PyThreadState* __tstate = wxPyBeginAllowThreads();
14990 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
14991 wxPyEndAllowThreads(__tstate);
14992 if (PyErr_Occurred()) SWIG_fail;
14993 }
14994 {
14995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14996 }
14997 return resultobj;
14998fail:
14999 return NULL;
d55e5bfc
RD
15000}
15001
15002
1bd55598
RD
15003SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15004 PyObject *resultobj = 0;
15005 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15006 SwigValueWrapper<wxVisualAttributes > result;
15007 int val1 ;
15008 int ecode1 = 0 ;
15009 PyObject * obj0 = 0 ;
15010 char * kwnames[] = {
15011 (char *) "variant", NULL
15012 };
15013
15014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15015 if (obj0) {
15016 ecode1 = SWIG_AsVal_int(obj0, &val1);
15017 if (!SWIG_IsOK(ecode1)) {
15018 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15019 }
15020 arg1 = static_cast< wxWindowVariant >(val1);
15021 }
15022 {
15023 if (!wxPyCheckForApp()) SWIG_fail;
15024 PyThreadState* __tstate = wxPyBeginAllowThreads();
15025 result = wxSpinButton::GetClassDefaultAttributes(arg1);
15026 wxPyEndAllowThreads(__tstate);
15027 if (PyErr_Occurred()) SWIG_fail;
15028 }
15029 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15030 return resultobj;
15031fail:
15032 return NULL;
15033}
15034
15035
15036SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15037 PyObject *obj;
15038 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15039 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
15040 return SWIG_Py_Void();
15041}
15042
15043SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15044 return SWIG_Python_InitShadowInstance(args);
15045}
15046
15047SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15048 PyObject *resultobj = 0;
15049 wxWindow *arg1 = (wxWindow *) 0 ;
15050 int arg2 = (int) -1 ;
15051 wxString const &arg3_defvalue = wxPyEmptyString ;
15052 wxString *arg3 = (wxString *) &arg3_defvalue ;
15053 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15054 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15055 wxSize const &arg5_defvalue = wxDefaultSize ;
15056 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15057 long arg6 = (long) wxSP_ARROW_KEYS ;
15058 int arg7 = (int) 0 ;
15059 int arg8 = (int) 100 ;
15060 int arg9 = (int) 0 ;
15061 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15062 wxString *arg10 = (wxString *) &arg10_defvalue ;
15063 wxSpinCtrl *result = 0 ;
15064 void *argp1 = 0 ;
15065 int res1 = 0 ;
15066 int val2 ;
15067 int ecode2 = 0 ;
15068 bool temp3 = false ;
15069 wxPoint temp4 ;
15070 wxSize temp5 ;
15071 long val6 ;
15072 int ecode6 = 0 ;
15073 int val7 ;
15074 int ecode7 = 0 ;
15075 int val8 ;
15076 int ecode8 = 0 ;
15077 int val9 ;
15078 int ecode9 = 0 ;
15079 bool temp10 = false ;
15080 PyObject * obj0 = 0 ;
15081 PyObject * obj1 = 0 ;
15082 PyObject * obj2 = 0 ;
15083 PyObject * obj3 = 0 ;
15084 PyObject * obj4 = 0 ;
15085 PyObject * obj5 = 0 ;
15086 PyObject * obj6 = 0 ;
15087 PyObject * obj7 = 0 ;
15088 PyObject * obj8 = 0 ;
15089 PyObject * obj9 = 0 ;
15090 char * kwnames[] = {
15091 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15092 };
15093
15094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15096 if (!SWIG_IsOK(res1)) {
15097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15098 }
15099 arg1 = reinterpret_cast< wxWindow * >(argp1);
15100 if (obj1) {
15101 ecode2 = SWIG_AsVal_int(obj1, &val2);
15102 if (!SWIG_IsOK(ecode2)) {
15103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15104 }
15105 arg2 = static_cast< int >(val2);
15106 }
15107 if (obj2) {
d55e5bfc 15108 {
1bd55598
RD
15109 arg3 = wxString_in_helper(obj2);
15110 if (arg3 == NULL) SWIG_fail;
15111 temp3 = true;
d55e5bfc 15112 }
1bd55598
RD
15113 }
15114 if (obj3) {
d55e5bfc 15115 {
1bd55598
RD
15116 arg4 = &temp4;
15117 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15118 }
1bd55598
RD
15119 }
15120 if (obj4) {
d55e5bfc 15121 {
1bd55598
RD
15122 arg5 = &temp5;
15123 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15124 }
1bd55598
RD
15125 }
15126 if (obj5) {
15127 ecode6 = SWIG_AsVal_long(obj5, &val6);
15128 if (!SWIG_IsOK(ecode6)) {
15129 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15130 }
15131 arg6 = static_cast< long >(val6);
15132 }
15133 if (obj6) {
15134 ecode7 = SWIG_AsVal_int(obj6, &val7);
15135 if (!SWIG_IsOK(ecode7)) {
15136 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15137 }
15138 arg7 = static_cast< int >(val7);
15139 }
15140 if (obj7) {
15141 ecode8 = SWIG_AsVal_int(obj7, &val8);
15142 if (!SWIG_IsOK(ecode8)) {
15143 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15144 }
15145 arg8 = static_cast< int >(val8);
15146 }
15147 if (obj8) {
15148 ecode9 = SWIG_AsVal_int(obj8, &val9);
15149 if (!SWIG_IsOK(ecode9)) {
15150 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15151 }
15152 arg9 = static_cast< int >(val9);
15153 }
15154 if (obj9) {
d55e5bfc 15155 {
1bd55598
RD
15156 arg10 = wxString_in_helper(obj9);
15157 if (arg10 == NULL) SWIG_fail;
15158 temp10 = true;
d55e5bfc 15159 }
1bd55598
RD
15160 }
15161 {
15162 if (!wxPyCheckForApp()) SWIG_fail;
15163 PyThreadState* __tstate = wxPyBeginAllowThreads();
15164 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15165 wxPyEndAllowThreads(__tstate);
15166 if (PyErr_Occurred()) SWIG_fail;
15167 }
15168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15169 {
15170 if (temp3)
15171 delete arg3;
15172 }
15173 {
15174 if (temp10)
15175 delete arg10;
15176 }
15177 return resultobj;
15178fail:
15179 {
15180 if (temp3)
15181 delete arg3;
15182 }
15183 {
15184 if (temp10)
15185 delete arg10;
15186 }
15187 return NULL;
d55e5bfc
RD
15188}
15189
15190
1bd55598
RD
15191SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15192 PyObject *resultobj = 0;
15193 wxSpinCtrl *result = 0 ;
15194
15195 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15196 {
15197 if (!wxPyCheckForApp()) SWIG_fail;
15198 PyThreadState* __tstate = wxPyBeginAllowThreads();
15199 result = (wxSpinCtrl *)new wxSpinCtrl();
15200 wxPyEndAllowThreads(__tstate);
15201 if (PyErr_Occurred()) SWIG_fail;
15202 }
15203 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15204 return resultobj;
15205fail:
15206 return NULL;
15207}
15208
15209
15210SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15211 PyObject *resultobj = 0;
15212 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15213 wxWindow *arg2 = (wxWindow *) 0 ;
15214 int arg3 = (int) -1 ;
15215 wxString const &arg4_defvalue = wxPyEmptyString ;
15216 wxString *arg4 = (wxString *) &arg4_defvalue ;
15217 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15218 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15219 wxSize const &arg6_defvalue = wxDefaultSize ;
15220 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15221 long arg7 = (long) wxSP_ARROW_KEYS ;
15222 int arg8 = (int) 0 ;
15223 int arg9 = (int) 100 ;
15224 int arg10 = (int) 0 ;
15225 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15226 wxString *arg11 = (wxString *) &arg11_defvalue ;
15227 bool result;
15228 void *argp1 = 0 ;
15229 int res1 = 0 ;
15230 void *argp2 = 0 ;
15231 int res2 = 0 ;
15232 int val3 ;
15233 int ecode3 = 0 ;
15234 bool temp4 = false ;
15235 wxPoint temp5 ;
15236 wxSize temp6 ;
15237 long val7 ;
15238 int ecode7 = 0 ;
15239 int val8 ;
15240 int ecode8 = 0 ;
15241 int val9 ;
15242 int ecode9 = 0 ;
15243 int val10 ;
15244 int ecode10 = 0 ;
15245 bool temp11 = false ;
15246 PyObject * obj0 = 0 ;
15247 PyObject * obj1 = 0 ;
15248 PyObject * obj2 = 0 ;
15249 PyObject * obj3 = 0 ;
15250 PyObject * obj4 = 0 ;
15251 PyObject * obj5 = 0 ;
15252 PyObject * obj6 = 0 ;
15253 PyObject * obj7 = 0 ;
15254 PyObject * obj8 = 0 ;
15255 PyObject * obj9 = 0 ;
15256 PyObject * obj10 = 0 ;
15257 char * kwnames[] = {
15258 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15259 };
15260
15261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15263 if (!SWIG_IsOK(res1)) {
15264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15265 }
15266 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15267 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15268 if (!SWIG_IsOK(res2)) {
15269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15270 }
15271 arg2 = reinterpret_cast< wxWindow * >(argp2);
15272 if (obj2) {
15273 ecode3 = SWIG_AsVal_int(obj2, &val3);
15274 if (!SWIG_IsOK(ecode3)) {
15275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15276 }
15277 arg3 = static_cast< int >(val3);
15278 }
15279 if (obj3) {
36ed4f51 15280 {
1bd55598
RD
15281 arg4 = wxString_in_helper(obj3);
15282 if (arg4 == NULL) SWIG_fail;
15283 temp4 = true;
36ed4f51 15284 }
1bd55598
RD
15285 }
15286 if (obj4) {
36ed4f51 15287 {
1bd55598
RD
15288 arg5 = &temp5;
15289 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 15290 }
1bd55598
RD
15291 }
15292 if (obj5) {
d55e5bfc 15293 {
1bd55598
RD
15294 arg6 = &temp6;
15295 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 15296 }
1bd55598
RD
15297 }
15298 if (obj6) {
15299 ecode7 = SWIG_AsVal_long(obj6, &val7);
15300 if (!SWIG_IsOK(ecode7)) {
15301 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15302 }
15303 arg7 = static_cast< long >(val7);
15304 }
15305 if (obj7) {
15306 ecode8 = SWIG_AsVal_int(obj7, &val8);
15307 if (!SWIG_IsOK(ecode8)) {
15308 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15309 }
15310 arg8 = static_cast< int >(val8);
15311 }
15312 if (obj8) {
15313 ecode9 = SWIG_AsVal_int(obj8, &val9);
15314 if (!SWIG_IsOK(ecode9)) {
15315 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15316 }
15317 arg9 = static_cast< int >(val9);
15318 }
15319 if (obj9) {
15320 ecode10 = SWIG_AsVal_int(obj9, &val10);
15321 if (!SWIG_IsOK(ecode10)) {
15322 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15323 }
15324 arg10 = static_cast< int >(val10);
15325 }
15326 if (obj10) {
15327 {
15328 arg11 = wxString_in_helper(obj10);
15329 if (arg11 == NULL) SWIG_fail;
15330 temp11 = true;
15331 }
15332 }
15333 {
15334 PyThreadState* __tstate = wxPyBeginAllowThreads();
15335 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15336 wxPyEndAllowThreads(__tstate);
15337 if (PyErr_Occurred()) SWIG_fail;
15338 }
15339 {
15340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15341 }
15342 {
15343 if (temp4)
15344 delete arg4;
15345 }
15346 {
15347 if (temp11)
15348 delete arg11;
15349 }
15350 return resultobj;
15351fail:
15352 {
15353 if (temp4)
15354 delete arg4;
15355 }
15356 {
15357 if (temp11)
15358 delete arg11;
15359 }
15360 return NULL;
d55e5bfc
RD
15361}
15362
15363
1bd55598
RD
15364SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15365 PyObject *resultobj = 0;
15366 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15367 int result;
15368 void *argp1 = 0 ;
15369 int res1 = 0 ;
15370 PyObject *swig_obj[1] ;
15371
15372 if (!args) SWIG_fail;
15373 swig_obj[0] = args;
15374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15375 if (!SWIG_IsOK(res1)) {
15376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15377 }
15378 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15379 {
15380 PyThreadState* __tstate = wxPyBeginAllowThreads();
15381 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15382 wxPyEndAllowThreads(__tstate);
15383 if (PyErr_Occurred()) SWIG_fail;
15384 }
15385 resultobj = SWIG_From_int(static_cast< int >(result));
15386 return resultobj;
15387fail:
15388 return NULL;
15389}
15390
15391
15392SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15393 PyObject *resultobj = 0;
15394 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15395 int arg2 ;
15396 void *argp1 = 0 ;
15397 int res1 = 0 ;
15398 int val2 ;
15399 int ecode2 = 0 ;
15400 PyObject * obj0 = 0 ;
15401 PyObject * obj1 = 0 ;
15402 char * kwnames[] = {
15403 (char *) "self",(char *) "value", NULL
15404 };
15405
15406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15408 if (!SWIG_IsOK(res1)) {
15409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15410 }
15411 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15412 ecode2 = SWIG_AsVal_int(obj1, &val2);
15413 if (!SWIG_IsOK(ecode2)) {
15414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15415 }
15416 arg2 = static_cast< int >(val2);
15417 {
15418 PyThreadState* __tstate = wxPyBeginAllowThreads();
15419 (arg1)->SetValue(arg2);
15420 wxPyEndAllowThreads(__tstate);
15421 if (PyErr_Occurred()) SWIG_fail;
15422 }
15423 resultobj = SWIG_Py_Void();
15424 return resultobj;
15425fail:
15426 return NULL;
15427}
15428
15429
15430SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15431 PyObject *resultobj = 0;
15432 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15433 wxString *arg2 = 0 ;
15434 void *argp1 = 0 ;
15435 int res1 = 0 ;
15436 bool temp2 = false ;
15437 PyObject * obj0 = 0 ;
15438 PyObject * obj1 = 0 ;
15439 char * kwnames[] = {
15440 (char *) "self",(char *) "text", NULL
15441 };
15442
15443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15445 if (!SWIG_IsOK(res1)) {
15446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15447 }
15448 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15449 {
15450 arg2 = wxString_in_helper(obj1);
15451 if (arg2 == NULL) SWIG_fail;
15452 temp2 = true;
15453 }
15454 {
15455 PyThreadState* __tstate = wxPyBeginAllowThreads();
15456 (arg1)->SetValue((wxString const &)*arg2);
15457 wxPyEndAllowThreads(__tstate);
15458 if (PyErr_Occurred()) SWIG_fail;
15459 }
15460 resultobj = SWIG_Py_Void();
15461 {
15462 if (temp2)
15463 delete arg2;
15464 }
15465 return resultobj;
15466fail:
15467 {
15468 if (temp2)
15469 delete arg2;
15470 }
15471 return NULL;
15472}
15473
15474
15475SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15476 PyObject *resultobj = 0;
15477 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15478 int arg2 ;
15479 int arg3 ;
15480 void *argp1 = 0 ;
15481 int res1 = 0 ;
15482 int val2 ;
15483 int ecode2 = 0 ;
15484 int val3 ;
15485 int ecode3 = 0 ;
15486 PyObject * obj0 = 0 ;
15487 PyObject * obj1 = 0 ;
15488 PyObject * obj2 = 0 ;
15489 char * kwnames[] = {
15490 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15491 };
15492
15493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15495 if (!SWIG_IsOK(res1)) {
15496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15497 }
15498 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15499 ecode2 = SWIG_AsVal_int(obj1, &val2);
15500 if (!SWIG_IsOK(ecode2)) {
15501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15502 }
15503 arg2 = static_cast< int >(val2);
15504 ecode3 = SWIG_AsVal_int(obj2, &val3);
15505 if (!SWIG_IsOK(ecode3)) {
15506 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15507 }
15508 arg3 = static_cast< int >(val3);
15509 {
15510 PyThreadState* __tstate = wxPyBeginAllowThreads();
15511 (arg1)->SetRange(arg2,arg3);
15512 wxPyEndAllowThreads(__tstate);
15513 if (PyErr_Occurred()) SWIG_fail;
15514 }
15515 resultobj = SWIG_Py_Void();
15516 return resultobj;
15517fail:
15518 return NULL;
d55e5bfc
RD
15519}
15520
15521
1bd55598
RD
15522SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15523 PyObject *resultobj = 0;
15524 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15525 int result;
15526 void *argp1 = 0 ;
15527 int res1 = 0 ;
15528 PyObject *swig_obj[1] ;
15529
15530 if (!args) SWIG_fail;
15531 swig_obj[0] = args;
15532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15533 if (!SWIG_IsOK(res1)) {
15534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15535 }
15536 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15537 {
15538 PyThreadState* __tstate = wxPyBeginAllowThreads();
15539 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15540 wxPyEndAllowThreads(__tstate);
15541 if (PyErr_Occurred()) SWIG_fail;
15542 }
15543 resultobj = SWIG_From_int(static_cast< int >(result));
15544 return resultobj;
15545fail:
15546 return NULL;
d55e5bfc
RD
15547}
15548
15549
1bd55598
RD
15550SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15551 PyObject *resultobj = 0;
15552 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15553 int result;
15554 void *argp1 = 0 ;
15555 int res1 = 0 ;
15556 PyObject *swig_obj[1] ;
15557
15558 if (!args) SWIG_fail;
15559 swig_obj[0] = args;
15560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15561 if (!SWIG_IsOK(res1)) {
15562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15563 }
15564 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15565 {
15566 PyThreadState* __tstate = wxPyBeginAllowThreads();
15567 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15568 wxPyEndAllowThreads(__tstate);
15569 if (PyErr_Occurred()) SWIG_fail;
15570 }
15571 resultobj = SWIG_From_int(static_cast< int >(result));
15572 return resultobj;
15573fail:
15574 return NULL;
15575}
15576
15577
15578SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15579 PyObject *resultobj = 0;
15580 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15581 long arg2 ;
15582 long arg3 ;
15583 void *argp1 = 0 ;
15584 int res1 = 0 ;
15585 long val2 ;
15586 int ecode2 = 0 ;
15587 long val3 ;
15588 int ecode3 = 0 ;
15589 PyObject * obj0 = 0 ;
15590 PyObject * obj1 = 0 ;
15591 PyObject * obj2 = 0 ;
15592 char * kwnames[] = {
2131d850 15593 (char *) "self",(char *) "from",(char *) "to", NULL
1bd55598
RD
15594 };
15595
15596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15598 if (!SWIG_IsOK(res1)) {
15599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15600 }
15601 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15602 ecode2 = SWIG_AsVal_long(obj1, &val2);
15603 if (!SWIG_IsOK(ecode2)) {
15604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15605 }
15606 arg2 = static_cast< long >(val2);
15607 ecode3 = SWIG_AsVal_long(obj2, &val3);
15608 if (!SWIG_IsOK(ecode3)) {
15609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15610 }
15611 arg3 = static_cast< long >(val3);
15612 {
15613 PyThreadState* __tstate = wxPyBeginAllowThreads();
15614 (arg1)->SetSelection(arg2,arg3);
15615 wxPyEndAllowThreads(__tstate);
15616 if (PyErr_Occurred()) SWIG_fail;
15617 }
15618 resultobj = SWIG_Py_Void();
15619 return resultobj;
15620fail:
15621 return NULL;
15622}
15623
15624
15625SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15626 PyObject *resultobj = 0;
15627 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15628 SwigValueWrapper<wxVisualAttributes > result;
15629 int val1 ;
15630 int ecode1 = 0 ;
15631 PyObject * obj0 = 0 ;
15632 char * kwnames[] = {
15633 (char *) "variant", NULL
15634 };
15635
15636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15637 if (obj0) {
15638 ecode1 = SWIG_AsVal_int(obj0, &val1);
15639 if (!SWIG_IsOK(ecode1)) {
15640 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15641 }
15642 arg1 = static_cast< wxWindowVariant >(val1);
15643 }
15644 {
15645 if (!wxPyCheckForApp()) SWIG_fail;
15646 PyThreadState* __tstate = wxPyBeginAllowThreads();
15647 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15648 wxPyEndAllowThreads(__tstate);
15649 if (PyErr_Occurred()) SWIG_fail;
15650 }
15651 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15652 return resultobj;
15653fail:
15654 return NULL;
d55e5bfc
RD
15655}
15656
15657
1bd55598
RD
15658SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15659 PyObject *obj;
15660 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15661 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15662 return SWIG_Py_Void();
d55e5bfc
RD
15663}
15664
1bd55598
RD
15665SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15666 return SWIG_Python_InitShadowInstance(args);
15667}
d55e5bfc 15668
1bd55598
RD
15669SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15670 PyObject *resultobj = 0;
15671 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15672 int arg2 = (int) 0 ;
15673 wxSpinEvent *result = 0 ;
15674 int val1 ;
15675 int ecode1 = 0 ;
15676 int val2 ;
15677 int ecode2 = 0 ;
15678 PyObject * obj0 = 0 ;
15679 PyObject * obj1 = 0 ;
15680 char * kwnames[] = {
15681 (char *) "commandType",(char *) "winid", NULL
15682 };
15683
15684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15685 if (obj0) {
15686 ecode1 = SWIG_AsVal_int(obj0, &val1);
15687 if (!SWIG_IsOK(ecode1)) {
15688 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15689 }
15690 arg1 = static_cast< wxEventType >(val1);
15691 }
15692 if (obj1) {
15693 ecode2 = SWIG_AsVal_int(obj1, &val2);
15694 if (!SWIG_IsOK(ecode2)) {
15695 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15696 }
15697 arg2 = static_cast< int >(val2);
15698 }
15699 {
15700 PyThreadState* __tstate = wxPyBeginAllowThreads();
15701 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15702 wxPyEndAllowThreads(__tstate);
15703 if (PyErr_Occurred()) SWIG_fail;
15704 }
15705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15706 return resultobj;
15707fail:
15708 return NULL;
d55e5bfc
RD
15709}
15710
15711
1bd55598
RD
15712SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15713 PyObject *resultobj = 0;
15714 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15715 int result;
15716 void *argp1 = 0 ;
15717 int res1 = 0 ;
15718 PyObject *swig_obj[1] ;
15719
15720 if (!args) SWIG_fail;
15721 swig_obj[0] = args;
15722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15723 if (!SWIG_IsOK(res1)) {
15724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15725 }
15726 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15727 {
15728 PyThreadState* __tstate = wxPyBeginAllowThreads();
15729 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15730 wxPyEndAllowThreads(__tstate);
15731 if (PyErr_Occurred()) SWIG_fail;
15732 }
15733 resultobj = SWIG_From_int(static_cast< int >(result));
15734 return resultobj;
15735fail:
15736 return NULL;
15737}
15738
15739
15740SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15741 PyObject *resultobj = 0;
15742 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15743 int arg2 ;
15744 void *argp1 = 0 ;
15745 int res1 = 0 ;
15746 int val2 ;
15747 int ecode2 = 0 ;
15748 PyObject * obj0 = 0 ;
15749 PyObject * obj1 = 0 ;
15750 char * kwnames[] = {
15751 (char *) "self",(char *) "pos", NULL
15752 };
15753
15754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15756 if (!SWIG_IsOK(res1)) {
15757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15758 }
15759 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15760 ecode2 = SWIG_AsVal_int(obj1, &val2);
15761 if (!SWIG_IsOK(ecode2)) {
15762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15763 }
15764 arg2 = static_cast< int >(val2);
15765 {
15766 PyThreadState* __tstate = wxPyBeginAllowThreads();
15767 (arg1)->SetPosition(arg2);
15768 wxPyEndAllowThreads(__tstate);
15769 if (PyErr_Occurred()) SWIG_fail;
15770 }
15771 resultobj = SWIG_Py_Void();
15772 return resultobj;
15773fail:
15774 return NULL;
d55e5bfc
RD
15775}
15776
15777
1bd55598
RD
15778SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15779 PyObject *obj;
15780 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15781 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15782 return SWIG_Py_Void();
d55e5bfc
RD
15783}
15784
1bd55598
RD
15785SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15786 return SWIG_Python_InitShadowInstance(args);
15787}
d55e5bfc 15788
1bd55598
RD
15789SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15790 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15791 return 1;
d55e5bfc
RD
15792}
15793
15794
1bd55598
RD
15795SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15796 PyObject *pyobj = 0;
15797
15798 {
15799#if wxUSE_UNICODE
15800 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15801#else
15802 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15803#endif
15804 }
15805 return pyobj;
d55e5bfc
RD
15806}
15807
15808
1bd55598
RD
15809SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15810 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15811 return 1;
15812}
15813
15814
15815SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15816 PyObject *pyobj = 0;
15817
15818 {
15819#if wxUSE_UNICODE
15820 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15821#else
15822 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15823#endif
15824 }
15825 return pyobj;
15826}
15827
15828
15829SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15830 PyObject *resultobj = 0;
15831 wxWindow *arg1 = (wxWindow *) 0 ;
15832 int arg2 = (int) -1 ;
15833 wxString const &arg3_defvalue = wxPyEmptyString ;
15834 wxString *arg3 = (wxString *) &arg3_defvalue ;
15835 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15836 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15837 wxSize const &arg5_defvalue = wxDefaultSize ;
15838 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15839 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15840 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15841 int arg7 = (int) 0 ;
15842 long arg8 = (long) wxRA_HORIZONTAL ;
15843 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15844 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15845 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15846 wxString *arg10 = (wxString *) &arg10_defvalue ;
15847 wxRadioBox *result = 0 ;
15848 void *argp1 = 0 ;
15849 int res1 = 0 ;
15850 int val2 ;
15851 int ecode2 = 0 ;
15852 bool temp3 = false ;
15853 wxPoint temp4 ;
15854 wxSize temp5 ;
15855 bool temp6 = false ;
15856 int val7 ;
15857 int ecode7 = 0 ;
15858 long val8 ;
15859 int ecode8 = 0 ;
15860 void *argp9 = 0 ;
15861 int res9 = 0 ;
15862 bool temp10 = false ;
15863 PyObject * obj0 = 0 ;
15864 PyObject * obj1 = 0 ;
15865 PyObject * obj2 = 0 ;
15866 PyObject * obj3 = 0 ;
15867 PyObject * obj4 = 0 ;
15868 PyObject * obj5 = 0 ;
15869 PyObject * obj6 = 0 ;
15870 PyObject * obj7 = 0 ;
15871 PyObject * obj8 = 0 ;
15872 PyObject * obj9 = 0 ;
15873 char * kwnames[] = {
15874 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15875 };
15876
15877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15879 if (!SWIG_IsOK(res1)) {
15880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15881 }
15882 arg1 = reinterpret_cast< wxWindow * >(argp1);
15883 if (obj1) {
15884 ecode2 = SWIG_AsVal_int(obj1, &val2);
15885 if (!SWIG_IsOK(ecode2)) {
15886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15887 }
15888 arg2 = static_cast< int >(val2);
15889 }
15890 if (obj2) {
36ed4f51 15891 {
1bd55598
RD
15892 arg3 = wxString_in_helper(obj2);
15893 if (arg3 == NULL) SWIG_fail;
15894 temp3 = true;
36ed4f51 15895 }
1bd55598
RD
15896 }
15897 if (obj3) {
36ed4f51 15898 {
1bd55598
RD
15899 arg4 = &temp4;
15900 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 15901 }
1bd55598
RD
15902 }
15903 if (obj4) {
d55e5bfc 15904 {
1bd55598
RD
15905 arg5 = &temp5;
15906 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 15907 }
1bd55598
RD
15908 }
15909 if (obj5) {
d55e5bfc 15910 {
1bd55598
RD
15911 if (! PySequence_Check(obj5)) {
15912 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15913 SWIG_fail;
15914 }
15915 arg6 = new wxArrayString;
15916 temp6 = true;
15917 int i, len=PySequence_Length(obj5);
15918 for (i=0; i<len; i++) {
15919 PyObject* item = PySequence_GetItem(obj5, i);
15920 wxString* s = wxString_in_helper(item);
15921 if (PyErr_Occurred()) SWIG_fail;
15922 arg6->Add(*s);
15923 delete s;
15924 Py_DECREF(item);
15925 }
d55e5bfc 15926 }
1bd55598
RD
15927 }
15928 if (obj6) {
15929 ecode7 = SWIG_AsVal_int(obj6, &val7);
15930 if (!SWIG_IsOK(ecode7)) {
15931 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15932 }
15933 arg7 = static_cast< int >(val7);
15934 }
15935 if (obj7) {
15936 ecode8 = SWIG_AsVal_long(obj7, &val8);
15937 if (!SWIG_IsOK(ecode8)) {
15938 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15939 }
15940 arg8 = static_cast< long >(val8);
15941 }
15942 if (obj8) {
15943 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15944 if (!SWIG_IsOK(res9)) {
15945 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 15946 }
1bd55598
RD
15947 if (!argp9) {
15948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 15949 }
1bd55598
RD
15950 arg9 = reinterpret_cast< wxValidator * >(argp9);
15951 }
15952 if (obj9) {
d55e5bfc 15953 {
1bd55598
RD
15954 arg10 = wxString_in_helper(obj9);
15955 if (arg10 == NULL) SWIG_fail;
15956 temp10 = true;
d55e5bfc 15957 }
1bd55598
RD
15958 }
15959 {
15960 if (!wxPyCheckForApp()) SWIG_fail;
15961 PyThreadState* __tstate = wxPyBeginAllowThreads();
15962 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);
15963 wxPyEndAllowThreads(__tstate);
15964 if (PyErr_Occurred()) SWIG_fail;
15965 }
15966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
15967 {
15968 if (temp3)
15969 delete arg3;
15970 }
15971 {
15972 if (temp6) delete arg6;
15973 }
15974 {
15975 if (temp10)
15976 delete arg10;
15977 }
15978 return resultobj;
15979fail:
15980 {
15981 if (temp3)
15982 delete arg3;
15983 }
15984 {
15985 if (temp6) delete arg6;
15986 }
15987 {
15988 if (temp10)
15989 delete arg10;
15990 }
15991 return NULL;
d55e5bfc
RD
15992}
15993
15994
1bd55598
RD
15995SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15996 PyObject *resultobj = 0;
15997 wxRadioBox *result = 0 ;
15998
15999 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
16000 {
16001 if (!wxPyCheckForApp()) SWIG_fail;
16002 PyThreadState* __tstate = wxPyBeginAllowThreads();
16003 result = (wxRadioBox *)new wxRadioBox();
16004 wxPyEndAllowThreads(__tstate);
16005 if (PyErr_Occurred()) SWIG_fail;
16006 }
16007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
16008 return resultobj;
16009fail:
16010 return NULL;
16011}
16012
16013
16014SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16015 PyObject *resultobj = 0;
16016 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16017 wxWindow *arg2 = (wxWindow *) 0 ;
16018 int arg3 = (int) -1 ;
16019 wxString const &arg4_defvalue = wxPyEmptyString ;
16020 wxString *arg4 = (wxString *) &arg4_defvalue ;
16021 wxPoint const &arg5_defvalue = wxDefaultPosition ;
16022 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
16023 wxSize const &arg6_defvalue = wxDefaultSize ;
16024 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
16025 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
16026 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
16027 int arg8 = (int) 0 ;
16028 long arg9 = (long) wxRA_HORIZONTAL ;
16029 wxValidator const &arg10_defvalue = wxDefaultValidator ;
16030 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
16031 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
16032 wxString *arg11 = (wxString *) &arg11_defvalue ;
16033 bool result;
16034 void *argp1 = 0 ;
16035 int res1 = 0 ;
16036 void *argp2 = 0 ;
16037 int res2 = 0 ;
16038 int val3 ;
16039 int ecode3 = 0 ;
16040 bool temp4 = false ;
16041 wxPoint temp5 ;
16042 wxSize temp6 ;
16043 bool temp7 = false ;
16044 int val8 ;
16045 int ecode8 = 0 ;
16046 long val9 ;
16047 int ecode9 = 0 ;
16048 void *argp10 = 0 ;
16049 int res10 = 0 ;
16050 bool temp11 = false ;
16051 PyObject * obj0 = 0 ;
16052 PyObject * obj1 = 0 ;
16053 PyObject * obj2 = 0 ;
16054 PyObject * obj3 = 0 ;
16055 PyObject * obj4 = 0 ;
16056 PyObject * obj5 = 0 ;
16057 PyObject * obj6 = 0 ;
16058 PyObject * obj7 = 0 ;
16059 PyObject * obj8 = 0 ;
16060 PyObject * obj9 = 0 ;
16061 PyObject * obj10 = 0 ;
16062 char * kwnames[] = {
16063 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16064 };
16065
16066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16068 if (!SWIG_IsOK(res1)) {
16069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16070 }
16071 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16072 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16073 if (!SWIG_IsOK(res2)) {
16074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16075 }
16076 arg2 = reinterpret_cast< wxWindow * >(argp2);
16077 if (obj2) {
16078 ecode3 = SWIG_AsVal_int(obj2, &val3);
16079 if (!SWIG_IsOK(ecode3)) {
16080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16081 }
16082 arg3 = static_cast< int >(val3);
16083 }
16084 if (obj3) {
36ed4f51 16085 {
1bd55598
RD
16086 arg4 = wxString_in_helper(obj3);
16087 if (arg4 == NULL) SWIG_fail;
16088 temp4 = true;
36ed4f51 16089 }
1bd55598
RD
16090 }
16091 if (obj4) {
36ed4f51 16092 {
1bd55598
RD
16093 arg5 = &temp5;
16094 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 16095 }
1bd55598
RD
16096 }
16097 if (obj5) {
d55e5bfc 16098 {
1bd55598
RD
16099 arg6 = &temp6;
16100 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 16101 }
1bd55598
RD
16102 }
16103 if (obj6) {
36ed4f51 16104 {
1bd55598
RD
16105 if (! PySequence_Check(obj6)) {
16106 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16107 SWIG_fail;
16108 }
16109 arg7 = new wxArrayString;
16110 temp7 = true;
16111 int i, len=PySequence_Length(obj6);
16112 for (i=0; i<len; i++) {
16113 PyObject* item = PySequence_GetItem(obj6, i);
16114 wxString* s = wxString_in_helper(item);
16115 if (PyErr_Occurred()) SWIG_fail;
16116 arg7->Add(*s);
16117 delete s;
16118 Py_DECREF(item);
16119 }
36ed4f51 16120 }
1bd55598
RD
16121 }
16122 if (obj7) {
16123 ecode8 = SWIG_AsVal_int(obj7, &val8);
16124 if (!SWIG_IsOK(ecode8)) {
16125 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16126 }
16127 arg8 = static_cast< int >(val8);
16128 }
16129 if (obj8) {
16130 ecode9 = SWIG_AsVal_long(obj8, &val9);
16131 if (!SWIG_IsOK(ecode9)) {
16132 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16133 }
16134 arg9 = static_cast< long >(val9);
16135 }
16136 if (obj9) {
16137 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16138 if (!SWIG_IsOK(res10)) {
16139 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16140 }
1bd55598
RD
16141 if (!argp10) {
16142 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
36ed4f51 16143 }
1bd55598
RD
16144 arg10 = reinterpret_cast< wxValidator * >(argp10);
16145 }
16146 if (obj10) {
d55e5bfc 16147 {
1bd55598
RD
16148 arg11 = wxString_in_helper(obj10);
16149 if (arg11 == NULL) SWIG_fail;
16150 temp11 = true;
d55e5bfc 16151 }
1bd55598
RD
16152 }
16153 {
16154 PyThreadState* __tstate = wxPyBeginAllowThreads();
16155 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);
16156 wxPyEndAllowThreads(__tstate);
16157 if (PyErr_Occurred()) SWIG_fail;
16158 }
16159 {
16160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16161 }
16162 {
16163 if (temp4)
16164 delete arg4;
16165 }
16166 {
16167 if (temp7) delete arg7;
16168 }
16169 {
16170 if (temp11)
16171 delete arg11;
16172 }
16173 return resultobj;
16174fail:
16175 {
16176 if (temp4)
16177 delete arg4;
16178 }
16179 {
16180 if (temp7) delete arg7;
16181 }
16182 {
16183 if (temp11)
16184 delete arg11;
16185 }
16186 return NULL;
16187}
16188
16189
16190SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16191 PyObject *resultobj = 0;
16192 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16193 int arg2 ;
16194 void *argp1 = 0 ;
16195 int res1 = 0 ;
16196 int val2 ;
16197 int ecode2 = 0 ;
16198 PyObject * obj0 = 0 ;
16199 PyObject * obj1 = 0 ;
16200 char * kwnames[] = {
16201 (char *) "self",(char *) "n", NULL
16202 };
16203
16204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16206 if (!SWIG_IsOK(res1)) {
16207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16208 }
16209 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16210 ecode2 = SWIG_AsVal_int(obj1, &val2);
16211 if (!SWIG_IsOK(ecode2)) {
16212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16213 }
16214 arg2 = static_cast< int >(val2);
16215 {
16216 PyThreadState* __tstate = wxPyBeginAllowThreads();
16217 (arg1)->SetSelection(arg2);
16218 wxPyEndAllowThreads(__tstate);
16219 if (PyErr_Occurred()) SWIG_fail;
16220 }
16221 resultobj = SWIG_Py_Void();
16222 return resultobj;
16223fail:
16224 return NULL;
d55e5bfc
RD
16225}
16226
16227
1bd55598
RD
16228SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16229 PyObject *resultobj = 0;
16230 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16231 int result;
16232 void *argp1 = 0 ;
16233 int res1 = 0 ;
16234 PyObject *swig_obj[1] ;
16235
16236 if (!args) SWIG_fail;
16237 swig_obj[0] = args;
16238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16239 if (!SWIG_IsOK(res1)) {
16240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16241 }
16242 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16243 {
16244 PyThreadState* __tstate = wxPyBeginAllowThreads();
16245 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16246 wxPyEndAllowThreads(__tstate);
16247 if (PyErr_Occurred()) SWIG_fail;
16248 }
16249 resultobj = SWIG_From_int(static_cast< int >(result));
16250 return resultobj;
16251fail:
16252 return NULL;
d55e5bfc
RD
16253}
16254
16255
1bd55598
RD
16256SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16257 PyObject *resultobj = 0;
16258 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16259 wxString result;
16260 void *argp1 = 0 ;
16261 int res1 = 0 ;
16262 PyObject *swig_obj[1] ;
16263
16264 if (!args) SWIG_fail;
16265 swig_obj[0] = args;
16266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16267 if (!SWIG_IsOK(res1)) {
16268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16269 }
16270 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16271 {
16272 PyThreadState* __tstate = wxPyBeginAllowThreads();
16273 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16274 wxPyEndAllowThreads(__tstate);
16275 if (PyErr_Occurred()) SWIG_fail;
16276 }
16277 {
16278#if wxUSE_UNICODE
16279 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16280#else
16281 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16282#endif
16283 }
16284 return resultobj;
16285fail:
16286 return NULL;
16287}
16288
16289
16290SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16291 PyObject *resultobj = 0;
16292 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16293 wxString *arg2 = 0 ;
16294 bool result;
16295 void *argp1 = 0 ;
16296 int res1 = 0 ;
16297 bool temp2 = false ;
16298 PyObject * obj0 = 0 ;
16299 PyObject * obj1 = 0 ;
16300 char * kwnames[] = {
16301 (char *) "self",(char *) "s", NULL
16302 };
16303
16304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16306 if (!SWIG_IsOK(res1)) {
16307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16308 }
16309 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16310 {
16311 arg2 = wxString_in_helper(obj1);
16312 if (arg2 == NULL) SWIG_fail;
16313 temp2 = true;
16314 }
16315 {
16316 PyThreadState* __tstate = wxPyBeginAllowThreads();
16317 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16318 wxPyEndAllowThreads(__tstate);
16319 if (PyErr_Occurred()) SWIG_fail;
16320 }
16321 {
16322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16323 }
16324 {
16325 if (temp2)
16326 delete arg2;
16327 }
16328 return resultobj;
16329fail:
16330 {
16331 if (temp2)
16332 delete arg2;
16333 }
16334 return NULL;
4896ac9e
RD
16335}
16336
16337
1bd55598
RD
16338SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16339 PyObject *resultobj = 0;
16340 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
1c71765a 16341 size_t result;
1bd55598
RD
16342 void *argp1 = 0 ;
16343 int res1 = 0 ;
16344 PyObject *swig_obj[1] ;
16345
16346 if (!args) SWIG_fail;
16347 swig_obj[0] = args;
16348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16349 if (!SWIG_IsOK(res1)) {
16350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16351 }
16352 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16353 {
16354 PyThreadState* __tstate = wxPyBeginAllowThreads();
1c71765a 16355 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
1bd55598
RD
16356 wxPyEndAllowThreads(__tstate);
16357 if (PyErr_Occurred()) SWIG_fail;
16358 }
1c71765a 16359 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
1bd55598
RD
16360 return resultobj;
16361fail:
16362 return NULL;
16363}
16364
16365
16366SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16367 PyObject *resultobj = 0;
16368 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16369 wxString *arg2 = 0 ;
16370 int result;
16371 void *argp1 = 0 ;
16372 int res1 = 0 ;
16373 bool temp2 = false ;
16374 PyObject * obj0 = 0 ;
16375 PyObject * obj1 = 0 ;
16376 char * kwnames[] = {
16377 (char *) "self",(char *) "s", NULL
16378 };
16379
16380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16382 if (!SWIG_IsOK(res1)) {
16383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16384 }
16385 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16386 {
16387 arg2 = wxString_in_helper(obj1);
16388 if (arg2 == NULL) SWIG_fail;
16389 temp2 = true;
16390 }
16391 {
16392 PyThreadState* __tstate = wxPyBeginAllowThreads();
16393 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16394 wxPyEndAllowThreads(__tstate);
16395 if (PyErr_Occurred()) SWIG_fail;
16396 }
16397 resultobj = SWIG_From_int(static_cast< int >(result));
16398 {
16399 if (temp2)
16400 delete arg2;
16401 }
16402 return resultobj;
16403fail:
16404 {
16405 if (temp2)
16406 delete arg2;
16407 }
16408 return NULL;
16409}
16410
16411
16412SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16413 PyObject *resultobj = 0;
16414 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16415 int arg2 ;
16416 wxString result;
16417 void *argp1 = 0 ;
16418 int res1 = 0 ;
16419 int val2 ;
16420 int ecode2 = 0 ;
16421 PyObject * obj0 = 0 ;
16422 PyObject * obj1 = 0 ;
16423 char * kwnames[] = {
16424 (char *) "self",(char *) "n", NULL
16425 };
16426
16427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16429 if (!SWIG_IsOK(res1)) {
16430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16431 }
16432 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16433 ecode2 = SWIG_AsVal_int(obj1, &val2);
16434 if (!SWIG_IsOK(ecode2)) {
16435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16436 }
16437 arg2 = static_cast< int >(val2);
16438 {
16439 PyThreadState* __tstate = wxPyBeginAllowThreads();
16440 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16441 wxPyEndAllowThreads(__tstate);
16442 if (PyErr_Occurred()) SWIG_fail;
16443 }
16444 {
16445#if wxUSE_UNICODE
16446 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16447#else
16448 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16449#endif
16450 }
16451 return resultobj;
16452fail:
16453 return NULL;
16454}
16455
16456
16457SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16458 PyObject *resultobj = 0;
16459 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16460 int arg2 ;
16461 wxString *arg3 = 0 ;
16462 void *argp1 = 0 ;
16463 int res1 = 0 ;
16464 int val2 ;
16465 int ecode2 = 0 ;
16466 bool temp3 = false ;
16467 PyObject * obj0 = 0 ;
16468 PyObject * obj1 = 0 ;
16469 PyObject * obj2 = 0 ;
16470 char * kwnames[] = {
16471 (char *) "self",(char *) "n",(char *) "label", NULL
16472 };
16473
16474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16476 if (!SWIG_IsOK(res1)) {
16477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16478 }
16479 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16480 ecode2 = SWIG_AsVal_int(obj1, &val2);
16481 if (!SWIG_IsOK(ecode2)) {
16482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16483 }
16484 arg2 = static_cast< int >(val2);
16485 {
16486 arg3 = wxString_in_helper(obj2);
16487 if (arg3 == NULL) SWIG_fail;
16488 temp3 = true;
16489 }
16490 {
16491 PyThreadState* __tstate = wxPyBeginAllowThreads();
16492 (arg1)->SetString(arg2,(wxString const &)*arg3);
16493 wxPyEndAllowThreads(__tstate);
16494 if (PyErr_Occurred()) SWIG_fail;
16495 }
16496 resultobj = SWIG_Py_Void();
16497 {
16498 if (temp3)
16499 delete arg3;
16500 }
16501 return resultobj;
16502fail:
16503 {
16504 if (temp3)
16505 delete arg3;
16506 }
16507 return NULL;
16508}
16509
16510
16511SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16512 PyObject *resultobj = 0;
16513 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16514 unsigned int arg2 ;
1bd55598
RD
16515 bool arg3 = (bool) true ;
16516 void *argp1 = 0 ;
16517 int res1 = 0 ;
50f151d7 16518 unsigned int val2 ;
1bd55598
RD
16519 int ecode2 = 0 ;
16520 bool val3 ;
16521 int ecode3 = 0 ;
16522 PyObject * obj0 = 0 ;
16523 PyObject * obj1 = 0 ;
16524 PyObject * obj2 = 0 ;
16525 char * kwnames[] = {
16526 (char *) "self",(char *) "n",(char *) "enable", NULL
16527 };
16528
16529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16531 if (!SWIG_IsOK(res1)) {
16532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16533 }
16534 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16535 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16536 if (!SWIG_IsOK(ecode2)) {
50f151d7 16537 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16538 }
50f151d7 16539 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16540 if (obj2) {
16541 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16542 if (!SWIG_IsOK(ecode3)) {
16543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16544 }
16545 arg3 = static_cast< bool >(val3);
16546 }
16547 {
16548 PyThreadState* __tstate = wxPyBeginAllowThreads();
16549 (arg1)->Enable(arg2,arg3);
16550 wxPyEndAllowThreads(__tstate);
16551 if (PyErr_Occurred()) SWIG_fail;
16552 }
16553 resultobj = SWIG_Py_Void();
16554 return resultobj;
16555fail:
16556 return NULL;
16557}
16558
16559
16560SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16561 PyObject *resultobj = 0;
16562 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16563 unsigned int arg2 ;
1bd55598
RD
16564 bool arg3 = (bool) true ;
16565 void *argp1 = 0 ;
16566 int res1 = 0 ;
50f151d7 16567 unsigned int val2 ;
1bd55598
RD
16568 int ecode2 = 0 ;
16569 bool val3 ;
16570 int ecode3 = 0 ;
16571 PyObject * obj0 = 0 ;
16572 PyObject * obj1 = 0 ;
16573 PyObject * obj2 = 0 ;
16574 char * kwnames[] = {
16575 (char *) "self",(char *) "n",(char *) "show", NULL
16576 };
16577
16578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16580 if (!SWIG_IsOK(res1)) {
16581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16582 }
16583 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
50f151d7 16584 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 16585 if (!SWIG_IsOK(ecode2)) {
50f151d7 16586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 16587 }
50f151d7 16588 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
16589 if (obj2) {
16590 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16591 if (!SWIG_IsOK(ecode3)) {
16592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16593 }
16594 arg3 = static_cast< bool >(val3);
16595 }
16596 {
16597 PyThreadState* __tstate = wxPyBeginAllowThreads();
16598 (arg1)->Show(arg2,arg3);
16599 wxPyEndAllowThreads(__tstate);
16600 if (PyErr_Occurred()) SWIG_fail;
16601 }
16602 resultobj = SWIG_Py_Void();
16603 return resultobj;
16604fail:
16605 return NULL;
d55e5bfc
RD
16606}
16607
16608
50f151d7
RD
16609SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16610 PyObject *resultobj = 0;
16611 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16612 unsigned int arg2 ;
16613 bool result;
16614 void *argp1 = 0 ;
16615 int res1 = 0 ;
16616 unsigned int val2 ;
16617 int ecode2 = 0 ;
16618 PyObject * obj0 = 0 ;
16619 PyObject * obj1 = 0 ;
16620 char * kwnames[] = {
16621 (char *) "self",(char *) "n", NULL
16622 };
16623
16624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16626 if (!SWIG_IsOK(res1)) {
16627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16628 }
16629 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16630 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16631 if (!SWIG_IsOK(ecode2)) {
16632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16633 }
16634 arg2 = static_cast< unsigned int >(val2);
16635 {
16636 PyThreadState* __tstate = wxPyBeginAllowThreads();
16637 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16638 wxPyEndAllowThreads(__tstate);
16639 if (PyErr_Occurred()) SWIG_fail;
16640 }
16641 {
16642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16643 }
16644 return resultobj;
16645fail:
16646 return NULL;
16647}
16648
16649
16650SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16651 PyObject *resultobj = 0;
16652 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16653 unsigned int arg2 ;
16654 bool result;
16655 void *argp1 = 0 ;
16656 int res1 = 0 ;
16657 unsigned int val2 ;
16658 int ecode2 = 0 ;
16659 PyObject * obj0 = 0 ;
16660 PyObject * obj1 = 0 ;
16661 char * kwnames[] = {
16662 (char *) "self",(char *) "n", NULL
16663 };
16664
16665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16667 if (!SWIG_IsOK(res1)) {
16668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16669 }
16670 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16671 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16672 if (!SWIG_IsOK(ecode2)) {
16673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16674 }
16675 arg2 = static_cast< unsigned int >(val2);
16676 {
16677 PyThreadState* __tstate = wxPyBeginAllowThreads();
16678 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16679 wxPyEndAllowThreads(__tstate);
16680 if (PyErr_Occurred()) SWIG_fail;
16681 }
16682 {
16683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16684 }
16685 return resultobj;
16686fail:
16687 return NULL;
16688}
16689
16690
1bd55598
RD
16691SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16692 PyObject *resultobj = 0;
16693 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16694 unsigned int result;
1bd55598
RD
16695 void *argp1 = 0 ;
16696 int res1 = 0 ;
16697 PyObject *swig_obj[1] ;
16698
16699 if (!args) SWIG_fail;
16700 swig_obj[0] = args;
16701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16702 if (!SWIG_IsOK(res1)) {
16703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16704 }
16705 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16706 {
16707 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16708 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
1bd55598
RD
16709 wxPyEndAllowThreads(__tstate);
16710 if (PyErr_Occurred()) SWIG_fail;
16711 }
50f151d7 16712 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16713 return resultobj;
16714fail:
16715 return NULL;
d55e5bfc
RD
16716}
16717
16718
1bd55598
RD
16719SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16720 PyObject *resultobj = 0;
16721 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
50f151d7 16722 unsigned int result;
1bd55598
RD
16723 void *argp1 = 0 ;
16724 int res1 = 0 ;
16725 PyObject *swig_obj[1] ;
16726
16727 if (!args) SWIG_fail;
16728 swig_obj[0] = args;
16729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16730 if (!SWIG_IsOK(res1)) {
16731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16732 }
16733 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16734 {
16735 PyThreadState* __tstate = wxPyBeginAllowThreads();
50f151d7 16736 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
1bd55598
RD
16737 wxPyEndAllowThreads(__tstate);
16738 if (PyErr_Occurred()) SWIG_fail;
16739 }
50f151d7 16740 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
16741 return resultobj;
16742fail:
16743 return NULL;
16744}
16745
16746
16747SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16748 PyObject *resultobj = 0;
16749 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16750 int arg2 ;
16751 wxDirection arg3 ;
16752 long arg4 ;
16753 int result;
16754 void *argp1 = 0 ;
16755 int res1 = 0 ;
16756 int val2 ;
16757 int ecode2 = 0 ;
16758 int val3 ;
16759 int ecode3 = 0 ;
16760 long val4 ;
16761 int ecode4 = 0 ;
16762 PyObject * obj0 = 0 ;
16763 PyObject * obj1 = 0 ;
16764 PyObject * obj2 = 0 ;
16765 PyObject * obj3 = 0 ;
16766 char * kwnames[] = {
16767 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16768 };
16769
16770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16772 if (!SWIG_IsOK(res1)) {
16773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16774 }
16775 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16776 ecode2 = SWIG_AsVal_int(obj1, &val2);
16777 if (!SWIG_IsOK(ecode2)) {
16778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16779 }
16780 arg2 = static_cast< int >(val2);
16781 ecode3 = SWIG_AsVal_int(obj2, &val3);
16782 if (!SWIG_IsOK(ecode3)) {
16783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16784 }
16785 arg3 = static_cast< wxDirection >(val3);
16786 ecode4 = SWIG_AsVal_long(obj3, &val4);
16787 if (!SWIG_IsOK(ecode4)) {
16788 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16789 }
16790 arg4 = static_cast< long >(val4);
16791 {
16792 PyThreadState* __tstate = wxPyBeginAllowThreads();
16793 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16794 wxPyEndAllowThreads(__tstate);
16795 if (PyErr_Occurred()) SWIG_fail;
16796 }
16797 resultobj = SWIG_From_int(static_cast< int >(result));
16798 return resultobj;
16799fail:
16800 return NULL;
16801}
16802
16803
2131d850
RD
16804SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16805 PyObject *resultobj = 0;
16806 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16807 unsigned int arg2 ;
16808 wxString *arg3 = 0 ;
16809 void *argp1 = 0 ;
16810 int res1 = 0 ;
16811 unsigned int val2 ;
16812 int ecode2 = 0 ;
16813 bool temp3 = false ;
16814 PyObject * obj0 = 0 ;
16815 PyObject * obj1 = 0 ;
16816 PyObject * obj2 = 0 ;
16817 char * kwnames[] = {
16818 (char *) "self",(char *) "item",(char *) "text", NULL
16819 };
16820
16821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16823 if (!SWIG_IsOK(res1)) {
16824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16825 }
16826 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16827 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16828 if (!SWIG_IsOK(ecode2)) {
16829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16830 }
16831 arg2 = static_cast< unsigned int >(val2);
16832 {
16833 arg3 = wxString_in_helper(obj2);
16834 if (arg3 == NULL) SWIG_fail;
16835 temp3 = true;
16836 }
16837 {
16838 PyThreadState* __tstate = wxPyBeginAllowThreads();
16839 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16840 wxPyEndAllowThreads(__tstate);
16841 if (PyErr_Occurred()) SWIG_fail;
16842 }
16843 resultobj = SWIG_Py_Void();
16844 {
16845 if (temp3)
16846 delete arg3;
16847 }
16848 return resultobj;
16849fail:
16850 {
16851 if (temp3)
16852 delete arg3;
16853 }
16854 return NULL;
16855}
16856
16857
16858SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16859 PyObject *resultobj = 0;
16860 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16861 unsigned int arg2 ;
16862 wxToolTip *result = 0 ;
16863 void *argp1 = 0 ;
16864 int res1 = 0 ;
16865 unsigned int val2 ;
16866 int ecode2 = 0 ;
16867 PyObject * obj0 = 0 ;
16868 PyObject * obj1 = 0 ;
16869 char * kwnames[] = {
16870 (char *) "self",(char *) "item", NULL
16871 };
16872
16873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16875 if (!SWIG_IsOK(res1)) {
16876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16877 }
16878 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16879 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16880 if (!SWIG_IsOK(ecode2)) {
16881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16882 }
16883 arg2 = static_cast< unsigned int >(val2);
16884 {
16885 PyThreadState* __tstate = wxPyBeginAllowThreads();
16886 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16887 wxPyEndAllowThreads(__tstate);
16888 if (PyErr_Occurred()) SWIG_fail;
16889 }
16890 {
16891 resultobj = wxPyMake_wxObject(result, (bool)0);
16892 }
16893 return resultobj;
16894fail:
16895 return NULL;
16896}
16897
16898
b850e7f3
RD
16899SWIGINTERN PyObject *_wrap_RadioBox_SetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16900 PyObject *resultobj = 0;
16901 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16902 unsigned int arg2 ;
16903 wxString *arg3 = 0 ;
16904 void *argp1 = 0 ;
16905 int res1 = 0 ;
16906 unsigned int val2 ;
16907 int ecode2 = 0 ;
16908 bool temp3 = false ;
16909 PyObject * obj0 = 0 ;
16910 PyObject * obj1 = 0 ;
16911 PyObject * obj2 = 0 ;
16912 char * kwnames[] = {
16913 (char *) "self",(char *) "n",(char *) "helpText", NULL
16914 };
16915
16916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemHelpText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16918 if (!SWIG_IsOK(res1)) {
16919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16920 }
16921 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16922 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16923 if (!SWIG_IsOK(ecode2)) {
16924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
16925 }
16926 arg2 = static_cast< unsigned int >(val2);
16927 {
16928 arg3 = wxString_in_helper(obj2);
16929 if (arg3 == NULL) SWIG_fail;
16930 temp3 = true;
16931 }
16932 {
16933 PyThreadState* __tstate = wxPyBeginAllowThreads();
16934 (arg1)->SetItemHelpText(arg2,(wxString const &)*arg3);
16935 wxPyEndAllowThreads(__tstate);
16936 if (PyErr_Occurred()) SWIG_fail;
16937 }
16938 resultobj = SWIG_Py_Void();
16939 {
16940 if (temp3)
16941 delete arg3;
16942 }
16943 return resultobj;
16944fail:
16945 {
16946 if (temp3)
16947 delete arg3;
16948 }
16949 return NULL;
16950}
16951
16952
16953SWIGINTERN PyObject *_wrap_RadioBox_GetItemHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16954 PyObject *resultobj = 0;
16955 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16956 unsigned int arg2 ;
16957 wxString result;
16958 void *argp1 = 0 ;
16959 int res1 = 0 ;
16960 unsigned int val2 ;
16961 int ecode2 = 0 ;
16962 PyObject * obj0 = 0 ;
16963 PyObject * obj1 = 0 ;
16964 char * kwnames[] = {
16965 (char *) "self",(char *) "n", NULL
16966 };
16967
16968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
16969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16970 if (!SWIG_IsOK(res1)) {
16971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16972 }
16973 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16974 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16975 if (!SWIG_IsOK(ecode2)) {
16976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemHelpText" "', expected argument " "2"" of type '" "unsigned int""'");
16977 }
16978 arg2 = static_cast< unsigned int >(val2);
16979 {
16980 PyThreadState* __tstate = wxPyBeginAllowThreads();
16981 result = ((wxRadioBox const *)arg1)->GetItemHelpText(arg2);
16982 wxPyEndAllowThreads(__tstate);
16983 if (PyErr_Occurred()) SWIG_fail;
16984 }
16985 {
16986#if wxUSE_UNICODE
16987 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16988#else
16989 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16990#endif
16991 }
16992 return resultobj;
16993fail:
16994 return NULL;
16995}
16996
16997
1bd55598
RD
16998SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16999 PyObject *resultobj = 0;
17000 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17001 SwigValueWrapper<wxVisualAttributes > result;
17002 int val1 ;
17003 int ecode1 = 0 ;
17004 PyObject * obj0 = 0 ;
17005 char * kwnames[] = {
17006 (char *) "variant", NULL
17007 };
17008
17009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17010 if (obj0) {
17011 ecode1 = SWIG_AsVal_int(obj0, &val1);
17012 if (!SWIG_IsOK(ecode1)) {
17013 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17014 }
17015 arg1 = static_cast< wxWindowVariant >(val1);
17016 }
17017 {
17018 if (!wxPyCheckForApp()) SWIG_fail;
17019 PyThreadState* __tstate = wxPyBeginAllowThreads();
17020 result = wxRadioBox::GetClassDefaultAttributes(arg1);
17021 wxPyEndAllowThreads(__tstate);
17022 if (PyErr_Occurred()) SWIG_fail;
17023 }
17024 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17025 return resultobj;
17026fail:
17027 return NULL;
17028}
17029
17030
17031SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17032 PyObject *obj;
17033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17034 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
17035 return SWIG_Py_Void();
17036}
17037
17038SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17039 return SWIG_Python_InitShadowInstance(args);
17040}
17041
17042SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17043 PyObject *resultobj = 0;
17044 wxWindow *arg1 = (wxWindow *) 0 ;
17045 int arg2 = (int) -1 ;
17046 wxString const &arg3_defvalue = wxPyEmptyString ;
17047 wxString *arg3 = (wxString *) &arg3_defvalue ;
17048 wxPoint const &arg4_defvalue = wxDefaultPosition ;
17049 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
17050 wxSize const &arg5_defvalue = wxDefaultSize ;
17051 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
17052 long arg6 = (long) 0 ;
17053 wxValidator const &arg7_defvalue = wxDefaultValidator ;
17054 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
17055 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
17056 wxString *arg8 = (wxString *) &arg8_defvalue ;
17057 wxRadioButton *result = 0 ;
17058 void *argp1 = 0 ;
17059 int res1 = 0 ;
17060 int val2 ;
17061 int ecode2 = 0 ;
17062 bool temp3 = false ;
17063 wxPoint temp4 ;
17064 wxSize temp5 ;
17065 long val6 ;
17066 int ecode6 = 0 ;
17067 void *argp7 = 0 ;
17068 int res7 = 0 ;
17069 bool temp8 = false ;
17070 PyObject * obj0 = 0 ;
17071 PyObject * obj1 = 0 ;
17072 PyObject * obj2 = 0 ;
17073 PyObject * obj3 = 0 ;
17074 PyObject * obj4 = 0 ;
17075 PyObject * obj5 = 0 ;
17076 PyObject * obj6 = 0 ;
17077 PyObject * obj7 = 0 ;
17078 char * kwnames[] = {
17079 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17080 };
17081
17082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17084 if (!SWIG_IsOK(res1)) {
17085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
17086 }
17087 arg1 = reinterpret_cast< wxWindow * >(argp1);
17088 if (obj1) {
17089 ecode2 = SWIG_AsVal_int(obj1, &val2);
17090 if (!SWIG_IsOK(ecode2)) {
17091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
17092 }
17093 arg2 = static_cast< int >(val2);
17094 }
17095 if (obj2) {
d55e5bfc 17096 {
1bd55598
RD
17097 arg3 = wxString_in_helper(obj2);
17098 if (arg3 == NULL) SWIG_fail;
17099 temp3 = true;
d55e5bfc 17100 }
1bd55598
RD
17101 }
17102 if (obj3) {
d55e5bfc 17103 {
1bd55598
RD
17104 arg4 = &temp4;
17105 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 17106 }
1bd55598
RD
17107 }
17108 if (obj4) {
d55e5bfc 17109 {
1bd55598
RD
17110 arg5 = &temp5;
17111 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17112 }
1bd55598
RD
17113 }
17114 if (obj5) {
17115 ecode6 = SWIG_AsVal_long(obj5, &val6);
17116 if (!SWIG_IsOK(ecode6)) {
17117 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
17118 }
17119 arg6 = static_cast< long >(val6);
17120 }
17121 if (obj6) {
17122 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
17123 if (!SWIG_IsOK(res7)) {
17124 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 17125 }
1bd55598
RD
17126 if (!argp7) {
17127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
17128 }
17129 arg7 = reinterpret_cast< wxValidator * >(argp7);
17130 }
17131 if (obj7) {
d55e5bfc 17132 {
1bd55598
RD
17133 arg8 = wxString_in_helper(obj7);
17134 if (arg8 == NULL) SWIG_fail;
17135 temp8 = true;
d55e5bfc 17136 }
1bd55598
RD
17137 }
17138 {
17139 if (!wxPyCheckForApp()) SWIG_fail;
17140 PyThreadState* __tstate = wxPyBeginAllowThreads();
17141 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
17142 wxPyEndAllowThreads(__tstate);
17143 if (PyErr_Occurred()) SWIG_fail;
17144 }
17145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
17146 {
17147 if (temp3)
17148 delete arg3;
17149 }
17150 {
17151 if (temp8)
17152 delete arg8;
17153 }
17154 return resultobj;
17155fail:
17156 {
17157 if (temp3)
17158 delete arg3;
17159 }
17160 {
17161 if (temp8)
17162 delete arg8;
17163 }
17164 return NULL;
d55e5bfc
RD
17165}
17166
17167
1bd55598
RD
17168SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17169 PyObject *resultobj = 0;
17170 wxRadioButton *result = 0 ;
17171
17172 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17173 {
17174 if (!wxPyCheckForApp()) SWIG_fail;
17175 PyThreadState* __tstate = wxPyBeginAllowThreads();
17176 result = (wxRadioButton *)new wxRadioButton();
17177 wxPyEndAllowThreads(__tstate);
17178 if (PyErr_Occurred()) SWIG_fail;
17179 }
17180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17181 return resultobj;
17182fail:
17183 return NULL;
17184}
17185
17186
17187SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17188 PyObject *resultobj = 0;
17189 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17190 wxWindow *arg2 = (wxWindow *) 0 ;
17191 int arg3 = (int) -1 ;
17192 wxString const &arg4_defvalue = wxPyEmptyString ;
17193 wxString *arg4 = (wxString *) &arg4_defvalue ;
17194 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17195 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17196 wxSize const &arg6_defvalue = wxDefaultSize ;
17197 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17198 long arg7 = (long) 0 ;
17199 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17200 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17201 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17202 wxString *arg9 = (wxString *) &arg9_defvalue ;
17203 bool result;
17204 void *argp1 = 0 ;
17205 int res1 = 0 ;
17206 void *argp2 = 0 ;
17207 int res2 = 0 ;
17208 int val3 ;
17209 int ecode3 = 0 ;
17210 bool temp4 = false ;
17211 wxPoint temp5 ;
17212 wxSize temp6 ;
17213 long val7 ;
17214 int ecode7 = 0 ;
17215 void *argp8 = 0 ;
17216 int res8 = 0 ;
17217 bool temp9 = false ;
17218 PyObject * obj0 = 0 ;
17219 PyObject * obj1 = 0 ;
17220 PyObject * obj2 = 0 ;
17221 PyObject * obj3 = 0 ;
17222 PyObject * obj4 = 0 ;
17223 PyObject * obj5 = 0 ;
17224 PyObject * obj6 = 0 ;
17225 PyObject * obj7 = 0 ;
17226 PyObject * obj8 = 0 ;
17227 char * kwnames[] = {
17228 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17229 };
17230
17231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17233 if (!SWIG_IsOK(res1)) {
17234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17235 }
17236 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17237 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17238 if (!SWIG_IsOK(res2)) {
17239 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17240 }
17241 arg2 = reinterpret_cast< wxWindow * >(argp2);
17242 if (obj2) {
17243 ecode3 = SWIG_AsVal_int(obj2, &val3);
17244 if (!SWIG_IsOK(ecode3)) {
17245 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17246 }
17247 arg3 = static_cast< int >(val3);
17248 }
17249 if (obj3) {
d55e5bfc 17250 {
1bd55598
RD
17251 arg4 = wxString_in_helper(obj3);
17252 if (arg4 == NULL) SWIG_fail;
17253 temp4 = true;
d55e5bfc 17254 }
1bd55598
RD
17255 }
17256 if (obj4) {
d55e5bfc 17257 {
1bd55598
RD
17258 arg5 = &temp5;
17259 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 17260 }
1bd55598
RD
17261 }
17262 if (obj5) {
d55e5bfc 17263 {
1bd55598
RD
17264 arg6 = &temp6;
17265 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 17266 }
1bd55598
RD
17267 }
17268 if (obj6) {
17269 ecode7 = SWIG_AsVal_long(obj6, &val7);
17270 if (!SWIG_IsOK(ecode7)) {
17271 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17272 }
17273 arg7 = static_cast< long >(val7);
17274 }
17275 if (obj7) {
17276 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17277 if (!SWIG_IsOK(res8)) {
17278 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17279 }
1bd55598
RD
17280 if (!argp8) {
17281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 17282 }
1bd55598
RD
17283 arg8 = reinterpret_cast< wxValidator * >(argp8);
17284 }
17285 if (obj8) {
d55e5bfc 17286 {
1bd55598
RD
17287 arg9 = wxString_in_helper(obj8);
17288 if (arg9 == NULL) SWIG_fail;
17289 temp9 = true;
d55e5bfc 17290 }
1bd55598
RD
17291 }
17292 {
17293 PyThreadState* __tstate = wxPyBeginAllowThreads();
17294 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17295 wxPyEndAllowThreads(__tstate);
17296 if (PyErr_Occurred()) SWIG_fail;
17297 }
17298 {
17299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17300 }
17301 {
17302 if (temp4)
17303 delete arg4;
17304 }
17305 {
17306 if (temp9)
17307 delete arg9;
17308 }
17309 return resultobj;
17310fail:
17311 {
17312 if (temp4)
17313 delete arg4;
17314 }
17315 {
17316 if (temp9)
17317 delete arg9;
17318 }
17319 return NULL;
d55e5bfc
RD
17320}
17321
17322
1bd55598
RD
17323SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17324 PyObject *resultobj = 0;
17325 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17326 bool result;
17327 void *argp1 = 0 ;
17328 int res1 = 0 ;
17329 PyObject *swig_obj[1] ;
17330
17331 if (!args) SWIG_fail;
17332 swig_obj[0] = args;
17333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17334 if (!SWIG_IsOK(res1)) {
17335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17336 }
17337 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17338 {
17339 PyThreadState* __tstate = wxPyBeginAllowThreads();
17340 result = (bool)(arg1)->GetValue();
17341 wxPyEndAllowThreads(__tstate);
17342 if (PyErr_Occurred()) SWIG_fail;
17343 }
17344 {
17345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17346 }
17347 return resultobj;
17348fail:
17349 return NULL;
17350}
17351
17352
17353SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17354 PyObject *resultobj = 0;
17355 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17356 bool arg2 ;
17357 void *argp1 = 0 ;
17358 int res1 = 0 ;
17359 bool val2 ;
17360 int ecode2 = 0 ;
17361 PyObject * obj0 = 0 ;
17362 PyObject * obj1 = 0 ;
17363 char * kwnames[] = {
17364 (char *) "self",(char *) "value", NULL
17365 };
17366
17367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17369 if (!SWIG_IsOK(res1)) {
17370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17371 }
17372 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17373 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17374 if (!SWIG_IsOK(ecode2)) {
17375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17376 }
17377 arg2 = static_cast< bool >(val2);
17378 {
17379 PyThreadState* __tstate = wxPyBeginAllowThreads();
17380 (arg1)->SetValue(arg2);
17381 wxPyEndAllowThreads(__tstate);
17382 if (PyErr_Occurred()) SWIG_fail;
17383 }
17384 resultobj = SWIG_Py_Void();
17385 return resultobj;
17386fail:
17387 return NULL;
17388}
17389
17390
17391SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17392 PyObject *resultobj = 0;
17393 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17394 SwigValueWrapper<wxVisualAttributes > result;
17395 int val1 ;
17396 int ecode1 = 0 ;
17397 PyObject * obj0 = 0 ;
17398 char * kwnames[] = {
17399 (char *) "variant", NULL
17400 };
17401
17402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17403 if (obj0) {
17404 ecode1 = SWIG_AsVal_int(obj0, &val1);
17405 if (!SWIG_IsOK(ecode1)) {
17406 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17407 }
17408 arg1 = static_cast< wxWindowVariant >(val1);
17409 }
17410 {
17411 if (!wxPyCheckForApp()) SWIG_fail;
17412 PyThreadState* __tstate = wxPyBeginAllowThreads();
17413 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17414 wxPyEndAllowThreads(__tstate);
17415 if (PyErr_Occurred()) SWIG_fail;
17416 }
17417 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17418 return resultobj;
17419fail:
17420 return NULL;
d55e5bfc
RD
17421}
17422
17423
1bd55598
RD
17424SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17425 PyObject *obj;
17426 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17427 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17428 return SWIG_Py_Void();
d55e5bfc
RD
17429}
17430
1bd55598
RD
17431SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17432 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
17433}
17434
1bd55598
RD
17435SWIGINTERN int SliderNameStr_set(PyObject *) {
17436 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17437 return 1;
d55e5bfc
RD
17438}
17439
17440
1bd55598
RD
17441SWIGINTERN PyObject *SliderNameStr_get(void) {
17442 PyObject *pyobj = 0;
17443
17444 {
17445#if wxUSE_UNICODE
17446 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17447#else
17448 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17449#endif
17450 }
17451 return pyobj;
17452}
17453
17454
17455SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17456 PyObject *resultobj = 0;
17457 wxWindow *arg1 = (wxWindow *) 0 ;
17458 int arg2 = (int) -1 ;
17459 int arg3 = (int) 0 ;
17460 int arg4 = (int) 0 ;
17461 int arg5 = (int) 100 ;
17462 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17463 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17464 wxSize const &arg7_defvalue = wxDefaultSize ;
17465 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17466 long arg8 = (long) wxSL_HORIZONTAL ;
17467 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17468 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17469 wxString const &arg10_defvalue = wxPySliderNameStr ;
17470 wxString *arg10 = (wxString *) &arg10_defvalue ;
17471 wxSlider *result = 0 ;
17472 void *argp1 = 0 ;
17473 int res1 = 0 ;
17474 int val2 ;
17475 int ecode2 = 0 ;
17476 int val3 ;
17477 int ecode3 = 0 ;
17478 int val4 ;
17479 int ecode4 = 0 ;
17480 int val5 ;
17481 int ecode5 = 0 ;
17482 wxPoint temp6 ;
17483 wxSize temp7 ;
17484 long val8 ;
17485 int ecode8 = 0 ;
17486 void *argp9 = 0 ;
17487 int res9 = 0 ;
17488 bool temp10 = false ;
17489 PyObject * obj0 = 0 ;
17490 PyObject * obj1 = 0 ;
17491 PyObject * obj2 = 0 ;
17492 PyObject * obj3 = 0 ;
17493 PyObject * obj4 = 0 ;
17494 PyObject * obj5 = 0 ;
17495 PyObject * obj6 = 0 ;
17496 PyObject * obj7 = 0 ;
17497 PyObject * obj8 = 0 ;
17498 PyObject * obj9 = 0 ;
17499 char * kwnames[] = {
17500 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17501 };
17502
17503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17505 if (!SWIG_IsOK(res1)) {
17506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17507 }
17508 arg1 = reinterpret_cast< wxWindow * >(argp1);
17509 if (obj1) {
17510 ecode2 = SWIG_AsVal_int(obj1, &val2);
17511 if (!SWIG_IsOK(ecode2)) {
17512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17513 }
17514 arg2 = static_cast< int >(val2);
17515 }
17516 if (obj2) {
17517 ecode3 = SWIG_AsVal_int(obj2, &val3);
17518 if (!SWIG_IsOK(ecode3)) {
17519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17520 }
17521 arg3 = static_cast< int >(val3);
17522 }
17523 if (obj3) {
17524 ecode4 = SWIG_AsVal_int(obj3, &val4);
17525 if (!SWIG_IsOK(ecode4)) {
17526 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17527 }
17528 arg4 = static_cast< int >(val4);
17529 }
17530 if (obj4) {
17531 ecode5 = SWIG_AsVal_int(obj4, &val5);
17532 if (!SWIG_IsOK(ecode5)) {
17533 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17534 }
17535 arg5 = static_cast< int >(val5);
17536 }
17537 if (obj5) {
36ed4f51 17538 {
1bd55598
RD
17539 arg6 = &temp6;
17540 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 17541 }
1bd55598
RD
17542 }
17543 if (obj6) {
36ed4f51 17544 {
1bd55598
RD
17545 arg7 = &temp7;
17546 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
36ed4f51 17547 }
1bd55598
RD
17548 }
17549 if (obj7) {
17550 ecode8 = SWIG_AsVal_long(obj7, &val8);
17551 if (!SWIG_IsOK(ecode8)) {
17552 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17553 }
17554 arg8 = static_cast< long >(val8);
17555 }
17556 if (obj8) {
17557 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17558 if (!SWIG_IsOK(res9)) {
17559 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
36ed4f51 17560 }
1bd55598
RD
17561 if (!argp9) {
17562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
d55e5bfc 17563 }
1bd55598
RD
17564 arg9 = reinterpret_cast< wxValidator * >(argp9);
17565 }
17566 if (obj9) {
d55e5bfc 17567 {
1bd55598
RD
17568 arg10 = wxString_in_helper(obj9);
17569 if (arg10 == NULL) SWIG_fail;
17570 temp10 = true;
d55e5bfc 17571 }
1bd55598
RD
17572 }
17573 {
17574 if (!wxPyCheckForApp()) SWIG_fail;
17575 PyThreadState* __tstate = wxPyBeginAllowThreads();
17576 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17577 wxPyEndAllowThreads(__tstate);
17578 if (PyErr_Occurred()) SWIG_fail;
17579 }
17580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17581 {
17582 if (temp10)
17583 delete arg10;
17584 }
17585 return resultobj;
17586fail:
17587 {
17588 if (temp10)
17589 delete arg10;
17590 }
17591 return NULL;
d55e5bfc
RD
17592}
17593
17594
1bd55598
RD
17595SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17596 PyObject *resultobj = 0;
17597 wxSlider *result = 0 ;
17598
17599 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17600 {
17601 if (!wxPyCheckForApp()) SWIG_fail;
17602 PyThreadState* __tstate = wxPyBeginAllowThreads();
17603 result = (wxSlider *)new wxSlider();
17604 wxPyEndAllowThreads(__tstate);
17605 if (PyErr_Occurred()) SWIG_fail;
17606 }
17607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17608 return resultobj;
17609fail:
17610 return NULL;
17611}
17612
17613
17614SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17615 PyObject *resultobj = 0;
17616 wxSlider *arg1 = (wxSlider *) 0 ;
17617 wxWindow *arg2 = (wxWindow *) 0 ;
17618 int arg3 = (int) -1 ;
17619 int arg4 = (int) 0 ;
17620 int arg5 = (int) 0 ;
17621 int arg6 = (int) 100 ;
17622 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17623 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17624 wxSize const &arg8_defvalue = wxDefaultSize ;
17625 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17626 long arg9 = (long) wxSL_HORIZONTAL ;
17627 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17628 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17629 wxString const &arg11_defvalue = wxPySliderNameStr ;
17630 wxString *arg11 = (wxString *) &arg11_defvalue ;
17631 bool result;
17632 void *argp1 = 0 ;
17633 int res1 = 0 ;
17634 void *argp2 = 0 ;
17635 int res2 = 0 ;
17636 int val3 ;
17637 int ecode3 = 0 ;
17638 int val4 ;
17639 int ecode4 = 0 ;
17640 int val5 ;
17641 int ecode5 = 0 ;
17642 int val6 ;
17643 int ecode6 = 0 ;
17644 wxPoint temp7 ;
17645 wxSize temp8 ;
17646 long val9 ;
17647 int ecode9 = 0 ;
17648 void *argp10 = 0 ;
17649 int res10 = 0 ;
17650 bool temp11 = false ;
17651 PyObject * obj0 = 0 ;
17652 PyObject * obj1 = 0 ;
17653 PyObject * obj2 = 0 ;
17654 PyObject * obj3 = 0 ;
17655 PyObject * obj4 = 0 ;
17656 PyObject * obj5 = 0 ;
17657 PyObject * obj6 = 0 ;
17658 PyObject * obj7 = 0 ;
17659 PyObject * obj8 = 0 ;
17660 PyObject * obj9 = 0 ;
17661 PyObject * obj10 = 0 ;
17662 char * kwnames[] = {
17663 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17664 };
17665
17666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17668 if (!SWIG_IsOK(res1)) {
17669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17670 }
17671 arg1 = reinterpret_cast< wxSlider * >(argp1);
17672 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17673 if (!SWIG_IsOK(res2)) {
17674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17675 }
17676 arg2 = reinterpret_cast< wxWindow * >(argp2);
17677 if (obj2) {
17678 ecode3 = SWIG_AsVal_int(obj2, &val3);
17679 if (!SWIG_IsOK(ecode3)) {
17680 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17681 }
17682 arg3 = static_cast< int >(val3);
17683 }
17684 if (obj3) {
17685 ecode4 = SWIG_AsVal_int(obj3, &val4);
17686 if (!SWIG_IsOK(ecode4)) {
17687 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17688 }
17689 arg4 = static_cast< int >(val4);
17690 }
17691 if (obj4) {
17692 ecode5 = SWIG_AsVal_int(obj4, &val5);
17693 if (!SWIG_IsOK(ecode5)) {
17694 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17695 }
17696 arg5 = static_cast< int >(val5);
17697 }
17698 if (obj5) {
17699 ecode6 = SWIG_AsVal_int(obj5, &val6);
17700 if (!SWIG_IsOK(ecode6)) {
17701 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17702 }
17703 arg6 = static_cast< int >(val6);
17704 }
17705 if (obj6) {
d55e5bfc 17706 {
1bd55598
RD
17707 arg7 = &temp7;
17708 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
d55e5bfc 17709 }
1bd55598
RD
17710 }
17711 if (obj7) {
d55e5bfc 17712 {
1bd55598
RD
17713 arg8 = &temp8;
17714 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
d55e5bfc 17715 }
1bd55598
RD
17716 }
17717 if (obj8) {
17718 ecode9 = SWIG_AsVal_long(obj8, &val9);
17719 if (!SWIG_IsOK(ecode9)) {
17720 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17721 }
17722 arg9 = static_cast< long >(val9);
17723 }
17724 if (obj9) {
17725 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17726 if (!SWIG_IsOK(res10)) {
17727 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17728 }
1bd55598
RD
17729 if (!argp10) {
17730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
d55e5bfc 17731 }
1bd55598
RD
17732 arg10 = reinterpret_cast< wxValidator * >(argp10);
17733 }
17734 if (obj10) {
d55e5bfc 17735 {
1bd55598
RD
17736 arg11 = wxString_in_helper(obj10);
17737 if (arg11 == NULL) SWIG_fail;
17738 temp11 = true;
d55e5bfc 17739 }
1bd55598
RD
17740 }
17741 {
17742 PyThreadState* __tstate = wxPyBeginAllowThreads();
17743 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17744 wxPyEndAllowThreads(__tstate);
17745 if (PyErr_Occurred()) SWIG_fail;
17746 }
17747 {
17748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17749 }
17750 {
17751 if (temp11)
17752 delete arg11;
17753 }
17754 return resultobj;
17755fail:
17756 {
17757 if (temp11)
17758 delete arg11;
17759 }
17760 return NULL;
d55e5bfc
RD
17761}
17762
17763
1bd55598
RD
17764SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17765 PyObject *resultobj = 0;
17766 wxSlider *arg1 = (wxSlider *) 0 ;
17767 int result;
17768 void *argp1 = 0 ;
17769 int res1 = 0 ;
17770 PyObject *swig_obj[1] ;
17771
17772 if (!args) SWIG_fail;
17773 swig_obj[0] = args;
17774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17775 if (!SWIG_IsOK(res1)) {
17776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17777 }
17778 arg1 = reinterpret_cast< wxSlider * >(argp1);
17779 {
17780 PyThreadState* __tstate = wxPyBeginAllowThreads();
17781 result = (int)((wxSlider const *)arg1)->GetValue();
17782 wxPyEndAllowThreads(__tstate);
17783 if (PyErr_Occurred()) SWIG_fail;
17784 }
17785 resultobj = SWIG_From_int(static_cast< int >(result));
17786 return resultobj;
17787fail:
17788 return NULL;
17789}
17790
17791
17792SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17793 PyObject *resultobj = 0;
17794 wxSlider *arg1 = (wxSlider *) 0 ;
17795 int arg2 ;
17796 void *argp1 = 0 ;
17797 int res1 = 0 ;
17798 int val2 ;
17799 int ecode2 = 0 ;
17800 PyObject * obj0 = 0 ;
17801 PyObject * obj1 = 0 ;
17802 char * kwnames[] = {
17803 (char *) "self",(char *) "value", NULL
17804 };
17805
17806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17808 if (!SWIG_IsOK(res1)) {
17809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17810 }
17811 arg1 = reinterpret_cast< wxSlider * >(argp1);
17812 ecode2 = SWIG_AsVal_int(obj1, &val2);
17813 if (!SWIG_IsOK(ecode2)) {
17814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17815 }
17816 arg2 = static_cast< int >(val2);
17817 {
17818 PyThreadState* __tstate = wxPyBeginAllowThreads();
17819 (arg1)->SetValue(arg2);
17820 wxPyEndAllowThreads(__tstate);
17821 if (PyErr_Occurred()) SWIG_fail;
17822 }
17823 resultobj = SWIG_Py_Void();
17824 return resultobj;
17825fail:
17826 return NULL;
17827}
17828
17829
17830SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17831 PyObject *resultobj = 0;
17832 wxSlider *arg1 = (wxSlider *) 0 ;
17833 int arg2 ;
17834 int arg3 ;
17835 void *argp1 = 0 ;
17836 int res1 = 0 ;
17837 int val2 ;
17838 int ecode2 = 0 ;
17839 int val3 ;
17840 int ecode3 = 0 ;
17841 PyObject * obj0 = 0 ;
17842 PyObject * obj1 = 0 ;
17843 PyObject * obj2 = 0 ;
17844 char * kwnames[] = {
17845 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17846 };
17847
17848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17850 if (!SWIG_IsOK(res1)) {
17851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17852 }
17853 arg1 = reinterpret_cast< wxSlider * >(argp1);
17854 ecode2 = SWIG_AsVal_int(obj1, &val2);
17855 if (!SWIG_IsOK(ecode2)) {
17856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17857 }
17858 arg2 = static_cast< int >(val2);
17859 ecode3 = SWIG_AsVal_int(obj2, &val3);
17860 if (!SWIG_IsOK(ecode3)) {
17861 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17862 }
17863 arg3 = static_cast< int >(val3);
17864 {
17865 PyThreadState* __tstate = wxPyBeginAllowThreads();
17866 (arg1)->SetRange(arg2,arg3);
17867 wxPyEndAllowThreads(__tstate);
17868 if (PyErr_Occurred()) SWIG_fail;
17869 }
17870 resultobj = SWIG_Py_Void();
17871 return resultobj;
17872fail:
17873 return NULL;
d55e5bfc
RD
17874}
17875
17876
1bd55598
RD
17877SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17878 PyObject *resultobj = 0;
17879 wxSlider *arg1 = (wxSlider *) 0 ;
17880 int result;
17881 void *argp1 = 0 ;
17882 int res1 = 0 ;
17883 PyObject *swig_obj[1] ;
17884
17885 if (!args) SWIG_fail;
17886 swig_obj[0] = args;
17887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17888 if (!SWIG_IsOK(res1)) {
17889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17890 }
17891 arg1 = reinterpret_cast< wxSlider * >(argp1);
17892 {
17893 PyThreadState* __tstate = wxPyBeginAllowThreads();
17894 result = (int)((wxSlider const *)arg1)->GetMin();
17895 wxPyEndAllowThreads(__tstate);
17896 if (PyErr_Occurred()) SWIG_fail;
17897 }
17898 resultobj = SWIG_From_int(static_cast< int >(result));
17899 return resultobj;
17900fail:
17901 return NULL;
f20a2e1f
RD
17902}
17903
17904
1bd55598
RD
17905SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17906 PyObject *resultobj = 0;
17907 wxSlider *arg1 = (wxSlider *) 0 ;
17908 int result;
17909 void *argp1 = 0 ;
17910 int res1 = 0 ;
17911 PyObject *swig_obj[1] ;
17912
17913 if (!args) SWIG_fail;
17914 swig_obj[0] = args;
17915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17916 if (!SWIG_IsOK(res1)) {
17917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17918 }
17919 arg1 = reinterpret_cast< wxSlider * >(argp1);
17920 {
17921 PyThreadState* __tstate = wxPyBeginAllowThreads();
17922 result = (int)((wxSlider const *)arg1)->GetMax();
17923 wxPyEndAllowThreads(__tstate);
17924 if (PyErr_Occurred()) SWIG_fail;
17925 }
17926 resultobj = SWIG_From_int(static_cast< int >(result));
17927 return resultobj;
17928fail:
17929 return NULL;
17930}
17931
17932
17933SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17934 PyObject *resultobj = 0;
17935 wxSlider *arg1 = (wxSlider *) 0 ;
17936 int arg2 ;
17937 void *argp1 = 0 ;
17938 int res1 = 0 ;
17939 int val2 ;
17940 int ecode2 = 0 ;
17941 PyObject * obj0 = 0 ;
17942 PyObject * obj1 = 0 ;
17943 char * kwnames[] = {
17944 (char *) "self",(char *) "minValue", NULL
17945 };
17946
17947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17949 if (!SWIG_IsOK(res1)) {
17950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17951 }
17952 arg1 = reinterpret_cast< wxSlider * >(argp1);
17953 ecode2 = SWIG_AsVal_int(obj1, &val2);
17954 if (!SWIG_IsOK(ecode2)) {
17955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17956 }
17957 arg2 = static_cast< int >(val2);
17958 {
17959 PyThreadState* __tstate = wxPyBeginAllowThreads();
17960 (arg1)->SetMin(arg2);
17961 wxPyEndAllowThreads(__tstate);
17962 if (PyErr_Occurred()) SWIG_fail;
17963 }
17964 resultobj = SWIG_Py_Void();
17965 return resultobj;
17966fail:
17967 return NULL;
17968}
17969
17970
17971SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17972 PyObject *resultobj = 0;
17973 wxSlider *arg1 = (wxSlider *) 0 ;
17974 int arg2 ;
17975 void *argp1 = 0 ;
17976 int res1 = 0 ;
17977 int val2 ;
17978 int ecode2 = 0 ;
17979 PyObject * obj0 = 0 ;
17980 PyObject * obj1 = 0 ;
17981 char * kwnames[] = {
17982 (char *) "self",(char *) "maxValue", NULL
17983 };
17984
17985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) 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_SetMax" "', 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_SetMax" "', expected argument " "2"" of type '" "int""'");
17994 }
17995 arg2 = static_cast< int >(val2);
17996 {
17997 PyThreadState* __tstate = wxPyBeginAllowThreads();
17998 (arg1)->SetMax(arg2);
17999 wxPyEndAllowThreads(__tstate);
18000 if (PyErr_Occurred()) SWIG_fail;
18001 }
18002 resultobj = SWIG_Py_Void();
18003 return resultobj;
18004fail:
18005 return NULL;
18006}
18007
18008
18009SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18010 PyObject *resultobj = 0;
18011 wxSlider *arg1 = (wxSlider *) 0 ;
18012 int arg2 ;
18013 void *argp1 = 0 ;
18014 int res1 = 0 ;
18015 int val2 ;
18016 int ecode2 = 0 ;
18017 PyObject * obj0 = 0 ;
18018 PyObject * obj1 = 0 ;
18019 char * kwnames[] = {
18020 (char *) "self",(char *) "lineSize", NULL
18021 };
18022
18023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
18024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18025 if (!SWIG_IsOK(res1)) {
18026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18027 }
18028 arg1 = reinterpret_cast< wxSlider * >(argp1);
18029 ecode2 = SWIG_AsVal_int(obj1, &val2);
18030 if (!SWIG_IsOK(ecode2)) {
18031 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
18032 }
18033 arg2 = static_cast< int >(val2);
18034 {
18035 PyThreadState* __tstate = wxPyBeginAllowThreads();
18036 (arg1)->SetLineSize(arg2);
18037 wxPyEndAllowThreads(__tstate);
18038 if (PyErr_Occurred()) SWIG_fail;
18039 }
18040 resultobj = SWIG_Py_Void();
18041 return resultobj;
18042fail:
18043 return NULL;
18044}
18045
18046
18047SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18048 PyObject *resultobj = 0;
18049 wxSlider *arg1 = (wxSlider *) 0 ;
18050 int arg2 ;
18051 void *argp1 = 0 ;
18052 int res1 = 0 ;
18053 int val2 ;
18054 int ecode2 = 0 ;
18055 PyObject * obj0 = 0 ;
18056 PyObject * obj1 = 0 ;
18057 char * kwnames[] = {
18058 (char *) "self",(char *) "pageSize", NULL
18059 };
18060
18061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
18062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18063 if (!SWIG_IsOK(res1)) {
18064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
18065 }
18066 arg1 = reinterpret_cast< wxSlider * >(argp1);
18067 ecode2 = SWIG_AsVal_int(obj1, &val2);
18068 if (!SWIG_IsOK(ecode2)) {
18069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
18070 }
18071 arg2 = static_cast< int >(val2);
18072 {
18073 PyThreadState* __tstate = wxPyBeginAllowThreads();
18074 (arg1)->SetPageSize(arg2);
18075 wxPyEndAllowThreads(__tstate);
18076 if (PyErr_Occurred()) SWIG_fail;
18077 }
18078 resultobj = SWIG_Py_Void();
18079 return resultobj;
18080fail:
18081 return NULL;
d55e5bfc
RD
18082}
18083
18084
1bd55598
RD
18085SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18086 PyObject *resultobj = 0;
18087 wxSlider *arg1 = (wxSlider *) 0 ;
18088 int result;
18089 void *argp1 = 0 ;
18090 int res1 = 0 ;
18091 PyObject *swig_obj[1] ;
18092
18093 if (!args) SWIG_fail;
18094 swig_obj[0] = args;
18095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18096 if (!SWIG_IsOK(res1)) {
18097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18098 }
18099 arg1 = reinterpret_cast< wxSlider * >(argp1);
18100 {
18101 PyThreadState* __tstate = wxPyBeginAllowThreads();
18102 result = (int)((wxSlider const *)arg1)->GetLineSize();
18103 wxPyEndAllowThreads(__tstate);
18104 if (PyErr_Occurred()) SWIG_fail;
18105 }
18106 resultobj = SWIG_From_int(static_cast< int >(result));
18107 return resultobj;
18108fail:
18109 return NULL;
d55e5bfc
RD
18110}
18111
18112
1bd55598
RD
18113SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18114 PyObject *resultobj = 0;
18115 wxSlider *arg1 = (wxSlider *) 0 ;
18116 int result;
18117 void *argp1 = 0 ;
18118 int res1 = 0 ;
18119 PyObject *swig_obj[1] ;
18120
18121 if (!args) SWIG_fail;
18122 swig_obj[0] = args;
18123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18124 if (!SWIG_IsOK(res1)) {
18125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
18126 }
18127 arg1 = reinterpret_cast< wxSlider * >(argp1);
18128 {
18129 PyThreadState* __tstate = wxPyBeginAllowThreads();
18130 result = (int)((wxSlider const *)arg1)->GetPageSize();
18131 wxPyEndAllowThreads(__tstate);
18132 if (PyErr_Occurred()) SWIG_fail;
18133 }
18134 resultobj = SWIG_From_int(static_cast< int >(result));
18135 return resultobj;
18136fail:
18137 return NULL;
18138}
18139
18140
18141SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18142 PyObject *resultobj = 0;
18143 wxSlider *arg1 = (wxSlider *) 0 ;
18144 int arg2 ;
18145 void *argp1 = 0 ;
18146 int res1 = 0 ;
18147 int val2 ;
18148 int ecode2 = 0 ;
18149 PyObject * obj0 = 0 ;
18150 PyObject * obj1 = 0 ;
18151 char * kwnames[] = {
18152 (char *) "self",(char *) "lenPixels", NULL
18153 };
18154
18155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18157 if (!SWIG_IsOK(res1)) {
18158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18159 }
18160 arg1 = reinterpret_cast< wxSlider * >(argp1);
18161 ecode2 = SWIG_AsVal_int(obj1, &val2);
18162 if (!SWIG_IsOK(ecode2)) {
18163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18164 }
18165 arg2 = static_cast< int >(val2);
18166 {
18167 PyThreadState* __tstate = wxPyBeginAllowThreads();
18168 (arg1)->SetThumbLength(arg2);
18169 wxPyEndAllowThreads(__tstate);
18170 if (PyErr_Occurred()) SWIG_fail;
18171 }
18172 resultobj = SWIG_Py_Void();
18173 return resultobj;
18174fail:
18175 return NULL;
d55e5bfc
RD
18176}
18177
18178
1bd55598
RD
18179SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18180 PyObject *resultobj = 0;
18181 wxSlider *arg1 = (wxSlider *) 0 ;
18182 int result;
18183 void *argp1 = 0 ;
18184 int res1 = 0 ;
18185 PyObject *swig_obj[1] ;
18186
18187 if (!args) SWIG_fail;
18188 swig_obj[0] = args;
18189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18190 if (!SWIG_IsOK(res1)) {
18191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18192 }
18193 arg1 = reinterpret_cast< wxSlider * >(argp1);
18194 {
18195 PyThreadState* __tstate = wxPyBeginAllowThreads();
18196 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18197 wxPyEndAllowThreads(__tstate);
18198 if (PyErr_Occurred()) SWIG_fail;
18199 }
18200 resultobj = SWIG_From_int(static_cast< int >(result));
18201 return resultobj;
18202fail:
18203 return NULL;
18204}
18205
18206
18207SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18208 PyObject *resultobj = 0;
18209 wxSlider *arg1 = (wxSlider *) 0 ;
18210 int arg2 ;
18211 int arg3 = (int) 1 ;
18212 void *argp1 = 0 ;
18213 int res1 = 0 ;
18214 int val2 ;
18215 int ecode2 = 0 ;
18216 int val3 ;
18217 int ecode3 = 0 ;
18218 PyObject * obj0 = 0 ;
18219 PyObject * obj1 = 0 ;
18220 PyObject * obj2 = 0 ;
18221 char * kwnames[] = {
18222 (char *) "self",(char *) "n",(char *) "pos", NULL
18223 };
18224
18225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18227 if (!SWIG_IsOK(res1)) {
18228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18229 }
18230 arg1 = reinterpret_cast< wxSlider * >(argp1);
18231 ecode2 = SWIG_AsVal_int(obj1, &val2);
18232 if (!SWIG_IsOK(ecode2)) {
18233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18234 }
18235 arg2 = static_cast< int >(val2);
18236 if (obj2) {
18237 ecode3 = SWIG_AsVal_int(obj2, &val3);
18238 if (!SWIG_IsOK(ecode3)) {
18239 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18240 }
18241 arg3 = static_cast< int >(val3);
18242 }
18243 {
18244 PyThreadState* __tstate = wxPyBeginAllowThreads();
18245 (arg1)->SetTickFreq(arg2,arg3);
18246 wxPyEndAllowThreads(__tstate);
18247 if (PyErr_Occurred()) SWIG_fail;
18248 }
18249 resultobj = SWIG_Py_Void();
18250 return resultobj;
18251fail:
18252 return NULL;
d55e5bfc
RD
18253}
18254
18255
1bd55598
RD
18256SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18257 PyObject *resultobj = 0;
18258 wxSlider *arg1 = (wxSlider *) 0 ;
18259 int result;
18260 void *argp1 = 0 ;
18261 int res1 = 0 ;
18262 PyObject *swig_obj[1] ;
18263
18264 if (!args) SWIG_fail;
18265 swig_obj[0] = args;
18266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18267 if (!SWIG_IsOK(res1)) {
18268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18269 }
18270 arg1 = reinterpret_cast< wxSlider * >(argp1);
18271 {
18272 PyThreadState* __tstate = wxPyBeginAllowThreads();
18273 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18274 wxPyEndAllowThreads(__tstate);
18275 if (PyErr_Occurred()) SWIG_fail;
18276 }
18277 resultobj = SWIG_From_int(static_cast< int >(result));
18278 return resultobj;
18279fail:
18280 return NULL;
d55e5bfc
RD
18281}
18282
18283
1bd55598
RD
18284SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18285 PyObject *resultobj = 0;
18286 wxSlider *arg1 = (wxSlider *) 0 ;
18287 void *argp1 = 0 ;
18288 int res1 = 0 ;
18289 PyObject *swig_obj[1] ;
18290
18291 if (!args) SWIG_fail;
18292 swig_obj[0] = args;
18293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18294 if (!SWIG_IsOK(res1)) {
18295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18296 }
18297 arg1 = reinterpret_cast< wxSlider * >(argp1);
18298 {
18299 PyThreadState* __tstate = wxPyBeginAllowThreads();
18300 (arg1)->ClearTicks();
18301 wxPyEndAllowThreads(__tstate);
18302 if (PyErr_Occurred()) SWIG_fail;
18303 }
18304 resultobj = SWIG_Py_Void();
18305 return resultobj;
18306fail:
18307 return NULL;
18308}
18309
18310
18311SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18312 PyObject *resultobj = 0;
18313 wxSlider *arg1 = (wxSlider *) 0 ;
18314 int arg2 ;
18315 void *argp1 = 0 ;
18316 int res1 = 0 ;
18317 int val2 ;
18318 int ecode2 = 0 ;
18319 PyObject * obj0 = 0 ;
18320 PyObject * obj1 = 0 ;
18321 char * kwnames[] = {
18322 (char *) "self",(char *) "tickPos", NULL
18323 };
18324
18325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18327 if (!SWIG_IsOK(res1)) {
18328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18329 }
18330 arg1 = reinterpret_cast< wxSlider * >(argp1);
18331 ecode2 = SWIG_AsVal_int(obj1, &val2);
18332 if (!SWIG_IsOK(ecode2)) {
18333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18334 }
18335 arg2 = static_cast< int >(val2);
18336 {
18337 PyThreadState* __tstate = wxPyBeginAllowThreads();
18338 (arg1)->SetTick(arg2);
18339 wxPyEndAllowThreads(__tstate);
18340 if (PyErr_Occurred()) SWIG_fail;
18341 }
18342 resultobj = SWIG_Py_Void();
18343 return resultobj;
18344fail:
18345 return NULL;
d55e5bfc
RD
18346}
18347
18348
1bd55598
RD
18349SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18350 PyObject *resultobj = 0;
18351 wxSlider *arg1 = (wxSlider *) 0 ;
18352 void *argp1 = 0 ;
18353 int res1 = 0 ;
18354 PyObject *swig_obj[1] ;
18355
18356 if (!args) SWIG_fail;
18357 swig_obj[0] = args;
18358 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18359 if (!SWIG_IsOK(res1)) {
18360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18361 }
18362 arg1 = reinterpret_cast< wxSlider * >(argp1);
18363 {
18364 PyThreadState* __tstate = wxPyBeginAllowThreads();
18365 (arg1)->ClearSel();
18366 wxPyEndAllowThreads(__tstate);
18367 if (PyErr_Occurred()) SWIG_fail;
18368 }
18369 resultobj = SWIG_Py_Void();
18370 return resultobj;
18371fail:
18372 return NULL;
d55e5bfc
RD
18373}
18374
18375
1bd55598
RD
18376SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18377 PyObject *resultobj = 0;
18378 wxSlider *arg1 = (wxSlider *) 0 ;
18379 int result;
18380 void *argp1 = 0 ;
18381 int res1 = 0 ;
18382 PyObject *swig_obj[1] ;
18383
18384 if (!args) SWIG_fail;
18385 swig_obj[0] = args;
18386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18387 if (!SWIG_IsOK(res1)) {
18388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18389 }
18390 arg1 = reinterpret_cast< wxSlider * >(argp1);
18391 {
18392 PyThreadState* __tstate = wxPyBeginAllowThreads();
18393 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18394 wxPyEndAllowThreads(__tstate);
18395 if (PyErr_Occurred()) SWIG_fail;
18396 }
18397 resultobj = SWIG_From_int(static_cast< int >(result));
18398 return resultobj;
18399fail:
18400 return NULL;
d55e5bfc
RD
18401}
18402
18403
1bd55598
RD
18404SWIGINTERN PyObject *_wrap_Slider_GetSelStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18405 PyObject *resultobj = 0;
18406 wxSlider *arg1 = (wxSlider *) 0 ;
18407 int result;
18408 void *argp1 = 0 ;
18409 int res1 = 0 ;
18410 PyObject *swig_obj[1] ;
18411
18412 if (!args) SWIG_fail;
18413 swig_obj[0] = args;
18414 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18415 if (!SWIG_IsOK(res1)) {
18416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelStart" "', expected argument " "1"" of type '" "wxSlider const *""'");
18417 }
18418 arg1 = reinterpret_cast< wxSlider * >(argp1);
18419 {
18420 PyThreadState* __tstate = wxPyBeginAllowThreads();
18421 result = (int)((wxSlider const *)arg1)->GetSelStart();
18422 wxPyEndAllowThreads(__tstate);
18423 if (PyErr_Occurred()) SWIG_fail;
18424 }
18425 resultobj = SWIG_From_int(static_cast< int >(result));
18426 return resultobj;
18427fail:
18428 return NULL;
18429}
18430
18431
18432SWIGINTERN PyObject *_wrap_Slider_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18433 PyObject *resultobj = 0;
18434 wxSlider *arg1 = (wxSlider *) 0 ;
18435 int arg2 ;
18436 int arg3 ;
18437 void *argp1 = 0 ;
18438 int res1 = 0 ;
18439 int val2 ;
18440 int ecode2 = 0 ;
18441 int val3 ;
18442 int ecode3 = 0 ;
18443 PyObject * obj0 = 0 ;
18444 PyObject * obj1 = 0 ;
18445 PyObject * obj2 = 0 ;
18446 char * kwnames[] = {
18447 (char *) "self",(char *) "min",(char *) "max", NULL
18448 };
18449
18450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18452 if (!SWIG_IsOK(res1)) {
18453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18454 }
18455 arg1 = reinterpret_cast< wxSlider * >(argp1);
18456 ecode2 = SWIG_AsVal_int(obj1, &val2);
18457 if (!SWIG_IsOK(ecode2)) {
18458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18459 }
18460 arg2 = static_cast< int >(val2);
18461 ecode3 = SWIG_AsVal_int(obj2, &val3);
18462 if (!SWIG_IsOK(ecode3)) {
18463 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18464 }
18465 arg3 = static_cast< int >(val3);
18466 {
18467 PyThreadState* __tstate = wxPyBeginAllowThreads();
18468 (arg1)->SetSelection(arg2,arg3);
18469 wxPyEndAllowThreads(__tstate);
18470 if (PyErr_Occurred()) SWIG_fail;
18471 }
18472 resultobj = SWIG_Py_Void();
18473 return resultobj;
18474fail:
18475 return NULL;
18476}
18477
18478
18479SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18480 PyObject *resultobj = 0;
18481 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18482 SwigValueWrapper<wxVisualAttributes > result;
18483 int val1 ;
18484 int ecode1 = 0 ;
18485 PyObject * obj0 = 0 ;
18486 char * kwnames[] = {
18487 (char *) "variant", NULL
18488 };
18489
18490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18491 if (obj0) {
18492 ecode1 = SWIG_AsVal_int(obj0, &val1);
18493 if (!SWIG_IsOK(ecode1)) {
18494 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18495 }
18496 arg1 = static_cast< wxWindowVariant >(val1);
18497 }
18498 {
18499 if (!wxPyCheckForApp()) SWIG_fail;
18500 PyThreadState* __tstate = wxPyBeginAllowThreads();
18501 result = wxSlider::GetClassDefaultAttributes(arg1);
18502 wxPyEndAllowThreads(__tstate);
18503 if (PyErr_Occurred()) SWIG_fail;
18504 }
18505 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18506 return resultobj;
18507fail:
18508 return NULL;
d55e5bfc
RD
18509}
18510
18511
1bd55598
RD
18512SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18513 PyObject *obj;
18514 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18515 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18516 return SWIG_Py_Void();
d55e5bfc
RD
18517}
18518
1bd55598
RD
18519SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18520 return SWIG_Python_InitShadowInstance(args);
18521}
d55e5bfc 18522
1bd55598
RD
18523SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18524 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18525 return 1;
d55e5bfc
RD
18526}
18527
18528
1bd55598
RD
18529SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18530 PyObject *pyobj = 0;
18531
18532 {
18533#if wxUSE_UNICODE
18534 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18535#else
18536 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18537#endif
18538 }
18539 return pyobj;
18540}
18541
18542
18543SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18544 PyObject *resultobj = 0;
18545 wxWindow *arg1 = (wxWindow *) 0 ;
18546 int arg2 = (int) -1 ;
18547 wxString const &arg3_defvalue = wxPyEmptyString ;
18548 wxString *arg3 = (wxString *) &arg3_defvalue ;
18549 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18550 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18551 wxSize const &arg5_defvalue = wxDefaultSize ;
18552 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18553 long arg6 = (long) 0 ;
18554 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18555 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18556 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18557 wxString *arg8 = (wxString *) &arg8_defvalue ;
18558 wxToggleButton *result = 0 ;
18559 void *argp1 = 0 ;
18560 int res1 = 0 ;
18561 int val2 ;
18562 int ecode2 = 0 ;
18563 bool temp3 = false ;
18564 wxPoint temp4 ;
18565 wxSize temp5 ;
18566 long val6 ;
18567 int ecode6 = 0 ;
18568 void *argp7 = 0 ;
18569 int res7 = 0 ;
18570 bool temp8 = false ;
18571 PyObject * obj0 = 0 ;
18572 PyObject * obj1 = 0 ;
18573 PyObject * obj2 = 0 ;
18574 PyObject * obj3 = 0 ;
18575 PyObject * obj4 = 0 ;
18576 PyObject * obj5 = 0 ;
18577 PyObject * obj6 = 0 ;
18578 PyObject * obj7 = 0 ;
18579 char * kwnames[] = {
18580 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18581 };
18582
18583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18585 if (!SWIG_IsOK(res1)) {
18586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18587 }
18588 arg1 = reinterpret_cast< wxWindow * >(argp1);
18589 if (obj1) {
18590 ecode2 = SWIG_AsVal_int(obj1, &val2);
18591 if (!SWIG_IsOK(ecode2)) {
18592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18593 }
18594 arg2 = static_cast< int >(val2);
18595 }
18596 if (obj2) {
d55e5bfc 18597 {
1bd55598
RD
18598 arg3 = wxString_in_helper(obj2);
18599 if (arg3 == NULL) SWIG_fail;
18600 temp3 = true;
d55e5bfc 18601 }
1bd55598
RD
18602 }
18603 if (obj3) {
36ed4f51 18604 {
1bd55598
RD
18605 arg4 = &temp4;
18606 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 18607 }
1bd55598
RD
18608 }
18609 if (obj4) {
d55e5bfc 18610 {
1bd55598
RD
18611 arg5 = &temp5;
18612 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 18613 }
1bd55598
RD
18614 }
18615 if (obj5) {
18616 ecode6 = SWIG_AsVal_long(obj5, &val6);
18617 if (!SWIG_IsOK(ecode6)) {
18618 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18619 }
18620 arg6 = static_cast< long >(val6);
18621 }
18622 if (obj6) {
18623 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18624 if (!SWIG_IsOK(res7)) {
18625 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 18626 }
1bd55598
RD
18627 if (!argp7) {
18628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 18629 }
1bd55598
RD
18630 arg7 = reinterpret_cast< wxValidator * >(argp7);
18631 }
18632 if (obj7) {
d55e5bfc 18633 {
1bd55598
RD
18634 arg8 = wxString_in_helper(obj7);
18635 if (arg8 == NULL) SWIG_fail;
18636 temp8 = true;
d55e5bfc 18637 }
1bd55598
RD
18638 }
18639 {
18640 if (!wxPyCheckForApp()) SWIG_fail;
18641 PyThreadState* __tstate = wxPyBeginAllowThreads();
18642 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18643 wxPyEndAllowThreads(__tstate);
18644 if (PyErr_Occurred()) SWIG_fail;
18645 }
18646 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18647 {
18648 if (temp3)
18649 delete arg3;
18650 }
18651 {
18652 if (temp8)
18653 delete arg8;
18654 }
18655 return resultobj;
18656fail:
18657 {
18658 if (temp3)
18659 delete arg3;
18660 }
18661 {
18662 if (temp8)
18663 delete arg8;
18664 }
18665 return NULL;
d55e5bfc
RD
18666}
18667
18668
1bd55598
RD
18669SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18670 PyObject *resultobj = 0;
18671 wxToggleButton *result = 0 ;
18672
18673 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18674 {
18675 if (!wxPyCheckForApp()) SWIG_fail;
18676 PyThreadState* __tstate = wxPyBeginAllowThreads();
18677 result = (wxToggleButton *)new wxToggleButton();
18678 wxPyEndAllowThreads(__tstate);
18679 if (PyErr_Occurred()) SWIG_fail;
18680 }
18681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18682 return resultobj;
18683fail:
18684 return NULL;
18685}
18686
18687
18688SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18689 PyObject *resultobj = 0;
18690 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18691 wxWindow *arg2 = (wxWindow *) 0 ;
18692 int arg3 = (int) -1 ;
18693 wxString const &arg4_defvalue = wxPyEmptyString ;
18694 wxString *arg4 = (wxString *) &arg4_defvalue ;
18695 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18696 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18697 wxSize const &arg6_defvalue = wxDefaultSize ;
18698 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18699 long arg7 = (long) 0 ;
18700 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18701 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18702 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18703 wxString *arg9 = (wxString *) &arg9_defvalue ;
18704 bool result;
18705 void *argp1 = 0 ;
18706 int res1 = 0 ;
18707 void *argp2 = 0 ;
18708 int res2 = 0 ;
18709 int val3 ;
18710 int ecode3 = 0 ;
18711 bool temp4 = false ;
18712 wxPoint temp5 ;
18713 wxSize temp6 ;
18714 long val7 ;
18715 int ecode7 = 0 ;
18716 void *argp8 = 0 ;
18717 int res8 = 0 ;
18718 bool temp9 = false ;
18719 PyObject * obj0 = 0 ;
18720 PyObject * obj1 = 0 ;
18721 PyObject * obj2 = 0 ;
18722 PyObject * obj3 = 0 ;
18723 PyObject * obj4 = 0 ;
18724 PyObject * obj5 = 0 ;
18725 PyObject * obj6 = 0 ;
18726 PyObject * obj7 = 0 ;
18727 PyObject * obj8 = 0 ;
18728 char * kwnames[] = {
18729 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18730 };
18731
18732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18734 if (!SWIG_IsOK(res1)) {
18735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18736 }
18737 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18738 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18739 if (!SWIG_IsOK(res2)) {
18740 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18741 }
18742 arg2 = reinterpret_cast< wxWindow * >(argp2);
18743 if (obj2) {
18744 ecode3 = SWIG_AsVal_int(obj2, &val3);
18745 if (!SWIG_IsOK(ecode3)) {
18746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18747 }
18748 arg3 = static_cast< int >(val3);
18749 }
18750 if (obj3) {
36ed4f51 18751 {
1bd55598
RD
18752 arg4 = wxString_in_helper(obj3);
18753 if (arg4 == NULL) SWIG_fail;
18754 temp4 = true;
36ed4f51 18755 }
1bd55598
RD
18756 }
18757 if (obj4) {
36ed4f51 18758 {
1bd55598
RD
18759 arg5 = &temp5;
18760 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 18761 }
1bd55598
RD
18762 }
18763 if (obj5) {
36ed4f51 18764 {
1bd55598
RD
18765 arg6 = &temp6;
18766 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
36ed4f51 18767 }
1bd55598
RD
18768 }
18769 if (obj6) {
18770 ecode7 = SWIG_AsVal_long(obj6, &val7);
18771 if (!SWIG_IsOK(ecode7)) {
18772 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18773 }
18774 arg7 = static_cast< long >(val7);
18775 }
18776 if (obj7) {
18777 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18778 if (!SWIG_IsOK(res8)) {
18779 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 18780 }
1bd55598
RD
18781 if (!argp8) {
18782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 18783 }
1bd55598
RD
18784 arg8 = reinterpret_cast< wxValidator * >(argp8);
18785 }
18786 if (obj8) {
d55e5bfc 18787 {
1bd55598
RD
18788 arg9 = wxString_in_helper(obj8);
18789 if (arg9 == NULL) SWIG_fail;
18790 temp9 = true;
d55e5bfc 18791 }
1bd55598
RD
18792 }
18793 {
18794 PyThreadState* __tstate = wxPyBeginAllowThreads();
18795 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18796 wxPyEndAllowThreads(__tstate);
18797 if (PyErr_Occurred()) SWIG_fail;
18798 }
18799 {
18800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18801 }
18802 {
18803 if (temp4)
18804 delete arg4;
18805 }
18806 {
18807 if (temp9)
18808 delete arg9;
18809 }
18810 return resultobj;
18811fail:
18812 {
18813 if (temp4)
18814 delete arg4;
18815 }
18816 {
18817 if (temp9)
18818 delete arg9;
18819 }
18820 return NULL;
18821}
18822
18823
18824SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18825 PyObject *resultobj = 0;
18826 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18827 bool arg2 ;
18828 void *argp1 = 0 ;
18829 int res1 = 0 ;
18830 bool val2 ;
18831 int ecode2 = 0 ;
18832 PyObject * obj0 = 0 ;
18833 PyObject * obj1 = 0 ;
18834 char * kwnames[] = {
18835 (char *) "self",(char *) "value", NULL
18836 };
18837
18838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18840 if (!SWIG_IsOK(res1)) {
18841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18842 }
18843 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18844 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18845 if (!SWIG_IsOK(ecode2)) {
18846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18847 }
18848 arg2 = static_cast< bool >(val2);
18849 {
18850 PyThreadState* __tstate = wxPyBeginAllowThreads();
18851 (arg1)->SetValue(arg2);
18852 wxPyEndAllowThreads(__tstate);
18853 if (PyErr_Occurred()) SWIG_fail;
18854 }
18855 resultobj = SWIG_Py_Void();
18856 return resultobj;
18857fail:
18858 return NULL;
d55e5bfc
RD
18859}
18860
18861
1bd55598
RD
18862SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18863 PyObject *resultobj = 0;
18864 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18865 bool result;
18866 void *argp1 = 0 ;
18867 int res1 = 0 ;
18868 PyObject *swig_obj[1] ;
18869
18870 if (!args) SWIG_fail;
18871 swig_obj[0] = args;
18872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18873 if (!SWIG_IsOK(res1)) {
18874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18875 }
18876 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18877 {
18878 PyThreadState* __tstate = wxPyBeginAllowThreads();
18879 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18880 wxPyEndAllowThreads(__tstate);
18881 if (PyErr_Occurred()) SWIG_fail;
18882 }
18883 {
18884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18885 }
18886 return resultobj;
18887fail:
18888 return NULL;
f20a2e1f
RD
18889}
18890
18891
1bd55598
RD
18892SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18893 PyObject *resultobj = 0;
18894 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18895 SwigValueWrapper<wxVisualAttributes > result;
18896 int val1 ;
18897 int ecode1 = 0 ;
18898 PyObject * obj0 = 0 ;
18899 char * kwnames[] = {
18900 (char *) "variant", NULL
18901 };
18902
18903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18904 if (obj0) {
18905 ecode1 = SWIG_AsVal_int(obj0, &val1);
18906 if (!SWIG_IsOK(ecode1)) {
18907 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18908 }
18909 arg1 = static_cast< wxWindowVariant >(val1);
18910 }
18911 {
18912 if (!wxPyCheckForApp()) SWIG_fail;
18913 PyThreadState* __tstate = wxPyBeginAllowThreads();
18914 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18915 wxPyEndAllowThreads(__tstate);
18916 if (PyErr_Occurred()) SWIG_fail;
18917 }
18918 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18919 return resultobj;
18920fail:
18921 return NULL;
d55e5bfc
RD
18922}
18923
18924
1bd55598
RD
18925SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18926 PyObject *obj;
18927 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18928 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18929 return SWIG_Py_Void();
d55e5bfc
RD
18930}
18931
1bd55598
RD
18932SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18933 return SWIG_Python_InitShadowInstance(args);
18934}
d55e5bfc 18935
1bd55598
RD
18936SWIGINTERN int NotebookNameStr_set(PyObject *) {
18937 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18938 return 1;
d55e5bfc
RD
18939}
18940
18941
1bd55598
RD
18942SWIGINTERN PyObject *NotebookNameStr_get(void) {
18943 PyObject *pyobj = 0;
18944
18945 {
d55e5bfc 18946#if wxUSE_UNICODE
1bd55598 18947 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 18948#else
1bd55598 18949 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
d55e5bfc 18950#endif
1bd55598
RD
18951 }
18952 return pyobj;
d55e5bfc
RD
18953}
18954
18955
1bd55598
RD
18956SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18957 PyObject *resultobj = 0;
18958 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18959 size_t result;
18960 void *argp1 = 0 ;
18961 int res1 = 0 ;
18962 PyObject *swig_obj[1] ;
18963
18964 if (!args) SWIG_fail;
18965 swig_obj[0] = args;
18966 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18967 if (!SWIG_IsOK(res1)) {
18968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18969 }
18970 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18971 {
18972 PyThreadState* __tstate = wxPyBeginAllowThreads();
18973 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18974 wxPyEndAllowThreads(__tstate);
18975 if (PyErr_Occurred()) SWIG_fail;
18976 }
18977 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18978 return resultobj;
18979fail:
18980 return NULL;
18981}
18982
18983
18984SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18985 PyObject *resultobj = 0;
18986 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18987 size_t arg2 ;
18988 wxWindow *result = 0 ;
18989 void *argp1 = 0 ;
18990 int res1 = 0 ;
18991 size_t val2 ;
18992 int ecode2 = 0 ;
18993 PyObject * obj0 = 0 ;
18994 PyObject * obj1 = 0 ;
18995 char * kwnames[] = {
18996 (char *) "self",(char *) "n", NULL
18997 };
18998
18999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
19000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19001 if (!SWIG_IsOK(res1)) {
19002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19003 }
19004 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19005 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19006 if (!SWIG_IsOK(ecode2)) {
19007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
19008 }
19009 arg2 = static_cast< size_t >(val2);
19010 {
19011 PyThreadState* __tstate = wxPyBeginAllowThreads();
19012 result = (wxWindow *)(arg1)->GetPage(arg2);
19013 wxPyEndAllowThreads(__tstate);
19014 if (PyErr_Occurred()) SWIG_fail;
19015 }
19016 {
19017 resultobj = wxPyMake_wxObject(result, 0);
19018 }
19019 return resultobj;
19020fail:
19021 return NULL;
d55e5bfc
RD
19022}
19023
19024
1bd55598
RD
19025SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19026 PyObject *resultobj = 0;
19027 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19028 wxWindow *result = 0 ;
19029 void *argp1 = 0 ;
19030 int res1 = 0 ;
19031 PyObject *swig_obj[1] ;
19032
19033 if (!args) SWIG_fail;
19034 swig_obj[0] = args;
19035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19036 if (!SWIG_IsOK(res1)) {
19037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19038 }
19039 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19040 {
19041 PyThreadState* __tstate = wxPyBeginAllowThreads();
19042 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
19043 wxPyEndAllowThreads(__tstate);
19044 if (PyErr_Occurred()) SWIG_fail;
19045 }
19046 {
19047 resultobj = wxPyMake_wxObject(result, 0);
19048 }
19049 return resultobj;
19050fail:
19051 return NULL;
d55e5bfc
RD
19052}
19053
19054
1bd55598
RD
19055SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19056 PyObject *resultobj = 0;
19057 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19058 int result;
19059 void *argp1 = 0 ;
19060 int res1 = 0 ;
19061 PyObject *swig_obj[1] ;
19062
19063 if (!args) SWIG_fail;
19064 swig_obj[0] = args;
19065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19066 if (!SWIG_IsOK(res1)) {
19067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19068 }
19069 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19070 {
19071 PyThreadState* __tstate = wxPyBeginAllowThreads();
19072 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
19073 wxPyEndAllowThreads(__tstate);
19074 if (PyErr_Occurred()) SWIG_fail;
19075 }
19076 resultobj = SWIG_From_int(static_cast< int >(result));
19077 return resultobj;
19078fail:
19079 return NULL;
19080}
19081
19082
19083SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19084 PyObject *resultobj = 0;
19085 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19086 size_t arg2 ;
19087 wxString *arg3 = 0 ;
19088 bool result;
19089 void *argp1 = 0 ;
19090 int res1 = 0 ;
19091 size_t val2 ;
19092 int ecode2 = 0 ;
19093 bool temp3 = false ;
19094 PyObject * obj0 = 0 ;
19095 PyObject * obj1 = 0 ;
19096 PyObject * obj2 = 0 ;
19097 char * kwnames[] = {
19098 (char *) "self",(char *) "n",(char *) "strText", NULL
19099 };
19100
19101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19103 if (!SWIG_IsOK(res1)) {
19104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19105 }
19106 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19107 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19108 if (!SWIG_IsOK(ecode2)) {
19109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
19110 }
19111 arg2 = static_cast< size_t >(val2);
19112 {
19113 arg3 = wxString_in_helper(obj2);
19114 if (arg3 == NULL) SWIG_fail;
19115 temp3 = true;
19116 }
19117 {
19118 PyThreadState* __tstate = wxPyBeginAllowThreads();
19119 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
19120 wxPyEndAllowThreads(__tstate);
19121 if (PyErr_Occurred()) SWIG_fail;
19122 }
19123 {
19124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19125 }
19126 {
19127 if (temp3)
19128 delete arg3;
19129 }
19130 return resultobj;
19131fail:
19132 {
19133 if (temp3)
19134 delete arg3;
19135 }
19136 return NULL;
19137}
19138
19139
19140SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19141 PyObject *resultobj = 0;
19142 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19143 size_t arg2 ;
19144 wxString result;
19145 void *argp1 = 0 ;
19146 int res1 = 0 ;
19147 size_t val2 ;
19148 int ecode2 = 0 ;
19149 PyObject * obj0 = 0 ;
19150 PyObject * obj1 = 0 ;
19151 char * kwnames[] = {
19152 (char *) "self",(char *) "n", NULL
19153 };
19154
19155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19157 if (!SWIG_IsOK(res1)) {
19158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19159 }
19160 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19161 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19162 if (!SWIG_IsOK(ecode2)) {
19163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19164 }
19165 arg2 = static_cast< size_t >(val2);
19166 {
19167 PyThreadState* __tstate = wxPyBeginAllowThreads();
19168 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19169 wxPyEndAllowThreads(__tstate);
19170 if (PyErr_Occurred()) SWIG_fail;
19171 }
19172 {
19173#if wxUSE_UNICODE
19174 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19175#else
19176 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19177#endif
19178 }
19179 return resultobj;
19180fail:
19181 return NULL;
19182}
19183
19184
19185SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19186 PyObject *resultobj = 0;
19187 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19188 wxImageList *arg2 = (wxImageList *) 0 ;
19189 void *argp1 = 0 ;
19190 int res1 = 0 ;
19191 void *argp2 = 0 ;
19192 int res2 = 0 ;
19193 PyObject * obj0 = 0 ;
19194 PyObject * obj1 = 0 ;
19195 char * kwnames[] = {
19196 (char *) "self",(char *) "imageList", NULL
19197 };
19198
19199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19201 if (!SWIG_IsOK(res1)) {
19202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19203 }
19204 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19205 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19206 if (!SWIG_IsOK(res2)) {
19207 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19208 }
19209 arg2 = reinterpret_cast< wxImageList * >(argp2);
19210 {
19211 PyThreadState* __tstate = wxPyBeginAllowThreads();
19212 (arg1)->SetImageList(arg2);
19213 wxPyEndAllowThreads(__tstate);
19214 if (PyErr_Occurred()) SWIG_fail;
19215 }
19216 resultobj = SWIG_Py_Void();
19217 return resultobj;
19218fail:
19219 return NULL;
19220}
19221
19222
19223SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19224 PyObject *resultobj = 0;
19225 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19226 wxImageList *arg2 = (wxImageList *) 0 ;
19227 void *argp1 = 0 ;
19228 int res1 = 0 ;
19229 int res2 = 0 ;
19230 PyObject * obj0 = 0 ;
19231 PyObject * obj1 = 0 ;
19232 char * kwnames[] = {
19233 (char *) "self",(char *) "imageList", NULL
19234 };
19235
19236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19238 if (!SWIG_IsOK(res1)) {
19239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19240 }
19241 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19242 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19243 if (!SWIG_IsOK(res2)) {
19244 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19245 }
19246 {
19247 PyThreadState* __tstate = wxPyBeginAllowThreads();
19248 (arg1)->AssignImageList(arg2);
19249 wxPyEndAllowThreads(__tstate);
19250 if (PyErr_Occurred()) SWIG_fail;
19251 }
19252 resultobj = SWIG_Py_Void();
19253 return resultobj;
19254fail:
19255 return NULL;
d55e5bfc
RD
19256}
19257
19258
1bd55598
RD
19259SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19260 PyObject *resultobj = 0;
19261 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19262 wxImageList *result = 0 ;
19263 void *argp1 = 0 ;
19264 int res1 = 0 ;
19265 PyObject *swig_obj[1] ;
19266
19267 if (!args) SWIG_fail;
19268 swig_obj[0] = args;
19269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19270 if (!SWIG_IsOK(res1)) {
19271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19272 }
19273 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19274 {
19275 PyThreadState* __tstate = wxPyBeginAllowThreads();
19276 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19277 wxPyEndAllowThreads(__tstate);
19278 if (PyErr_Occurred()) SWIG_fail;
19279 }
19280 {
19281 resultobj = wxPyMake_wxObject(result, (bool)0);
19282 }
19283 return resultobj;
19284fail:
19285 return NULL;
19286}
19287
19288
19289SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19290 PyObject *resultobj = 0;
19291 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19292 size_t arg2 ;
19293 int result;
19294 void *argp1 = 0 ;
19295 int res1 = 0 ;
19296 size_t val2 ;
19297 int ecode2 = 0 ;
19298 PyObject * obj0 = 0 ;
19299 PyObject * obj1 = 0 ;
19300 char * kwnames[] = {
19301 (char *) "self",(char *) "n", NULL
19302 };
19303
19304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19306 if (!SWIG_IsOK(res1)) {
19307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19308 }
19309 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19310 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19311 if (!SWIG_IsOK(ecode2)) {
19312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19313 }
19314 arg2 = static_cast< size_t >(val2);
19315 {
19316 PyThreadState* __tstate = wxPyBeginAllowThreads();
19317 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19318 wxPyEndAllowThreads(__tstate);
19319 if (PyErr_Occurred()) SWIG_fail;
19320 }
19321 resultobj = SWIG_From_int(static_cast< int >(result));
19322 return resultobj;
19323fail:
19324 return NULL;
19325}
19326
19327
19328SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19329 PyObject *resultobj = 0;
19330 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19331 size_t arg2 ;
19332 int arg3 ;
19333 bool result;
19334 void *argp1 = 0 ;
19335 int res1 = 0 ;
19336 size_t val2 ;
19337 int ecode2 = 0 ;
19338 int val3 ;
19339 int ecode3 = 0 ;
19340 PyObject * obj0 = 0 ;
19341 PyObject * obj1 = 0 ;
19342 PyObject * obj2 = 0 ;
19343 char * kwnames[] = {
19344 (char *) "self",(char *) "n",(char *) "imageId", NULL
19345 };
19346
19347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19349 if (!SWIG_IsOK(res1)) {
19350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19351 }
19352 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19353 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19354 if (!SWIG_IsOK(ecode2)) {
19355 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19356 }
19357 arg2 = static_cast< size_t >(val2);
19358 ecode3 = SWIG_AsVal_int(obj2, &val3);
19359 if (!SWIG_IsOK(ecode3)) {
19360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19361 }
19362 arg3 = static_cast< int >(val3);
19363 {
19364 PyThreadState* __tstate = wxPyBeginAllowThreads();
19365 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19366 wxPyEndAllowThreads(__tstate);
19367 if (PyErr_Occurred()) SWIG_fail;
19368 }
19369 {
19370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19371 }
19372 return resultobj;
19373fail:
19374 return NULL;
19375}
19376
19377
19378SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19379 PyObject *resultobj = 0;
19380 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19381 wxSize *arg2 = 0 ;
19382 void *argp1 = 0 ;
19383 int res1 = 0 ;
19384 wxSize temp2 ;
19385 PyObject * obj0 = 0 ;
19386 PyObject * obj1 = 0 ;
19387 char * kwnames[] = {
19388 (char *) "self",(char *) "size", NULL
19389 };
19390
19391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19393 if (!SWIG_IsOK(res1)) {
19394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19395 }
19396 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19397 {
19398 arg2 = &temp2;
19399 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19400 }
19401 {
19402 PyThreadState* __tstate = wxPyBeginAllowThreads();
19403 (arg1)->SetPageSize((wxSize const &)*arg2);
19404 wxPyEndAllowThreads(__tstate);
19405 if (PyErr_Occurred()) SWIG_fail;
19406 }
19407 resultobj = SWIG_Py_Void();
19408 return resultobj;
19409fail:
19410 return NULL;
19411}
19412
19413
19414SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19415 PyObject *resultobj = 0;
19416 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19417 wxSize *arg2 = 0 ;
19418 wxSize result;
19419 void *argp1 = 0 ;
19420 int res1 = 0 ;
19421 wxSize temp2 ;
19422 PyObject * obj0 = 0 ;
19423 PyObject * obj1 = 0 ;
19424 char * kwnames[] = {
19425 (char *) "self",(char *) "sizePage", NULL
19426 };
19427
19428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19430 if (!SWIG_IsOK(res1)) {
19431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19432 }
19433 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19434 {
19435 arg2 = &temp2;
19436 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19437 }
19438 {
19439 PyThreadState* __tstate = wxPyBeginAllowThreads();
19440 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19441 wxPyEndAllowThreads(__tstate);
19442 if (PyErr_Occurred()) SWIG_fail;
19443 }
19444 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19445 return resultobj;
19446fail:
19447 return NULL;
d55e5bfc
RD
19448}
19449
19450
1bd55598
RD
19451SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19452 PyObject *resultobj = 0;
19453 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19454 unsigned int result;
1bd55598
RD
19455 void *argp1 = 0 ;
19456 int res1 = 0 ;
19457 PyObject *swig_obj[1] ;
19458
19459 if (!args) SWIG_fail;
19460 swig_obj[0] = args;
19461 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19462 if (!SWIG_IsOK(res1)) {
19463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19464 }
19465 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19466 {
19467 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 19468 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
1bd55598
RD
19469 wxPyEndAllowThreads(__tstate);
19470 if (PyErr_Occurred()) SWIG_fail;
19471 }
e9d6f3a4 19472 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
19473 return resultobj;
19474fail:
19475 return NULL;
19476}
19477
19478
19479SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19480 PyObject *resultobj = 0;
19481 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
e9d6f3a4 19482 unsigned int arg2 ;
1bd55598
RD
19483 void *argp1 = 0 ;
19484 int res1 = 0 ;
e9d6f3a4 19485 unsigned int val2 ;
1bd55598
RD
19486 int ecode2 = 0 ;
19487 PyObject * obj0 = 0 ;
19488 PyObject * obj1 = 0 ;
19489 char * kwnames[] = {
19490 (char *) "self",(char *) "internalBorder", NULL
19491 };
19492
19493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19495 if (!SWIG_IsOK(res1)) {
19496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19497 }
19498 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
e9d6f3a4 19499 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
1bd55598 19500 if (!SWIG_IsOK(ecode2)) {
e9d6f3a4 19501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
1bd55598 19502 }
e9d6f3a4 19503 arg2 = static_cast< unsigned int >(val2);
1bd55598
RD
19504 {
19505 PyThreadState* __tstate = wxPyBeginAllowThreads();
19506 (arg1)->SetInternalBorder(arg2);
19507 wxPyEndAllowThreads(__tstate);
19508 if (PyErr_Occurred()) SWIG_fail;
19509 }
19510 resultobj = SWIG_Py_Void();
19511 return resultobj;
19512fail:
19513 return NULL;
d55e5bfc
RD
19514}
19515
19516
1bd55598
RD
19517SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19518 PyObject *resultobj = 0;
19519 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19520 bool result;
19521 void *argp1 = 0 ;
19522 int res1 = 0 ;
19523 PyObject *swig_obj[1] ;
19524
19525 if (!args) SWIG_fail;
19526 swig_obj[0] = args;
19527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19528 if (!SWIG_IsOK(res1)) {
19529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19530 }
19531 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19532 {
19533 PyThreadState* __tstate = wxPyBeginAllowThreads();
19534 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19535 wxPyEndAllowThreads(__tstate);
19536 if (PyErr_Occurred()) SWIG_fail;
19537 }
19538 {
19539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19540 }
19541 return resultobj;
19542fail:
19543 return NULL;
19544}
19545
19546
e9d6f3a4
RD
19547SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19548 PyObject *resultobj = 0;
19549 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19550 int arg2 ;
19551 void *argp1 = 0 ;
19552 int res1 = 0 ;
19553 int val2 ;
19554 int ecode2 = 0 ;
19555 PyObject * obj0 = 0 ;
19556 PyObject * obj1 = 0 ;
19557 char * kwnames[] = {
19558 (char *) "self",(char *) "margin", NULL
19559 };
19560
19561 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19562 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19563 if (!SWIG_IsOK(res1)) {
19564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19565 }
19566 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19567 ecode2 = SWIG_AsVal_int(obj1, &val2);
19568 if (!SWIG_IsOK(ecode2)) {
19569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19570 }
19571 arg2 = static_cast< int >(val2);
19572 {
19573 PyThreadState* __tstate = wxPyBeginAllowThreads();
19574 (arg1)->SetControlMargin(arg2);
19575 wxPyEndAllowThreads(__tstate);
19576 if (PyErr_Occurred()) SWIG_fail;
19577 }
19578 resultobj = SWIG_Py_Void();
19579 return resultobj;
19580fail:
19581 return NULL;
19582}
19583
19584
19585SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19586 PyObject *resultobj = 0;
19587 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19588 int result;
19589 void *argp1 = 0 ;
19590 int res1 = 0 ;
19591 PyObject *swig_obj[1] ;
19592
19593 if (!args) SWIG_fail;
19594 swig_obj[0] = args;
19595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19596 if (!SWIG_IsOK(res1)) {
19597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19598 }
19599 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19600 {
19601 PyThreadState* __tstate = wxPyBeginAllowThreads();
19602 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19603 wxPyEndAllowThreads(__tstate);
19604 if (PyErr_Occurred()) SWIG_fail;
19605 }
19606 resultobj = SWIG_From_int(static_cast< int >(result));
19607 return resultobj;
19608fail:
19609 return NULL;
19610}
19611
19612
1bd55598
RD
19613SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19614 PyObject *resultobj = 0;
19615 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19616 bool arg2 ;
19617 void *argp1 = 0 ;
19618 int res1 = 0 ;
19619 bool val2 ;
19620 int ecode2 = 0 ;
19621 PyObject * obj0 = 0 ;
19622 PyObject * obj1 = 0 ;
19623 char * kwnames[] = {
19624 (char *) "self",(char *) "fit", NULL
19625 };
19626
19627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19629 if (!SWIG_IsOK(res1)) {
19630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19631 }
19632 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19633 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19634 if (!SWIG_IsOK(ecode2)) {
19635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19636 }
19637 arg2 = static_cast< bool >(val2);
19638 {
19639 PyThreadState* __tstate = wxPyBeginAllowThreads();
19640 (arg1)->SetFitToCurrentPage(arg2);
19641 wxPyEndAllowThreads(__tstate);
19642 if (PyErr_Occurred()) SWIG_fail;
19643 }
19644 resultobj = SWIG_Py_Void();
19645 return resultobj;
19646fail:
19647 return NULL;
d55e5bfc
RD
19648}
19649
19650
1bd55598
RD
19651SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19652 PyObject *resultobj = 0;
19653 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19654 bool result;
19655 void *argp1 = 0 ;
19656 int res1 = 0 ;
19657 PyObject *swig_obj[1] ;
19658
19659 if (!args) SWIG_fail;
19660 swig_obj[0] = args;
19661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19662 if (!SWIG_IsOK(res1)) {
19663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19664 }
19665 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19666 {
19667 PyThreadState* __tstate = wxPyBeginAllowThreads();
19668 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19669 wxPyEndAllowThreads(__tstate);
19670 if (PyErr_Occurred()) SWIG_fail;
19671 }
19672 {
19673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19674 }
19675 return resultobj;
19676fail:
19677 return NULL;
19678}
19679
19680
e9d6f3a4
RD
19681SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19682 PyObject *resultobj = 0;
19683 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19684 wxSizer *result = 0 ;
19685 void *argp1 = 0 ;
19686 int res1 = 0 ;
19687 PyObject *swig_obj[1] ;
19688
19689 if (!args) SWIG_fail;
19690 swig_obj[0] = args;
19691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19692 if (!SWIG_IsOK(res1)) {
19693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19694 }
19695 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19696 {
19697 PyThreadState* __tstate = wxPyBeginAllowThreads();
19698 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19699 wxPyEndAllowThreads(__tstate);
19700 if (PyErr_Occurred()) SWIG_fail;
19701 }
19702 {
19703 resultobj = wxPyMake_wxObject(result, (bool)0);
19704 }
19705 return resultobj;
19706fail:
19707 return NULL;
19708}
19709
19710
1bd55598
RD
19711SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19712 PyObject *resultobj = 0;
19713 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19714 size_t arg2 ;
19715 bool result;
19716 void *argp1 = 0 ;
19717 int res1 = 0 ;
19718 size_t val2 ;
19719 int ecode2 = 0 ;
19720 PyObject * obj0 = 0 ;
19721 PyObject * obj1 = 0 ;
19722 char * kwnames[] = {
19723 (char *) "self",(char *) "n", NULL
19724 };
19725
19726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19728 if (!SWIG_IsOK(res1)) {
19729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19730 }
19731 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19732 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19733 if (!SWIG_IsOK(ecode2)) {
19734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19735 }
19736 arg2 = static_cast< size_t >(val2);
19737 {
19738 PyThreadState* __tstate = wxPyBeginAllowThreads();
19739 result = (bool)(arg1)->DeletePage(arg2);
19740 wxPyEndAllowThreads(__tstate);
19741 if (PyErr_Occurred()) SWIG_fail;
19742 }
19743 {
19744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19745 }
19746 return resultobj;
19747fail:
19748 return NULL;
19749}
19750
19751
19752SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19753 PyObject *resultobj = 0;
19754 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19755 size_t arg2 ;
19756 bool result;
19757 void *argp1 = 0 ;
19758 int res1 = 0 ;
19759 size_t val2 ;
19760 int ecode2 = 0 ;
19761 PyObject * obj0 = 0 ;
19762 PyObject * obj1 = 0 ;
19763 char * kwnames[] = {
19764 (char *) "self",(char *) "n", NULL
19765 };
19766
19767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19769 if (!SWIG_IsOK(res1)) {
19770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19771 }
19772 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19773 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19774 if (!SWIG_IsOK(ecode2)) {
19775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19776 }
19777 arg2 = static_cast< size_t >(val2);
19778 {
19779 PyThreadState* __tstate = wxPyBeginAllowThreads();
19780 result = (bool)(arg1)->RemovePage(arg2);
19781 wxPyEndAllowThreads(__tstate);
19782 if (PyErr_Occurred()) SWIG_fail;
19783 }
19784 {
19785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19786 }
19787 return resultobj;
19788fail:
19789 return NULL;
f20a2e1f
RD
19790}
19791
19792
1bd55598
RD
19793SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19794 PyObject *resultobj = 0;
19795 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19796 bool result;
19797 void *argp1 = 0 ;
19798 int res1 = 0 ;
19799 PyObject *swig_obj[1] ;
19800
19801 if (!args) SWIG_fail;
19802 swig_obj[0] = args;
19803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19804 if (!SWIG_IsOK(res1)) {
19805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19806 }
19807 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19808 {
19809 PyThreadState* __tstate = wxPyBeginAllowThreads();
19810 result = (bool)(arg1)->DeleteAllPages();
19811 wxPyEndAllowThreads(__tstate);
19812 if (PyErr_Occurred()) SWIG_fail;
19813 }
19814 {
19815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19816 }
19817 return resultobj;
19818fail:
19819 return NULL;
19820}
19821
19822
19823SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19824 PyObject *resultobj = 0;
19825 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19826 wxWindow *arg2 = (wxWindow *) 0 ;
19827 wxString *arg3 = 0 ;
19828 bool arg4 = (bool) false ;
19829 int arg5 = (int) -1 ;
19830 bool result;
19831 void *argp1 = 0 ;
19832 int res1 = 0 ;
19833 void *argp2 = 0 ;
19834 int res2 = 0 ;
19835 bool temp3 = false ;
19836 bool val4 ;
19837 int ecode4 = 0 ;
19838 int val5 ;
19839 int ecode5 = 0 ;
19840 PyObject * obj0 = 0 ;
19841 PyObject * obj1 = 0 ;
19842 PyObject * obj2 = 0 ;
19843 PyObject * obj3 = 0 ;
19844 PyObject * obj4 = 0 ;
19845 char * kwnames[] = {
19846 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19847 };
19848
19849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19851 if (!SWIG_IsOK(res1)) {
19852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19853 }
19854 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19855 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19856 if (!SWIG_IsOK(res2)) {
19857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19858 }
19859 arg2 = reinterpret_cast< wxWindow * >(argp2);
19860 {
19861 arg3 = wxString_in_helper(obj2);
19862 if (arg3 == NULL) SWIG_fail;
19863 temp3 = true;
19864 }
19865 if (obj3) {
19866 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19867 if (!SWIG_IsOK(ecode4)) {
19868 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19869 }
19870 arg4 = static_cast< bool >(val4);
19871 }
19872 if (obj4) {
19873 ecode5 = SWIG_AsVal_int(obj4, &val5);
19874 if (!SWIG_IsOK(ecode5)) {
19875 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19876 }
19877 arg5 = static_cast< int >(val5);
19878 }
19879 {
19880 PyThreadState* __tstate = wxPyBeginAllowThreads();
19881 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19882 wxPyEndAllowThreads(__tstate);
19883 if (PyErr_Occurred()) SWIG_fail;
19884 }
19885 {
19886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19887 }
19888 {
19889 if (temp3)
19890 delete arg3;
19891 }
19892 return resultobj;
19893fail:
19894 {
19895 if (temp3)
19896 delete arg3;
19897 }
19898 return NULL;
19899}
19900
19901
19902SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19903 PyObject *resultobj = 0;
19904 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19905 size_t arg2 ;
19906 wxWindow *arg3 = (wxWindow *) 0 ;
19907 wxString *arg4 = 0 ;
19908 bool arg5 = (bool) false ;
19909 int arg6 = (int) -1 ;
19910 bool result;
19911 void *argp1 = 0 ;
19912 int res1 = 0 ;
19913 size_t val2 ;
19914 int ecode2 = 0 ;
19915 void *argp3 = 0 ;
19916 int res3 = 0 ;
19917 bool temp4 = false ;
19918 bool val5 ;
19919 int ecode5 = 0 ;
19920 int val6 ;
19921 int ecode6 = 0 ;
19922 PyObject * obj0 = 0 ;
19923 PyObject * obj1 = 0 ;
19924 PyObject * obj2 = 0 ;
19925 PyObject * obj3 = 0 ;
19926 PyObject * obj4 = 0 ;
19927 PyObject * obj5 = 0 ;
19928 char * kwnames[] = {
19929 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19930 };
19931
19932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19934 if (!SWIG_IsOK(res1)) {
19935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19936 }
19937 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19938 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19939 if (!SWIG_IsOK(ecode2)) {
19940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19941 }
19942 arg2 = static_cast< size_t >(val2);
19943 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19944 if (!SWIG_IsOK(res3)) {
19945 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19946 }
19947 arg3 = reinterpret_cast< wxWindow * >(argp3);
19948 {
19949 arg4 = wxString_in_helper(obj3);
19950 if (arg4 == NULL) SWIG_fail;
19951 temp4 = true;
19952 }
19953 if (obj4) {
19954 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19955 if (!SWIG_IsOK(ecode5)) {
19956 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19957 }
19958 arg5 = static_cast< bool >(val5);
19959 }
19960 if (obj5) {
19961 ecode6 = SWIG_AsVal_int(obj5, &val6);
19962 if (!SWIG_IsOK(ecode6)) {
19963 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19964 }
19965 arg6 = static_cast< int >(val6);
19966 }
19967 {
19968 PyThreadState* __tstate = wxPyBeginAllowThreads();
19969 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19970 wxPyEndAllowThreads(__tstate);
19971 if (PyErr_Occurred()) SWIG_fail;
19972 }
19973 {
19974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19975 }
19976 {
19977 if (temp4)
19978 delete arg4;
19979 }
19980 return resultobj;
19981fail:
19982 {
19983 if (temp4)
19984 delete arg4;
19985 }
19986 return NULL;
19987}
19988
19989
19990SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19991 PyObject *resultobj = 0;
19992 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19993 size_t arg2 ;
19994 int result;
19995 void *argp1 = 0 ;
19996 int res1 = 0 ;
19997 size_t val2 ;
19998 int ecode2 = 0 ;
19999 PyObject * obj0 = 0 ;
20000 PyObject * obj1 = 0 ;
20001 char * kwnames[] = {
20002 (char *) "self",(char *) "n", NULL
20003 };
20004
20005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20007 if (!SWIG_IsOK(res1)) {
20008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20009 }
20010 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20011 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
20012 if (!SWIG_IsOK(ecode2)) {
20013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
20014 }
20015 arg2 = static_cast< size_t >(val2);
20016 {
20017 PyThreadState* __tstate = wxPyBeginAllowThreads();
20018 result = (int)(arg1)->SetSelection(arg2);
20019 wxPyEndAllowThreads(__tstate);
20020 if (PyErr_Occurred()) SWIG_fail;
20021 }
20022 resultobj = SWIG_From_int(static_cast< int >(result));
20023 return resultobj;
20024fail:
20025 return NULL;
20026}
20027
20028
20029SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20030 PyObject *resultobj = 0;
20031 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20032 bool arg2 = (bool) true ;
20033 void *argp1 = 0 ;
20034 int res1 = 0 ;
20035 bool val2 ;
20036 int ecode2 = 0 ;
20037 PyObject * obj0 = 0 ;
20038 PyObject * obj1 = 0 ;
20039 char * kwnames[] = {
20040 (char *) "self",(char *) "forward", NULL
20041 };
20042
20043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20045 if (!SWIG_IsOK(res1)) {
20046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
20047 }
20048 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20049 if (obj1) {
20050 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20051 if (!SWIG_IsOK(ecode2)) {
20052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
20053 }
20054 arg2 = static_cast< bool >(val2);
20055 }
20056 {
20057 PyThreadState* __tstate = wxPyBeginAllowThreads();
20058 (arg1)->AdvanceSelection(arg2);
20059 wxPyEndAllowThreads(__tstate);
20060 if (PyErr_Occurred()) SWIG_fail;
20061 }
20062 resultobj = SWIG_Py_Void();
20063 return resultobj;
20064fail:
20065 return NULL;
20066}
20067
20068
704eda0c
RD
20069SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20070 PyObject *resultobj = 0;
20071 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
20072 wxPoint *arg2 = 0 ;
20073 long *arg3 = (long *) 0 ;
20074 int result;
20075 void *argp1 = 0 ;
20076 int res1 = 0 ;
20077 wxPoint temp2 ;
20078 long temp3 ;
20079 int res3 = SWIG_TMPOBJ ;
20080 PyObject * obj0 = 0 ;
20081 PyObject * obj1 = 0 ;
20082 char * kwnames[] = {
20083 (char *) "self",(char *) "pt", NULL
20084 };
20085
20086 arg3 = &temp3;
20087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
20088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
20089 if (!SWIG_IsOK(res1)) {
20090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
20091 }
20092 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
20093 {
20094 arg2 = &temp2;
20095 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20096 }
20097 {
20098 PyThreadState* __tstate = wxPyBeginAllowThreads();
20099 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
20100 wxPyEndAllowThreads(__tstate);
20101 if (PyErr_Occurred()) SWIG_fail;
20102 }
20103 resultobj = SWIG_From_int(static_cast< int >(result));
20104 if (SWIG_IsTmpObj(res3)) {
20105 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
20106 } else {
20107 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20108 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
20109 }
20110 return resultobj;
20111fail:
20112 return NULL;
20113}
20114
20115
1bd55598
RD
20116SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20117 PyObject *resultobj = 0;
20118 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20119 SwigValueWrapper<wxVisualAttributes > result;
20120 int val1 ;
20121 int ecode1 = 0 ;
20122 PyObject * obj0 = 0 ;
20123 char * kwnames[] = {
20124 (char *) "variant", NULL
20125 };
20126
20127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20128 if (obj0) {
20129 ecode1 = SWIG_AsVal_int(obj0, &val1);
20130 if (!SWIG_IsOK(ecode1)) {
20131 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20132 }
20133 arg1 = static_cast< wxWindowVariant >(val1);
20134 }
20135 {
20136 if (!wxPyCheckForApp()) SWIG_fail;
20137 PyThreadState* __tstate = wxPyBeginAllowThreads();
20138 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
20139 wxPyEndAllowThreads(__tstate);
20140 if (PyErr_Occurred()) SWIG_fail;
20141 }
20142 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20143 return resultobj;
20144fail:
20145 return NULL;
20146}
20147
20148
20149SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20150 PyObject *obj;
20151 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20152 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
20153 return SWIG_Py_Void();
20154}
20155
20156SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20157 PyObject *resultobj = 0;
20158 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20159 int arg2 = (int) 0 ;
20160 int arg3 = (int) -1 ;
20161 int arg4 = (int) -1 ;
20162 wxBookCtrlBaseEvent *result = 0 ;
20163 int val1 ;
20164 int ecode1 = 0 ;
20165 int val2 ;
20166 int ecode2 = 0 ;
20167 int val3 ;
20168 int ecode3 = 0 ;
20169 int val4 ;
20170 int ecode4 = 0 ;
20171 PyObject * obj0 = 0 ;
20172 PyObject * obj1 = 0 ;
20173 PyObject * obj2 = 0 ;
20174 PyObject * obj3 = 0 ;
20175 char * kwnames[] = {
20176 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20177 };
20178
20179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20180 if (obj0) {
20181 ecode1 = SWIG_AsVal_int(obj0, &val1);
20182 if (!SWIG_IsOK(ecode1)) {
20183 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20184 }
20185 arg1 = static_cast< wxEventType >(val1);
20186 }
20187 if (obj1) {
20188 ecode2 = SWIG_AsVal_int(obj1, &val2);
20189 if (!SWIG_IsOK(ecode2)) {
20190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20191 }
20192 arg2 = static_cast< int >(val2);
20193 }
20194 if (obj2) {
20195 ecode3 = SWIG_AsVal_int(obj2, &val3);
20196 if (!SWIG_IsOK(ecode3)) {
20197 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20198 }
20199 arg3 = static_cast< int >(val3);
20200 }
20201 if (obj3) {
20202 ecode4 = SWIG_AsVal_int(obj3, &val4);
20203 if (!SWIG_IsOK(ecode4)) {
20204 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20205 }
20206 arg4 = static_cast< int >(val4);
20207 }
20208 {
20209 PyThreadState* __tstate = wxPyBeginAllowThreads();
20210 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20211 wxPyEndAllowThreads(__tstate);
20212 if (PyErr_Occurred()) SWIG_fail;
20213 }
20214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20215 return resultobj;
20216fail:
20217 return NULL;
d55e5bfc
RD
20218}
20219
20220
1bd55598
RD
20221SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20222 PyObject *resultobj = 0;
20223 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20224 int result;
20225 void *argp1 = 0 ;
20226 int res1 = 0 ;
20227 PyObject *swig_obj[1] ;
20228
20229 if (!args) SWIG_fail;
20230 swig_obj[0] = args;
20231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20232 if (!SWIG_IsOK(res1)) {
20233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20234 }
20235 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20236 {
20237 PyThreadState* __tstate = wxPyBeginAllowThreads();
20238 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20239 wxPyEndAllowThreads(__tstate);
20240 if (PyErr_Occurred()) SWIG_fail;
20241 }
20242 resultobj = SWIG_From_int(static_cast< int >(result));
20243 return resultobj;
20244fail:
20245 return NULL;
20246}
20247
20248
20249SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20250 PyObject *resultobj = 0;
20251 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20252 int arg2 ;
20253 void *argp1 = 0 ;
20254 int res1 = 0 ;
20255 int val2 ;
20256 int ecode2 = 0 ;
20257 PyObject * obj0 = 0 ;
20258 PyObject * obj1 = 0 ;
20259 char * kwnames[] = {
20260 (char *) "self",(char *) "nSel", NULL
20261 };
20262
20263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20265 if (!SWIG_IsOK(res1)) {
20266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20267 }
20268 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20269 ecode2 = SWIG_AsVal_int(obj1, &val2);
20270 if (!SWIG_IsOK(ecode2)) {
20271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20272 }
20273 arg2 = static_cast< int >(val2);
20274 {
20275 PyThreadState* __tstate = wxPyBeginAllowThreads();
20276 (arg1)->SetSelection(arg2);
20277 wxPyEndAllowThreads(__tstate);
20278 if (PyErr_Occurred()) SWIG_fail;
20279 }
20280 resultobj = SWIG_Py_Void();
20281 return resultobj;
20282fail:
20283 return NULL;
d55e5bfc
RD
20284}
20285
20286
1bd55598
RD
20287SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20288 PyObject *resultobj = 0;
20289 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20290 int result;
20291 void *argp1 = 0 ;
20292 int res1 = 0 ;
20293 PyObject *swig_obj[1] ;
20294
20295 if (!args) SWIG_fail;
20296 swig_obj[0] = args;
20297 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20298 if (!SWIG_IsOK(res1)) {
20299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20300 }
20301 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20302 {
20303 PyThreadState* __tstate = wxPyBeginAllowThreads();
20304 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20305 wxPyEndAllowThreads(__tstate);
20306 if (PyErr_Occurred()) SWIG_fail;
20307 }
20308 resultobj = SWIG_From_int(static_cast< int >(result));
20309 return resultobj;
20310fail:
20311 return NULL;
20312}
20313
20314
20315SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20316 PyObject *resultobj = 0;
20317 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20318 int arg2 ;
20319 void *argp1 = 0 ;
20320 int res1 = 0 ;
20321 int val2 ;
20322 int ecode2 = 0 ;
20323 PyObject * obj0 = 0 ;
20324 PyObject * obj1 = 0 ;
20325 char * kwnames[] = {
20326 (char *) "self",(char *) "nOldSel", NULL
20327 };
20328
20329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20331 if (!SWIG_IsOK(res1)) {
20332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20333 }
20334 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20335 ecode2 = SWIG_AsVal_int(obj1, &val2);
20336 if (!SWIG_IsOK(ecode2)) {
20337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20338 }
20339 arg2 = static_cast< int >(val2);
20340 {
20341 PyThreadState* __tstate = wxPyBeginAllowThreads();
20342 (arg1)->SetOldSelection(arg2);
20343 wxPyEndAllowThreads(__tstate);
20344 if (PyErr_Occurred()) SWIG_fail;
20345 }
20346 resultobj = SWIG_Py_Void();
20347 return resultobj;
20348fail:
20349 return NULL;
20350}
20351
20352
20353SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20354 PyObject *obj;
20355 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20356 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20357 return SWIG_Py_Void();
20358}
20359
20360SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20361 return SWIG_Python_InitShadowInstance(args);
20362}
20363
20364SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20365 PyObject *resultobj = 0;
20366 wxWindow *arg1 = (wxWindow *) 0 ;
20367 int arg2 = (int) -1 ;
20368 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20369 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20370 wxSize const &arg4_defvalue = wxDefaultSize ;
20371 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20372 long arg5 = (long) 0 ;
20373 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20374 wxString *arg6 = (wxString *) &arg6_defvalue ;
20375 wxNotebook *result = 0 ;
20376 void *argp1 = 0 ;
20377 int res1 = 0 ;
20378 int val2 ;
20379 int ecode2 = 0 ;
20380 wxPoint temp3 ;
20381 wxSize temp4 ;
20382 long val5 ;
20383 int ecode5 = 0 ;
20384 bool temp6 = false ;
20385 PyObject * obj0 = 0 ;
20386 PyObject * obj1 = 0 ;
20387 PyObject * obj2 = 0 ;
20388 PyObject * obj3 = 0 ;
20389 PyObject * obj4 = 0 ;
20390 PyObject * obj5 = 0 ;
20391 char * kwnames[] = {
20392 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20393 };
20394
20395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20397 if (!SWIG_IsOK(res1)) {
20398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20399 }
20400 arg1 = reinterpret_cast< wxWindow * >(argp1);
20401 if (obj1) {
20402 ecode2 = SWIG_AsVal_int(obj1, &val2);
20403 if (!SWIG_IsOK(ecode2)) {
20404 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20405 }
20406 arg2 = static_cast< int >(val2);
20407 }
20408 if (obj2) {
20409 {
20410 arg3 = &temp3;
20411 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 20412 }
1bd55598
RD
20413 }
20414 if (obj3) {
d55e5bfc 20415 {
1bd55598
RD
20416 arg4 = &temp4;
20417 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20418 }
1bd55598
RD
20419 }
20420 if (obj4) {
20421 ecode5 = SWIG_AsVal_long(obj4, &val5);
20422 if (!SWIG_IsOK(ecode5)) {
20423 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20424 }
20425 arg5 = static_cast< long >(val5);
20426 }
20427 if (obj5) {
d55e5bfc 20428 {
1bd55598
RD
20429 arg6 = wxString_in_helper(obj5);
20430 if (arg6 == NULL) SWIG_fail;
20431 temp6 = true;
d55e5bfc 20432 }
1bd55598
RD
20433 }
20434 {
20435 if (!wxPyCheckForApp()) SWIG_fail;
20436 PyThreadState* __tstate = wxPyBeginAllowThreads();
20437 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20438 wxPyEndAllowThreads(__tstate);
20439 if (PyErr_Occurred()) SWIG_fail;
20440 }
20441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20442 {
20443 if (temp6)
20444 delete arg6;
20445 }
20446 return resultobj;
20447fail:
20448 {
20449 if (temp6)
20450 delete arg6;
20451 }
20452 return NULL;
20453}
20454
20455
20456SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20457 PyObject *resultobj = 0;
20458 wxNotebook *result = 0 ;
20459
20460 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20461 {
20462 if (!wxPyCheckForApp()) SWIG_fail;
20463 PyThreadState* __tstate = wxPyBeginAllowThreads();
20464 result = (wxNotebook *)new wxNotebook();
20465 wxPyEndAllowThreads(__tstate);
20466 if (PyErr_Occurred()) SWIG_fail;
20467 }
20468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20469 return resultobj;
20470fail:
20471 return NULL;
20472}
20473
20474
20475SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20476 PyObject *resultobj = 0;
20477 wxNotebook *arg1 = (wxNotebook *) 0 ;
20478 wxWindow *arg2 = (wxWindow *) 0 ;
20479 int arg3 = (int) -1 ;
20480 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20481 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20482 wxSize const &arg5_defvalue = wxDefaultSize ;
20483 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20484 long arg6 = (long) 0 ;
20485 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20486 wxString *arg7 = (wxString *) &arg7_defvalue ;
20487 bool result;
20488 void *argp1 = 0 ;
20489 int res1 = 0 ;
20490 void *argp2 = 0 ;
20491 int res2 = 0 ;
20492 int val3 ;
20493 int ecode3 = 0 ;
20494 wxPoint temp4 ;
20495 wxSize temp5 ;
20496 long val6 ;
20497 int ecode6 = 0 ;
20498 bool temp7 = false ;
20499 PyObject * obj0 = 0 ;
20500 PyObject * obj1 = 0 ;
20501 PyObject * obj2 = 0 ;
20502 PyObject * obj3 = 0 ;
20503 PyObject * obj4 = 0 ;
20504 PyObject * obj5 = 0 ;
20505 PyObject * obj6 = 0 ;
20506 char * kwnames[] = {
20507 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20508 };
20509
20510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20512 if (!SWIG_IsOK(res1)) {
20513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20514 }
20515 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20516 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20517 if (!SWIG_IsOK(res2)) {
20518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20519 }
20520 arg2 = reinterpret_cast< wxWindow * >(argp2);
20521 if (obj2) {
20522 ecode3 = SWIG_AsVal_int(obj2, &val3);
20523 if (!SWIG_IsOK(ecode3)) {
20524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20525 }
20526 arg3 = static_cast< int >(val3);
20527 }
20528 if (obj3) {
d55e5bfc 20529 {
1bd55598
RD
20530 arg4 = &temp4;
20531 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20532 }
1bd55598
RD
20533 }
20534 if (obj4) {
d55e5bfc 20535 {
1bd55598
RD
20536 arg5 = &temp5;
20537 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 20538 }
1bd55598
RD
20539 }
20540 if (obj5) {
20541 ecode6 = SWIG_AsVal_long(obj5, &val6);
20542 if (!SWIG_IsOK(ecode6)) {
20543 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20544 }
20545 arg6 = static_cast< long >(val6);
20546 }
20547 if (obj6) {
d55e5bfc 20548 {
1bd55598
RD
20549 arg7 = wxString_in_helper(obj6);
20550 if (arg7 == NULL) SWIG_fail;
20551 temp7 = true;
d55e5bfc 20552 }
1bd55598
RD
20553 }
20554 {
20555 PyThreadState* __tstate = wxPyBeginAllowThreads();
20556 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20557 wxPyEndAllowThreads(__tstate);
20558 if (PyErr_Occurred()) SWIG_fail;
20559 }
20560 {
20561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20562 }
20563 {
20564 if (temp7)
20565 delete arg7;
20566 }
20567 return resultobj;
20568fail:
20569 {
20570 if (temp7)
20571 delete arg7;
20572 }
20573 return NULL;
d55e5bfc
RD
20574}
20575
20576
1bd55598
RD
20577SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20578 PyObject *resultobj = 0;
20579 wxNotebook *arg1 = (wxNotebook *) 0 ;
20580 int result;
20581 void *argp1 = 0 ;
20582 int res1 = 0 ;
20583 PyObject *swig_obj[1] ;
20584
20585 if (!args) SWIG_fail;
20586 swig_obj[0] = args;
20587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20588 if (!SWIG_IsOK(res1)) {
20589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20590 }
20591 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20592 {
20593 PyThreadState* __tstate = wxPyBeginAllowThreads();
20594 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20595 wxPyEndAllowThreads(__tstate);
20596 if (PyErr_Occurred()) SWIG_fail;
20597 }
20598 resultobj = SWIG_From_int(static_cast< int >(result));
20599 return resultobj;
20600fail:
20601 return NULL;
20602}
20603
20604
20605SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20606 PyObject *resultobj = 0;
20607 wxNotebook *arg1 = (wxNotebook *) 0 ;
20608 wxSize *arg2 = 0 ;
20609 void *argp1 = 0 ;
20610 int res1 = 0 ;
20611 wxSize temp2 ;
20612 PyObject * obj0 = 0 ;
20613 PyObject * obj1 = 0 ;
20614 char * kwnames[] = {
20615 (char *) "self",(char *) "padding", NULL
20616 };
20617
20618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20620 if (!SWIG_IsOK(res1)) {
20621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20622 }
20623 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20624 {
20625 arg2 = &temp2;
20626 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20627 }
20628 {
20629 PyThreadState* __tstate = wxPyBeginAllowThreads();
20630 (arg1)->SetPadding((wxSize const &)*arg2);
20631 wxPyEndAllowThreads(__tstate);
20632 if (PyErr_Occurred()) SWIG_fail;
20633 }
20634 resultobj = SWIG_Py_Void();
20635 return resultobj;
20636fail:
20637 return NULL;
20638}
20639
20640
20641SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20642 PyObject *resultobj = 0;
20643 wxNotebook *arg1 = (wxNotebook *) 0 ;
20644 wxSize *arg2 = 0 ;
20645 void *argp1 = 0 ;
20646 int res1 = 0 ;
20647 wxSize temp2 ;
20648 PyObject * obj0 = 0 ;
20649 PyObject * obj1 = 0 ;
20650 char * kwnames[] = {
20651 (char *) "self",(char *) "sz", NULL
20652 };
20653
20654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20656 if (!SWIG_IsOK(res1)) {
20657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20658 }
20659 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20660 {
20661 arg2 = &temp2;
20662 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20663 }
20664 {
20665 PyThreadState* __tstate = wxPyBeginAllowThreads();
20666 (arg1)->SetTabSize((wxSize const &)*arg2);
20667 wxPyEndAllowThreads(__tstate);
20668 if (PyErr_Occurred()) SWIG_fail;
20669 }
20670 resultobj = SWIG_Py_Void();
20671 return resultobj;
20672fail:
20673 return NULL;
20674}
20675
20676
1bd55598
RD
20677SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20678 PyObject *resultobj = 0;
20679 wxNotebook *arg1 = (wxNotebook *) 0 ;
20680 wxColour result;
20681 void *argp1 = 0 ;
20682 int res1 = 0 ;
20683 PyObject *swig_obj[1] ;
20684
20685 if (!args) SWIG_fail;
20686 swig_obj[0] = args;
20687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20688 if (!SWIG_IsOK(res1)) {
20689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20690 }
20691 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20692 {
20693 PyThreadState* __tstate = wxPyBeginAllowThreads();
20694 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20695 wxPyEndAllowThreads(__tstate);
20696 if (PyErr_Occurred()) SWIG_fail;
20697 }
20698 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20699 return resultobj;
20700fail:
20701 return NULL;
20702}
20703
20704
20705SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20706 PyObject *resultobj = 0;
20707 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20708 SwigValueWrapper<wxVisualAttributes > result;
20709 int val1 ;
20710 int ecode1 = 0 ;
20711 PyObject * obj0 = 0 ;
20712 char * kwnames[] = {
20713 (char *) "variant", NULL
20714 };
20715
20716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20717 if (obj0) {
20718 ecode1 = SWIG_AsVal_int(obj0, &val1);
20719 if (!SWIG_IsOK(ecode1)) {
20720 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20721 }
20722 arg1 = static_cast< wxWindowVariant >(val1);
20723 }
20724 {
20725 if (!wxPyCheckForApp()) SWIG_fail;
20726 PyThreadState* __tstate = wxPyBeginAllowThreads();
20727 result = wxNotebook::GetClassDefaultAttributes(arg1);
20728 wxPyEndAllowThreads(__tstate);
20729 if (PyErr_Occurred()) SWIG_fail;
20730 }
20731 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20732 return resultobj;
20733fail:
20734 return NULL;
20735}
20736
20737
20738SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20739 PyObject *obj;
20740 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20741 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20742 return SWIG_Py_Void();
20743}
20744
20745SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20746 return SWIG_Python_InitShadowInstance(args);
20747}
20748
20749SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20750 PyObject *resultobj = 0;
20751 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20752 int arg2 = (int) 0 ;
20753 int arg3 = (int) -1 ;
20754 int arg4 = (int) -1 ;
20755 wxNotebookEvent *result = 0 ;
20756 int val1 ;
20757 int ecode1 = 0 ;
20758 int val2 ;
20759 int ecode2 = 0 ;
20760 int val3 ;
20761 int ecode3 = 0 ;
20762 int val4 ;
20763 int ecode4 = 0 ;
20764 PyObject * obj0 = 0 ;
20765 PyObject * obj1 = 0 ;
20766 PyObject * obj2 = 0 ;
20767 PyObject * obj3 = 0 ;
20768 char * kwnames[] = {
20769 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20770 };
20771
20772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20773 if (obj0) {
20774 ecode1 = SWIG_AsVal_int(obj0, &val1);
20775 if (!SWIG_IsOK(ecode1)) {
20776 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20777 }
20778 arg1 = static_cast< wxEventType >(val1);
20779 }
20780 if (obj1) {
20781 ecode2 = SWIG_AsVal_int(obj1, &val2);
20782 if (!SWIG_IsOK(ecode2)) {
20783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20784 }
20785 arg2 = static_cast< int >(val2);
20786 }
20787 if (obj2) {
20788 ecode3 = SWIG_AsVal_int(obj2, &val3);
20789 if (!SWIG_IsOK(ecode3)) {
20790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20791 }
20792 arg3 = static_cast< int >(val3);
20793 }
20794 if (obj3) {
20795 ecode4 = SWIG_AsVal_int(obj3, &val4);
20796 if (!SWIG_IsOK(ecode4)) {
20797 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20798 }
20799 arg4 = static_cast< int >(val4);
20800 }
20801 {
20802 PyThreadState* __tstate = wxPyBeginAllowThreads();
20803 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20804 wxPyEndAllowThreads(__tstate);
20805 if (PyErr_Occurred()) SWIG_fail;
20806 }
20807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20808 return resultobj;
20809fail:
20810 return NULL;
20811}
20812
20813
20814SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20815 PyObject *obj;
20816 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20817 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20818 return SWIG_Py_Void();
20819}
20820
20821SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20822 return SWIG_Python_InitShadowInstance(args);
20823}
20824
20825SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20826 PyObject *resultobj = 0;
20827 wxWindow *arg1 = (wxWindow *) 0 ;
20828 int arg2 = (int) -1 ;
20829 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20830 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20831 wxSize const &arg4_defvalue = wxDefaultSize ;
20832 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20833 long arg5 = (long) 0 ;
20834 wxString const &arg6_defvalue = wxPyEmptyString ;
20835 wxString *arg6 = (wxString *) &arg6_defvalue ;
20836 wxListbook *result = 0 ;
20837 void *argp1 = 0 ;
20838 int res1 = 0 ;
20839 int val2 ;
20840 int ecode2 = 0 ;
20841 wxPoint temp3 ;
20842 wxSize temp4 ;
20843 long val5 ;
20844 int ecode5 = 0 ;
20845 bool temp6 = false ;
20846 PyObject * obj0 = 0 ;
20847 PyObject * obj1 = 0 ;
20848 PyObject * obj2 = 0 ;
20849 PyObject * obj3 = 0 ;
20850 PyObject * obj4 = 0 ;
20851 PyObject * obj5 = 0 ;
20852 char * kwnames[] = {
20853 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20854 };
20855
20856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20858 if (!SWIG_IsOK(res1)) {
20859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20860 }
20861 arg1 = reinterpret_cast< wxWindow * >(argp1);
20862 if (obj1) {
20863 ecode2 = SWIG_AsVal_int(obj1, &val2);
20864 if (!SWIG_IsOK(ecode2)) {
20865 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20866 }
20867 arg2 = static_cast< int >(val2);
20868 }
20869 if (obj2) {
d55e5bfc 20870 {
1bd55598
RD
20871 arg3 = &temp3;
20872 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 20873 }
1bd55598
RD
20874 }
20875 if (obj3) {
d55e5bfc 20876 {
1bd55598
RD
20877 arg4 = &temp4;
20878 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20879 }
1bd55598
RD
20880 }
20881 if (obj4) {
20882 ecode5 = SWIG_AsVal_long(obj4, &val5);
20883 if (!SWIG_IsOK(ecode5)) {
20884 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20885 }
20886 arg5 = static_cast< long >(val5);
20887 }
20888 if (obj5) {
d55e5bfc 20889 {
1bd55598
RD
20890 arg6 = wxString_in_helper(obj5);
20891 if (arg6 == NULL) SWIG_fail;
20892 temp6 = true;
d55e5bfc 20893 }
1bd55598
RD
20894 }
20895 {
20896 if (!wxPyCheckForApp()) SWIG_fail;
20897 PyThreadState* __tstate = wxPyBeginAllowThreads();
20898 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20899 wxPyEndAllowThreads(__tstate);
20900 if (PyErr_Occurred()) SWIG_fail;
20901 }
20902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20903 {
20904 if (temp6)
20905 delete arg6;
20906 }
20907 return resultobj;
20908fail:
20909 {
20910 if (temp6)
20911 delete arg6;
20912 }
20913 return NULL;
20914}
20915
20916
20917SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20918 PyObject *resultobj = 0;
20919 wxListbook *result = 0 ;
20920
20921 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20922 {
20923 if (!wxPyCheckForApp()) SWIG_fail;
20924 PyThreadState* __tstate = wxPyBeginAllowThreads();
20925 result = (wxListbook *)new wxListbook();
20926 wxPyEndAllowThreads(__tstate);
20927 if (PyErr_Occurred()) SWIG_fail;
20928 }
20929 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20930 return resultobj;
20931fail:
20932 return NULL;
20933}
20934
20935
20936SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20937 PyObject *resultobj = 0;
20938 wxListbook *arg1 = (wxListbook *) 0 ;
20939 wxWindow *arg2 = (wxWindow *) 0 ;
20940 int arg3 = (int) -1 ;
20941 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20942 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20943 wxSize const &arg5_defvalue = wxDefaultSize ;
20944 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20945 long arg6 = (long) 0 ;
20946 wxString const &arg7_defvalue = wxPyEmptyString ;
20947 wxString *arg7 = (wxString *) &arg7_defvalue ;
20948 bool result;
20949 void *argp1 = 0 ;
20950 int res1 = 0 ;
20951 void *argp2 = 0 ;
20952 int res2 = 0 ;
20953 int val3 ;
20954 int ecode3 = 0 ;
20955 wxPoint temp4 ;
20956 wxSize temp5 ;
20957 long val6 ;
20958 int ecode6 = 0 ;
20959 bool temp7 = false ;
20960 PyObject * obj0 = 0 ;
20961 PyObject * obj1 = 0 ;
20962 PyObject * obj2 = 0 ;
20963 PyObject * obj3 = 0 ;
20964 PyObject * obj4 = 0 ;
20965 PyObject * obj5 = 0 ;
20966 PyObject * obj6 = 0 ;
20967 char * kwnames[] = {
20968 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20969 };
20970
20971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20973 if (!SWIG_IsOK(res1)) {
20974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20975 }
20976 arg1 = reinterpret_cast< wxListbook * >(argp1);
20977 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20978 if (!SWIG_IsOK(res2)) {
20979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20980 }
20981 arg2 = reinterpret_cast< wxWindow * >(argp2);
20982 if (obj2) {
20983 ecode3 = SWIG_AsVal_int(obj2, &val3);
20984 if (!SWIG_IsOK(ecode3)) {
20985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20986 }
20987 arg3 = static_cast< int >(val3);
20988 }
20989 if (obj3) {
d55e5bfc 20990 {
1bd55598
RD
20991 arg4 = &temp4;
20992 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 20993 }
1bd55598
RD
20994 }
20995 if (obj4) {
d55e5bfc 20996 {
1bd55598
RD
20997 arg5 = &temp5;
20998 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 20999 }
1bd55598
RD
21000 }
21001 if (obj5) {
21002 ecode6 = SWIG_AsVal_long(obj5, &val6);
21003 if (!SWIG_IsOK(ecode6)) {
21004 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
21005 }
21006 arg6 = static_cast< long >(val6);
21007 }
21008 if (obj6) {
d55e5bfc 21009 {
1bd55598
RD
21010 arg7 = wxString_in_helper(obj6);
21011 if (arg7 == NULL) SWIG_fail;
21012 temp7 = true;
d55e5bfc 21013 }
1bd55598
RD
21014 }
21015 {
21016 PyThreadState* __tstate = wxPyBeginAllowThreads();
21017 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21018 wxPyEndAllowThreads(__tstate);
21019 if (PyErr_Occurred()) SWIG_fail;
21020 }
21021 {
21022 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21023 }
21024 {
21025 if (temp7)
21026 delete arg7;
21027 }
21028 return resultobj;
21029fail:
21030 {
21031 if (temp7)
21032 delete arg7;
21033 }
21034 return NULL;
d55e5bfc
RD
21035}
21036
21037
1bd55598
RD
21038SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21039 PyObject *resultobj = 0;
21040 wxListbook *arg1 = (wxListbook *) 0 ;
21041 wxListView *result = 0 ;
21042 void *argp1 = 0 ;
21043 int res1 = 0 ;
21044 PyObject *swig_obj[1] ;
21045
21046 if (!args) SWIG_fail;
21047 swig_obj[0] = args;
21048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
21049 if (!SWIG_IsOK(res1)) {
21050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
21051 }
21052 arg1 = reinterpret_cast< wxListbook * >(argp1);
21053 {
21054 PyThreadState* __tstate = wxPyBeginAllowThreads();
21055 result = (wxListView *)(arg1)->GetListView();
21056 wxPyEndAllowThreads(__tstate);
21057 if (PyErr_Occurred()) SWIG_fail;
21058 }
21059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
21060 return resultobj;
21061fail:
21062 return NULL;
21063}
21064
21065
21066SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21067 PyObject *obj;
21068 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21069 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
21070 return SWIG_Py_Void();
21071}
21072
21073SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21074 return SWIG_Python_InitShadowInstance(args);
21075}
21076
21077SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21078 PyObject *resultobj = 0;
21079 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21080 int arg2 = (int) 0 ;
21081 int arg3 = (int) -1 ;
21082 int arg4 = (int) -1 ;
21083 wxListbookEvent *result = 0 ;
21084 int val1 ;
21085 int ecode1 = 0 ;
21086 int val2 ;
21087 int ecode2 = 0 ;
21088 int val3 ;
21089 int ecode3 = 0 ;
21090 int val4 ;
21091 int ecode4 = 0 ;
21092 PyObject * obj0 = 0 ;
21093 PyObject * obj1 = 0 ;
21094 PyObject * obj2 = 0 ;
21095 PyObject * obj3 = 0 ;
21096 char * kwnames[] = {
21097 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21098 };
21099
21100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21101 if (obj0) {
21102 ecode1 = SWIG_AsVal_int(obj0, &val1);
21103 if (!SWIG_IsOK(ecode1)) {
21104 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21105 }
21106 arg1 = static_cast< wxEventType >(val1);
21107 }
21108 if (obj1) {
21109 ecode2 = SWIG_AsVal_int(obj1, &val2);
21110 if (!SWIG_IsOK(ecode2)) {
21111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
21112 }
21113 arg2 = static_cast< int >(val2);
21114 }
21115 if (obj2) {
21116 ecode3 = SWIG_AsVal_int(obj2, &val3);
21117 if (!SWIG_IsOK(ecode3)) {
21118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
21119 }
21120 arg3 = static_cast< int >(val3);
21121 }
21122 if (obj3) {
21123 ecode4 = SWIG_AsVal_int(obj3, &val4);
21124 if (!SWIG_IsOK(ecode4)) {
21125 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
21126 }
21127 arg4 = static_cast< int >(val4);
21128 }
21129 {
21130 PyThreadState* __tstate = wxPyBeginAllowThreads();
21131 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
21132 wxPyEndAllowThreads(__tstate);
21133 if (PyErr_Occurred()) SWIG_fail;
21134 }
21135 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
21136 return resultobj;
21137fail:
21138 return NULL;
21139}
21140
21141
21142SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21143 PyObject *obj;
21144 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21145 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
21146 return SWIG_Py_Void();
21147}
21148
21149SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21150 return SWIG_Python_InitShadowInstance(args);
21151}
21152
21153SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21154 PyObject *resultobj = 0;
21155 wxWindow *arg1 = (wxWindow *) 0 ;
21156 int arg2 ;
21157 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21158 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21159 wxSize const &arg4_defvalue = wxDefaultSize ;
21160 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21161 long arg5 = (long) 0 ;
21162 wxString const &arg6_defvalue = wxPyEmptyString ;
21163 wxString *arg6 = (wxString *) &arg6_defvalue ;
21164 wxChoicebook *result = 0 ;
21165 void *argp1 = 0 ;
21166 int res1 = 0 ;
21167 int val2 ;
21168 int ecode2 = 0 ;
21169 wxPoint temp3 ;
21170 wxSize temp4 ;
21171 long val5 ;
21172 int ecode5 = 0 ;
21173 bool temp6 = false ;
21174 PyObject * obj0 = 0 ;
21175 PyObject * obj1 = 0 ;
21176 PyObject * obj2 = 0 ;
21177 PyObject * obj3 = 0 ;
21178 PyObject * obj4 = 0 ;
21179 PyObject * obj5 = 0 ;
21180 char * kwnames[] = {
21181 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21182 };
21183
21184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21186 if (!SWIG_IsOK(res1)) {
21187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21188 }
21189 arg1 = reinterpret_cast< wxWindow * >(argp1);
21190 ecode2 = SWIG_AsVal_int(obj1, &val2);
21191 if (!SWIG_IsOK(ecode2)) {
21192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21193 }
21194 arg2 = static_cast< int >(val2);
21195 if (obj2) {
36ed4f51 21196 {
1bd55598
RD
21197 arg3 = &temp3;
21198 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21199 }
1bd55598
RD
21200 }
21201 if (obj3) {
36ed4f51 21202 {
1bd55598
RD
21203 arg4 = &temp4;
21204 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21205 }
1bd55598
RD
21206 }
21207 if (obj4) {
21208 ecode5 = SWIG_AsVal_long(obj4, &val5);
21209 if (!SWIG_IsOK(ecode5)) {
21210 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21211 }
21212 arg5 = static_cast< long >(val5);
21213 }
21214 if (obj5) {
d55e5bfc 21215 {
1bd55598
RD
21216 arg6 = wxString_in_helper(obj5);
21217 if (arg6 == NULL) SWIG_fail;
21218 temp6 = true;
d55e5bfc 21219 }
1bd55598
RD
21220 }
21221 {
21222 if (!wxPyCheckForApp()) SWIG_fail;
21223 PyThreadState* __tstate = wxPyBeginAllowThreads();
21224 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21225 wxPyEndAllowThreads(__tstate);
21226 if (PyErr_Occurred()) SWIG_fail;
21227 }
21228 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21229 {
21230 if (temp6)
21231 delete arg6;
21232 }
21233 return resultobj;
21234fail:
21235 {
21236 if (temp6)
21237 delete arg6;
21238 }
21239 return NULL;
d55e5bfc
RD
21240}
21241
21242
1bd55598
RD
21243SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21244 PyObject *resultobj = 0;
21245 wxChoicebook *result = 0 ;
21246
21247 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21248 {
21249 if (!wxPyCheckForApp()) SWIG_fail;
21250 PyThreadState* __tstate = wxPyBeginAllowThreads();
21251 result = (wxChoicebook *)new wxChoicebook();
21252 wxPyEndAllowThreads(__tstate);
21253 if (PyErr_Occurred()) SWIG_fail;
21254 }
21255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21256 return resultobj;
21257fail:
21258 return NULL;
21259}
21260
21261
21262SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21263 PyObject *resultobj = 0;
21264 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21265 wxWindow *arg2 = (wxWindow *) 0 ;
21266 int arg3 ;
21267 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21268 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21269 wxSize const &arg5_defvalue = wxDefaultSize ;
21270 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21271 long arg6 = (long) 0 ;
21272 wxString const &arg7_defvalue = wxPyEmptyString ;
21273 wxString *arg7 = (wxString *) &arg7_defvalue ;
21274 bool result;
21275 void *argp1 = 0 ;
21276 int res1 = 0 ;
21277 void *argp2 = 0 ;
21278 int res2 = 0 ;
21279 int val3 ;
21280 int ecode3 = 0 ;
21281 wxPoint temp4 ;
21282 wxSize temp5 ;
21283 long val6 ;
21284 int ecode6 = 0 ;
21285 bool temp7 = false ;
21286 PyObject * obj0 = 0 ;
21287 PyObject * obj1 = 0 ;
21288 PyObject * obj2 = 0 ;
21289 PyObject * obj3 = 0 ;
21290 PyObject * obj4 = 0 ;
21291 PyObject * obj5 = 0 ;
21292 PyObject * obj6 = 0 ;
21293 char * kwnames[] = {
21294 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21295 };
21296
21297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21299 if (!SWIG_IsOK(res1)) {
21300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21301 }
21302 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21303 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21304 if (!SWIG_IsOK(res2)) {
21305 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21306 }
21307 arg2 = reinterpret_cast< wxWindow * >(argp2);
21308 ecode3 = SWIG_AsVal_int(obj2, &val3);
21309 if (!SWIG_IsOK(ecode3)) {
21310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21311 }
21312 arg3 = static_cast< int >(val3);
21313 if (obj3) {
d55e5bfc 21314 {
1bd55598
RD
21315 arg4 = &temp4;
21316 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 21317 }
1bd55598
RD
21318 }
21319 if (obj4) {
d55e5bfc 21320 {
1bd55598
RD
21321 arg5 = &temp5;
21322 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21323 }
1bd55598
RD
21324 }
21325 if (obj5) {
21326 ecode6 = SWIG_AsVal_long(obj5, &val6);
21327 if (!SWIG_IsOK(ecode6)) {
21328 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21329 }
21330 arg6 = static_cast< long >(val6);
21331 }
21332 if (obj6) {
d55e5bfc 21333 {
1bd55598
RD
21334 arg7 = wxString_in_helper(obj6);
21335 if (arg7 == NULL) SWIG_fail;
21336 temp7 = true;
d55e5bfc 21337 }
1bd55598
RD
21338 }
21339 {
21340 PyThreadState* __tstate = wxPyBeginAllowThreads();
21341 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21342 wxPyEndAllowThreads(__tstate);
21343 if (PyErr_Occurred()) SWIG_fail;
21344 }
21345 {
21346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21347 }
21348 {
21349 if (temp7)
21350 delete arg7;
21351 }
21352 return resultobj;
21353fail:
21354 {
21355 if (temp7)
21356 delete arg7;
21357 }
21358 return NULL;
d55e5bfc
RD
21359}
21360
21361
1bd55598
RD
21362SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21363 PyObject *resultobj = 0;
21364 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21365 wxChoice *result = 0 ;
21366 void *argp1 = 0 ;
21367 int res1 = 0 ;
21368 PyObject *swig_obj[1] ;
21369
21370 if (!args) SWIG_fail;
21371 swig_obj[0] = args;
21372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21373 if (!SWIG_IsOK(res1)) {
21374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21375 }
21376 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21377 {
21378 PyThreadState* __tstate = wxPyBeginAllowThreads();
21379 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21380 wxPyEndAllowThreads(__tstate);
21381 if (PyErr_Occurred()) SWIG_fail;
21382 }
21383 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21384 return resultobj;
21385fail:
21386 return NULL;
21387}
21388
21389
21390SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21391 PyObject *obj;
21392 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21393 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21394 return SWIG_Py_Void();
21395}
21396
21397SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21398 return SWIG_Python_InitShadowInstance(args);
21399}
21400
21401SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21402 PyObject *resultobj = 0;
21403 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21404 int arg2 = (int) 0 ;
21405 int arg3 = (int) -1 ;
21406 int arg4 = (int) -1 ;
21407 wxChoicebookEvent *result = 0 ;
21408 int val1 ;
21409 int ecode1 = 0 ;
21410 int val2 ;
21411 int ecode2 = 0 ;
21412 int val3 ;
21413 int ecode3 = 0 ;
21414 int val4 ;
21415 int ecode4 = 0 ;
21416 PyObject * obj0 = 0 ;
21417 PyObject * obj1 = 0 ;
21418 PyObject * obj2 = 0 ;
21419 PyObject * obj3 = 0 ;
21420 char * kwnames[] = {
21421 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21422 };
21423
21424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21425 if (obj0) {
21426 ecode1 = SWIG_AsVal_int(obj0, &val1);
21427 if (!SWIG_IsOK(ecode1)) {
21428 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21429 }
21430 arg1 = static_cast< wxEventType >(val1);
21431 }
21432 if (obj1) {
21433 ecode2 = SWIG_AsVal_int(obj1, &val2);
21434 if (!SWIG_IsOK(ecode2)) {
21435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21436 }
21437 arg2 = static_cast< int >(val2);
21438 }
21439 if (obj2) {
21440 ecode3 = SWIG_AsVal_int(obj2, &val3);
21441 if (!SWIG_IsOK(ecode3)) {
21442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21443 }
21444 arg3 = static_cast< int >(val3);
21445 }
21446 if (obj3) {
21447 ecode4 = SWIG_AsVal_int(obj3, &val4);
21448 if (!SWIG_IsOK(ecode4)) {
21449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21450 }
21451 arg4 = static_cast< int >(val4);
21452 }
21453 {
21454 PyThreadState* __tstate = wxPyBeginAllowThreads();
21455 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21456 wxPyEndAllowThreads(__tstate);
21457 if (PyErr_Occurred()) SWIG_fail;
21458 }
21459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21460 return resultobj;
21461fail:
21462 return NULL;
21463}
21464
21465
21466SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21467 PyObject *obj;
21468 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21469 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21470 return SWIG_Py_Void();
21471}
21472
21473SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21474 return SWIG_Python_InitShadowInstance(args);
21475}
21476
21477SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21478 PyObject *resultobj = 0;
21479 wxWindow *arg1 = (wxWindow *) 0 ;
21480 int arg2 ;
21481 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21482 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21483 wxSize const &arg4_defvalue = wxDefaultSize ;
21484 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21485 long arg5 = (long) wxBK_DEFAULT ;
21486 wxString const &arg6_defvalue = wxPyEmptyString ;
21487 wxString *arg6 = (wxString *) &arg6_defvalue ;
21488 wxTreebook *result = 0 ;
21489 void *argp1 = 0 ;
21490 int res1 = 0 ;
21491 int val2 ;
21492 int ecode2 = 0 ;
21493 wxPoint temp3 ;
21494 wxSize temp4 ;
21495 long val5 ;
21496 int ecode5 = 0 ;
21497 bool temp6 = false ;
21498 PyObject * obj0 = 0 ;
21499 PyObject * obj1 = 0 ;
21500 PyObject * obj2 = 0 ;
21501 PyObject * obj3 = 0 ;
21502 PyObject * obj4 = 0 ;
21503 PyObject * obj5 = 0 ;
21504 char * kwnames[] = {
21505 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21506 };
21507
21508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21510 if (!SWIG_IsOK(res1)) {
21511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21512 }
21513 arg1 = reinterpret_cast< wxWindow * >(argp1);
21514 ecode2 = SWIG_AsVal_int(obj1, &val2);
21515 if (!SWIG_IsOK(ecode2)) {
21516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21517 }
21518 arg2 = static_cast< int >(val2);
21519 if (obj2) {
36ed4f51 21520 {
1bd55598
RD
21521 arg3 = &temp3;
21522 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 21523 }
1bd55598
RD
21524 }
21525 if (obj3) {
36ed4f51 21526 {
1bd55598
RD
21527 arg4 = &temp4;
21528 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21529 }
1bd55598
RD
21530 }
21531 if (obj4) {
21532 ecode5 = SWIG_AsVal_long(obj4, &val5);
21533 if (!SWIG_IsOK(ecode5)) {
21534 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21535 }
21536 arg5 = static_cast< long >(val5);
21537 }
21538 if (obj5) {
d55e5bfc 21539 {
1bd55598
RD
21540 arg6 = wxString_in_helper(obj5);
21541 if (arg6 == NULL) SWIG_fail;
21542 temp6 = true;
d55e5bfc 21543 }
1bd55598
RD
21544 }
21545 {
21546 if (!wxPyCheckForApp()) SWIG_fail;
21547 PyThreadState* __tstate = wxPyBeginAllowThreads();
21548 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21549 wxPyEndAllowThreads(__tstate);
21550 if (PyErr_Occurred()) SWIG_fail;
21551 }
21552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21553 {
21554 if (temp6)
21555 delete arg6;
21556 }
21557 return resultobj;
21558fail:
21559 {
21560 if (temp6)
21561 delete arg6;
21562 }
21563 return NULL;
d55e5bfc
RD
21564}
21565
21566
1bd55598
RD
21567SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21568 PyObject *resultobj = 0;
21569 wxTreebook *result = 0 ;
21570
21571 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21572 {
21573 if (!wxPyCheckForApp()) SWIG_fail;
21574 PyThreadState* __tstate = wxPyBeginAllowThreads();
21575 result = (wxTreebook *)new wxTreebook();
21576 wxPyEndAllowThreads(__tstate);
21577 if (PyErr_Occurred()) SWIG_fail;
21578 }
21579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21580 return resultobj;
21581fail:
21582 return NULL;
21583}
21584
21585
21586SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21587 PyObject *resultobj = 0;
21588 wxTreebook *arg1 = (wxTreebook *) 0 ;
21589 wxWindow *arg2 = (wxWindow *) 0 ;
21590 int arg3 ;
21591 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21592 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21593 wxSize const &arg5_defvalue = wxDefaultSize ;
21594 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21595 long arg6 = (long) wxBK_DEFAULT ;
21596 wxString const &arg7_defvalue = wxPyEmptyString ;
21597 wxString *arg7 = (wxString *) &arg7_defvalue ;
21598 bool result;
21599 void *argp1 = 0 ;
21600 int res1 = 0 ;
21601 void *argp2 = 0 ;
21602 int res2 = 0 ;
21603 int val3 ;
21604 int ecode3 = 0 ;
21605 wxPoint temp4 ;
21606 wxSize temp5 ;
21607 long val6 ;
21608 int ecode6 = 0 ;
21609 bool temp7 = false ;
21610 PyObject * obj0 = 0 ;
21611 PyObject * obj1 = 0 ;
21612 PyObject * obj2 = 0 ;
21613 PyObject * obj3 = 0 ;
21614 PyObject * obj4 = 0 ;
21615 PyObject * obj5 = 0 ;
21616 PyObject * obj6 = 0 ;
21617 char * kwnames[] = {
21618 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21619 };
21620
21621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21623 if (!SWIG_IsOK(res1)) {
21624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21625 }
21626 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21627 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21628 if (!SWIG_IsOK(res2)) {
21629 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21630 }
21631 arg2 = reinterpret_cast< wxWindow * >(argp2);
21632 ecode3 = SWIG_AsVal_int(obj2, &val3);
21633 if (!SWIG_IsOK(ecode3)) {
21634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21635 }
21636 arg3 = static_cast< int >(val3);
21637 if (obj3) {
36ed4f51 21638 {
1bd55598
RD
21639 arg4 = &temp4;
21640 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 21641 }
1bd55598
RD
21642 }
21643 if (obj4) {
d55e5bfc 21644 {
1bd55598
RD
21645 arg5 = &temp5;
21646 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 21647 }
1bd55598
RD
21648 }
21649 if (obj5) {
21650 ecode6 = SWIG_AsVal_long(obj5, &val6);
21651 if (!SWIG_IsOK(ecode6)) {
21652 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21653 }
21654 arg6 = static_cast< long >(val6);
21655 }
21656 if (obj6) {
36ed4f51 21657 {
1bd55598
RD
21658 arg7 = wxString_in_helper(obj6);
21659 if (arg7 == NULL) SWIG_fail;
21660 temp7 = true;
36ed4f51 21661 }
1bd55598
RD
21662 }
21663 {
21664 PyThreadState* __tstate = wxPyBeginAllowThreads();
21665 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21666 wxPyEndAllowThreads(__tstate);
21667 if (PyErr_Occurred()) SWIG_fail;
21668 }
21669 {
21670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21671 }
21672 {
21673 if (temp7)
21674 delete arg7;
21675 }
21676 return resultobj;
21677fail:
21678 {
21679 if (temp7)
21680 delete arg7;
21681 }
21682 return NULL;
21683}
21684
21685
21686SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21687 PyObject *resultobj = 0;
21688 wxTreebook *arg1 = (wxTreebook *) 0 ;
21689 size_t arg2 ;
21690 wxWindow *arg3 = (wxWindow *) 0 ;
21691 wxString *arg4 = 0 ;
21692 bool arg5 = (bool) false ;
21693 int arg6 = (int) wxNOT_FOUND ;
21694 bool result;
21695 void *argp1 = 0 ;
21696 int res1 = 0 ;
21697 size_t val2 ;
21698 int ecode2 = 0 ;
21699 void *argp3 = 0 ;
21700 int res3 = 0 ;
21701 bool temp4 = false ;
21702 bool val5 ;
21703 int ecode5 = 0 ;
21704 int val6 ;
21705 int ecode6 = 0 ;
21706 PyObject * obj0 = 0 ;
21707 PyObject * obj1 = 0 ;
21708 PyObject * obj2 = 0 ;
21709 PyObject * obj3 = 0 ;
21710 PyObject * obj4 = 0 ;
21711 PyObject * obj5 = 0 ;
21712 char * kwnames[] = {
21713 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21714 };
21715
21716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21718 if (!SWIG_IsOK(res1)) {
21719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21720 }
21721 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21722 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21723 if (!SWIG_IsOK(ecode2)) {
21724 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21725 }
21726 arg2 = static_cast< size_t >(val2);
21727 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21728 if (!SWIG_IsOK(res3)) {
21729 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21730 }
21731 arg3 = reinterpret_cast< wxWindow * >(argp3);
21732 {
21733 arg4 = wxString_in_helper(obj3);
21734 if (arg4 == NULL) SWIG_fail;
21735 temp4 = true;
21736 }
21737 if (obj4) {
21738 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21739 if (!SWIG_IsOK(ecode5)) {
21740 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21741 }
21742 arg5 = static_cast< bool >(val5);
21743 }
21744 if (obj5) {
21745 ecode6 = SWIG_AsVal_int(obj5, &val6);
21746 if (!SWIG_IsOK(ecode6)) {
21747 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21748 }
21749 arg6 = static_cast< int >(val6);
21750 }
21751 {
21752 PyThreadState* __tstate = wxPyBeginAllowThreads();
21753 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21754 wxPyEndAllowThreads(__tstate);
21755 if (PyErr_Occurred()) SWIG_fail;
21756 }
21757 {
21758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21759 }
21760 {
21761 if (temp4)
21762 delete arg4;
21763 }
21764 return resultobj;
21765fail:
21766 {
21767 if (temp4)
21768 delete arg4;
21769 }
21770 return NULL;
21771}
21772
21773
21774SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21775 PyObject *resultobj = 0;
21776 wxTreebook *arg1 = (wxTreebook *) 0 ;
21777 wxWindow *arg2 = (wxWindow *) 0 ;
21778 wxString *arg3 = 0 ;
21779 bool arg4 = (bool) false ;
21780 int arg5 = (int) wxNOT_FOUND ;
21781 bool result;
21782 void *argp1 = 0 ;
21783 int res1 = 0 ;
21784 void *argp2 = 0 ;
21785 int res2 = 0 ;
21786 bool temp3 = false ;
21787 bool val4 ;
21788 int ecode4 = 0 ;
21789 int val5 ;
21790 int ecode5 = 0 ;
21791 PyObject * obj0 = 0 ;
21792 PyObject * obj1 = 0 ;
21793 PyObject * obj2 = 0 ;
21794 PyObject * obj3 = 0 ;
21795 PyObject * obj4 = 0 ;
21796 char * kwnames[] = {
21797 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21798 };
21799
21800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21802 if (!SWIG_IsOK(res1)) {
21803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21804 }
21805 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21806 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21807 if (!SWIG_IsOK(res2)) {
21808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21809 }
21810 arg2 = reinterpret_cast< wxWindow * >(argp2);
21811 {
21812 arg3 = wxString_in_helper(obj2);
21813 if (arg3 == NULL) SWIG_fail;
21814 temp3 = true;
21815 }
21816 if (obj3) {
21817 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21818 if (!SWIG_IsOK(ecode4)) {
21819 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21820 }
21821 arg4 = static_cast< bool >(val4);
21822 }
21823 if (obj4) {
21824 ecode5 = SWIG_AsVal_int(obj4, &val5);
21825 if (!SWIG_IsOK(ecode5)) {
21826 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21827 }
21828 arg5 = static_cast< int >(val5);
21829 }
21830 {
21831 PyThreadState* __tstate = wxPyBeginAllowThreads();
21832 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21833 wxPyEndAllowThreads(__tstate);
21834 if (PyErr_Occurred()) SWIG_fail;
21835 }
21836 {
21837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21838 }
21839 {
21840 if (temp3)
21841 delete arg3;
21842 }
21843 return resultobj;
21844fail:
21845 {
21846 if (temp3)
21847 delete arg3;
21848 }
21849 return NULL;
21850}
21851
21852
21853SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21854 PyObject *resultobj = 0;
21855 wxTreebook *arg1 = (wxTreebook *) 0 ;
21856 size_t arg2 ;
21857 bool result;
21858 void *argp1 = 0 ;
21859 int res1 = 0 ;
21860 size_t val2 ;
21861 int ecode2 = 0 ;
21862 PyObject * obj0 = 0 ;
21863 PyObject * obj1 = 0 ;
21864 char * kwnames[] = {
21865 (char *) "self",(char *) "pos", NULL
21866 };
21867
21868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21870 if (!SWIG_IsOK(res1)) {
21871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21872 }
21873 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21874 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21875 if (!SWIG_IsOK(ecode2)) {
21876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21877 }
21878 arg2 = static_cast< size_t >(val2);
21879 {
21880 PyThreadState* __tstate = wxPyBeginAllowThreads();
21881 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21882 wxPyEndAllowThreads(__tstate);
21883 if (PyErr_Occurred()) SWIG_fail;
21884 }
21885 {
21886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21887 }
21888 return resultobj;
21889fail:
21890 return NULL;
21891}
21892
21893
21894SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21895 PyObject *resultobj = 0;
21896 wxTreebook *arg1 = (wxTreebook *) 0 ;
21897 size_t arg2 ;
21898 bool arg3 = (bool) true ;
21899 bool result;
21900 void *argp1 = 0 ;
21901 int res1 = 0 ;
21902 size_t val2 ;
21903 int ecode2 = 0 ;
21904 bool val3 ;
21905 int ecode3 = 0 ;
21906 PyObject * obj0 = 0 ;
21907 PyObject * obj1 = 0 ;
21908 PyObject * obj2 = 0 ;
21909 char * kwnames[] = {
21910 (char *) "self",(char *) "pos",(char *) "expand", NULL
21911 };
21912
21913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21915 if (!SWIG_IsOK(res1)) {
21916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21917 }
21918 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21919 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21920 if (!SWIG_IsOK(ecode2)) {
21921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21922 }
21923 arg2 = static_cast< size_t >(val2);
21924 if (obj2) {
21925 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21926 if (!SWIG_IsOK(ecode3)) {
21927 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21928 }
21929 arg3 = static_cast< bool >(val3);
21930 }
21931 {
21932 PyThreadState* __tstate = wxPyBeginAllowThreads();
21933 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21934 wxPyEndAllowThreads(__tstate);
21935 if (PyErr_Occurred()) SWIG_fail;
21936 }
21937 {
21938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21939 }
21940 return resultobj;
21941fail:
21942 return NULL;
21943}
21944
21945
21946SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21947 PyObject *resultobj = 0;
21948 wxTreebook *arg1 = (wxTreebook *) 0 ;
21949 size_t arg2 ;
21950 bool result;
21951 void *argp1 = 0 ;
21952 int res1 = 0 ;
21953 size_t val2 ;
21954 int ecode2 = 0 ;
21955 PyObject * obj0 = 0 ;
21956 PyObject * obj1 = 0 ;
21957 char * kwnames[] = {
21958 (char *) "self",(char *) "pos", NULL
21959 };
21960
21961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21963 if (!SWIG_IsOK(res1)) {
21964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21965 }
21966 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21967 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21968 if (!SWIG_IsOK(ecode2)) {
21969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21970 }
21971 arg2 = static_cast< size_t >(val2);
21972 {
21973 PyThreadState* __tstate = wxPyBeginAllowThreads();
21974 result = (bool)(arg1)->CollapseNode(arg2);
21975 wxPyEndAllowThreads(__tstate);
21976 if (PyErr_Occurred()) SWIG_fail;
21977 }
21978 {
21979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21980 }
21981 return resultobj;
21982fail:
21983 return NULL;
21984}
21985
21986
21987SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21988 PyObject *resultobj = 0;
21989 wxTreebook *arg1 = (wxTreebook *) 0 ;
21990 size_t arg2 ;
21991 int result;
21992 void *argp1 = 0 ;
21993 int res1 = 0 ;
21994 size_t val2 ;
21995 int ecode2 = 0 ;
21996 PyObject * obj0 = 0 ;
21997 PyObject * obj1 = 0 ;
21998 char * kwnames[] = {
21999 (char *) "self",(char *) "pos", NULL
22000 };
22001
22002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
22003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22004 if (!SWIG_IsOK(res1)) {
22005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22006 }
22007 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22008 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
22009 if (!SWIG_IsOK(ecode2)) {
22010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
22011 }
22012 arg2 = static_cast< size_t >(val2);
22013 {
22014 PyThreadState* __tstate = wxPyBeginAllowThreads();
22015 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
22016 wxPyEndAllowThreads(__tstate);
22017 if (PyErr_Occurred()) SWIG_fail;
22018 }
22019 resultobj = SWIG_From_int(static_cast< int >(result));
22020 return resultobj;
22021fail:
22022 return NULL;
d55e5bfc
RD
22023}
22024
22025
1bd55598
RD
22026SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22027 PyObject *resultobj = 0;
22028 wxTreebook *arg1 = (wxTreebook *) 0 ;
10044bf1 22029 wxPyTreeCtrl *result = 0 ;
1bd55598
RD
22030 void *argp1 = 0 ;
22031 int res1 = 0 ;
22032 PyObject *swig_obj[1] ;
22033
22034 if (!args) SWIG_fail;
22035 swig_obj[0] = args;
22036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
22037 if (!SWIG_IsOK(res1)) {
22038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
22039 }
22040 arg1 = reinterpret_cast< wxTreebook * >(argp1);
22041 {
22042 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044bf1 22043 result = (wxPyTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
1bd55598
RD
22044 wxPyEndAllowThreads(__tstate);
22045 if (PyErr_Occurred()) SWIG_fail;
22046 }
10044bf1
RD
22047 {
22048 resultobj = wxPyMake_wxObject(result, (bool)0);
22049 }
1bd55598
RD
22050 return resultobj;
22051fail:
22052 return NULL;
22053}
22054
22055
22056SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22057 PyObject *obj;
22058 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22059 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
22060 return SWIG_Py_Void();
22061}
22062
22063SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22064 return SWIG_Python_InitShadowInstance(args);
22065}
22066
22067SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22068 PyObject *resultobj = 0;
22069 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22070 int arg2 = (int) 0 ;
22071 int arg3 = (int) wxNOT_FOUND ;
22072 int arg4 = (int) wxNOT_FOUND ;
22073 wxTreebookEvent *result = 0 ;
22074 int val1 ;
22075 int ecode1 = 0 ;
22076 int val2 ;
22077 int ecode2 = 0 ;
22078 int val3 ;
22079 int ecode3 = 0 ;
22080 int val4 ;
22081 int ecode4 = 0 ;
22082 PyObject * obj0 = 0 ;
22083 PyObject * obj1 = 0 ;
22084 PyObject * obj2 = 0 ;
22085 PyObject * obj3 = 0 ;
22086 char * kwnames[] = {
22087 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22088 };
22089
22090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22091 if (obj0) {
22092 ecode1 = SWIG_AsVal_int(obj0, &val1);
22093 if (!SWIG_IsOK(ecode1)) {
22094 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22095 }
22096 arg1 = static_cast< wxEventType >(val1);
22097 }
22098 if (obj1) {
22099 ecode2 = SWIG_AsVal_int(obj1, &val2);
22100 if (!SWIG_IsOK(ecode2)) {
22101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
22102 }
22103 arg2 = static_cast< int >(val2);
22104 }
22105 if (obj2) {
22106 ecode3 = SWIG_AsVal_int(obj2, &val3);
22107 if (!SWIG_IsOK(ecode3)) {
22108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
22109 }
22110 arg3 = static_cast< int >(val3);
22111 }
22112 if (obj3) {
22113 ecode4 = SWIG_AsVal_int(obj3, &val4);
22114 if (!SWIG_IsOK(ecode4)) {
22115 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
22116 }
22117 arg4 = static_cast< int >(val4);
22118 }
22119 {
22120 PyThreadState* __tstate = wxPyBeginAllowThreads();
22121 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
22122 wxPyEndAllowThreads(__tstate);
22123 if (PyErr_Occurred()) SWIG_fail;
22124 }
22125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
22126 return resultobj;
22127fail:
22128 return NULL;
22129}
22130
22131
22132SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22133 PyObject *obj;
22134 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22135 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
22136 return SWIG_Py_Void();
22137}
22138
22139SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22140 return SWIG_Python_InitShadowInstance(args);
22141}
22142
22143SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22144 PyObject *resultobj = 0;
22145 wxWindow *arg1 = (wxWindow *) 0 ;
22146 int arg2 ;
22147 wxPoint const &arg3_defvalue = wxDefaultPosition ;
22148 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
22149 wxSize const &arg4_defvalue = wxDefaultSize ;
22150 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
22151 long arg5 = (long) wxBK_DEFAULT ;
22152 wxString const &arg6_defvalue = wxPyEmptyString ;
22153 wxString *arg6 = (wxString *) &arg6_defvalue ;
22154 wxToolbook *result = 0 ;
22155 void *argp1 = 0 ;
22156 int res1 = 0 ;
22157 int val2 ;
22158 int ecode2 = 0 ;
22159 wxPoint temp3 ;
22160 wxSize temp4 ;
22161 long val5 ;
22162 int ecode5 = 0 ;
22163 bool temp6 = false ;
22164 PyObject * obj0 = 0 ;
22165 PyObject * obj1 = 0 ;
22166 PyObject * obj2 = 0 ;
22167 PyObject * obj3 = 0 ;
22168 PyObject * obj4 = 0 ;
22169 PyObject * obj5 = 0 ;
22170 char * kwnames[] = {
22171 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22172 };
22173
22174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22176 if (!SWIG_IsOK(res1)) {
22177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22178 }
22179 arg1 = reinterpret_cast< wxWindow * >(argp1);
22180 ecode2 = SWIG_AsVal_int(obj1, &val2);
22181 if (!SWIG_IsOK(ecode2)) {
22182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22183 }
22184 arg2 = static_cast< int >(val2);
22185 if (obj2) {
36ed4f51 22186 {
1bd55598
RD
22187 arg3 = &temp3;
22188 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36ed4f51 22189 }
1bd55598
RD
22190 }
22191 if (obj3) {
36ed4f51 22192 {
1bd55598
RD
22193 arg4 = &temp4;
22194 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 22195 }
1bd55598
RD
22196 }
22197 if (obj4) {
22198 ecode5 = SWIG_AsVal_long(obj4, &val5);
22199 if (!SWIG_IsOK(ecode5)) {
22200 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22201 }
22202 arg5 = static_cast< long >(val5);
22203 }
22204 if (obj5) {
d55e5bfc 22205 {
1bd55598
RD
22206 arg6 = wxString_in_helper(obj5);
22207 if (arg6 == NULL) SWIG_fail;
22208 temp6 = true;
d55e5bfc 22209 }
1bd55598
RD
22210 }
22211 {
22212 PyThreadState* __tstate = wxPyBeginAllowThreads();
22213 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22214 wxPyEndAllowThreads(__tstate);
22215 if (PyErr_Occurred()) SWIG_fail;
22216 }
22217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22218 {
22219 if (temp6)
22220 delete arg6;
22221 }
22222 return resultobj;
22223fail:
22224 {
22225 if (temp6)
22226 delete arg6;
22227 }
22228 return NULL;
d55e5bfc
RD
22229}
22230
22231
1bd55598
RD
22232SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22233 PyObject *resultobj = 0;
22234 wxToolbook *result = 0 ;
22235
22236 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22237 {
22238 PyThreadState* __tstate = wxPyBeginAllowThreads();
22239 result = (wxToolbook *)new wxToolbook();
22240 wxPyEndAllowThreads(__tstate);
22241 if (PyErr_Occurred()) SWIG_fail;
22242 }
22243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22244 return resultobj;
22245fail:
22246 return NULL;
22247}
22248
22249
22250SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22251 PyObject *resultobj = 0;
22252 wxToolbook *arg1 = (wxToolbook *) 0 ;
22253 wxWindow *arg2 = (wxWindow *) 0 ;
22254 int arg3 ;
22255 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22256 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22257 wxSize const &arg5_defvalue = wxDefaultSize ;
22258 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22259 long arg6 = (long) 0 ;
22260 wxString const &arg7_defvalue = wxEmptyString ;
22261 wxString *arg7 = (wxString *) &arg7_defvalue ;
22262 bool result;
22263 void *argp1 = 0 ;
22264 int res1 = 0 ;
22265 void *argp2 = 0 ;
22266 int res2 = 0 ;
22267 int val3 ;
22268 int ecode3 = 0 ;
22269 wxPoint temp4 ;
22270 wxSize temp5 ;
22271 long val6 ;
22272 int ecode6 = 0 ;
22273 bool temp7 = false ;
22274 PyObject * obj0 = 0 ;
22275 PyObject * obj1 = 0 ;
22276 PyObject * obj2 = 0 ;
22277 PyObject * obj3 = 0 ;
22278 PyObject * obj4 = 0 ;
22279 PyObject * obj5 = 0 ;
22280 PyObject * obj6 = 0 ;
22281 char * kwnames[] = {
22282 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22283 };
22284
22285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22287 if (!SWIG_IsOK(res1)) {
22288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22289 }
22290 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22291 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22292 if (!SWIG_IsOK(res2)) {
22293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22294 }
22295 arg2 = reinterpret_cast< wxWindow * >(argp2);
22296 ecode3 = SWIG_AsVal_int(obj2, &val3);
22297 if (!SWIG_IsOK(ecode3)) {
22298 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22299 }
22300 arg3 = static_cast< int >(val3);
22301 if (obj3) {
22302 {
22303 arg4 = &temp4;
22304 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
f20a2e1f 22305 }
1bd55598
RD
22306 }
22307 if (obj4) {
f20a2e1f 22308 {
1bd55598
RD
22309 arg5 = &temp5;
22310 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
f20a2e1f 22311 }
1bd55598
RD
22312 }
22313 if (obj5) {
22314 ecode6 = SWIG_AsVal_long(obj5, &val6);
22315 if (!SWIG_IsOK(ecode6)) {
22316 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22317 }
22318 arg6 = static_cast< long >(val6);
22319 }
22320 if (obj6) {
f20a2e1f 22321 {
1bd55598
RD
22322 arg7 = wxString_in_helper(obj6);
22323 if (arg7 == NULL) SWIG_fail;
22324 temp7 = true;
f20a2e1f 22325 }
1bd55598
RD
22326 }
22327 {
22328 PyThreadState* __tstate = wxPyBeginAllowThreads();
22329 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22330 wxPyEndAllowThreads(__tstate);
22331 if (PyErr_Occurred()) SWIG_fail;
22332 }
22333 {
22334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22335 }
22336 {
22337 if (temp7)
22338 delete arg7;
22339 }
22340 return resultobj;
22341fail:
22342 {
22343 if (temp7)
22344 delete arg7;
22345 }
22346 return NULL;
f20a2e1f
RD
22347}
22348
22349
1bd55598
RD
22350SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22351 PyObject *resultobj = 0;
22352 wxToolbook *arg1 = (wxToolbook *) 0 ;
22353 wxToolBarBase *result = 0 ;
22354 void *argp1 = 0 ;
22355 int res1 = 0 ;
22356 PyObject *swig_obj[1] ;
22357
22358 if (!args) SWIG_fail;
22359 swig_obj[0] = args;
22360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22361 if (!SWIG_IsOK(res1)) {
22362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22363 }
22364 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22365 {
22366 PyThreadState* __tstate = wxPyBeginAllowThreads();
22367 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22368 wxPyEndAllowThreads(__tstate);
22369 if (PyErr_Occurred()) SWIG_fail;
22370 }
22371 {
22372 resultobj = wxPyMake_wxObject(result, (bool)0);
22373 }
22374 return resultobj;
22375fail:
22376 return NULL;
d55e5bfc
RD
22377}
22378
22379
1bd55598
RD
22380SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22381 PyObject *resultobj = 0;
22382 wxToolbook *arg1 = (wxToolbook *) 0 ;
22383 void *argp1 = 0 ;
22384 int res1 = 0 ;
22385 PyObject *swig_obj[1] ;
22386
22387 if (!args) SWIG_fail;
22388 swig_obj[0] = args;
22389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22390 if (!SWIG_IsOK(res1)) {
22391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22392 }
22393 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22394 {
22395 PyThreadState* __tstate = wxPyBeginAllowThreads();
22396 (arg1)->Realize();
22397 wxPyEndAllowThreads(__tstate);
22398 if (PyErr_Occurred()) SWIG_fail;
22399 }
22400 resultobj = SWIG_Py_Void();
22401 return resultobj;
22402fail:
22403 return NULL;
22404}
22405
22406
22407SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22408 PyObject *obj;
22409 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22410 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22411 return SWIG_Py_Void();
22412}
22413
22414SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22415 return SWIG_Python_InitShadowInstance(args);
22416}
22417
22418SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22419 PyObject *resultobj = 0;
22420 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22421 int arg2 = (int) 0 ;
22422 int arg3 = (int) wxNOT_FOUND ;
22423 int arg4 = (int) wxNOT_FOUND ;
22424 wxToolbookEvent *result = 0 ;
22425 int val1 ;
22426 int ecode1 = 0 ;
22427 int val2 ;
22428 int ecode2 = 0 ;
22429 int val3 ;
22430 int ecode3 = 0 ;
22431 int val4 ;
22432 int ecode4 = 0 ;
22433 PyObject * obj0 = 0 ;
22434 PyObject * obj1 = 0 ;
22435 PyObject * obj2 = 0 ;
22436 PyObject * obj3 = 0 ;
22437 char * kwnames[] = {
22438 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22439 };
22440
22441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22442 if (obj0) {
22443 ecode1 = SWIG_AsVal_int(obj0, &val1);
22444 if (!SWIG_IsOK(ecode1)) {
22445 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22446 }
22447 arg1 = static_cast< wxEventType >(val1);
22448 }
22449 if (obj1) {
22450 ecode2 = SWIG_AsVal_int(obj1, &val2);
22451 if (!SWIG_IsOK(ecode2)) {
22452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22453 }
22454 arg2 = static_cast< int >(val2);
22455 }
22456 if (obj2) {
22457 ecode3 = SWIG_AsVal_int(obj2, &val3);
22458 if (!SWIG_IsOK(ecode3)) {
22459 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22460 }
22461 arg3 = static_cast< int >(val3);
22462 }
22463 if (obj3) {
22464 ecode4 = SWIG_AsVal_int(obj3, &val4);
22465 if (!SWIG_IsOK(ecode4)) {
22466 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22467 }
22468 arg4 = static_cast< int >(val4);
22469 }
22470 {
22471 PyThreadState* __tstate = wxPyBeginAllowThreads();
22472 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22473 wxPyEndAllowThreads(__tstate);
22474 if (PyErr_Occurred()) SWIG_fail;
22475 }
22476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22477 return resultobj;
22478fail:
22479 return NULL;
d55e5bfc
RD
22480}
22481
22482
1bd55598
RD
22483SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22484 PyObject *obj;
22485 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22486 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22487 return SWIG_Py_Void();
d55e5bfc
RD
22488}
22489
1bd55598
RD
22490SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22491 return SWIG_Python_InitShadowInstance(args);
22492}
d55e5bfc 22493
1bd55598
RD
22494SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22495 PyObject *resultobj = 0;
22496 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22497 int result;
22498 void *argp1 = 0 ;
22499 int res1 = 0 ;
22500 PyObject *swig_obj[1] ;
22501
22502 if (!args) SWIG_fail;
22503 swig_obj[0] = args;
22504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22505 if (!SWIG_IsOK(res1)) {
22506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22507 }
22508 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22509 {
22510 PyThreadState* __tstate = wxPyBeginAllowThreads();
22511 result = (int)(arg1)->GetId();
22512 wxPyEndAllowThreads(__tstate);
22513 if (PyErr_Occurred()) SWIG_fail;
22514 }
22515 resultobj = SWIG_From_int(static_cast< int >(result));
22516 return resultobj;
22517fail:
22518 return NULL;
d55e5bfc 22519}
1bd55598
RD
22520
22521
22522SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22523 PyObject *resultobj = 0;
22524 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22525 wxControl *result = 0 ;
22526 void *argp1 = 0 ;
22527 int res1 = 0 ;
22528 PyObject *swig_obj[1] ;
22529
22530 if (!args) SWIG_fail;
22531 swig_obj[0] = args;
22532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22533 if (!SWIG_IsOK(res1)) {
22534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22535 }
22536 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22537 {
22538 PyThreadState* __tstate = wxPyBeginAllowThreads();
22539 result = (wxControl *)(arg1)->GetControl();
22540 wxPyEndAllowThreads(__tstate);
22541 if (PyErr_Occurred()) SWIG_fail;
22542 }
22543 {
22544 resultobj = wxPyMake_wxObject(result, 0);
22545 }
22546 return resultobj;
22547fail:
22548 return NULL;
d55e5bfc
RD
22549}
22550
22551
1bd55598
RD
22552SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22553 PyObject *resultobj = 0;
22554 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22555 wxToolBarBase *result = 0 ;
22556 void *argp1 = 0 ;
22557 int res1 = 0 ;
22558 PyObject *swig_obj[1] ;
22559
22560 if (!args) SWIG_fail;
22561 swig_obj[0] = args;
22562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22563 if (!SWIG_IsOK(res1)) {
22564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22565 }
22566 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22567 {
22568 PyThreadState* __tstate = wxPyBeginAllowThreads();
22569 result = (wxToolBarBase *)(arg1)->GetToolBar();
22570 wxPyEndAllowThreads(__tstate);
22571 if (PyErr_Occurred()) SWIG_fail;
22572 }
22573 {
22574 resultobj = wxPyMake_wxObject(result, (bool)0);
22575 }
22576 return resultobj;
22577fail:
22578 return NULL;
d55e5bfc
RD
22579}
22580
22581
1bd55598
RD
22582SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22583 PyObject *resultobj = 0;
22584 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22585 int result;
22586 void *argp1 = 0 ;
22587 int res1 = 0 ;
22588 PyObject *swig_obj[1] ;
22589
22590 if (!args) SWIG_fail;
22591 swig_obj[0] = args;
22592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22593 if (!SWIG_IsOK(res1)) {
22594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22595 }
22596 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22597 {
22598 PyThreadState* __tstate = wxPyBeginAllowThreads();
22599 result = (int)(arg1)->IsButton();
22600 wxPyEndAllowThreads(__tstate);
22601 if (PyErr_Occurred()) SWIG_fail;
22602 }
22603 resultobj = SWIG_From_int(static_cast< int >(result));
22604 return resultobj;
22605fail:
22606 return NULL;
d55e5bfc
RD
22607}
22608
22609
1bd55598
RD
22610SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22611 PyObject *resultobj = 0;
22612 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22613 int result;
22614 void *argp1 = 0 ;
22615 int res1 = 0 ;
22616 PyObject *swig_obj[1] ;
22617
22618 if (!args) SWIG_fail;
22619 swig_obj[0] = args;
22620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22621 if (!SWIG_IsOK(res1)) {
22622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22623 }
22624 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22625 {
22626 PyThreadState* __tstate = wxPyBeginAllowThreads();
22627 result = (int)(arg1)->IsControl();
22628 wxPyEndAllowThreads(__tstate);
22629 if (PyErr_Occurred()) SWIG_fail;
22630 }
22631 resultobj = SWIG_From_int(static_cast< int >(result));
22632 return resultobj;
22633fail:
22634 return NULL;
d55e5bfc
RD
22635}
22636
22637
1bd55598
RD
22638SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22639 PyObject *resultobj = 0;
22640 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22641 int result;
22642 void *argp1 = 0 ;
22643 int res1 = 0 ;
22644 PyObject *swig_obj[1] ;
22645
22646 if (!args) SWIG_fail;
22647 swig_obj[0] = args;
22648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22649 if (!SWIG_IsOK(res1)) {
22650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22651 }
22652 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22653 {
22654 PyThreadState* __tstate = wxPyBeginAllowThreads();
22655 result = (int)(arg1)->IsSeparator();
22656 wxPyEndAllowThreads(__tstate);
22657 if (PyErr_Occurred()) SWIG_fail;
22658 }
22659 resultobj = SWIG_From_int(static_cast< int >(result));
22660 return resultobj;
22661fail:
22662 return NULL;
d55e5bfc
RD
22663}
22664
22665
1bd55598
RD
22666SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22667 PyObject *resultobj = 0;
22668 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22669 int result;
22670 void *argp1 = 0 ;
22671 int res1 = 0 ;
22672 PyObject *swig_obj[1] ;
22673
22674 if (!args) SWIG_fail;
22675 swig_obj[0] = args;
22676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22677 if (!SWIG_IsOK(res1)) {
22678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22679 }
22680 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22681 {
22682 PyThreadState* __tstate = wxPyBeginAllowThreads();
22683 result = (int)(arg1)->GetStyle();
22684 wxPyEndAllowThreads(__tstate);
22685 if (PyErr_Occurred()) SWIG_fail;
22686 }
22687 resultobj = SWIG_From_int(static_cast< int >(result));
22688 return resultobj;
22689fail:
22690 return NULL;
d55e5bfc
RD
22691}
22692
22693
1bd55598
RD
22694SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22695 PyObject *resultobj = 0;
22696 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22697 wxItemKind result;
22698 void *argp1 = 0 ;
22699 int res1 = 0 ;
22700 PyObject *swig_obj[1] ;
22701
22702 if (!args) SWIG_fail;
22703 swig_obj[0] = args;
22704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22705 if (!SWIG_IsOK(res1)) {
22706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22707 }
22708 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22709 {
22710 PyThreadState* __tstate = wxPyBeginAllowThreads();
22711 result = (wxItemKind)(arg1)->GetKind();
22712 wxPyEndAllowThreads(__tstate);
22713 if (PyErr_Occurred()) SWIG_fail;
22714 }
22715 resultobj = SWIG_From_int(static_cast< int >(result));
22716 return resultobj;
22717fail:
22718 return NULL;
d55e5bfc
RD
22719}
22720
22721
1bd55598
RD
22722SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22723 PyObject *resultobj = 0;
22724 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22725 bool result;
22726 void *argp1 = 0 ;
22727 int res1 = 0 ;
22728 PyObject *swig_obj[1] ;
22729
22730 if (!args) SWIG_fail;
22731 swig_obj[0] = args;
22732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22733 if (!SWIG_IsOK(res1)) {
22734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22735 }
22736 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22737 {
22738 PyThreadState* __tstate = wxPyBeginAllowThreads();
22739 result = (bool)(arg1)->IsEnabled();
22740 wxPyEndAllowThreads(__tstate);
22741 if (PyErr_Occurred()) SWIG_fail;
22742 }
22743 {
22744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22745 }
22746 return resultobj;
22747fail:
22748 return NULL;
d55e5bfc
RD
22749}
22750
22751
1bd55598
RD
22752SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22753 PyObject *resultobj = 0;
22754 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22755 bool result;
22756 void *argp1 = 0 ;
22757 int res1 = 0 ;
22758 PyObject *swig_obj[1] ;
22759
22760 if (!args) SWIG_fail;
22761 swig_obj[0] = args;
22762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22763 if (!SWIG_IsOK(res1)) {
22764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22765 }
22766 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22767 {
22768 PyThreadState* __tstate = wxPyBeginAllowThreads();
22769 result = (bool)(arg1)->IsToggled();
22770 wxPyEndAllowThreads(__tstate);
22771 if (PyErr_Occurred()) SWIG_fail;
22772 }
22773 {
22774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22775 }
22776 return resultobj;
22777fail:
22778 return NULL;
d55e5bfc
RD
22779}
22780
22781
1bd55598
RD
22782SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22783 PyObject *resultobj = 0;
22784 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22785 bool result;
22786 void *argp1 = 0 ;
22787 int res1 = 0 ;
22788 PyObject *swig_obj[1] ;
22789
22790 if (!args) SWIG_fail;
22791 swig_obj[0] = args;
22792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22793 if (!SWIG_IsOK(res1)) {
22794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22795 }
22796 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22797 {
22798 PyThreadState* __tstate = wxPyBeginAllowThreads();
22799 result = (bool)(arg1)->CanBeToggled();
22800 wxPyEndAllowThreads(__tstate);
22801 if (PyErr_Occurred()) SWIG_fail;
22802 }
22803 {
22804 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22805 }
22806 return resultobj;
22807fail:
22808 return NULL;
d55e5bfc
RD
22809}
22810
22811
1bd55598
RD
22812SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22813 PyObject *resultobj = 0;
22814 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22815 wxBitmap *result = 0 ;
22816 void *argp1 = 0 ;
22817 int res1 = 0 ;
22818 PyObject *swig_obj[1] ;
22819
22820 if (!args) SWIG_fail;
22821 swig_obj[0] = args;
22822 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22823 if (!SWIG_IsOK(res1)) {
22824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22825 }
22826 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22827 {
22828 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 22829 {
1bd55598
RD
22830 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22831 result = (wxBitmap *) &_result_ref;
36ed4f51 22832 }
1bd55598
RD
22833 wxPyEndAllowThreads(__tstate);
22834 if (PyErr_Occurred()) SWIG_fail;
22835 }
22836 {
22837 wxBitmap* resultptr = new wxBitmap(*result);
22838 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22839 }
22840 return resultobj;
22841fail:
22842 return NULL;
d55e5bfc
RD
22843}
22844
22845
1bd55598
RD
22846SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22847 PyObject *resultobj = 0;
22848 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22849 wxBitmap *result = 0 ;
22850 void *argp1 = 0 ;
22851 int res1 = 0 ;
22852 PyObject *swig_obj[1] ;
22853
22854 if (!args) SWIG_fail;
22855 swig_obj[0] = args;
22856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22857 if (!SWIG_IsOK(res1)) {
22858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22859 }
22860 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22861 {
22862 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 22863 {
1bd55598
RD
22864 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22865 result = (wxBitmap *) &_result_ref;
d55e5bfc 22866 }
1bd55598
RD
22867 wxPyEndAllowThreads(__tstate);
22868 if (PyErr_Occurred()) SWIG_fail;
22869 }
22870 {
22871 wxBitmap* resultptr = new wxBitmap(*result);
22872 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22873 }
22874 return resultobj;
22875fail:
22876 return NULL;
d55e5bfc
RD
22877}
22878
22879
1bd55598
RD
22880SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22881 PyObject *resultobj = 0;
22882 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22883 wxBitmap result;
22884 void *argp1 = 0 ;
22885 int res1 = 0 ;
22886 PyObject *swig_obj[1] ;
22887
22888 if (!args) SWIG_fail;
22889 swig_obj[0] = args;
22890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22891 if (!SWIG_IsOK(res1)) {
22892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22893 }
22894 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22895 {
22896 PyThreadState* __tstate = wxPyBeginAllowThreads();
22897 result = (arg1)->GetBitmap();
22898 wxPyEndAllowThreads(__tstate);
22899 if (PyErr_Occurred()) SWIG_fail;
22900 }
22901 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22902 return resultobj;
22903fail:
22904 return NULL;
d55e5bfc
RD
22905}
22906
22907
1bd55598
RD
22908SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22909 PyObject *resultobj = 0;
22910 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22911 wxString result;
22912 void *argp1 = 0 ;
22913 int res1 = 0 ;
22914 PyObject *swig_obj[1] ;
22915
22916 if (!args) SWIG_fail;
22917 swig_obj[0] = args;
22918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22919 if (!SWIG_IsOK(res1)) {
22920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22921 }
22922 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22923 {
22924 PyThreadState* __tstate = wxPyBeginAllowThreads();
22925 result = (arg1)->GetLabel();
22926 wxPyEndAllowThreads(__tstate);
22927 if (PyErr_Occurred()) SWIG_fail;
22928 }
22929 {
22930#if wxUSE_UNICODE
22931 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22932#else
22933 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22934#endif
22935 }
22936 return resultobj;
22937fail:
22938 return NULL;
d55e5bfc
RD
22939}
22940
22941
1bd55598
RD
22942SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22943 PyObject *resultobj = 0;
22944 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22945 wxString result;
22946 void *argp1 = 0 ;
22947 int res1 = 0 ;
22948 PyObject *swig_obj[1] ;
22949
22950 if (!args) SWIG_fail;
22951 swig_obj[0] = args;
22952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22953 if (!SWIG_IsOK(res1)) {
22954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22955 }
22956 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22957 {
22958 PyThreadState* __tstate = wxPyBeginAllowThreads();
22959 result = (arg1)->GetShortHelp();
22960 wxPyEndAllowThreads(__tstate);
22961 if (PyErr_Occurred()) SWIG_fail;
22962 }
22963 {
22964#if wxUSE_UNICODE
22965 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22966#else
22967 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22968#endif
22969 }
22970 return resultobj;
22971fail:
22972 return NULL;
d55e5bfc
RD
22973}
22974
22975
1bd55598
RD
22976SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22977 PyObject *resultobj = 0;
22978 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22979 wxString result;
22980 void *argp1 = 0 ;
22981 int res1 = 0 ;
22982 PyObject *swig_obj[1] ;
22983
22984 if (!args) SWIG_fail;
22985 swig_obj[0] = args;
22986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22987 if (!SWIG_IsOK(res1)) {
22988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22989 }
22990 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22991 {
22992 PyThreadState* __tstate = wxPyBeginAllowThreads();
22993 result = (arg1)->GetLongHelp();
22994 wxPyEndAllowThreads(__tstate);
22995 if (PyErr_Occurred()) SWIG_fail;
22996 }
22997 {
22998#if wxUSE_UNICODE
22999 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23000#else
23001 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23002#endif
23003 }
23004 return resultobj;
23005fail:
23006 return NULL;
23007}
23008
23009
23010SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23011 PyObject *resultobj = 0;
23012 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23013 bool arg2 ;
23014 bool result;
23015 void *argp1 = 0 ;
23016 int res1 = 0 ;
23017 bool val2 ;
23018 int ecode2 = 0 ;
23019 PyObject * obj0 = 0 ;
23020 PyObject * obj1 = 0 ;
23021 char * kwnames[] = {
23022 (char *) "self",(char *) "enable", NULL
23023 };
23024
23025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
23026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23027 if (!SWIG_IsOK(res1)) {
23028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23029 }
23030 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23031 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23032 if (!SWIG_IsOK(ecode2)) {
23033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
23034 }
23035 arg2 = static_cast< bool >(val2);
23036 {
23037 PyThreadState* __tstate = wxPyBeginAllowThreads();
23038 result = (bool)(arg1)->Enable(arg2);
23039 wxPyEndAllowThreads(__tstate);
23040 if (PyErr_Occurred()) SWIG_fail;
23041 }
23042 {
23043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23044 }
23045 return resultobj;
23046fail:
23047 return NULL;
d55e5bfc
RD
23048}
23049
23050
1bd55598
RD
23051SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23052 PyObject *resultobj = 0;
23053 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23054 void *argp1 = 0 ;
23055 int res1 = 0 ;
23056 PyObject *swig_obj[1] ;
23057
23058 if (!args) SWIG_fail;
23059 swig_obj[0] = args;
23060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23061 if (!SWIG_IsOK(res1)) {
23062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23063 }
23064 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23065 {
23066 PyThreadState* __tstate = wxPyBeginAllowThreads();
23067 (arg1)->Toggle();
23068 wxPyEndAllowThreads(__tstate);
23069 if (PyErr_Occurred()) SWIG_fail;
23070 }
23071 resultobj = SWIG_Py_Void();
23072 return resultobj;
23073fail:
23074 return NULL;
23075}
23076
23077
23078SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23079 PyObject *resultobj = 0;
23080 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23081 bool arg2 ;
23082 bool result;
23083 void *argp1 = 0 ;
23084 int res1 = 0 ;
23085 bool val2 ;
23086 int ecode2 = 0 ;
23087 PyObject * obj0 = 0 ;
23088 PyObject * obj1 = 0 ;
23089 char * kwnames[] = {
23090 (char *) "self",(char *) "toggle", NULL
23091 };
23092
23093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
23094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23095 if (!SWIG_IsOK(res1)) {
23096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23097 }
23098 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23099 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23100 if (!SWIG_IsOK(ecode2)) {
23101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
23102 }
23103 arg2 = static_cast< bool >(val2);
23104 {
23105 PyThreadState* __tstate = wxPyBeginAllowThreads();
23106 result = (bool)(arg1)->SetToggle(arg2);
23107 wxPyEndAllowThreads(__tstate);
23108 if (PyErr_Occurred()) SWIG_fail;
23109 }
23110 {
23111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23112 }
23113 return resultobj;
23114fail:
23115 return NULL;
23116}
23117
23118
23119SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23120 PyObject *resultobj = 0;
23121 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23122 wxString *arg2 = 0 ;
23123 bool result;
23124 void *argp1 = 0 ;
23125 int res1 = 0 ;
23126 bool temp2 = false ;
23127 PyObject * obj0 = 0 ;
23128 PyObject * obj1 = 0 ;
23129 char * kwnames[] = {
23130 (char *) "self",(char *) "help", NULL
23131 };
23132
23133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23135 if (!SWIG_IsOK(res1)) {
23136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23137 }
23138 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23139 {
23140 arg2 = wxString_in_helper(obj1);
23141 if (arg2 == NULL) SWIG_fail;
23142 temp2 = true;
23143 }
23144 {
23145 PyThreadState* __tstate = wxPyBeginAllowThreads();
23146 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
23147 wxPyEndAllowThreads(__tstate);
23148 if (PyErr_Occurred()) SWIG_fail;
23149 }
23150 {
23151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23152 }
23153 {
23154 if (temp2)
23155 delete arg2;
23156 }
23157 return resultobj;
23158fail:
23159 {
23160 if (temp2)
23161 delete arg2;
23162 }
23163 return NULL;
23164}
23165
23166
23167SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23168 PyObject *resultobj = 0;
23169 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23170 wxString *arg2 = 0 ;
23171 bool result;
23172 void *argp1 = 0 ;
23173 int res1 = 0 ;
23174 bool temp2 = false ;
23175 PyObject * obj0 = 0 ;
23176 PyObject * obj1 = 0 ;
23177 char * kwnames[] = {
23178 (char *) "self",(char *) "help", NULL
23179 };
23180
23181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23183 if (!SWIG_IsOK(res1)) {
23184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23185 }
23186 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23187 {
23188 arg2 = wxString_in_helper(obj1);
23189 if (arg2 == NULL) SWIG_fail;
23190 temp2 = true;
23191 }
23192 {
23193 PyThreadState* __tstate = wxPyBeginAllowThreads();
23194 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23195 wxPyEndAllowThreads(__tstate);
23196 if (PyErr_Occurred()) SWIG_fail;
23197 }
23198 {
23199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23200 }
23201 {
23202 if (temp2)
23203 delete arg2;
23204 }
23205 return resultobj;
23206fail:
23207 {
23208 if (temp2)
23209 delete arg2;
23210 }
23211 return NULL;
23212}
23213
23214
23215SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23216 PyObject *resultobj = 0;
23217 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23218 wxBitmap *arg2 = 0 ;
23219 void *argp1 = 0 ;
23220 int res1 = 0 ;
23221 void *argp2 = 0 ;
23222 int res2 = 0 ;
23223 PyObject * obj0 = 0 ;
23224 PyObject * obj1 = 0 ;
23225 char * kwnames[] = {
23226 (char *) "self",(char *) "bmp", NULL
23227 };
23228
23229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23231 if (!SWIG_IsOK(res1)) {
23232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23233 }
23234 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23235 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23236 if (!SWIG_IsOK(res2)) {
23237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23238 }
23239 if (!argp2) {
23240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23241 }
23242 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23243 {
23244 PyThreadState* __tstate = wxPyBeginAllowThreads();
23245 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23246 wxPyEndAllowThreads(__tstate);
23247 if (PyErr_Occurred()) SWIG_fail;
23248 }
23249 resultobj = SWIG_Py_Void();
23250 return resultobj;
23251fail:
23252 return NULL;
23253}
23254
23255
23256SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23257 PyObject *resultobj = 0;
23258 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23259 wxBitmap *arg2 = 0 ;
23260 void *argp1 = 0 ;
23261 int res1 = 0 ;
23262 void *argp2 = 0 ;
23263 int res2 = 0 ;
23264 PyObject * obj0 = 0 ;
23265 PyObject * obj1 = 0 ;
23266 char * kwnames[] = {
23267 (char *) "self",(char *) "bmp", NULL
23268 };
23269
23270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23272 if (!SWIG_IsOK(res1)) {
23273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23274 }
23275 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23276 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23277 if (!SWIG_IsOK(res2)) {
23278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23279 }
23280 if (!argp2) {
23281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23282 }
23283 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23284 {
23285 PyThreadState* __tstate = wxPyBeginAllowThreads();
23286 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23287 wxPyEndAllowThreads(__tstate);
23288 if (PyErr_Occurred()) SWIG_fail;
23289 }
23290 resultobj = SWIG_Py_Void();
23291 return resultobj;
23292fail:
23293 return NULL;
23294}
23295
23296
23297SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23298 PyObject *resultobj = 0;
23299 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23300 wxString *arg2 = 0 ;
23301 void *argp1 = 0 ;
23302 int res1 = 0 ;
23303 bool temp2 = false ;
23304 PyObject * obj0 = 0 ;
23305 PyObject * obj1 = 0 ;
23306 char * kwnames[] = {
23307 (char *) "self",(char *) "label", NULL
23308 };
23309
23310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23312 if (!SWIG_IsOK(res1)) {
23313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23314 }
23315 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23316 {
23317 arg2 = wxString_in_helper(obj1);
23318 if (arg2 == NULL) SWIG_fail;
23319 temp2 = true;
23320 }
23321 {
23322 PyThreadState* __tstate = wxPyBeginAllowThreads();
23323 (arg1)->SetLabel((wxString const &)*arg2);
23324 wxPyEndAllowThreads(__tstate);
23325 if (PyErr_Occurred()) SWIG_fail;
23326 }
23327 resultobj = SWIG_Py_Void();
23328 {
23329 if (temp2)
23330 delete arg2;
23331 }
23332 return resultobj;
23333fail:
23334 {
23335 if (temp2)
23336 delete arg2;
23337 }
23338 return NULL;
d55e5bfc
RD
23339}
23340
23341
1bd55598
RD
23342SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23343 PyObject *resultobj = 0;
23344 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23345 void *argp1 = 0 ;
23346 int res1 = 0 ;
23347 PyObject *swig_obj[1] ;
23348
23349 if (!args) SWIG_fail;
23350 swig_obj[0] = args;
23351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23352 if (!SWIG_IsOK(res1)) {
23353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23354 }
23355 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23356 {
23357 PyThreadState* __tstate = wxPyBeginAllowThreads();
23358 (arg1)->Detach();
23359 wxPyEndAllowThreads(__tstate);
23360 if (PyErr_Occurred()) SWIG_fail;
23361 }
23362 resultobj = SWIG_Py_Void();
23363 return resultobj;
23364fail:
23365 return NULL;
23366}
23367
23368
23369SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23370 PyObject *resultobj = 0;
23371 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23372 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23373 void *argp1 = 0 ;
23374 int res1 = 0 ;
23375 void *argp2 = 0 ;
23376 int res2 = 0 ;
23377 PyObject * obj0 = 0 ;
23378 PyObject * obj1 = 0 ;
23379 char * kwnames[] = {
23380 (char *) "self",(char *) "tbar", NULL
23381 };
23382
23383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23385 if (!SWIG_IsOK(res1)) {
23386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23387 }
23388 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23389 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23390 if (!SWIG_IsOK(res2)) {
23391 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23392 }
23393 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23394 {
23395 PyThreadState* __tstate = wxPyBeginAllowThreads();
23396 (arg1)->Attach(arg2);
23397 wxPyEndAllowThreads(__tstate);
23398 if (PyErr_Occurred()) SWIG_fail;
23399 }
23400 resultobj = SWIG_Py_Void();
23401 return resultobj;
23402fail:
23403 return NULL;
d55e5bfc
RD
23404}
23405
23406
1bd55598
RD
23407SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23408 PyObject *resultobj = 0;
23409 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23410 PyObject *result = 0 ;
23411 void *argp1 = 0 ;
23412 int res1 = 0 ;
23413 PyObject *swig_obj[1] ;
23414
23415 if (!args) SWIG_fail;
23416 swig_obj[0] = args;
23417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23418 if (!SWIG_IsOK(res1)) {
23419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23420 }
23421 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23422 {
23423 PyThreadState* __tstate = wxPyBeginAllowThreads();
23424 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23425 wxPyEndAllowThreads(__tstate);
23426 if (PyErr_Occurred()) SWIG_fail;
23427 }
23428 resultobj = result;
23429 return resultobj;
23430fail:
23431 return NULL;
23432}
23433
23434
23435SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23436 PyObject *resultobj = 0;
23437 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23438 PyObject *arg2 = (PyObject *) 0 ;
23439 void *argp1 = 0 ;
23440 int res1 = 0 ;
23441 PyObject * obj0 = 0 ;
23442 PyObject * obj1 = 0 ;
23443 char * kwnames[] = {
23444 (char *) "self",(char *) "clientData", NULL
23445 };
23446
23447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",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_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23451 }
23452 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23453 arg2 = obj1;
23454 {
23455 PyThreadState* __tstate = wxPyBeginAllowThreads();
23456 wxToolBarToolBase_SetClientData(arg1,arg2);
23457 wxPyEndAllowThreads(__tstate);
23458 if (PyErr_Occurred()) SWIG_fail;
23459 }
23460 resultobj = SWIG_Py_Void();
23461 return resultobj;
23462fail:
23463 return NULL;
23464}
23465
23466
23467SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23468 PyObject *obj;
23469 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23470 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23471 return SWIG_Py_Void();
23472}
23473
23474SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23475 PyObject *resultobj = 0;
23476 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23477 int arg2 ;
23478 wxString *arg3 = 0 ;
23479 wxBitmap *arg4 = 0 ;
23480 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23481 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23482 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23483 wxString const &arg7_defvalue = wxPyEmptyString ;
23484 wxString *arg7 = (wxString *) &arg7_defvalue ;
23485 wxString const &arg8_defvalue = wxPyEmptyString ;
23486 wxString *arg8 = (wxString *) &arg8_defvalue ;
23487 PyObject *arg9 = (PyObject *) NULL ;
23488 wxToolBarToolBase *result = 0 ;
23489 void *argp1 = 0 ;
23490 int res1 = 0 ;
23491 int val2 ;
23492 int ecode2 = 0 ;
23493 bool temp3 = false ;
23494 void *argp4 = 0 ;
23495 int res4 = 0 ;
23496 void *argp5 = 0 ;
23497 int res5 = 0 ;
23498 int val6 ;
23499 int ecode6 = 0 ;
23500 bool temp7 = false ;
23501 bool temp8 = false ;
23502 PyObject * obj0 = 0 ;
23503 PyObject * obj1 = 0 ;
23504 PyObject * obj2 = 0 ;
23505 PyObject * obj3 = 0 ;
23506 PyObject * obj4 = 0 ;
23507 PyObject * obj5 = 0 ;
23508 PyObject * obj6 = 0 ;
23509 PyObject * obj7 = 0 ;
23510 PyObject * obj8 = 0 ;
23511 char * kwnames[] = {
23512 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23513 };
23514
23515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23517 if (!SWIG_IsOK(res1)) {
23518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23519 }
23520 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23521 ecode2 = SWIG_AsVal_int(obj1, &val2);
23522 if (!SWIG_IsOK(ecode2)) {
23523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23524 }
23525 arg2 = static_cast< int >(val2);
23526 {
23527 arg3 = wxString_in_helper(obj2);
23528 if (arg3 == NULL) SWIG_fail;
23529 temp3 = true;
23530 }
23531 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23532 if (!SWIG_IsOK(res4)) {
23533 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23534 }
23535 if (!argp4) {
23536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23537 }
23538 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23539 if (obj4) {
23540 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23541 if (!SWIG_IsOK(res5)) {
23542 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
36ed4f51 23543 }
1bd55598
RD
23544 if (!argp5) {
23545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
f20a2e1f 23546 }
1bd55598
RD
23547 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23548 }
23549 if (obj5) {
23550 ecode6 = SWIG_AsVal_int(obj5, &val6);
23551 if (!SWIG_IsOK(ecode6)) {
23552 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23553 }
23554 arg6 = static_cast< wxItemKind >(val6);
23555 }
23556 if (obj6) {
f20a2e1f 23557 {
1bd55598
RD
23558 arg7 = wxString_in_helper(obj6);
23559 if (arg7 == NULL) SWIG_fail;
23560 temp7 = true;
f20a2e1f 23561 }
1bd55598
RD
23562 }
23563 if (obj7) {
f20a2e1f 23564 {
1bd55598
RD
23565 arg8 = wxString_in_helper(obj7);
23566 if (arg8 == NULL) SWIG_fail;
23567 temp8 = true;
d55e5bfc 23568 }
1bd55598
RD
23569 }
23570 if (obj8) {
23571 arg9 = obj8;
23572 }
23573 {
23574 PyThreadState* __tstate = wxPyBeginAllowThreads();
23575 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23576 wxPyEndAllowThreads(__tstate);
23577 if (PyErr_Occurred()) SWIG_fail;
23578 }
23579 {
23580 resultobj = wxPyMake_wxObject(result, (bool)0);
23581 }
23582 {
23583 if (temp3)
23584 delete arg3;
23585 }
23586 {
23587 if (temp7)
23588 delete arg7;
23589 }
23590 {
23591 if (temp8)
23592 delete arg8;
23593 }
23594 return resultobj;
23595fail:
23596 {
23597 if (temp3)
23598 delete arg3;
23599 }
23600 {
23601 if (temp7)
23602 delete arg7;
23603 }
23604 {
23605 if (temp8)
23606 delete arg8;
23607 }
23608 return NULL;
23609}
23610
23611
23612SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23613 PyObject *resultobj = 0;
23614 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23615 size_t arg2 ;
23616 int arg3 ;
23617 wxString *arg4 = 0 ;
23618 wxBitmap *arg5 = 0 ;
23619 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23620 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23621 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23622 wxString const &arg8_defvalue = wxPyEmptyString ;
23623 wxString *arg8 = (wxString *) &arg8_defvalue ;
23624 wxString const &arg9_defvalue = wxPyEmptyString ;
23625 wxString *arg9 = (wxString *) &arg9_defvalue ;
23626 PyObject *arg10 = (PyObject *) NULL ;
23627 wxToolBarToolBase *result = 0 ;
23628 void *argp1 = 0 ;
23629 int res1 = 0 ;
23630 size_t val2 ;
23631 int ecode2 = 0 ;
23632 int val3 ;
23633 int ecode3 = 0 ;
23634 bool temp4 = false ;
23635 void *argp5 = 0 ;
23636 int res5 = 0 ;
23637 void *argp6 = 0 ;
23638 int res6 = 0 ;
23639 int val7 ;
23640 int ecode7 = 0 ;
23641 bool temp8 = false ;
23642 bool temp9 = false ;
23643 PyObject * obj0 = 0 ;
23644 PyObject * obj1 = 0 ;
23645 PyObject * obj2 = 0 ;
23646 PyObject * obj3 = 0 ;
23647 PyObject * obj4 = 0 ;
23648 PyObject * obj5 = 0 ;
23649 PyObject * obj6 = 0 ;
23650 PyObject * obj7 = 0 ;
23651 PyObject * obj8 = 0 ;
23652 PyObject * obj9 = 0 ;
23653 char * kwnames[] = {
23654 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23655 };
23656
23657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23659 if (!SWIG_IsOK(res1)) {
23660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23661 }
23662 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23663 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23664 if (!SWIG_IsOK(ecode2)) {
23665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23666 }
23667 arg2 = static_cast< size_t >(val2);
23668 ecode3 = SWIG_AsVal_int(obj2, &val3);
23669 if (!SWIG_IsOK(ecode3)) {
23670 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23671 }
23672 arg3 = static_cast< int >(val3);
23673 {
23674 arg4 = wxString_in_helper(obj3);
23675 if (arg4 == NULL) SWIG_fail;
23676 temp4 = true;
23677 }
23678 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23679 if (!SWIG_IsOK(res5)) {
23680 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23681 }
23682 if (!argp5) {
23683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23684 }
23685 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23686 if (obj5) {
23687 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23688 if (!SWIG_IsOK(res6)) {
23689 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23690 }
1bd55598
RD
23691 if (!argp6) {
23692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
d55e5bfc 23693 }
1bd55598
RD
23694 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23695 }
23696 if (obj6) {
23697 ecode7 = SWIG_AsVal_int(obj6, &val7);
23698 if (!SWIG_IsOK(ecode7)) {
23699 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23700 }
23701 arg7 = static_cast< wxItemKind >(val7);
23702 }
23703 if (obj7) {
d55e5bfc 23704 {
1bd55598
RD
23705 arg8 = wxString_in_helper(obj7);
23706 if (arg8 == NULL) SWIG_fail;
23707 temp8 = true;
d55e5bfc 23708 }
1bd55598
RD
23709 }
23710 if (obj8) {
d55e5bfc 23711 {
1bd55598
RD
23712 arg9 = wxString_in_helper(obj8);
23713 if (arg9 == NULL) SWIG_fail;
23714 temp9 = true;
d55e5bfc 23715 }
1bd55598
RD
23716 }
23717 if (obj9) {
23718 arg10 = obj9;
23719 }
23720 {
23721 PyThreadState* __tstate = wxPyBeginAllowThreads();
23722 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23723 wxPyEndAllowThreads(__tstate);
23724 if (PyErr_Occurred()) SWIG_fail;
23725 }
23726 {
23727 resultobj = wxPyMake_wxObject(result, (bool)0);
23728 }
23729 {
23730 if (temp4)
23731 delete arg4;
23732 }
23733 {
23734 if (temp8)
23735 delete arg8;
23736 }
23737 {
23738 if (temp9)
23739 delete arg9;
23740 }
23741 return resultobj;
23742fail:
23743 {
23744 if (temp4)
23745 delete arg4;
23746 }
23747 {
23748 if (temp8)
23749 delete arg8;
23750 }
23751 {
23752 if (temp9)
23753 delete arg9;
23754 }
23755 return NULL;
23756}
23757
23758
23759SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23760 PyObject *resultobj = 0;
23761 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23762 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23763 wxToolBarToolBase *result = 0 ;
23764 void *argp1 = 0 ;
23765 int res1 = 0 ;
23766 void *argp2 = 0 ;
23767 int res2 = 0 ;
23768 PyObject * obj0 = 0 ;
23769 PyObject * obj1 = 0 ;
23770 char * kwnames[] = {
23771 (char *) "self",(char *) "tool", NULL
23772 };
23773
23774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23776 if (!SWIG_IsOK(res1)) {
23777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23778 }
23779 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23780 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23781 if (!SWIG_IsOK(res2)) {
23782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23783 }
23784 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23785 {
23786 PyThreadState* __tstate = wxPyBeginAllowThreads();
23787 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23788 wxPyEndAllowThreads(__tstate);
23789 if (PyErr_Occurred()) SWIG_fail;
23790 }
23791 {
23792 resultobj = wxPyMake_wxObject(result, (bool)0);
23793 }
23794 return resultobj;
23795fail:
23796 return NULL;
23797}
23798
23799
23800SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23801 PyObject *resultobj = 0;
23802 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23803 size_t arg2 ;
23804 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23805 wxToolBarToolBase *result = 0 ;
23806 void *argp1 = 0 ;
23807 int res1 = 0 ;
23808 size_t val2 ;
23809 int ecode2 = 0 ;
23810 void *argp3 = 0 ;
23811 int res3 = 0 ;
23812 PyObject * obj0 = 0 ;
23813 PyObject * obj1 = 0 ;
23814 PyObject * obj2 = 0 ;
23815 char * kwnames[] = {
23816 (char *) "self",(char *) "pos",(char *) "tool", NULL
23817 };
23818
23819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23821 if (!SWIG_IsOK(res1)) {
23822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23823 }
23824 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23825 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23826 if (!SWIG_IsOK(ecode2)) {
23827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23828 }
23829 arg2 = static_cast< size_t >(val2);
23830 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23831 if (!SWIG_IsOK(res3)) {
23832 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23833 }
23834 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23835 {
23836 PyThreadState* __tstate = wxPyBeginAllowThreads();
23837 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23838 wxPyEndAllowThreads(__tstate);
23839 if (PyErr_Occurred()) SWIG_fail;
23840 }
23841 {
23842 resultobj = wxPyMake_wxObject(result, (bool)0);
23843 }
23844 return resultobj;
23845fail:
23846 return NULL;
23847}
23848
23849
23850SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23851 PyObject *resultobj = 0;
23852 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23853 wxControl *arg2 = (wxControl *) 0 ;
23854 wxToolBarToolBase *result = 0 ;
23855 void *argp1 = 0 ;
23856 int res1 = 0 ;
23857 void *argp2 = 0 ;
23858 int res2 = 0 ;
23859 PyObject * obj0 = 0 ;
23860 PyObject * obj1 = 0 ;
23861 char * kwnames[] = {
23862 (char *) "self",(char *) "control", NULL
23863 };
23864
23865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23867 if (!SWIG_IsOK(res1)) {
23868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23869 }
23870 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23871 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23872 if (!SWIG_IsOK(res2)) {
23873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23874 }
23875 arg2 = reinterpret_cast< wxControl * >(argp2);
23876 {
23877 PyThreadState* __tstate = wxPyBeginAllowThreads();
23878 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23879 wxPyEndAllowThreads(__tstate);
23880 if (PyErr_Occurred()) SWIG_fail;
23881 }
23882 {
23883 resultobj = wxPyMake_wxObject(result, (bool)0);
23884 }
23885 return resultobj;
23886fail:
23887 return NULL;
23888}
23889
23890
23891SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23892 PyObject *resultobj = 0;
23893 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23894 size_t arg2 ;
23895 wxControl *arg3 = (wxControl *) 0 ;
23896 wxToolBarToolBase *result = 0 ;
23897 void *argp1 = 0 ;
23898 int res1 = 0 ;
23899 size_t val2 ;
23900 int ecode2 = 0 ;
23901 void *argp3 = 0 ;
23902 int res3 = 0 ;
23903 PyObject * obj0 = 0 ;
23904 PyObject * obj1 = 0 ;
23905 PyObject * obj2 = 0 ;
23906 char * kwnames[] = {
23907 (char *) "self",(char *) "pos",(char *) "control", NULL
23908 };
23909
23910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23912 if (!SWIG_IsOK(res1)) {
23913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23914 }
23915 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23916 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23917 if (!SWIG_IsOK(ecode2)) {
23918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23919 }
23920 arg2 = static_cast< size_t >(val2);
23921 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23922 if (!SWIG_IsOK(res3)) {
23923 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23924 }
23925 arg3 = reinterpret_cast< wxControl * >(argp3);
23926 {
23927 PyThreadState* __tstate = wxPyBeginAllowThreads();
23928 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23929 wxPyEndAllowThreads(__tstate);
23930 if (PyErr_Occurred()) SWIG_fail;
23931 }
23932 {
23933 resultobj = wxPyMake_wxObject(result, (bool)0);
23934 }
23935 return resultobj;
23936fail:
23937 return NULL;
23938}
23939
23940
23941SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23942 PyObject *resultobj = 0;
23943 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23944 int arg2 ;
23945 wxControl *result = 0 ;
23946 void *argp1 = 0 ;
23947 int res1 = 0 ;
23948 int val2 ;
23949 int ecode2 = 0 ;
23950 PyObject * obj0 = 0 ;
23951 PyObject * obj1 = 0 ;
23952 char * kwnames[] = {
23953 (char *) "self",(char *) "id", NULL
23954 };
23955
23956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23958 if (!SWIG_IsOK(res1)) {
23959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23960 }
23961 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23962 ecode2 = SWIG_AsVal_int(obj1, &val2);
23963 if (!SWIG_IsOK(ecode2)) {
23964 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23965 }
23966 arg2 = static_cast< int >(val2);
23967 {
23968 PyThreadState* __tstate = wxPyBeginAllowThreads();
23969 result = (wxControl *)(arg1)->FindControl(arg2);
23970 wxPyEndAllowThreads(__tstate);
23971 if (PyErr_Occurred()) SWIG_fail;
23972 }
23973 {
23974 resultobj = wxPyMake_wxObject(result, 0);
23975 }
23976 return resultobj;
23977fail:
23978 return NULL;
d55e5bfc
RD
23979}
23980
23981
1bd55598
RD
23982SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23983 PyObject *resultobj = 0;
23984 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23985 wxToolBarToolBase *result = 0 ;
23986 void *argp1 = 0 ;
23987 int res1 = 0 ;
23988 PyObject *swig_obj[1] ;
23989
23990 if (!args) SWIG_fail;
23991 swig_obj[0] = args;
23992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23993 if (!SWIG_IsOK(res1)) {
23994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23995 }
23996 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23997 {
23998 PyThreadState* __tstate = wxPyBeginAllowThreads();
23999 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
24000 wxPyEndAllowThreads(__tstate);
24001 if (PyErr_Occurred()) SWIG_fail;
24002 }
24003 {
24004 resultobj = wxPyMake_wxObject(result, (bool)0);
24005 }
24006 return resultobj;
24007fail:
24008 return NULL;
24009}
24010
24011
24012SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24013 PyObject *resultobj = 0;
24014 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24015 size_t arg2 ;
24016 wxToolBarToolBase *result = 0 ;
24017 void *argp1 = 0 ;
24018 int res1 = 0 ;
24019 size_t val2 ;
24020 int ecode2 = 0 ;
24021 PyObject * obj0 = 0 ;
24022 PyObject * obj1 = 0 ;
24023 char * kwnames[] = {
24024 (char *) "self",(char *) "pos", NULL
24025 };
24026
24027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
24028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24029 if (!SWIG_IsOK(res1)) {
24030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24031 }
24032 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24033 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24034 if (!SWIG_IsOK(ecode2)) {
24035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
24036 }
24037 arg2 = static_cast< size_t >(val2);
24038 {
24039 PyThreadState* __tstate = wxPyBeginAllowThreads();
24040 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
24041 wxPyEndAllowThreads(__tstate);
24042 if (PyErr_Occurred()) SWIG_fail;
24043 }
24044 {
24045 resultobj = wxPyMake_wxObject(result, (bool)0);
24046 }
24047 return resultobj;
24048fail:
24049 return NULL;
24050}
24051
24052
24053SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24054 PyObject *resultobj = 0;
24055 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24056 int arg2 ;
24057 wxToolBarToolBase *result = 0 ;
24058 void *argp1 = 0 ;
24059 int res1 = 0 ;
24060 int val2 ;
24061 int ecode2 = 0 ;
24062 PyObject * obj0 = 0 ;
24063 PyObject * obj1 = 0 ;
24064 char * kwnames[] = {
24065 (char *) "self",(char *) "id", NULL
24066 };
24067
24068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
24069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24070 if (!SWIG_IsOK(res1)) {
24071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24072 }
24073 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24074 ecode2 = SWIG_AsVal_int(obj1, &val2);
24075 if (!SWIG_IsOK(ecode2)) {
24076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
24077 }
24078 arg2 = static_cast< int >(val2);
24079 {
24080 PyThreadState* __tstate = wxPyBeginAllowThreads();
24081 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
24082 wxPyEndAllowThreads(__tstate);
24083 if (PyErr_Occurred()) SWIG_fail;
24084 }
24085 {
24086 resultobj = wxPyMake_wxObject(result, (bool)0);
24087 }
24088 return resultobj;
24089fail:
24090 return NULL;
24091}
24092
24093
24094SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24095 PyObject *resultobj = 0;
24096 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24097 size_t arg2 ;
24098 bool result;
24099 void *argp1 = 0 ;
24100 int res1 = 0 ;
24101 size_t val2 ;
24102 int ecode2 = 0 ;
24103 PyObject * obj0 = 0 ;
24104 PyObject * obj1 = 0 ;
24105 char * kwnames[] = {
24106 (char *) "self",(char *) "pos", NULL
24107 };
24108
24109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
24110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24111 if (!SWIG_IsOK(res1)) {
24112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24113 }
24114 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24115 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
24116 if (!SWIG_IsOK(ecode2)) {
24117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
24118 }
24119 arg2 = static_cast< size_t >(val2);
24120 {
24121 PyThreadState* __tstate = wxPyBeginAllowThreads();
24122 result = (bool)(arg1)->DeleteToolByPos(arg2);
24123 wxPyEndAllowThreads(__tstate);
24124 if (PyErr_Occurred()) SWIG_fail;
24125 }
24126 {
24127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24128 }
24129 return resultobj;
24130fail:
24131 return NULL;
24132}
24133
24134
24135SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24136 PyObject *resultobj = 0;
24137 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24138 int arg2 ;
24139 bool result;
24140 void *argp1 = 0 ;
24141 int res1 = 0 ;
24142 int val2 ;
24143 int ecode2 = 0 ;
24144 PyObject * obj0 = 0 ;
24145 PyObject * obj1 = 0 ;
24146 char * kwnames[] = {
24147 (char *) "self",(char *) "id", NULL
24148 };
24149
24150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
24151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24152 if (!SWIG_IsOK(res1)) {
24153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24154 }
24155 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24156 ecode2 = SWIG_AsVal_int(obj1, &val2);
24157 if (!SWIG_IsOK(ecode2)) {
24158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24159 }
24160 arg2 = static_cast< int >(val2);
24161 {
24162 PyThreadState* __tstate = wxPyBeginAllowThreads();
24163 result = (bool)(arg1)->DeleteTool(arg2);
24164 wxPyEndAllowThreads(__tstate);
24165 if (PyErr_Occurred()) SWIG_fail;
24166 }
24167 {
24168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24169 }
24170 return resultobj;
24171fail:
24172 return NULL;
d55e5bfc
RD
24173}
24174
24175
1bd55598
RD
24176SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24177 PyObject *resultobj = 0;
24178 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24179 void *argp1 = 0 ;
24180 int res1 = 0 ;
24181 PyObject *swig_obj[1] ;
24182
24183 if (!args) SWIG_fail;
24184 swig_obj[0] = args;
24185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24186 if (!SWIG_IsOK(res1)) {
24187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24188 }
24189 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24190 {
24191 PyThreadState* __tstate = wxPyBeginAllowThreads();
24192 (arg1)->ClearTools();
24193 wxPyEndAllowThreads(__tstate);
24194 if (PyErr_Occurred()) SWIG_fail;
24195 }
24196 resultobj = SWIG_Py_Void();
24197 return resultobj;
24198fail:
24199 return NULL;
d55e5bfc
RD
24200}
24201
24202
1bd55598
RD
24203SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24204 PyObject *resultobj = 0;
24205 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24206 bool result;
24207 void *argp1 = 0 ;
24208 int res1 = 0 ;
24209 PyObject *swig_obj[1] ;
24210
24211 if (!args) SWIG_fail;
24212 swig_obj[0] = args;
24213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24214 if (!SWIG_IsOK(res1)) {
24215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24216 }
24217 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24218 {
24219 PyThreadState* __tstate = wxPyBeginAllowThreads();
24220 result = (bool)(arg1)->Realize();
24221 wxPyEndAllowThreads(__tstate);
24222 if (PyErr_Occurred()) SWIG_fail;
24223 }
24224 {
24225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24226 }
24227 return resultobj;
24228fail:
24229 return NULL;
24230}
24231
24232
24233SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24234 PyObject *resultobj = 0;
24235 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24236 int arg2 ;
24237 bool arg3 ;
24238 void *argp1 = 0 ;
24239 int res1 = 0 ;
24240 int val2 ;
24241 int ecode2 = 0 ;
24242 bool val3 ;
24243 int ecode3 = 0 ;
24244 PyObject * obj0 = 0 ;
24245 PyObject * obj1 = 0 ;
24246 PyObject * obj2 = 0 ;
24247 char * kwnames[] = {
24248 (char *) "self",(char *) "id",(char *) "enable", NULL
24249 };
24250
24251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24253 if (!SWIG_IsOK(res1)) {
24254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24255 }
24256 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24257 ecode2 = SWIG_AsVal_int(obj1, &val2);
24258 if (!SWIG_IsOK(ecode2)) {
24259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24260 }
24261 arg2 = static_cast< int >(val2);
24262 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24263 if (!SWIG_IsOK(ecode3)) {
24264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24265 }
24266 arg3 = static_cast< bool >(val3);
24267 {
24268 PyThreadState* __tstate = wxPyBeginAllowThreads();
24269 (arg1)->EnableTool(arg2,arg3);
24270 wxPyEndAllowThreads(__tstate);
24271 if (PyErr_Occurred()) SWIG_fail;
24272 }
24273 resultobj = SWIG_Py_Void();
24274 return resultobj;
24275fail:
24276 return NULL;
24277}
24278
24279
24280SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24281 PyObject *resultobj = 0;
24282 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24283 int arg2 ;
24284 bool arg3 ;
24285 void *argp1 = 0 ;
24286 int res1 = 0 ;
24287 int val2 ;
24288 int ecode2 = 0 ;
24289 bool val3 ;
24290 int ecode3 = 0 ;
24291 PyObject * obj0 = 0 ;
24292 PyObject * obj1 = 0 ;
24293 PyObject * obj2 = 0 ;
24294 char * kwnames[] = {
24295 (char *) "self",(char *) "id",(char *) "toggle", NULL
24296 };
24297
24298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24300 if (!SWIG_IsOK(res1)) {
24301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24302 }
24303 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24304 ecode2 = SWIG_AsVal_int(obj1, &val2);
24305 if (!SWIG_IsOK(ecode2)) {
24306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24307 }
24308 arg2 = static_cast< int >(val2);
24309 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24310 if (!SWIG_IsOK(ecode3)) {
24311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24312 }
24313 arg3 = static_cast< bool >(val3);
24314 {
24315 PyThreadState* __tstate = wxPyBeginAllowThreads();
24316 (arg1)->ToggleTool(arg2,arg3);
24317 wxPyEndAllowThreads(__tstate);
24318 if (PyErr_Occurred()) SWIG_fail;
24319 }
24320 resultobj = SWIG_Py_Void();
24321 return resultobj;
24322fail:
24323 return NULL;
24324}
24325
24326
24327SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24328 PyObject *resultobj = 0;
24329 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24330 int arg2 ;
24331 bool arg3 ;
24332 void *argp1 = 0 ;
24333 int res1 = 0 ;
24334 int val2 ;
24335 int ecode2 = 0 ;
24336 bool val3 ;
24337 int ecode3 = 0 ;
24338 PyObject * obj0 = 0 ;
24339 PyObject * obj1 = 0 ;
24340 PyObject * obj2 = 0 ;
24341 char * kwnames[] = {
24342 (char *) "self",(char *) "id",(char *) "toggle", NULL
24343 };
24344
24345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24347 if (!SWIG_IsOK(res1)) {
24348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24349 }
24350 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24351 ecode2 = SWIG_AsVal_int(obj1, &val2);
24352 if (!SWIG_IsOK(ecode2)) {
24353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24354 }
24355 arg2 = static_cast< int >(val2);
24356 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24357 if (!SWIG_IsOK(ecode3)) {
24358 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24359 }
24360 arg3 = static_cast< bool >(val3);
24361 {
24362 PyThreadState* __tstate = wxPyBeginAllowThreads();
24363 (arg1)->SetToggle(arg2,arg3);
24364 wxPyEndAllowThreads(__tstate);
24365 if (PyErr_Occurred()) SWIG_fail;
24366 }
24367 resultobj = SWIG_Py_Void();
24368 return resultobj;
24369fail:
24370 return NULL;
24371}
24372
24373
24374SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24375 PyObject *resultobj = 0;
24376 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24377 int arg2 ;
24378 PyObject *result = 0 ;
24379 void *argp1 = 0 ;
24380 int res1 = 0 ;
24381 int val2 ;
24382 int ecode2 = 0 ;
24383 PyObject * obj0 = 0 ;
24384 PyObject * obj1 = 0 ;
24385 char * kwnames[] = {
24386 (char *) "self",(char *) "id", NULL
24387 };
24388
24389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24391 if (!SWIG_IsOK(res1)) {
24392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24393 }
24394 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24395 ecode2 = SWIG_AsVal_int(obj1, &val2);
24396 if (!SWIG_IsOK(ecode2)) {
24397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24398 }
24399 arg2 = static_cast< int >(val2);
24400 {
24401 PyThreadState* __tstate = wxPyBeginAllowThreads();
24402 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24403 wxPyEndAllowThreads(__tstate);
24404 if (PyErr_Occurred()) SWIG_fail;
24405 }
24406 resultobj = result;
24407 return resultobj;
24408fail:
24409 return NULL;
24410}
24411
24412
24413SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24414 PyObject *resultobj = 0;
24415 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24416 int arg2 ;
24417 PyObject *arg3 = (PyObject *) 0 ;
24418 void *argp1 = 0 ;
24419 int res1 = 0 ;
24420 int val2 ;
24421 int ecode2 = 0 ;
24422 PyObject * obj0 = 0 ;
24423 PyObject * obj1 = 0 ;
24424 PyObject * obj2 = 0 ;
24425 char * kwnames[] = {
24426 (char *) "self",(char *) "id",(char *) "clientData", NULL
24427 };
24428
24429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24431 if (!SWIG_IsOK(res1)) {
24432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24433 }
24434 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24435 ecode2 = SWIG_AsVal_int(obj1, &val2);
24436 if (!SWIG_IsOK(ecode2)) {
24437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24438 }
24439 arg2 = static_cast< int >(val2);
24440 arg3 = obj2;
24441 {
24442 PyThreadState* __tstate = wxPyBeginAllowThreads();
24443 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24444 wxPyEndAllowThreads(__tstate);
24445 if (PyErr_Occurred()) SWIG_fail;
24446 }
24447 resultobj = SWIG_Py_Void();
24448 return resultobj;
24449fail:
24450 return NULL;
24451}
24452
24453
24454SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24455 PyObject *resultobj = 0;
24456 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24457 int arg2 ;
24458 int result;
24459 void *argp1 = 0 ;
24460 int res1 = 0 ;
24461 int val2 ;
24462 int ecode2 = 0 ;
24463 PyObject * obj0 = 0 ;
24464 PyObject * obj1 = 0 ;
24465 char * kwnames[] = {
24466 (char *) "self",(char *) "id", NULL
24467 };
24468
24469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24471 if (!SWIG_IsOK(res1)) {
24472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24473 }
24474 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24475 ecode2 = SWIG_AsVal_int(obj1, &val2);
24476 if (!SWIG_IsOK(ecode2)) {
24477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24478 }
24479 arg2 = static_cast< int >(val2);
24480 {
24481 PyThreadState* __tstate = wxPyBeginAllowThreads();
24482 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24483 wxPyEndAllowThreads(__tstate);
24484 if (PyErr_Occurred()) SWIG_fail;
24485 }
24486 resultobj = SWIG_From_int(static_cast< int >(result));
24487 return resultobj;
24488fail:
24489 return NULL;
24490}
24491
24492
24493SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24494 PyObject *resultobj = 0;
24495 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24496 int arg2 ;
24497 bool result;
24498 void *argp1 = 0 ;
24499 int res1 = 0 ;
24500 int val2 ;
24501 int ecode2 = 0 ;
24502 PyObject * obj0 = 0 ;
24503 PyObject * obj1 = 0 ;
24504 char * kwnames[] = {
24505 (char *) "self",(char *) "id", NULL
24506 };
24507
24508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24510 if (!SWIG_IsOK(res1)) {
24511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24512 }
24513 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24514 ecode2 = SWIG_AsVal_int(obj1, &val2);
24515 if (!SWIG_IsOK(ecode2)) {
24516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24517 }
24518 arg2 = static_cast< int >(val2);
24519 {
24520 PyThreadState* __tstate = wxPyBeginAllowThreads();
24521 result = (bool)(arg1)->GetToolState(arg2);
24522 wxPyEndAllowThreads(__tstate);
24523 if (PyErr_Occurred()) SWIG_fail;
24524 }
24525 {
24526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24527 }
24528 return resultobj;
24529fail:
24530 return NULL;
24531}
24532
24533
24534SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24535 PyObject *resultobj = 0;
24536 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24537 int arg2 ;
24538 bool result;
24539 void *argp1 = 0 ;
24540 int res1 = 0 ;
24541 int val2 ;
24542 int ecode2 = 0 ;
24543 PyObject * obj0 = 0 ;
24544 PyObject * obj1 = 0 ;
24545 char * kwnames[] = {
24546 (char *) "self",(char *) "id", NULL
24547 };
24548
24549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24551 if (!SWIG_IsOK(res1)) {
24552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24553 }
24554 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24555 ecode2 = SWIG_AsVal_int(obj1, &val2);
24556 if (!SWIG_IsOK(ecode2)) {
24557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24558 }
24559 arg2 = static_cast< int >(val2);
24560 {
24561 PyThreadState* __tstate = wxPyBeginAllowThreads();
24562 result = (bool)(arg1)->GetToolEnabled(arg2);
24563 wxPyEndAllowThreads(__tstate);
24564 if (PyErr_Occurred()) SWIG_fail;
24565 }
24566 {
24567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24568 }
24569 return resultobj;
24570fail:
24571 return NULL;
24572}
24573
24574
24575SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24576 PyObject *resultobj = 0;
24577 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24578 int arg2 ;
24579 wxString *arg3 = 0 ;
24580 void *argp1 = 0 ;
24581 int res1 = 0 ;
24582 int val2 ;
24583 int ecode2 = 0 ;
24584 bool temp3 = false ;
24585 PyObject * obj0 = 0 ;
24586 PyObject * obj1 = 0 ;
24587 PyObject * obj2 = 0 ;
24588 char * kwnames[] = {
24589 (char *) "self",(char *) "id",(char *) "helpString", NULL
24590 };
24591
24592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24594 if (!SWIG_IsOK(res1)) {
24595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24596 }
24597 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24598 ecode2 = SWIG_AsVal_int(obj1, &val2);
24599 if (!SWIG_IsOK(ecode2)) {
24600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24601 }
24602 arg2 = static_cast< int >(val2);
24603 {
24604 arg3 = wxString_in_helper(obj2);
24605 if (arg3 == NULL) SWIG_fail;
24606 temp3 = true;
24607 }
24608 {
24609 PyThreadState* __tstate = wxPyBeginAllowThreads();
24610 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24611 wxPyEndAllowThreads(__tstate);
24612 if (PyErr_Occurred()) SWIG_fail;
24613 }
24614 resultobj = SWIG_Py_Void();
24615 {
24616 if (temp3)
24617 delete arg3;
24618 }
24619 return resultobj;
24620fail:
24621 {
24622 if (temp3)
24623 delete arg3;
24624 }
24625 return NULL;
24626}
24627
24628
24629SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24630 PyObject *resultobj = 0;
24631 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24632 int arg2 ;
24633 wxString result;
24634 void *argp1 = 0 ;
24635 int res1 = 0 ;
24636 int val2 ;
24637 int ecode2 = 0 ;
24638 PyObject * obj0 = 0 ;
24639 PyObject * obj1 = 0 ;
24640 char * kwnames[] = {
24641 (char *) "self",(char *) "id", NULL
24642 };
24643
24644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24646 if (!SWIG_IsOK(res1)) {
24647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24648 }
24649 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24650 ecode2 = SWIG_AsVal_int(obj1, &val2);
24651 if (!SWIG_IsOK(ecode2)) {
24652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24653 }
24654 arg2 = static_cast< int >(val2);
24655 {
24656 PyThreadState* __tstate = wxPyBeginAllowThreads();
24657 result = (arg1)->GetToolShortHelp(arg2);
24658 wxPyEndAllowThreads(__tstate);
24659 if (PyErr_Occurred()) SWIG_fail;
24660 }
24661 {
24662#if wxUSE_UNICODE
24663 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24664#else
24665 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24666#endif
24667 }
24668 return resultobj;
24669fail:
24670 return NULL;
24671}
24672
24673
24674SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24675 PyObject *resultobj = 0;
24676 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24677 int arg2 ;
24678 wxString *arg3 = 0 ;
24679 void *argp1 = 0 ;
24680 int res1 = 0 ;
24681 int val2 ;
24682 int ecode2 = 0 ;
24683 bool temp3 = false ;
24684 PyObject * obj0 = 0 ;
24685 PyObject * obj1 = 0 ;
24686 PyObject * obj2 = 0 ;
24687 char * kwnames[] = {
24688 (char *) "self",(char *) "id",(char *) "helpString", NULL
24689 };
24690
24691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24693 if (!SWIG_IsOK(res1)) {
24694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24695 }
24696 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24697 ecode2 = SWIG_AsVal_int(obj1, &val2);
24698 if (!SWIG_IsOK(ecode2)) {
24699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24700 }
24701 arg2 = static_cast< int >(val2);
24702 {
24703 arg3 = wxString_in_helper(obj2);
24704 if (arg3 == NULL) SWIG_fail;
24705 temp3 = true;
24706 }
24707 {
24708 PyThreadState* __tstate = wxPyBeginAllowThreads();
24709 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24710 wxPyEndAllowThreads(__tstate);
24711 if (PyErr_Occurred()) SWIG_fail;
24712 }
24713 resultobj = SWIG_Py_Void();
24714 {
24715 if (temp3)
24716 delete arg3;
24717 }
24718 return resultobj;
24719fail:
24720 {
24721 if (temp3)
24722 delete arg3;
24723 }
24724 return NULL;
24725}
24726
24727
24728SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24729 PyObject *resultobj = 0;
24730 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24731 int arg2 ;
24732 wxString result;
24733 void *argp1 = 0 ;
24734 int res1 = 0 ;
24735 int val2 ;
24736 int ecode2 = 0 ;
24737 PyObject * obj0 = 0 ;
24738 PyObject * obj1 = 0 ;
24739 char * kwnames[] = {
24740 (char *) "self",(char *) "id", NULL
24741 };
24742
24743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24745 if (!SWIG_IsOK(res1)) {
24746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24747 }
24748 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24749 ecode2 = SWIG_AsVal_int(obj1, &val2);
24750 if (!SWIG_IsOK(ecode2)) {
24751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24752 }
24753 arg2 = static_cast< int >(val2);
24754 {
24755 PyThreadState* __tstate = wxPyBeginAllowThreads();
24756 result = (arg1)->GetToolLongHelp(arg2);
24757 wxPyEndAllowThreads(__tstate);
24758 if (PyErr_Occurred()) SWIG_fail;
24759 }
24760 {
24761#if wxUSE_UNICODE
24762 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24763#else
24764 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24765#endif
24766 }
24767 return resultobj;
24768fail:
24769 return NULL;
24770}
24771
24772
24773SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24774 PyObject *resultobj = 0;
24775 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24776 int arg2 ;
24777 int arg3 ;
24778 void *argp1 = 0 ;
24779 int res1 = 0 ;
24780 int val2 ;
24781 int ecode2 = 0 ;
24782 int val3 ;
24783 int ecode3 = 0 ;
24784 PyObject * obj0 = 0 ;
24785 PyObject * obj1 = 0 ;
24786 PyObject * obj2 = 0 ;
24787 char * kwnames[] = {
24788 (char *) "self",(char *) "x",(char *) "y", NULL
24789 };
24790
24791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24793 if (!SWIG_IsOK(res1)) {
24794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24795 }
24796 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24797 ecode2 = SWIG_AsVal_int(obj1, &val2);
24798 if (!SWIG_IsOK(ecode2)) {
24799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24800 }
24801 arg2 = static_cast< int >(val2);
24802 ecode3 = SWIG_AsVal_int(obj2, &val3);
24803 if (!SWIG_IsOK(ecode3)) {
24804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24805 }
24806 arg3 = static_cast< int >(val3);
24807 {
24808 PyThreadState* __tstate = wxPyBeginAllowThreads();
24809 (arg1)->SetMargins(arg2,arg3);
24810 wxPyEndAllowThreads(__tstate);
24811 if (PyErr_Occurred()) SWIG_fail;
24812 }
24813 resultobj = SWIG_Py_Void();
24814 return resultobj;
24815fail:
24816 return NULL;
24817}
24818
24819
24820SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24821 PyObject *resultobj = 0;
24822 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24823 wxSize *arg2 = 0 ;
24824 void *argp1 = 0 ;
24825 int res1 = 0 ;
24826 wxSize temp2 ;
24827 PyObject * obj0 = 0 ;
24828 PyObject * obj1 = 0 ;
24829 char * kwnames[] = {
24830 (char *) "self",(char *) "size", NULL
24831 };
24832
24833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24835 if (!SWIG_IsOK(res1)) {
24836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24837 }
24838 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24839 {
24840 arg2 = &temp2;
24841 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24842 }
24843 {
24844 PyThreadState* __tstate = wxPyBeginAllowThreads();
24845 (arg1)->SetMargins((wxSize const &)*arg2);
24846 wxPyEndAllowThreads(__tstate);
24847 if (PyErr_Occurred()) SWIG_fail;
24848 }
24849 resultobj = SWIG_Py_Void();
24850 return resultobj;
24851fail:
24852 return NULL;
24853}
24854
24855
24856SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24857 PyObject *resultobj = 0;
24858 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24859 int arg2 ;
24860 void *argp1 = 0 ;
24861 int res1 = 0 ;
24862 int val2 ;
24863 int ecode2 = 0 ;
24864 PyObject * obj0 = 0 ;
24865 PyObject * obj1 = 0 ;
24866 char * kwnames[] = {
24867 (char *) "self",(char *) "packing", NULL
24868 };
24869
24870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24872 if (!SWIG_IsOK(res1)) {
24873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24874 }
24875 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24876 ecode2 = SWIG_AsVal_int(obj1, &val2);
24877 if (!SWIG_IsOK(ecode2)) {
24878 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24879 }
24880 arg2 = static_cast< int >(val2);
24881 {
24882 PyThreadState* __tstate = wxPyBeginAllowThreads();
24883 (arg1)->SetToolPacking(arg2);
24884 wxPyEndAllowThreads(__tstate);
24885 if (PyErr_Occurred()) SWIG_fail;
24886 }
24887 resultobj = SWIG_Py_Void();
24888 return resultobj;
24889fail:
24890 return NULL;
24891}
24892
24893
24894SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24895 PyObject *resultobj = 0;
24896 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24897 int arg2 ;
24898 void *argp1 = 0 ;
24899 int res1 = 0 ;
24900 int val2 ;
24901 int ecode2 = 0 ;
24902 PyObject * obj0 = 0 ;
24903 PyObject * obj1 = 0 ;
24904 char * kwnames[] = {
24905 (char *) "self",(char *) "separation", NULL
24906 };
24907
24908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24910 if (!SWIG_IsOK(res1)) {
24911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24912 }
24913 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24914 ecode2 = SWIG_AsVal_int(obj1, &val2);
24915 if (!SWIG_IsOK(ecode2)) {
24916 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24917 }
24918 arg2 = static_cast< int >(val2);
24919 {
24920 PyThreadState* __tstate = wxPyBeginAllowThreads();
24921 (arg1)->SetToolSeparation(arg2);
24922 wxPyEndAllowThreads(__tstate);
24923 if (PyErr_Occurred()) SWIG_fail;
24924 }
24925 resultobj = SWIG_Py_Void();
24926 return resultobj;
24927fail:
24928 return NULL;
d55e5bfc
RD
24929}
24930
24931
1bd55598
RD
24932SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24933 PyObject *resultobj = 0;
24934 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24935 wxSize result;
24936 void *argp1 = 0 ;
24937 int res1 = 0 ;
24938 PyObject *swig_obj[1] ;
24939
24940 if (!args) SWIG_fail;
24941 swig_obj[0] = args;
24942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24943 if (!SWIG_IsOK(res1)) {
24944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24945 }
24946 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24947 {
24948 PyThreadState* __tstate = wxPyBeginAllowThreads();
24949 result = (arg1)->GetToolMargins();
24950 wxPyEndAllowThreads(__tstate);
24951 if (PyErr_Occurred()) SWIG_fail;
24952 }
24953 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24954 return resultobj;
24955fail:
24956 return NULL;
d55e5bfc
RD
24957}
24958
24959
1bd55598
RD
24960SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24961 PyObject *resultobj = 0;
24962 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24963 wxSize result;
24964 void *argp1 = 0 ;
24965 int res1 = 0 ;
24966 PyObject *swig_obj[1] ;
24967
24968 if (!args) SWIG_fail;
24969 swig_obj[0] = args;
24970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24971 if (!SWIG_IsOK(res1)) {
24972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24973 }
24974 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24975 {
24976 PyThreadState* __tstate = wxPyBeginAllowThreads();
24977 result = (arg1)->GetMargins();
24978 wxPyEndAllowThreads(__tstate);
24979 if (PyErr_Occurred()) SWIG_fail;
24980 }
24981 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24982 return resultobj;
24983fail:
24984 return NULL;
d55e5bfc
RD
24985}
24986
24987
1bd55598
RD
24988SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24989 PyObject *resultobj = 0;
24990 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24991 int result;
24992 void *argp1 = 0 ;
24993 int res1 = 0 ;
24994 PyObject *swig_obj[1] ;
24995
24996 if (!args) SWIG_fail;
24997 swig_obj[0] = args;
24998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24999 if (!SWIG_IsOK(res1)) {
25000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25001 }
25002 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25003 {
25004 PyThreadState* __tstate = wxPyBeginAllowThreads();
25005 result = (int)(arg1)->GetToolPacking();
25006 wxPyEndAllowThreads(__tstate);
25007 if (PyErr_Occurred()) SWIG_fail;
25008 }
25009 resultobj = SWIG_From_int(static_cast< int >(result));
25010 return resultobj;
25011fail:
25012 return NULL;
d55e5bfc
RD
25013}
25014
25015
1bd55598
RD
25016SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25017 PyObject *resultobj = 0;
25018 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25019 int result;
25020 void *argp1 = 0 ;
25021 int res1 = 0 ;
25022 PyObject *swig_obj[1] ;
25023
25024 if (!args) SWIG_fail;
25025 swig_obj[0] = args;
25026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25027 if (!SWIG_IsOK(res1)) {
25028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25029 }
25030 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25031 {
25032 PyThreadState* __tstate = wxPyBeginAllowThreads();
25033 result = (int)(arg1)->GetToolSeparation();
25034 wxPyEndAllowThreads(__tstate);
25035 if (PyErr_Occurred()) SWIG_fail;
25036 }
25037 resultobj = SWIG_From_int(static_cast< int >(result));
25038 return resultobj;
25039fail:
25040 return NULL;
25041}
25042
25043
25044SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25045 PyObject *resultobj = 0;
25046 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25047 int arg2 ;
25048 void *argp1 = 0 ;
25049 int res1 = 0 ;
25050 int val2 ;
25051 int ecode2 = 0 ;
25052 PyObject * obj0 = 0 ;
25053 PyObject * obj1 = 0 ;
25054 char * kwnames[] = {
25055 (char *) "self",(char *) "nRows", NULL
25056 };
25057
25058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
25059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25060 if (!SWIG_IsOK(res1)) {
25061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25062 }
25063 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25064 ecode2 = SWIG_AsVal_int(obj1, &val2);
25065 if (!SWIG_IsOK(ecode2)) {
25066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
25067 }
25068 arg2 = static_cast< int >(val2);
25069 {
25070 PyThreadState* __tstate = wxPyBeginAllowThreads();
25071 (arg1)->SetRows(arg2);
25072 wxPyEndAllowThreads(__tstate);
25073 if (PyErr_Occurred()) SWIG_fail;
25074 }
25075 resultobj = SWIG_Py_Void();
25076 return resultobj;
25077fail:
25078 return NULL;
25079}
25080
25081
25082SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25083 PyObject *resultobj = 0;
25084 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25085 int arg2 ;
25086 int arg3 ;
25087 void *argp1 = 0 ;
25088 int res1 = 0 ;
25089 int val2 ;
25090 int ecode2 = 0 ;
25091 int val3 ;
25092 int ecode3 = 0 ;
25093 PyObject * obj0 = 0 ;
25094 PyObject * obj1 = 0 ;
25095 PyObject * obj2 = 0 ;
25096 char * kwnames[] = {
25097 (char *) "self",(char *) "rows",(char *) "cols", NULL
25098 };
25099
25100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25102 if (!SWIG_IsOK(res1)) {
25103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25104 }
25105 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25106 ecode2 = SWIG_AsVal_int(obj1, &val2);
25107 if (!SWIG_IsOK(ecode2)) {
25108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
25109 }
25110 arg2 = static_cast< int >(val2);
25111 ecode3 = SWIG_AsVal_int(obj2, &val3);
25112 if (!SWIG_IsOK(ecode3)) {
25113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
25114 }
25115 arg3 = static_cast< int >(val3);
25116 {
25117 PyThreadState* __tstate = wxPyBeginAllowThreads();
25118 (arg1)->SetMaxRowsCols(arg2,arg3);
25119 wxPyEndAllowThreads(__tstate);
25120 if (PyErr_Occurred()) SWIG_fail;
25121 }
25122 resultobj = SWIG_Py_Void();
25123 return resultobj;
25124fail:
25125 return NULL;
d55e5bfc
RD
25126}
25127
25128
1bd55598
RD
25129SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25130 PyObject *resultobj = 0;
25131 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25132 int result;
25133 void *argp1 = 0 ;
25134 int res1 = 0 ;
25135 PyObject *swig_obj[1] ;
25136
25137 if (!args) SWIG_fail;
25138 swig_obj[0] = args;
25139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25140 if (!SWIG_IsOK(res1)) {
25141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25142 }
25143 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25144 {
25145 PyThreadState* __tstate = wxPyBeginAllowThreads();
25146 result = (int)(arg1)->GetMaxRows();
25147 wxPyEndAllowThreads(__tstate);
25148 if (PyErr_Occurred()) SWIG_fail;
25149 }
25150 resultobj = SWIG_From_int(static_cast< int >(result));
25151 return resultobj;
25152fail:
25153 return NULL;
d55e5bfc
RD
25154}
25155
25156
1bd55598
RD
25157SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25158 PyObject *resultobj = 0;
25159 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25160 int result;
25161 void *argp1 = 0 ;
25162 int res1 = 0 ;
25163 PyObject *swig_obj[1] ;
25164
25165 if (!args) SWIG_fail;
25166 swig_obj[0] = args;
25167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25168 if (!SWIG_IsOK(res1)) {
25169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25170 }
25171 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25172 {
25173 PyThreadState* __tstate = wxPyBeginAllowThreads();
25174 result = (int)(arg1)->GetMaxCols();
25175 wxPyEndAllowThreads(__tstate);
25176 if (PyErr_Occurred()) SWIG_fail;
25177 }
25178 resultobj = SWIG_From_int(static_cast< int >(result));
25179 return resultobj;
25180fail:
25181 return NULL;
25182}
25183
25184
25185SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25186 PyObject *resultobj = 0;
25187 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25188 wxSize *arg2 = 0 ;
25189 void *argp1 = 0 ;
25190 int res1 = 0 ;
25191 wxSize temp2 ;
25192 PyObject * obj0 = 0 ;
25193 PyObject * obj1 = 0 ;
25194 char * kwnames[] = {
25195 (char *) "self",(char *) "size", NULL
25196 };
25197
25198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25200 if (!SWIG_IsOK(res1)) {
25201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25202 }
25203 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25204 {
25205 arg2 = &temp2;
25206 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25207 }
25208 {
25209 PyThreadState* __tstate = wxPyBeginAllowThreads();
25210 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25211 wxPyEndAllowThreads(__tstate);
25212 if (PyErr_Occurred()) SWIG_fail;
25213 }
25214 resultobj = SWIG_Py_Void();
25215 return resultobj;
25216fail:
25217 return NULL;
d55e5bfc
RD
25218}
25219
25220
1bd55598
RD
25221SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25222 PyObject *resultobj = 0;
25223 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25224 wxSize result;
25225 void *argp1 = 0 ;
25226 int res1 = 0 ;
25227 PyObject *swig_obj[1] ;
25228
25229 if (!args) SWIG_fail;
25230 swig_obj[0] = args;
25231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25232 if (!SWIG_IsOK(res1)) {
25233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25234 }
25235 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25236 {
25237 PyThreadState* __tstate = wxPyBeginAllowThreads();
25238 result = (arg1)->GetToolBitmapSize();
25239 wxPyEndAllowThreads(__tstate);
25240 if (PyErr_Occurred()) SWIG_fail;
25241 }
25242 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25243 return resultobj;
25244fail:
25245 return NULL;
d55e5bfc
RD
25246}
25247
25248
1bd55598
RD
25249SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25250 PyObject *resultobj = 0;
25251 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25252 wxSize result;
25253 void *argp1 = 0 ;
25254 int res1 = 0 ;
25255 PyObject *swig_obj[1] ;
25256
25257 if (!args) SWIG_fail;
25258 swig_obj[0] = args;
25259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25260 if (!SWIG_IsOK(res1)) {
25261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25262 }
25263 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25264 {
25265 PyThreadState* __tstate = wxPyBeginAllowThreads();
25266 result = (arg1)->GetToolSize();
25267 wxPyEndAllowThreads(__tstate);
25268 if (PyErr_Occurred()) SWIG_fail;
25269 }
25270 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25271 return resultobj;
25272fail:
25273 return NULL;
25274}
25275
25276
25277SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25278 PyObject *resultobj = 0;
25279 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25280 int arg2 ;
25281 int arg3 ;
25282 wxToolBarToolBase *result = 0 ;
25283 void *argp1 = 0 ;
25284 int res1 = 0 ;
25285 int val2 ;
25286 int ecode2 = 0 ;
25287 int val3 ;
25288 int ecode3 = 0 ;
25289 PyObject * obj0 = 0 ;
25290 PyObject * obj1 = 0 ;
25291 PyObject * obj2 = 0 ;
25292 char * kwnames[] = {
25293 (char *) "self",(char *) "x",(char *) "y", NULL
25294 };
25295
25296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25298 if (!SWIG_IsOK(res1)) {
25299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25300 }
25301 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25302 ecode2 = SWIG_AsVal_int(obj1, &val2);
25303 if (!SWIG_IsOK(ecode2)) {
25304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25305 }
25306 arg2 = static_cast< int >(val2);
25307 ecode3 = SWIG_AsVal_int(obj2, &val3);
25308 if (!SWIG_IsOK(ecode3)) {
25309 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25310 }
25311 arg3 = static_cast< int >(val3);
25312 {
25313 PyThreadState* __tstate = wxPyBeginAllowThreads();
25314 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25315 wxPyEndAllowThreads(__tstate);
25316 if (PyErr_Occurred()) SWIG_fail;
25317 }
25318 {
25319 resultobj = wxPyMake_wxObject(result, (bool)0);
25320 }
25321 return resultobj;
25322fail:
25323 return NULL;
25324}
25325
25326
25327SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25328 PyObject *resultobj = 0;
25329 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25330 int arg2 ;
25331 wxToolBarToolBase *result = 0 ;
25332 void *argp1 = 0 ;
25333 int res1 = 0 ;
25334 int val2 ;
25335 int ecode2 = 0 ;
25336 PyObject * obj0 = 0 ;
25337 PyObject * obj1 = 0 ;
25338 char * kwnames[] = {
25339 (char *) "self",(char *) "toolid", NULL
25340 };
25341
25342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25344 if (!SWIG_IsOK(res1)) {
25345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25346 }
25347 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25348 ecode2 = SWIG_AsVal_int(obj1, &val2);
25349 if (!SWIG_IsOK(ecode2)) {
25350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25351 }
25352 arg2 = static_cast< int >(val2);
25353 {
25354 PyThreadState* __tstate = wxPyBeginAllowThreads();
25355 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25356 wxPyEndAllowThreads(__tstate);
25357 if (PyErr_Occurred()) SWIG_fail;
25358 }
25359 {
25360 resultobj = wxPyMake_wxObject(result, (bool)0);
25361 }
25362 return resultobj;
25363fail:
25364 return NULL;
d55e5bfc
RD
25365}
25366
25367
1bd55598
RD
25368SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25369 PyObject *resultobj = 0;
25370 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25371 bool result;
25372 void *argp1 = 0 ;
25373 int res1 = 0 ;
25374 PyObject *swig_obj[1] ;
25375
25376 if (!args) SWIG_fail;
25377 swig_obj[0] = args;
25378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25379 if (!SWIG_IsOK(res1)) {
25380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25381 }
25382 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25383 {
25384 PyThreadState* __tstate = wxPyBeginAllowThreads();
25385 result = (bool)(arg1)->IsVertical();
25386 wxPyEndAllowThreads(__tstate);
25387 if (PyErr_Occurred()) SWIG_fail;
25388 }
25389 {
25390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25391 }
25392 return resultobj;
25393fail:
25394 return NULL;
d55e5bfc
RD
25395}
25396
25397
1bd55598
RD
25398SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25399 PyObject *resultobj = 0;
25400 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25401 size_t result;
25402 void *argp1 = 0 ;
25403 int res1 = 0 ;
25404 PyObject *swig_obj[1] ;
25405
25406 if (!args) SWIG_fail;
25407 swig_obj[0] = args;
25408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25409 if (!SWIG_IsOK(res1)) {
25410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25411 }
25412 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25413 {
25414 PyThreadState* __tstate = wxPyBeginAllowThreads();
25415 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25416 wxPyEndAllowThreads(__tstate);
25417 if (PyErr_Occurred()) SWIG_fail;
25418 }
25419 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25420 return resultobj;
25421fail:
25422 return NULL;
25423}
25424
25425
25426SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25427 PyObject *obj;
25428 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25429 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25430 return SWIG_Py_Void();
25431}
25432
25433SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25434 PyObject *resultobj = 0;
25435 wxWindow *arg1 = (wxWindow *) 0 ;
25436 int arg2 = (int) -1 ;
25437 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25438 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25439 wxSize const &arg4_defvalue = wxDefaultSize ;
25440 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25441 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25442 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25443 wxString *arg6 = (wxString *) &arg6_defvalue ;
25444 wxToolBar *result = 0 ;
25445 void *argp1 = 0 ;
25446 int res1 = 0 ;
25447 int val2 ;
25448 int ecode2 = 0 ;
25449 wxPoint temp3 ;
25450 wxSize temp4 ;
25451 long val5 ;
25452 int ecode5 = 0 ;
25453 bool temp6 = false ;
25454 PyObject * obj0 = 0 ;
25455 PyObject * obj1 = 0 ;
25456 PyObject * obj2 = 0 ;
25457 PyObject * obj3 = 0 ;
25458 PyObject * obj4 = 0 ;
25459 PyObject * obj5 = 0 ;
25460 char * kwnames[] = {
25461 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25462 };
25463
25464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25466 if (!SWIG_IsOK(res1)) {
25467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25468 }
25469 arg1 = reinterpret_cast< wxWindow * >(argp1);
25470 if (obj1) {
25471 ecode2 = SWIG_AsVal_int(obj1, &val2);
25472 if (!SWIG_IsOK(ecode2)) {
25473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25474 }
25475 arg2 = static_cast< int >(val2);
25476 }
25477 if (obj2) {
d55e5bfc 25478 {
1bd55598
RD
25479 arg3 = &temp3;
25480 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 25481 }
1bd55598
RD
25482 }
25483 if (obj3) {
d55e5bfc 25484 {
1bd55598
RD
25485 arg4 = &temp4;
25486 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25487 }
1bd55598
RD
25488 }
25489 if (obj4) {
25490 ecode5 = SWIG_AsVal_long(obj4, &val5);
25491 if (!SWIG_IsOK(ecode5)) {
25492 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25493 }
25494 arg5 = static_cast< long >(val5);
25495 }
25496 if (obj5) {
36ed4f51 25497 {
1bd55598
RD
25498 arg6 = wxString_in_helper(obj5);
25499 if (arg6 == NULL) SWIG_fail;
25500 temp6 = true;
36ed4f51 25501 }
1bd55598
RD
25502 }
25503 {
25504 if (!wxPyCheckForApp()) SWIG_fail;
25505 PyThreadState* __tstate = wxPyBeginAllowThreads();
25506 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25507 wxPyEndAllowThreads(__tstate);
25508 if (PyErr_Occurred()) SWIG_fail;
25509 }
25510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25511 {
25512 if (temp6)
25513 delete arg6;
25514 }
25515 return resultobj;
25516fail:
25517 {
25518 if (temp6)
25519 delete arg6;
25520 }
25521 return NULL;
d55e5bfc
RD
25522}
25523
25524
1bd55598
RD
25525SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25526 PyObject *resultobj = 0;
25527 wxToolBar *result = 0 ;
25528
25529 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25530 {
25531 if (!wxPyCheckForApp()) SWIG_fail;
25532 PyThreadState* __tstate = wxPyBeginAllowThreads();
25533 result = (wxToolBar *)new wxToolBar();
25534 wxPyEndAllowThreads(__tstate);
25535 if (PyErr_Occurred()) SWIG_fail;
25536 }
25537 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25538 return resultobj;
25539fail:
25540 return NULL;
25541}
25542
25543
25544SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25545 PyObject *resultobj = 0;
25546 wxToolBar *arg1 = (wxToolBar *) 0 ;
25547 wxWindow *arg2 = (wxWindow *) 0 ;
25548 int arg3 = (int) -1 ;
25549 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25550 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25551 wxSize const &arg5_defvalue = wxDefaultSize ;
25552 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25553 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25554 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25555 wxString *arg7 = (wxString *) &arg7_defvalue ;
25556 bool result;
25557 void *argp1 = 0 ;
25558 int res1 = 0 ;
25559 void *argp2 = 0 ;
25560 int res2 = 0 ;
25561 int val3 ;
25562 int ecode3 = 0 ;
25563 wxPoint temp4 ;
25564 wxSize temp5 ;
25565 long val6 ;
25566 int ecode6 = 0 ;
25567 bool temp7 = false ;
25568 PyObject * obj0 = 0 ;
25569 PyObject * obj1 = 0 ;
25570 PyObject * obj2 = 0 ;
25571 PyObject * obj3 = 0 ;
25572 PyObject * obj4 = 0 ;
25573 PyObject * obj5 = 0 ;
25574 PyObject * obj6 = 0 ;
25575 char * kwnames[] = {
25576 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25577 };
25578
25579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25581 if (!SWIG_IsOK(res1)) {
25582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25583 }
25584 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25585 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25586 if (!SWIG_IsOK(res2)) {
25587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25588 }
25589 arg2 = reinterpret_cast< wxWindow * >(argp2);
25590 if (obj2) {
25591 ecode3 = SWIG_AsVal_int(obj2, &val3);
25592 if (!SWIG_IsOK(ecode3)) {
25593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25594 }
25595 arg3 = static_cast< int >(val3);
25596 }
25597 if (obj3) {
d55e5bfc 25598 {
1bd55598
RD
25599 arg4 = &temp4;
25600 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 25601 }
1bd55598
RD
25602 }
25603 if (obj4) {
d55e5bfc 25604 {
1bd55598
RD
25605 arg5 = &temp5;
25606 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 25607 }
1bd55598
RD
25608 }
25609 if (obj5) {
25610 ecode6 = SWIG_AsVal_long(obj5, &val6);
25611 if (!SWIG_IsOK(ecode6)) {
25612 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25613 }
25614 arg6 = static_cast< long >(val6);
25615 }
25616 if (obj6) {
36ed4f51 25617 {
1bd55598
RD
25618 arg7 = wxString_in_helper(obj6);
25619 if (arg7 == NULL) SWIG_fail;
25620 temp7 = true;
36ed4f51 25621 }
1bd55598
RD
25622 }
25623 {
25624 PyThreadState* __tstate = wxPyBeginAllowThreads();
25625 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25626 wxPyEndAllowThreads(__tstate);
25627 if (PyErr_Occurred()) SWIG_fail;
25628 }
25629 {
25630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25631 }
25632 {
25633 if (temp7)
25634 delete arg7;
25635 }
25636 return resultobj;
25637fail:
25638 {
25639 if (temp7)
25640 delete arg7;
25641 }
25642 return NULL;
25643}
25644
25645
1bd55598
RD
25646SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25647 PyObject *resultobj = 0;
25648 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25649 SwigValueWrapper<wxVisualAttributes > result;
25650 int val1 ;
25651 int ecode1 = 0 ;
25652 PyObject * obj0 = 0 ;
25653 char * kwnames[] = {
25654 (char *) "variant", NULL
25655 };
25656
25657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25658 if (obj0) {
25659 ecode1 = SWIG_AsVal_int(obj0, &val1);
25660 if (!SWIG_IsOK(ecode1)) {
25661 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25662 }
25663 arg1 = static_cast< wxWindowVariant >(val1);
25664 }
25665 {
25666 if (!wxPyCheckForApp()) SWIG_fail;
25667 PyThreadState* __tstate = wxPyBeginAllowThreads();
25668 result = wxToolBar::GetClassDefaultAttributes(arg1);
25669 wxPyEndAllowThreads(__tstate);
25670 if (PyErr_Occurred()) SWIG_fail;
25671 }
25672 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25673 return resultobj;
25674fail:
25675 return NULL;
d55e5bfc
RD
25676}
25677
25678
1bd55598
RD
25679SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25680 PyObject *obj;
25681 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25682 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25683 return SWIG_Py_Void();
d55e5bfc
RD
25684}
25685
1bd55598
RD
25686SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25687 return SWIG_Python_InitShadowInstance(args);
25688}
d55e5bfc 25689
1bd55598
RD
25690SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25691 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25692 return 1;
d55e5bfc
RD
25693}
25694
25695
1bd55598
RD
25696SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25697 PyObject *pyobj = 0;
25698
25699 {
25700#if wxUSE_UNICODE
25701 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25702#else
25703 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25704#endif
25705 }
25706 return pyobj;
25707}
25708
25709
25710SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25711 PyObject *resultobj = 0;
25712 wxColour const &arg1_defvalue = wxNullColour ;
25713 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25714 wxColour const &arg2_defvalue = wxNullColour ;
25715 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25716 wxFont const &arg3_defvalue = wxNullFont ;
25717 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25718 wxListItemAttr *result = 0 ;
25719 wxColour temp1 ;
25720 wxColour temp2 ;
25721 void *argp3 = 0 ;
25722 int res3 = 0 ;
25723 PyObject * obj0 = 0 ;
25724 PyObject * obj1 = 0 ;
25725 PyObject * obj2 = 0 ;
25726 char * kwnames[] = {
25727 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25728 };
25729
25730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25731 if (obj0) {
d55e5bfc 25732 {
1bd55598
RD
25733 arg1 = &temp1;
25734 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
d55e5bfc 25735 }
1bd55598
RD
25736 }
25737 if (obj1) {
36ed4f51 25738 {
1bd55598
RD
25739 arg2 = &temp2;
25740 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
36ed4f51 25741 }
1bd55598
RD
25742 }
25743 if (obj2) {
25744 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25745 if (!SWIG_IsOK(res3)) {
25746 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
d55e5bfc 25747 }
1bd55598
RD
25748 if (!argp3) {
25749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
36ed4f51 25750 }
1bd55598
RD
25751 arg3 = reinterpret_cast< wxFont * >(argp3);
25752 }
25753 {
25754 PyThreadState* __tstate = wxPyBeginAllowThreads();
25755 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25756 wxPyEndAllowThreads(__tstate);
25757 if (PyErr_Occurred()) SWIG_fail;
25758 }
25759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25760 return resultobj;
25761fail:
25762 return NULL;
d55e5bfc
RD
25763}
25764
25765
1bd55598
RD
25766SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25767 PyObject *resultobj = 0;
25768 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25769 void *argp1 = 0 ;
25770 int res1 = 0 ;
25771 PyObject *swig_obj[1] ;
25772
25773 if (!args) SWIG_fail;
25774 swig_obj[0] = args;
25775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25776 if (!SWIG_IsOK(res1)) {
25777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25778 }
25779 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25780 {
25781 PyThreadState* __tstate = wxPyBeginAllowThreads();
25782 delete arg1;
d55e5bfc 25783
1bd55598
RD
25784 wxPyEndAllowThreads(__tstate);
25785 if (PyErr_Occurred()) SWIG_fail;
25786 }
25787 resultobj = SWIG_Py_Void();
25788 return resultobj;
25789fail:
25790 return NULL;
25791}
25792
25793
25794SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25795 PyObject *resultobj = 0;
25796 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25797 wxColour *arg2 = 0 ;
25798 void *argp1 = 0 ;
25799 int res1 = 0 ;
25800 wxColour temp2 ;
25801 PyObject * obj0 = 0 ;
25802 PyObject * obj1 = 0 ;
25803 char * kwnames[] = {
25804 (char *) "self",(char *) "colText", NULL
25805 };
25806
25807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25809 if (!SWIG_IsOK(res1)) {
25810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25811 }
25812 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25813 {
25814 arg2 = &temp2;
25815 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25816 }
25817 {
25818 PyThreadState* __tstate = wxPyBeginAllowThreads();
25819 (arg1)->SetTextColour((wxColour const &)*arg2);
25820 wxPyEndAllowThreads(__tstate);
25821 if (PyErr_Occurred()) SWIG_fail;
25822 }
25823 resultobj = SWIG_Py_Void();
25824 return resultobj;
25825fail:
25826 return NULL;
25827}
25828
25829
25830SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25831 PyObject *resultobj = 0;
25832 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25833 wxColour *arg2 = 0 ;
25834 void *argp1 = 0 ;
25835 int res1 = 0 ;
25836 wxColour temp2 ;
25837 PyObject * obj0 = 0 ;
25838 PyObject * obj1 = 0 ;
25839 char * kwnames[] = {
25840 (char *) "self",(char *) "colBack", NULL
25841 };
25842
25843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25845 if (!SWIG_IsOK(res1)) {
25846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25847 }
25848 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25849 {
25850 arg2 = &temp2;
25851 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25852 }
25853 {
25854 PyThreadState* __tstate = wxPyBeginAllowThreads();
25855 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25856 wxPyEndAllowThreads(__tstate);
25857 if (PyErr_Occurred()) SWIG_fail;
25858 }
25859 resultobj = SWIG_Py_Void();
25860 return resultobj;
25861fail:
25862 return NULL;
25863}
25864
25865
25866SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25867 PyObject *resultobj = 0;
25868 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25869 wxFont *arg2 = 0 ;
25870 void *argp1 = 0 ;
25871 int res1 = 0 ;
25872 void *argp2 = 0 ;
25873 int res2 = 0 ;
25874 PyObject * obj0 = 0 ;
25875 PyObject * obj1 = 0 ;
25876 char * kwnames[] = {
25877 (char *) "self",(char *) "font", NULL
25878 };
25879
25880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25882 if (!SWIG_IsOK(res1)) {
25883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25884 }
25885 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25886 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25887 if (!SWIG_IsOK(res2)) {
25888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25889 }
25890 if (!argp2) {
25891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25892 }
25893 arg2 = reinterpret_cast< wxFont * >(argp2);
25894 {
25895 PyThreadState* __tstate = wxPyBeginAllowThreads();
25896 (arg1)->SetFont((wxFont const &)*arg2);
25897 wxPyEndAllowThreads(__tstate);
25898 if (PyErr_Occurred()) SWIG_fail;
25899 }
25900 resultobj = SWIG_Py_Void();
25901 return resultobj;
25902fail:
25903 return NULL;
d55e5bfc
RD
25904}
25905
25906
1bd55598
RD
25907SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25908 PyObject *resultobj = 0;
25909 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25910 bool result;
25911 void *argp1 = 0 ;
25912 int res1 = 0 ;
25913 PyObject *swig_obj[1] ;
25914
25915 if (!args) SWIG_fail;
25916 swig_obj[0] = args;
25917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25918 if (!SWIG_IsOK(res1)) {
25919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25920 }
25921 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25922 {
25923 PyThreadState* __tstate = wxPyBeginAllowThreads();
25924 result = (bool)(arg1)->HasTextColour();
25925 wxPyEndAllowThreads(__tstate);
25926 if (PyErr_Occurred()) SWIG_fail;
25927 }
25928 {
25929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25930 }
25931 return resultobj;
25932fail:
25933 return NULL;
f20a2e1f
RD
25934}
25935
25936
1bd55598
RD
25937SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25938 PyObject *resultobj = 0;
25939 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25940 bool result;
25941 void *argp1 = 0 ;
25942 int res1 = 0 ;
25943 PyObject *swig_obj[1] ;
25944
25945 if (!args) SWIG_fail;
25946 swig_obj[0] = args;
25947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25948 if (!SWIG_IsOK(res1)) {
25949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25950 }
25951 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25952 {
25953 PyThreadState* __tstate = wxPyBeginAllowThreads();
25954 result = (bool)(arg1)->HasBackgroundColour();
25955 wxPyEndAllowThreads(__tstate);
25956 if (PyErr_Occurred()) SWIG_fail;
25957 }
25958 {
25959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25960 }
25961 return resultobj;
25962fail:
25963 return NULL;
d55e5bfc 25964}
1bd55598
RD
25965
25966
25967SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25968 PyObject *resultobj = 0;
25969 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25970 bool result;
25971 void *argp1 = 0 ;
25972 int res1 = 0 ;
25973 PyObject *swig_obj[1] ;
25974
25975 if (!args) SWIG_fail;
25976 swig_obj[0] = args;
25977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25978 if (!SWIG_IsOK(res1)) {
25979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25980 }
25981 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25982 {
25983 PyThreadState* __tstate = wxPyBeginAllowThreads();
25984 result = (bool)(arg1)->HasFont();
25985 wxPyEndAllowThreads(__tstate);
25986 if (PyErr_Occurred()) SWIG_fail;
25987 }
25988 {
25989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25990 }
25991 return resultobj;
25992fail:
25993 return NULL;
d55e5bfc
RD
25994}
25995
25996
1bd55598
RD
25997SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25998 PyObject *resultobj = 0;
25999 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26000 wxColour result;
26001 void *argp1 = 0 ;
26002 int res1 = 0 ;
26003 PyObject *swig_obj[1] ;
26004
26005 if (!args) SWIG_fail;
26006 swig_obj[0] = args;
26007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26008 if (!SWIG_IsOK(res1)) {
26009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26010 }
26011 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26012 {
26013 PyThreadState* __tstate = wxPyBeginAllowThreads();
26014 result = (arg1)->GetTextColour();
26015 wxPyEndAllowThreads(__tstate);
26016 if (PyErr_Occurred()) SWIG_fail;
26017 }
26018 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26019 return resultobj;
26020fail:
26021 return NULL;
d55e5bfc
RD
26022}
26023
26024
1bd55598
RD
26025SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26026 PyObject *resultobj = 0;
26027 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26028 wxColour result;
26029 void *argp1 = 0 ;
26030 int res1 = 0 ;
26031 PyObject *swig_obj[1] ;
26032
26033 if (!args) SWIG_fail;
26034 swig_obj[0] = args;
26035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26036 if (!SWIG_IsOK(res1)) {
26037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26038 }
26039 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26040 {
26041 PyThreadState* __tstate = wxPyBeginAllowThreads();
26042 result = (arg1)->GetBackgroundColour();
26043 wxPyEndAllowThreads(__tstate);
26044 if (PyErr_Occurred()) SWIG_fail;
26045 }
26046 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26047 return resultobj;
26048fail:
26049 return NULL;
d55e5bfc
RD
26050}
26051
26052
1bd55598
RD
26053SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26054 PyObject *resultobj = 0;
26055 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26056 wxFont result;
26057 void *argp1 = 0 ;
26058 int res1 = 0 ;
26059 PyObject *swig_obj[1] ;
26060
26061 if (!args) SWIG_fail;
26062 swig_obj[0] = args;
26063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26064 if (!SWIG_IsOK(res1)) {
26065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26066 }
26067 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26068 {
26069 PyThreadState* __tstate = wxPyBeginAllowThreads();
26070 result = (arg1)->GetFont();
26071 wxPyEndAllowThreads(__tstate);
26072 if (PyErr_Occurred()) SWIG_fail;
26073 }
26074 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
26075 return resultobj;
26076fail:
26077 return NULL;
26078}
26079
26080
26081SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26082 PyObject *resultobj = 0;
26083 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26084 wxListItemAttr *arg2 = 0 ;
26085 void *argp1 = 0 ;
26086 int res1 = 0 ;
26087 void *argp2 = 0 ;
26088 int res2 = 0 ;
26089 PyObject * obj0 = 0 ;
26090 PyObject * obj1 = 0 ;
26091 char * kwnames[] = {
26092 (char *) "self",(char *) "source", NULL
26093 };
26094
26095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
26096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26097 if (!SWIG_IsOK(res1)) {
26098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26099 }
26100 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26101 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
26102 if (!SWIG_IsOK(res2)) {
26103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26104 }
26105 if (!argp2) {
26106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
26107 }
26108 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
26109 {
26110 PyThreadState* __tstate = wxPyBeginAllowThreads();
26111 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
26112 wxPyEndAllowThreads(__tstate);
26113 if (PyErr_Occurred()) SWIG_fail;
26114 }
26115 resultobj = SWIG_Py_Void();
26116 return resultobj;
26117fail:
26118 return NULL;
121b9a67
RD
26119}
26120
26121
1bd55598
RD
26122SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26123 PyObject *resultobj = 0;
26124 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
26125 void *argp1 = 0 ;
26126 int res1 = 0 ;
26127 PyObject *swig_obj[1] ;
26128
26129 if (!args) SWIG_fail;
26130 swig_obj[0] = args;
26131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26132 if (!SWIG_IsOK(res1)) {
26133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
26134 }
26135 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
26136 {
26137 PyThreadState* __tstate = wxPyBeginAllowThreads();
26138 wxListItemAttr_Destroy(arg1);
26139 wxPyEndAllowThreads(__tstate);
26140 if (PyErr_Occurred()) SWIG_fail;
26141 }
26142 resultobj = SWIG_Py_Void();
26143 return resultobj;
26144fail:
26145 return NULL;
121b9a67
RD
26146}
26147
26148
1bd55598
RD
26149SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26150 PyObject *obj;
26151 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26152 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
26153 return SWIG_Py_Void();
121b9a67
RD
26154}
26155
1bd55598
RD
26156SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26157 return SWIG_Python_InitShadowInstance(args);
26158}
121b9a67 26159
1bd55598
RD
26160SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26161 PyObject *resultobj = 0;
26162 wxListItem *result = 0 ;
26163
26164 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26165 {
26166 PyThreadState* __tstate = wxPyBeginAllowThreads();
26167 result = (wxListItem *)new wxListItem();
26168 wxPyEndAllowThreads(__tstate);
26169 if (PyErr_Occurred()) SWIG_fail;
26170 }
26171 {
26172 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26173 }
26174 return resultobj;
26175fail:
26176 return NULL;
121b9a67
RD
26177}
26178
26179
1bd55598
RD
26180SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26181 PyObject *resultobj = 0;
26182 wxListItem *arg1 = (wxListItem *) 0 ;
26183 void *argp1 = 0 ;
26184 int res1 = 0 ;
26185 PyObject *swig_obj[1] ;
26186
26187 if (!args) SWIG_fail;
26188 swig_obj[0] = args;
26189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26190 if (!SWIG_IsOK(res1)) {
26191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26192 }
26193 arg1 = reinterpret_cast< wxListItem * >(argp1);
26194 {
26195 PyThreadState* __tstate = wxPyBeginAllowThreads();
26196 delete arg1;
f20a2e1f 26197
1bd55598
RD
26198 wxPyEndAllowThreads(__tstate);
26199 if (PyErr_Occurred()) SWIG_fail;
26200 }
26201 resultobj = SWIG_Py_Void();
26202 return resultobj;
26203fail:
26204 return NULL;
f20a2e1f
RD
26205}
26206
26207
1bd55598
RD
26208SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26209 PyObject *resultobj = 0;
26210 wxListItem *arg1 = (wxListItem *) 0 ;
26211 void *argp1 = 0 ;
26212 int res1 = 0 ;
26213 PyObject *swig_obj[1] ;
26214
26215 if (!args) SWIG_fail;
26216 swig_obj[0] = args;
26217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26218 if (!SWIG_IsOK(res1)) {
26219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26220 }
26221 arg1 = reinterpret_cast< wxListItem * >(argp1);
26222 {
26223 PyThreadState* __tstate = wxPyBeginAllowThreads();
26224 (arg1)->Clear();
26225 wxPyEndAllowThreads(__tstate);
26226 if (PyErr_Occurred()) SWIG_fail;
26227 }
26228 resultobj = SWIG_Py_Void();
26229 return resultobj;
26230fail:
26231 return NULL;
d55e5bfc 26232}
1bd55598
RD
26233
26234
26235SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26236 PyObject *resultobj = 0;
26237 wxListItem *arg1 = (wxListItem *) 0 ;
26238 void *argp1 = 0 ;
26239 int res1 = 0 ;
26240 PyObject *swig_obj[1] ;
26241
26242 if (!args) SWIG_fail;
26243 swig_obj[0] = args;
26244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26245 if (!SWIG_IsOK(res1)) {
26246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26247 }
26248 arg1 = reinterpret_cast< wxListItem * >(argp1);
26249 {
26250 PyThreadState* __tstate = wxPyBeginAllowThreads();
26251 (arg1)->ClearAttributes();
26252 wxPyEndAllowThreads(__tstate);
26253 if (PyErr_Occurred()) SWIG_fail;
26254 }
26255 resultobj = SWIG_Py_Void();
26256 return resultobj;
26257fail:
26258 return NULL;
26259}
26260
26261
26262SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26263 PyObject *resultobj = 0;
26264 wxListItem *arg1 = (wxListItem *) 0 ;
26265 long arg2 ;
26266 void *argp1 = 0 ;
26267 int res1 = 0 ;
26268 long val2 ;
26269 int ecode2 = 0 ;
26270 PyObject * obj0 = 0 ;
26271 PyObject * obj1 = 0 ;
26272 char * kwnames[] = {
26273 (char *) "self",(char *) "mask", NULL
26274 };
26275
26276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26278 if (!SWIG_IsOK(res1)) {
26279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26280 }
26281 arg1 = reinterpret_cast< wxListItem * >(argp1);
26282 ecode2 = SWIG_AsVal_long(obj1, &val2);
26283 if (!SWIG_IsOK(ecode2)) {
26284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26285 }
26286 arg2 = static_cast< long >(val2);
26287 {
26288 PyThreadState* __tstate = wxPyBeginAllowThreads();
26289 (arg1)->SetMask(arg2);
26290 wxPyEndAllowThreads(__tstate);
26291 if (PyErr_Occurred()) SWIG_fail;
26292 }
26293 resultobj = SWIG_Py_Void();
26294 return resultobj;
26295fail:
26296 return NULL;
26297}
26298
26299
26300SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26301 PyObject *resultobj = 0;
26302 wxListItem *arg1 = (wxListItem *) 0 ;
26303 long arg2 ;
26304 void *argp1 = 0 ;
26305 int res1 = 0 ;
26306 long val2 ;
26307 int ecode2 = 0 ;
26308 PyObject * obj0 = 0 ;
26309 PyObject * obj1 = 0 ;
26310 char * kwnames[] = {
26311 (char *) "self",(char *) "id", NULL
26312 };
26313
26314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26316 if (!SWIG_IsOK(res1)) {
26317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26318 }
26319 arg1 = reinterpret_cast< wxListItem * >(argp1);
26320 ecode2 = SWIG_AsVal_long(obj1, &val2);
26321 if (!SWIG_IsOK(ecode2)) {
26322 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26323 }
26324 arg2 = static_cast< long >(val2);
26325 {
26326 PyThreadState* __tstate = wxPyBeginAllowThreads();
26327 (arg1)->SetId(arg2);
26328 wxPyEndAllowThreads(__tstate);
26329 if (PyErr_Occurred()) SWIG_fail;
26330 }
26331 resultobj = SWIG_Py_Void();
26332 return resultobj;
26333fail:
26334 return NULL;
26335}
26336
26337
26338SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26339 PyObject *resultobj = 0;
26340 wxListItem *arg1 = (wxListItem *) 0 ;
26341 int arg2 ;
26342 void *argp1 = 0 ;
26343 int res1 = 0 ;
26344 int val2 ;
26345 int ecode2 = 0 ;
26346 PyObject * obj0 = 0 ;
26347 PyObject * obj1 = 0 ;
26348 char * kwnames[] = {
26349 (char *) "self",(char *) "col", NULL
26350 };
26351
26352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26354 if (!SWIG_IsOK(res1)) {
26355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26356 }
26357 arg1 = reinterpret_cast< wxListItem * >(argp1);
26358 ecode2 = SWIG_AsVal_int(obj1, &val2);
26359 if (!SWIG_IsOK(ecode2)) {
26360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26361 }
26362 arg2 = static_cast< int >(val2);
26363 {
26364 PyThreadState* __tstate = wxPyBeginAllowThreads();
26365 (arg1)->SetColumn(arg2);
26366 wxPyEndAllowThreads(__tstate);
26367 if (PyErr_Occurred()) SWIG_fail;
26368 }
26369 resultobj = SWIG_Py_Void();
26370 return resultobj;
26371fail:
26372 return NULL;
26373}
26374
26375
26376SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26377 PyObject *resultobj = 0;
26378 wxListItem *arg1 = (wxListItem *) 0 ;
26379 long arg2 ;
26380 void *argp1 = 0 ;
26381 int res1 = 0 ;
26382 long val2 ;
26383 int ecode2 = 0 ;
26384 PyObject * obj0 = 0 ;
26385 PyObject * obj1 = 0 ;
26386 char * kwnames[] = {
26387 (char *) "self",(char *) "state", NULL
26388 };
26389
26390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26392 if (!SWIG_IsOK(res1)) {
26393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26394 }
26395 arg1 = reinterpret_cast< wxListItem * >(argp1);
26396 ecode2 = SWIG_AsVal_long(obj1, &val2);
26397 if (!SWIG_IsOK(ecode2)) {
26398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26399 }
26400 arg2 = static_cast< long >(val2);
26401 {
26402 PyThreadState* __tstate = wxPyBeginAllowThreads();
26403 (arg1)->SetState(arg2);
26404 wxPyEndAllowThreads(__tstate);
26405 if (PyErr_Occurred()) SWIG_fail;
26406 }
26407 resultobj = SWIG_Py_Void();
26408 return resultobj;
26409fail:
26410 return NULL;
26411}
26412
26413
26414SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26415 PyObject *resultobj = 0;
26416 wxListItem *arg1 = (wxListItem *) 0 ;
26417 long arg2 ;
26418 void *argp1 = 0 ;
26419 int res1 = 0 ;
26420 long val2 ;
26421 int ecode2 = 0 ;
26422 PyObject * obj0 = 0 ;
26423 PyObject * obj1 = 0 ;
26424 char * kwnames[] = {
26425 (char *) "self",(char *) "stateMask", NULL
26426 };
26427
26428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26430 if (!SWIG_IsOK(res1)) {
26431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26432 }
26433 arg1 = reinterpret_cast< wxListItem * >(argp1);
26434 ecode2 = SWIG_AsVal_long(obj1, &val2);
26435 if (!SWIG_IsOK(ecode2)) {
26436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26437 }
26438 arg2 = static_cast< long >(val2);
26439 {
26440 PyThreadState* __tstate = wxPyBeginAllowThreads();
26441 (arg1)->SetStateMask(arg2);
26442 wxPyEndAllowThreads(__tstate);
26443 if (PyErr_Occurred()) SWIG_fail;
26444 }
26445 resultobj = SWIG_Py_Void();
26446 return resultobj;
26447fail:
26448 return NULL;
26449}
26450
26451
26452SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26453 PyObject *resultobj = 0;
26454 wxListItem *arg1 = (wxListItem *) 0 ;
26455 wxString *arg2 = 0 ;
26456 void *argp1 = 0 ;
26457 int res1 = 0 ;
26458 bool temp2 = false ;
26459 PyObject * obj0 = 0 ;
26460 PyObject * obj1 = 0 ;
26461 char * kwnames[] = {
26462 (char *) "self",(char *) "text", NULL
26463 };
26464
26465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26467 if (!SWIG_IsOK(res1)) {
26468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26469 }
26470 arg1 = reinterpret_cast< wxListItem * >(argp1);
26471 {
26472 arg2 = wxString_in_helper(obj1);
26473 if (arg2 == NULL) SWIG_fail;
26474 temp2 = true;
26475 }
26476 {
26477 PyThreadState* __tstate = wxPyBeginAllowThreads();
26478 (arg1)->SetText((wxString const &)*arg2);
26479 wxPyEndAllowThreads(__tstate);
26480 if (PyErr_Occurred()) SWIG_fail;
26481 }
26482 resultobj = SWIG_Py_Void();
26483 {
26484 if (temp2)
26485 delete arg2;
26486 }
26487 return resultobj;
26488fail:
26489 {
26490 if (temp2)
26491 delete arg2;
26492 }
26493 return NULL;
26494}
26495
26496
26497SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26498 PyObject *resultobj = 0;
26499 wxListItem *arg1 = (wxListItem *) 0 ;
26500 int arg2 ;
26501 void *argp1 = 0 ;
26502 int res1 = 0 ;
26503 int val2 ;
26504 int ecode2 = 0 ;
26505 PyObject * obj0 = 0 ;
26506 PyObject * obj1 = 0 ;
26507 char * kwnames[] = {
26508 (char *) "self",(char *) "image", NULL
26509 };
26510
26511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26513 if (!SWIG_IsOK(res1)) {
26514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26515 }
26516 arg1 = reinterpret_cast< wxListItem * >(argp1);
26517 ecode2 = SWIG_AsVal_int(obj1, &val2);
26518 if (!SWIG_IsOK(ecode2)) {
26519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26520 }
26521 arg2 = static_cast< int >(val2);
26522 {
26523 PyThreadState* __tstate = wxPyBeginAllowThreads();
26524 (arg1)->SetImage(arg2);
26525 wxPyEndAllowThreads(__tstate);
26526 if (PyErr_Occurred()) SWIG_fail;
26527 }
26528 resultobj = SWIG_Py_Void();
26529 return resultobj;
26530fail:
26531 return NULL;
26532}
26533
26534
26535SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26536 PyObject *resultobj = 0;
26537 wxListItem *arg1 = (wxListItem *) 0 ;
26538 long arg2 ;
26539 void *argp1 = 0 ;
26540 int res1 = 0 ;
26541 long val2 ;
26542 int ecode2 = 0 ;
26543 PyObject * obj0 = 0 ;
26544 PyObject * obj1 = 0 ;
26545 char * kwnames[] = {
26546 (char *) "self",(char *) "data", NULL
26547 };
26548
26549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26551 if (!SWIG_IsOK(res1)) {
26552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26553 }
26554 arg1 = reinterpret_cast< wxListItem * >(argp1);
26555 ecode2 = SWIG_AsVal_long(obj1, &val2);
26556 if (!SWIG_IsOK(ecode2)) {
26557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26558 }
26559 arg2 = static_cast< long >(val2);
26560 {
26561 PyThreadState* __tstate = wxPyBeginAllowThreads();
26562 (arg1)->SetData(arg2);
26563 wxPyEndAllowThreads(__tstate);
26564 if (PyErr_Occurred()) SWIG_fail;
26565 }
26566 resultobj = SWIG_Py_Void();
26567 return resultobj;
26568fail:
26569 return NULL;
26570}
26571
26572
26573SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26574 PyObject *resultobj = 0;
26575 wxListItem *arg1 = (wxListItem *) 0 ;
26576 int arg2 ;
26577 void *argp1 = 0 ;
26578 int res1 = 0 ;
26579 int val2 ;
26580 int ecode2 = 0 ;
26581 PyObject * obj0 = 0 ;
26582 PyObject * obj1 = 0 ;
26583 char * kwnames[] = {
26584 (char *) "self",(char *) "width", NULL
26585 };
26586
26587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26589 if (!SWIG_IsOK(res1)) {
26590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26591 }
26592 arg1 = reinterpret_cast< wxListItem * >(argp1);
26593 ecode2 = SWIG_AsVal_int(obj1, &val2);
26594 if (!SWIG_IsOK(ecode2)) {
26595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26596 }
26597 arg2 = static_cast< int >(val2);
26598 {
26599 PyThreadState* __tstate = wxPyBeginAllowThreads();
26600 (arg1)->SetWidth(arg2);
26601 wxPyEndAllowThreads(__tstate);
26602 if (PyErr_Occurred()) SWIG_fail;
26603 }
26604 resultobj = SWIG_Py_Void();
26605 return resultobj;
26606fail:
26607 return NULL;
26608}
26609
26610
26611SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26612 PyObject *resultobj = 0;
26613 wxListItem *arg1 = (wxListItem *) 0 ;
26614 wxListColumnFormat arg2 ;
26615 void *argp1 = 0 ;
26616 int res1 = 0 ;
26617 int val2 ;
26618 int ecode2 = 0 ;
26619 PyObject * obj0 = 0 ;
26620 PyObject * obj1 = 0 ;
26621 char * kwnames[] = {
26622 (char *) "self",(char *) "align", NULL
26623 };
26624
26625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26627 if (!SWIG_IsOK(res1)) {
26628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26629 }
26630 arg1 = reinterpret_cast< wxListItem * >(argp1);
26631 ecode2 = SWIG_AsVal_int(obj1, &val2);
26632 if (!SWIG_IsOK(ecode2)) {
26633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26634 }
26635 arg2 = static_cast< wxListColumnFormat >(val2);
26636 {
26637 PyThreadState* __tstate = wxPyBeginAllowThreads();
26638 (arg1)->SetAlign(arg2);
26639 wxPyEndAllowThreads(__tstate);
26640 if (PyErr_Occurred()) SWIG_fail;
26641 }
26642 resultobj = SWIG_Py_Void();
26643 return resultobj;
26644fail:
26645 return NULL;
26646}
26647
26648
26649SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26650 PyObject *resultobj = 0;
26651 wxListItem *arg1 = (wxListItem *) 0 ;
26652 wxColour *arg2 = 0 ;
26653 void *argp1 = 0 ;
26654 int res1 = 0 ;
26655 wxColour temp2 ;
26656 PyObject * obj0 = 0 ;
26657 PyObject * obj1 = 0 ;
26658 char * kwnames[] = {
26659 (char *) "self",(char *) "colText", NULL
26660 };
26661
26662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26664 if (!SWIG_IsOK(res1)) {
26665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26666 }
26667 arg1 = reinterpret_cast< wxListItem * >(argp1);
26668 {
26669 arg2 = &temp2;
26670 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26671 }
26672 {
26673 PyThreadState* __tstate = wxPyBeginAllowThreads();
26674 (arg1)->SetTextColour((wxColour const &)*arg2);
26675 wxPyEndAllowThreads(__tstate);
26676 if (PyErr_Occurred()) SWIG_fail;
26677 }
26678 resultobj = SWIG_Py_Void();
26679 return resultobj;
26680fail:
26681 return NULL;
26682}
26683
26684
26685SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26686 PyObject *resultobj = 0;
26687 wxListItem *arg1 = (wxListItem *) 0 ;
26688 wxColour *arg2 = 0 ;
26689 void *argp1 = 0 ;
26690 int res1 = 0 ;
26691 wxColour temp2 ;
26692 PyObject * obj0 = 0 ;
26693 PyObject * obj1 = 0 ;
26694 char * kwnames[] = {
26695 (char *) "self",(char *) "colBack", NULL
26696 };
26697
26698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26700 if (!SWIG_IsOK(res1)) {
26701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26702 }
26703 arg1 = reinterpret_cast< wxListItem * >(argp1);
26704 {
26705 arg2 = &temp2;
26706 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26707 }
26708 {
26709 PyThreadState* __tstate = wxPyBeginAllowThreads();
26710 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
26711 wxPyEndAllowThreads(__tstate);
26712 if (PyErr_Occurred()) SWIG_fail;
26713 }
26714 resultobj = SWIG_Py_Void();
26715 return resultobj;
26716fail:
26717 return NULL;
26718}
26719
26720
26721SWIGINTERN PyObject *_wrap_ListItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26722 PyObject *resultobj = 0;
26723 wxListItem *arg1 = (wxListItem *) 0 ;
26724 wxFont *arg2 = 0 ;
26725 void *argp1 = 0 ;
26726 int res1 = 0 ;
26727 void *argp2 = 0 ;
26728 int res2 = 0 ;
26729 PyObject * obj0 = 0 ;
26730 PyObject * obj1 = 0 ;
26731 char * kwnames[] = {
26732 (char *) "self",(char *) "font", NULL
26733 };
26734
26735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26737 if (!SWIG_IsOK(res1)) {
26738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26739 }
26740 arg1 = reinterpret_cast< wxListItem * >(argp1);
26741 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26742 if (!SWIG_IsOK(res2)) {
26743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26744 }
26745 if (!argp2) {
26746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26747 }
26748 arg2 = reinterpret_cast< wxFont * >(argp2);
26749 {
26750 PyThreadState* __tstate = wxPyBeginAllowThreads();
26751 (arg1)->SetFont((wxFont const &)*arg2);
26752 wxPyEndAllowThreads(__tstate);
26753 if (PyErr_Occurred()) SWIG_fail;
26754 }
26755 resultobj = SWIG_Py_Void();
26756 return resultobj;
26757fail:
26758 return NULL;
d55e5bfc
RD
26759}
26760
26761
1bd55598
RD
26762SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26763 PyObject *resultobj = 0;
26764 wxListItem *arg1 = (wxListItem *) 0 ;
26765 long result;
26766 void *argp1 = 0 ;
26767 int res1 = 0 ;
26768 PyObject *swig_obj[1] ;
26769
26770 if (!args) SWIG_fail;
26771 swig_obj[0] = args;
26772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26773 if (!SWIG_IsOK(res1)) {
26774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26775 }
26776 arg1 = reinterpret_cast< wxListItem * >(argp1);
26777 {
26778 PyThreadState* __tstate = wxPyBeginAllowThreads();
26779 result = (long)(arg1)->GetMask();
26780 wxPyEndAllowThreads(__tstate);
26781 if (PyErr_Occurred()) SWIG_fail;
26782 }
26783 resultobj = SWIG_From_long(static_cast< long >(result));
26784 return resultobj;
26785fail:
26786 return NULL;
d55e5bfc
RD
26787}
26788
26789
1bd55598
RD
26790SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26791 PyObject *resultobj = 0;
26792 wxListItem *arg1 = (wxListItem *) 0 ;
26793 long result;
26794 void *argp1 = 0 ;
26795 int res1 = 0 ;
26796 PyObject *swig_obj[1] ;
26797
26798 if (!args) SWIG_fail;
26799 swig_obj[0] = args;
26800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26801 if (!SWIG_IsOK(res1)) {
26802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26803 }
26804 arg1 = reinterpret_cast< wxListItem * >(argp1);
26805 {
26806 PyThreadState* __tstate = wxPyBeginAllowThreads();
26807 result = (long)(arg1)->GetId();
26808 wxPyEndAllowThreads(__tstate);
26809 if (PyErr_Occurred()) SWIG_fail;
26810 }
26811 resultobj = SWIG_From_long(static_cast< long >(result));
26812 return resultobj;
26813fail:
26814 return NULL;
d55e5bfc
RD
26815}
26816
26817
1bd55598
RD
26818SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26819 PyObject *resultobj = 0;
26820 wxListItem *arg1 = (wxListItem *) 0 ;
26821 int result;
26822 void *argp1 = 0 ;
26823 int res1 = 0 ;
26824 PyObject *swig_obj[1] ;
26825
26826 if (!args) SWIG_fail;
26827 swig_obj[0] = args;
26828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26829 if (!SWIG_IsOK(res1)) {
26830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26831 }
26832 arg1 = reinterpret_cast< wxListItem * >(argp1);
26833 {
26834 PyThreadState* __tstate = wxPyBeginAllowThreads();
26835 result = (int)(arg1)->GetColumn();
26836 wxPyEndAllowThreads(__tstate);
26837 if (PyErr_Occurred()) SWIG_fail;
26838 }
26839 resultobj = SWIG_From_int(static_cast< int >(result));
26840 return resultobj;
26841fail:
26842 return NULL;
d55e5bfc
RD
26843}
26844
26845
1bd55598
RD
26846SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26847 PyObject *resultobj = 0;
26848 wxListItem *arg1 = (wxListItem *) 0 ;
26849 long result;
26850 void *argp1 = 0 ;
26851 int res1 = 0 ;
26852 PyObject *swig_obj[1] ;
26853
26854 if (!args) SWIG_fail;
26855 swig_obj[0] = args;
26856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26857 if (!SWIG_IsOK(res1)) {
26858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26859 }
26860 arg1 = reinterpret_cast< wxListItem * >(argp1);
26861 {
26862 PyThreadState* __tstate = wxPyBeginAllowThreads();
26863 result = (long)(arg1)->GetState();
26864 wxPyEndAllowThreads(__tstate);
26865 if (PyErr_Occurred()) SWIG_fail;
26866 }
26867 resultobj = SWIG_From_long(static_cast< long >(result));
26868 return resultobj;
26869fail:
26870 return NULL;
8fb0e70a
RD
26871}
26872
26873
1bd55598
RD
26874SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26875 PyObject *resultobj = 0;
26876 wxListItem *arg1 = (wxListItem *) 0 ;
26877 wxString *result = 0 ;
26878 void *argp1 = 0 ;
26879 int res1 = 0 ;
26880 PyObject *swig_obj[1] ;
26881
26882 if (!args) SWIG_fail;
26883 swig_obj[0] = args;
26884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26885 if (!SWIG_IsOK(res1)) {
26886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26887 }
26888 arg1 = reinterpret_cast< wxListItem * >(argp1);
26889 {
26890 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 26891 {
1bd55598
RD
26892 wxString const &_result_ref = (arg1)->GetText();
26893 result = (wxString *) &_result_ref;
36ed4f51 26894 }
1bd55598
RD
26895 wxPyEndAllowThreads(__tstate);
26896 if (PyErr_Occurred()) SWIG_fail;
26897 }
26898 {
26899#if wxUSE_UNICODE
26900 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26901#else
26902 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26903#endif
26904 }
26905 return resultobj;
26906fail:
26907 return NULL;
d55e5bfc
RD
26908}
26909
26910
1bd55598
RD
26911SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26912 PyObject *resultobj = 0;
26913 wxListItem *arg1 = (wxListItem *) 0 ;
26914 int result;
26915 void *argp1 = 0 ;
26916 int res1 = 0 ;
26917 PyObject *swig_obj[1] ;
26918
26919 if (!args) SWIG_fail;
26920 swig_obj[0] = args;
26921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26922 if (!SWIG_IsOK(res1)) {
26923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26924 }
26925 arg1 = reinterpret_cast< wxListItem * >(argp1);
26926 {
26927 PyThreadState* __tstate = wxPyBeginAllowThreads();
26928 result = (int)(arg1)->GetImage();
26929 wxPyEndAllowThreads(__tstate);
26930 if (PyErr_Occurred()) SWIG_fail;
26931 }
26932 resultobj = SWIG_From_int(static_cast< int >(result));
26933 return resultobj;
26934fail:
26935 return NULL;
d55e5bfc
RD
26936}
26937
26938
1bd55598
RD
26939SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26940 PyObject *resultobj = 0;
26941 wxListItem *arg1 = (wxListItem *) 0 ;
26942 long result;
26943 void *argp1 = 0 ;
26944 int res1 = 0 ;
26945 PyObject *swig_obj[1] ;
26946
26947 if (!args) SWIG_fail;
26948 swig_obj[0] = args;
26949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26950 if (!SWIG_IsOK(res1)) {
26951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26952 }
26953 arg1 = reinterpret_cast< wxListItem * >(argp1);
26954 {
26955 PyThreadState* __tstate = wxPyBeginAllowThreads();
26956 result = (long)(arg1)->GetData();
26957 wxPyEndAllowThreads(__tstate);
26958 if (PyErr_Occurred()) SWIG_fail;
26959 }
26960 resultobj = SWIG_From_long(static_cast< long >(result));
26961 return resultobj;
26962fail:
26963 return NULL;
d55e5bfc
RD
26964}
26965
26966
1bd55598
RD
26967SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26968 PyObject *resultobj = 0;
26969 wxListItem *arg1 = (wxListItem *) 0 ;
26970 int result;
26971 void *argp1 = 0 ;
26972 int res1 = 0 ;
26973 PyObject *swig_obj[1] ;
26974
26975 if (!args) SWIG_fail;
26976 swig_obj[0] = args;
26977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26978 if (!SWIG_IsOK(res1)) {
26979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26980 }
26981 arg1 = reinterpret_cast< wxListItem * >(argp1);
26982 {
26983 PyThreadState* __tstate = wxPyBeginAllowThreads();
26984 result = (int)(arg1)->GetWidth();
26985 wxPyEndAllowThreads(__tstate);
26986 if (PyErr_Occurred()) SWIG_fail;
26987 }
26988 resultobj = SWIG_From_int(static_cast< int >(result));
26989 return resultobj;
26990fail:
26991 return NULL;
d55e5bfc
RD
26992}
26993
26994
1bd55598
RD
26995SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26996 PyObject *resultobj = 0;
26997 wxListItem *arg1 = (wxListItem *) 0 ;
26998 wxListColumnFormat result;
26999 void *argp1 = 0 ;
27000 int res1 = 0 ;
27001 PyObject *swig_obj[1] ;
27002
27003 if (!args) SWIG_fail;
27004 swig_obj[0] = args;
27005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27006 if (!SWIG_IsOK(res1)) {
27007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
27008 }
27009 arg1 = reinterpret_cast< wxListItem * >(argp1);
27010 {
27011 PyThreadState* __tstate = wxPyBeginAllowThreads();
27012 result = (wxListColumnFormat)(arg1)->GetAlign();
27013 wxPyEndAllowThreads(__tstate);
27014 if (PyErr_Occurred()) SWIG_fail;
27015 }
27016 resultobj = SWIG_From_int(static_cast< int >(result));
27017 return resultobj;
27018fail:
27019 return NULL;
d55e5bfc
RD
27020}
27021
27022
1bd55598
RD
27023SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27024 PyObject *resultobj = 0;
27025 wxListItem *arg1 = (wxListItem *) 0 ;
27026 wxListItemAttr *result = 0 ;
27027 void *argp1 = 0 ;
27028 int res1 = 0 ;
27029 PyObject *swig_obj[1] ;
27030
27031 if (!args) SWIG_fail;
27032 swig_obj[0] = args;
27033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27034 if (!SWIG_IsOK(res1)) {
27035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27036 }
27037 arg1 = reinterpret_cast< wxListItem * >(argp1);
27038 {
27039 PyThreadState* __tstate = wxPyBeginAllowThreads();
27040 result = (wxListItemAttr *)(arg1)->GetAttributes();
27041 wxPyEndAllowThreads(__tstate);
27042 if (PyErr_Occurred()) SWIG_fail;
27043 }
27044 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
27045 return resultobj;
27046fail:
27047 return NULL;
d55e5bfc
RD
27048}
27049
27050
1bd55598
RD
27051SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27052 PyObject *resultobj = 0;
27053 wxListItem *arg1 = (wxListItem *) 0 ;
27054 bool result;
27055 void *argp1 = 0 ;
27056 int res1 = 0 ;
27057 PyObject *swig_obj[1] ;
27058
27059 if (!args) SWIG_fail;
27060 swig_obj[0] = args;
27061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27062 if (!SWIG_IsOK(res1)) {
27063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
27064 }
27065 arg1 = reinterpret_cast< wxListItem * >(argp1);
27066 {
27067 PyThreadState* __tstate = wxPyBeginAllowThreads();
27068 result = (bool)(arg1)->HasAttributes();
27069 wxPyEndAllowThreads(__tstate);
27070 if (PyErr_Occurred()) SWIG_fail;
27071 }
27072 {
27073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27074 }
27075 return resultobj;
27076fail:
27077 return NULL;
d55e5bfc
RD
27078}
27079
27080
1bd55598
RD
27081SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27082 PyObject *resultobj = 0;
27083 wxListItem *arg1 = (wxListItem *) 0 ;
27084 wxColour result;
27085 void *argp1 = 0 ;
27086 int res1 = 0 ;
27087 PyObject *swig_obj[1] ;
27088
27089 if (!args) SWIG_fail;
27090 swig_obj[0] = args;
27091 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27092 if (!SWIG_IsOK(res1)) {
27093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27094 }
27095 arg1 = reinterpret_cast< wxListItem * >(argp1);
27096 {
27097 PyThreadState* __tstate = wxPyBeginAllowThreads();
27098 result = ((wxListItem const *)arg1)->GetTextColour();
27099 wxPyEndAllowThreads(__tstate);
27100 if (PyErr_Occurred()) SWIG_fail;
27101 }
27102 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27103 return resultobj;
27104fail:
27105 return NULL;
d55e5bfc
RD
27106}
27107
27108
1bd55598
RD
27109SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27110 PyObject *resultobj = 0;
27111 wxListItem *arg1 = (wxListItem *) 0 ;
27112 wxColour result;
27113 void *argp1 = 0 ;
27114 int res1 = 0 ;
27115 PyObject *swig_obj[1] ;
27116
27117 if (!args) SWIG_fail;
27118 swig_obj[0] = args;
27119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27120 if (!SWIG_IsOK(res1)) {
27121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
27122 }
27123 arg1 = reinterpret_cast< wxListItem * >(argp1);
27124 {
27125 PyThreadState* __tstate = wxPyBeginAllowThreads();
27126 result = ((wxListItem const *)arg1)->GetBackgroundColour();
27127 wxPyEndAllowThreads(__tstate);
27128 if (PyErr_Occurred()) SWIG_fail;
27129 }
27130 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
27131 return resultobj;
27132fail:
27133 return NULL;
d55e5bfc
RD
27134}
27135
27136
1bd55598
RD
27137SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27138 PyObject *resultobj = 0;
27139 wxListItem *arg1 = (wxListItem *) 0 ;
27140 wxFont result;
27141 void *argp1 = 0 ;
27142 int res1 = 0 ;
27143 PyObject *swig_obj[1] ;
27144
27145 if (!args) SWIG_fail;
27146 swig_obj[0] = args;
27147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27148 if (!SWIG_IsOK(res1)) {
27149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
27150 }
27151 arg1 = reinterpret_cast< wxListItem * >(argp1);
27152 {
27153 PyThreadState* __tstate = wxPyBeginAllowThreads();
27154 result = ((wxListItem const *)arg1)->GetFont();
27155 wxPyEndAllowThreads(__tstate);
27156 if (PyErr_Occurred()) SWIG_fail;
27157 }
27158 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27159 return resultobj;
27160fail:
27161 return NULL;
27162}
27163
27164
27165SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27166 PyObject *resultobj = 0;
27167 wxListItem *arg1 = (wxListItem *) 0 ;
27168 long arg2 ;
27169 void *argp1 = 0 ;
27170 int res1 = 0 ;
27171 long val2 ;
27172 int ecode2 = 0 ;
27173 PyObject *swig_obj[2] ;
27174
27175 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27177 if (!SWIG_IsOK(res1)) {
27178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27179 }
27180 arg1 = reinterpret_cast< wxListItem * >(argp1);
27181 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27182 if (!SWIG_IsOK(ecode2)) {
27183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27184 }
27185 arg2 = static_cast< long >(val2);
27186 if (arg1) (arg1)->m_mask = arg2;
27187
27188 resultobj = SWIG_Py_Void();
27189 return resultobj;
27190fail:
27191 return NULL;
d55e5bfc
RD
27192}
27193
27194
1bd55598
RD
27195SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27196 PyObject *resultobj = 0;
27197 wxListItem *arg1 = (wxListItem *) 0 ;
27198 long result;
27199 void *argp1 = 0 ;
27200 int res1 = 0 ;
27201 PyObject *swig_obj[1] ;
27202
27203 if (!args) SWIG_fail;
27204 swig_obj[0] = args;
27205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27206 if (!SWIG_IsOK(res1)) {
27207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27208 }
27209 arg1 = reinterpret_cast< wxListItem * >(argp1);
27210 result = (long) ((arg1)->m_mask);
27211 resultobj = SWIG_From_long(static_cast< long >(result));
27212 return resultobj;
27213fail:
27214 return NULL;
27215}
27216
27217
27218SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27219 PyObject *resultobj = 0;
27220 wxListItem *arg1 = (wxListItem *) 0 ;
27221 long arg2 ;
27222 void *argp1 = 0 ;
27223 int res1 = 0 ;
27224 long val2 ;
27225 int ecode2 = 0 ;
27226 PyObject *swig_obj[2] ;
27227
27228 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27230 if (!SWIG_IsOK(res1)) {
27231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27232 }
27233 arg1 = reinterpret_cast< wxListItem * >(argp1);
27234 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27235 if (!SWIG_IsOK(ecode2)) {
27236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27237 }
27238 arg2 = static_cast< long >(val2);
27239 if (arg1) (arg1)->m_itemId = arg2;
27240
27241 resultobj = SWIG_Py_Void();
27242 return resultobj;
27243fail:
27244 return NULL;
7e08d4ef
RD
27245}
27246
27247
1bd55598
RD
27248SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27249 PyObject *resultobj = 0;
27250 wxListItem *arg1 = (wxListItem *) 0 ;
27251 long result;
27252 void *argp1 = 0 ;
27253 int res1 = 0 ;
27254 PyObject *swig_obj[1] ;
27255
27256 if (!args) SWIG_fail;
27257 swig_obj[0] = args;
27258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27259 if (!SWIG_IsOK(res1)) {
27260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27261 }
27262 arg1 = reinterpret_cast< wxListItem * >(argp1);
27263 result = (long) ((arg1)->m_itemId);
27264 resultobj = SWIG_From_long(static_cast< long >(result));
27265 return resultobj;
27266fail:
27267 return NULL;
27268}
27269
27270
27271SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27272 PyObject *resultobj = 0;
27273 wxListItem *arg1 = (wxListItem *) 0 ;
27274 int arg2 ;
27275 void *argp1 = 0 ;
27276 int res1 = 0 ;
27277 int val2 ;
27278 int ecode2 = 0 ;
27279 PyObject *swig_obj[2] ;
27280
27281 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27283 if (!SWIG_IsOK(res1)) {
27284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27285 }
27286 arg1 = reinterpret_cast< wxListItem * >(argp1);
27287 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27288 if (!SWIG_IsOK(ecode2)) {
27289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27290 }
27291 arg2 = static_cast< int >(val2);
27292 if (arg1) (arg1)->m_col = arg2;
27293
27294 resultobj = SWIG_Py_Void();
27295 return resultobj;
27296fail:
27297 return NULL;
7e08d4ef
RD
27298}
27299
27300
1bd55598
RD
27301SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27302 PyObject *resultobj = 0;
27303 wxListItem *arg1 = (wxListItem *) 0 ;
27304 int result;
27305 void *argp1 = 0 ;
27306 int res1 = 0 ;
27307 PyObject *swig_obj[1] ;
27308
27309 if (!args) SWIG_fail;
27310 swig_obj[0] = args;
27311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27312 if (!SWIG_IsOK(res1)) {
27313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27314 }
27315 arg1 = reinterpret_cast< wxListItem * >(argp1);
27316 result = (int) ((arg1)->m_col);
27317 resultobj = SWIG_From_int(static_cast< int >(result));
27318 return resultobj;
27319fail:
27320 return NULL;
27321}
27322
27323
27324SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27325 PyObject *resultobj = 0;
27326 wxListItem *arg1 = (wxListItem *) 0 ;
27327 long arg2 ;
27328 void *argp1 = 0 ;
27329 int res1 = 0 ;
27330 long val2 ;
27331 int ecode2 = 0 ;
27332 PyObject *swig_obj[2] ;
27333
27334 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27336 if (!SWIG_IsOK(res1)) {
27337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27338 }
27339 arg1 = reinterpret_cast< wxListItem * >(argp1);
27340 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27341 if (!SWIG_IsOK(ecode2)) {
27342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27343 }
27344 arg2 = static_cast< long >(val2);
27345 if (arg1) (arg1)->m_state = arg2;
27346
27347 resultobj = SWIG_Py_Void();
27348 return resultobj;
27349fail:
27350 return NULL;
7e08d4ef
RD
27351}
27352
27353
1bd55598
RD
27354SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27355 PyObject *resultobj = 0;
27356 wxListItem *arg1 = (wxListItem *) 0 ;
27357 long result;
27358 void *argp1 = 0 ;
27359 int res1 = 0 ;
27360 PyObject *swig_obj[1] ;
27361
27362 if (!args) SWIG_fail;
27363 swig_obj[0] = args;
27364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27365 if (!SWIG_IsOK(res1)) {
27366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27367 }
27368 arg1 = reinterpret_cast< wxListItem * >(argp1);
27369 result = (long) ((arg1)->m_state);
27370 resultobj = SWIG_From_long(static_cast< long >(result));
27371 return resultobj;
27372fail:
27373 return NULL;
27374}
27375
27376
27377SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27378 PyObject *resultobj = 0;
27379 wxListItem *arg1 = (wxListItem *) 0 ;
27380 long arg2 ;
27381 void *argp1 = 0 ;
27382 int res1 = 0 ;
27383 long val2 ;
27384 int ecode2 = 0 ;
27385 PyObject *swig_obj[2] ;
27386
27387 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27389 if (!SWIG_IsOK(res1)) {
27390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27391 }
27392 arg1 = reinterpret_cast< wxListItem * >(argp1);
27393 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27394 if (!SWIG_IsOK(ecode2)) {
27395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27396 }
27397 arg2 = static_cast< long >(val2);
27398 if (arg1) (arg1)->m_stateMask = arg2;
27399
27400 resultobj = SWIG_Py_Void();
27401 return resultobj;
27402fail:
27403 return NULL;
7e08d4ef
RD
27404}
27405
27406
1bd55598
RD
27407SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27408 PyObject *resultobj = 0;
27409 wxListItem *arg1 = (wxListItem *) 0 ;
27410 long result;
27411 void *argp1 = 0 ;
27412 int res1 = 0 ;
27413 PyObject *swig_obj[1] ;
27414
27415 if (!args) SWIG_fail;
27416 swig_obj[0] = args;
27417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27418 if (!SWIG_IsOK(res1)) {
27419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27420 }
27421 arg1 = reinterpret_cast< wxListItem * >(argp1);
27422 result = (long) ((arg1)->m_stateMask);
27423 resultobj = SWIG_From_long(static_cast< long >(result));
27424 return resultobj;
27425fail:
27426 return NULL;
27427}
27428
27429
27430SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27431 PyObject *resultobj = 0;
27432 wxListItem *arg1 = (wxListItem *) 0 ;
27433 wxString *arg2 = (wxString *) 0 ;
27434 void *argp1 = 0 ;
27435 int res1 = 0 ;
27436 bool temp2 = false ;
27437 PyObject *swig_obj[2] ;
27438
27439 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_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_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27443 }
27444 arg1 = reinterpret_cast< wxListItem * >(argp1);
27445 {
27446 arg2 = wxString_in_helper(swig_obj[1]);
27447 if (arg2 == NULL) SWIG_fail;
27448 temp2 = true;
27449 }
27450 if (arg1) (arg1)->m_text = *arg2;
27451
27452 resultobj = SWIG_Py_Void();
27453 {
27454 if (temp2)
27455 delete arg2;
27456 }
27457 return resultobj;
27458fail:
27459 {
27460 if (temp2)
27461 delete arg2;
27462 }
27463 return NULL;
7e08d4ef
RD
27464}
27465
27466
1bd55598
RD
27467SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27468 PyObject *resultobj = 0;
27469 wxListItem *arg1 = (wxListItem *) 0 ;
27470 wxString *result = 0 ;
27471 void *argp1 = 0 ;
27472 int res1 = 0 ;
27473 PyObject *swig_obj[1] ;
27474
27475 if (!args) SWIG_fail;
27476 swig_obj[0] = args;
27477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27478 if (!SWIG_IsOK(res1)) {
27479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27480 }
27481 arg1 = reinterpret_cast< wxListItem * >(argp1);
27482 result = (wxString *)& ((arg1)->m_text);
27483 {
27484#if wxUSE_UNICODE
27485 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27486#else
27487 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27488#endif
27489 }
27490 return resultobj;
27491fail:
27492 return NULL;
d55e5bfc
RD
27493}
27494
27495
1bd55598
RD
27496SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27497 PyObject *resultobj = 0;
27498 wxListItem *arg1 = (wxListItem *) 0 ;
27499 int arg2 ;
27500 void *argp1 = 0 ;
27501 int res1 = 0 ;
27502 int val2 ;
27503 int ecode2 = 0 ;
27504 PyObject *swig_obj[2] ;
27505
27506 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27508 if (!SWIG_IsOK(res1)) {
27509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27510 }
27511 arg1 = reinterpret_cast< wxListItem * >(argp1);
27512 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27513 if (!SWIG_IsOK(ecode2)) {
27514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27515 }
27516 arg2 = static_cast< int >(val2);
27517 if (arg1) (arg1)->m_image = arg2;
27518
27519 resultobj = SWIG_Py_Void();
27520 return resultobj;
27521fail:
27522 return NULL;
d55e5bfc
RD
27523}
27524
27525
1bd55598
RD
27526SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27527 PyObject *resultobj = 0;
27528 wxListItem *arg1 = (wxListItem *) 0 ;
27529 int result;
27530 void *argp1 = 0 ;
27531 int res1 = 0 ;
27532 PyObject *swig_obj[1] ;
27533
27534 if (!args) SWIG_fail;
27535 swig_obj[0] = args;
27536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27537 if (!SWIG_IsOK(res1)) {
27538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27539 }
27540 arg1 = reinterpret_cast< wxListItem * >(argp1);
27541 result = (int) ((arg1)->m_image);
27542 resultobj = SWIG_From_int(static_cast< int >(result));
27543 return resultobj;
27544fail:
27545 return NULL;
27546}
27547
27548
27549SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27550 PyObject *resultobj = 0;
27551 wxListItem *arg1 = (wxListItem *) 0 ;
27552 long arg2 ;
27553 void *argp1 = 0 ;
27554 int res1 = 0 ;
27555 long val2 ;
27556 int ecode2 = 0 ;
27557 PyObject *swig_obj[2] ;
27558
27559 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27561 if (!SWIG_IsOK(res1)) {
27562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27563 }
27564 arg1 = reinterpret_cast< wxListItem * >(argp1);
27565 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27566 if (!SWIG_IsOK(ecode2)) {
27567 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27568 }
27569 arg2 = static_cast< long >(val2);
27570 if (arg1) (arg1)->m_data = arg2;
27571
27572 resultobj = SWIG_Py_Void();
27573 return resultobj;
27574fail:
27575 return NULL;
d55e5bfc
RD
27576}
27577
27578
1bd55598
RD
27579SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27580 PyObject *resultobj = 0;
27581 wxListItem *arg1 = (wxListItem *) 0 ;
27582 long result;
27583 void *argp1 = 0 ;
27584 int res1 = 0 ;
27585 PyObject *swig_obj[1] ;
27586
27587 if (!args) SWIG_fail;
27588 swig_obj[0] = args;
27589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27590 if (!SWIG_IsOK(res1)) {
27591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27592 }
27593 arg1 = reinterpret_cast< wxListItem * >(argp1);
27594 result = (long) ((arg1)->m_data);
27595 resultobj = SWIG_From_long(static_cast< long >(result));
27596 return resultobj;
27597fail:
27598 return NULL;
27599}
27600
27601
27602SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27603 PyObject *resultobj = 0;
27604 wxListItem *arg1 = (wxListItem *) 0 ;
27605 int arg2 ;
27606 void *argp1 = 0 ;
27607 int res1 = 0 ;
27608 int val2 ;
27609 int ecode2 = 0 ;
27610 PyObject *swig_obj[2] ;
27611
27612 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27614 if (!SWIG_IsOK(res1)) {
27615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27616 }
27617 arg1 = reinterpret_cast< wxListItem * >(argp1);
27618 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27619 if (!SWIG_IsOK(ecode2)) {
27620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27621 }
27622 arg2 = static_cast< int >(val2);
27623 if (arg1) (arg1)->m_format = arg2;
27624
27625 resultobj = SWIG_Py_Void();
27626 return resultobj;
27627fail:
27628 return NULL;
d55e5bfc
RD
27629}
27630
27631
1bd55598
RD
27632SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27633 PyObject *resultobj = 0;
27634 wxListItem *arg1 = (wxListItem *) 0 ;
27635 int result;
27636 void *argp1 = 0 ;
27637 int res1 = 0 ;
27638 PyObject *swig_obj[1] ;
27639
27640 if (!args) SWIG_fail;
27641 swig_obj[0] = args;
27642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27643 if (!SWIG_IsOK(res1)) {
27644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27645 }
27646 arg1 = reinterpret_cast< wxListItem * >(argp1);
27647 result = (int) ((arg1)->m_format);
27648 resultobj = SWIG_From_int(static_cast< int >(result));
27649 return resultobj;
27650fail:
27651 return NULL;
27652}
27653
27654
27655SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27656 PyObject *resultobj = 0;
27657 wxListItem *arg1 = (wxListItem *) 0 ;
27658 int arg2 ;
27659 void *argp1 = 0 ;
27660 int res1 = 0 ;
27661 int val2 ;
27662 int ecode2 = 0 ;
27663 PyObject *swig_obj[2] ;
27664
27665 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27667 if (!SWIG_IsOK(res1)) {
27668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27669 }
27670 arg1 = reinterpret_cast< wxListItem * >(argp1);
27671 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27672 if (!SWIG_IsOK(ecode2)) {
27673 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27674 }
27675 arg2 = static_cast< int >(val2);
27676 if (arg1) (arg1)->m_width = arg2;
27677
27678 resultobj = SWIG_Py_Void();
27679 return resultobj;
27680fail:
27681 return NULL;
d55e5bfc
RD
27682}
27683
27684
1bd55598
RD
27685SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27686 PyObject *resultobj = 0;
27687 wxListItem *arg1 = (wxListItem *) 0 ;
27688 int result;
27689 void *argp1 = 0 ;
27690 int res1 = 0 ;
27691 PyObject *swig_obj[1] ;
27692
27693 if (!args) SWIG_fail;
27694 swig_obj[0] = args;
27695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27696 if (!SWIG_IsOK(res1)) {
27697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27698 }
27699 arg1 = reinterpret_cast< wxListItem * >(argp1);
27700 result = (int) ((arg1)->m_width);
27701 resultobj = SWIG_From_int(static_cast< int >(result));
27702 return resultobj;
27703fail:
27704 return NULL;
27705}
27706
27707
27708SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27709 PyObject *obj;
27710 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27711 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27712 return SWIG_Py_Void();
27713}
27714
27715SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27716 return SWIG_Python_InitShadowInstance(args);
27717}
27718
27719SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27720 PyObject *resultobj = 0;
27721 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27722 int arg2 = (int) 0 ;
27723 wxListEvent *result = 0 ;
27724 int val1 ;
27725 int ecode1 = 0 ;
27726 int val2 ;
27727 int ecode2 = 0 ;
27728 PyObject * obj0 = 0 ;
27729 PyObject * obj1 = 0 ;
27730 char * kwnames[] = {
27731 (char *) "commandType",(char *) "id", NULL
27732 };
27733
27734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27735 if (obj0) {
27736 ecode1 = SWIG_AsVal_int(obj0, &val1);
27737 if (!SWIG_IsOK(ecode1)) {
27738 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27739 }
27740 arg1 = static_cast< wxEventType >(val1);
27741 }
27742 if (obj1) {
27743 ecode2 = SWIG_AsVal_int(obj1, &val2);
27744 if (!SWIG_IsOK(ecode2)) {
27745 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27746 }
27747 arg2 = static_cast< int >(val2);
27748 }
27749 {
27750 PyThreadState* __tstate = wxPyBeginAllowThreads();
27751 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27752 wxPyEndAllowThreads(__tstate);
27753 if (PyErr_Occurred()) SWIG_fail;
27754 }
27755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27756 return resultobj;
27757fail:
27758 return NULL;
27759}
27760
27761
27762SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27763 PyObject *resultobj = 0;
27764 wxListEvent *arg1 = (wxListEvent *) 0 ;
27765 int arg2 ;
27766 void *argp1 = 0 ;
27767 int res1 = 0 ;
27768 int val2 ;
27769 int ecode2 = 0 ;
27770 PyObject *swig_obj[2] ;
27771
27772 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27774 if (!SWIG_IsOK(res1)) {
27775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27776 }
27777 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27778 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27779 if (!SWIG_IsOK(ecode2)) {
27780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27781 }
27782 arg2 = static_cast< int >(val2);
27783 if (arg1) (arg1)->m_code = arg2;
27784
27785 resultobj = SWIG_Py_Void();
27786 return resultobj;
27787fail:
27788 return NULL;
d55e5bfc
RD
27789}
27790
27791
1bd55598
RD
27792SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27793 PyObject *resultobj = 0;
27794 wxListEvent *arg1 = (wxListEvent *) 0 ;
27795 int result;
27796 void *argp1 = 0 ;
27797 int res1 = 0 ;
27798 PyObject *swig_obj[1] ;
27799
27800 if (!args) SWIG_fail;
27801 swig_obj[0] = args;
27802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27803 if (!SWIG_IsOK(res1)) {
27804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27805 }
27806 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27807 result = (int) ((arg1)->m_code);
27808 resultobj = SWIG_From_int(static_cast< int >(result));
27809 return resultobj;
27810fail:
27811 return NULL;
27812}
27813
27814
27815SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27816 PyObject *resultobj = 0;
27817 wxListEvent *arg1 = (wxListEvent *) 0 ;
27818 long arg2 ;
27819 void *argp1 = 0 ;
27820 int res1 = 0 ;
27821 long val2 ;
27822 int ecode2 = 0 ;
27823 PyObject *swig_obj[2] ;
27824
27825 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27827 if (!SWIG_IsOK(res1)) {
27828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27829 }
27830 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27831 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27832 if (!SWIG_IsOK(ecode2)) {
27833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27834 }
27835 arg2 = static_cast< long >(val2);
27836 if (arg1) (arg1)->m_oldItemIndex = arg2;
27837
27838 resultobj = SWIG_Py_Void();
27839 return resultobj;
27840fail:
27841 return NULL;
d55e5bfc
RD
27842}
27843
27844
1bd55598
RD
27845SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27846 PyObject *resultobj = 0;
27847 wxListEvent *arg1 = (wxListEvent *) 0 ;
27848 long result;
27849 void *argp1 = 0 ;
27850 int res1 = 0 ;
27851 PyObject *swig_obj[1] ;
27852
27853 if (!args) SWIG_fail;
27854 swig_obj[0] = args;
27855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27856 if (!SWIG_IsOK(res1)) {
27857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27858 }
27859 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27860 result = (long) ((arg1)->m_oldItemIndex);
27861 resultobj = SWIG_From_long(static_cast< long >(result));
27862 return resultobj;
27863fail:
27864 return NULL;
27865}
27866
27867
27868SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27869 PyObject *resultobj = 0;
27870 wxListEvent *arg1 = (wxListEvent *) 0 ;
27871 long arg2 ;
27872 void *argp1 = 0 ;
27873 int res1 = 0 ;
27874 long val2 ;
27875 int ecode2 = 0 ;
27876 PyObject *swig_obj[2] ;
27877
27878 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27880 if (!SWIG_IsOK(res1)) {
27881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27882 }
27883 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27884 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27885 if (!SWIG_IsOK(ecode2)) {
27886 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27887 }
27888 arg2 = static_cast< long >(val2);
27889 if (arg1) (arg1)->m_itemIndex = arg2;
27890
27891 resultobj = SWIG_Py_Void();
27892 return resultobj;
27893fail:
27894 return NULL;
f20a2e1f
RD
27895}
27896
27897
1bd55598
RD
27898SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27899 PyObject *resultobj = 0;
27900 wxListEvent *arg1 = (wxListEvent *) 0 ;
27901 long result;
27902 void *argp1 = 0 ;
27903 int res1 = 0 ;
27904 PyObject *swig_obj[1] ;
27905
27906 if (!args) SWIG_fail;
27907 swig_obj[0] = args;
27908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27909 if (!SWIG_IsOK(res1)) {
27910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27911 }
27912 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27913 result = (long) ((arg1)->m_itemIndex);
27914 resultobj = SWIG_From_long(static_cast< long >(result));
27915 return resultobj;
27916fail:
27917 return NULL;
27918}
27919
27920
27921SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27922 PyObject *resultobj = 0;
27923 wxListEvent *arg1 = (wxListEvent *) 0 ;
27924 int arg2 ;
27925 void *argp1 = 0 ;
27926 int res1 = 0 ;
27927 int val2 ;
27928 int ecode2 = 0 ;
27929 PyObject *swig_obj[2] ;
27930
27931 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27933 if (!SWIG_IsOK(res1)) {
27934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27935 }
27936 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27937 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27938 if (!SWIG_IsOK(ecode2)) {
27939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27940 }
27941 arg2 = static_cast< int >(val2);
27942 if (arg1) (arg1)->m_col = arg2;
27943
27944 resultobj = SWIG_Py_Void();
27945 return resultobj;
27946fail:
27947 return NULL;
d55e5bfc
RD
27948}
27949
27950
1bd55598
RD
27951SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27952 PyObject *resultobj = 0;
27953 wxListEvent *arg1 = (wxListEvent *) 0 ;
27954 int result;
27955 void *argp1 = 0 ;
27956 int res1 = 0 ;
27957 PyObject *swig_obj[1] ;
27958
27959 if (!args) SWIG_fail;
27960 swig_obj[0] = args;
27961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27962 if (!SWIG_IsOK(res1)) {
27963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27964 }
27965 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27966 result = (int) ((arg1)->m_col);
27967 resultobj = SWIG_From_int(static_cast< int >(result));
27968 return resultobj;
27969fail:
27970 return NULL;
27971}
27972
27973
27974SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27975 PyObject *resultobj = 0;
27976 wxListEvent *arg1 = (wxListEvent *) 0 ;
27977 wxPoint *arg2 = (wxPoint *) 0 ;
27978 void *argp1 = 0 ;
27979 int res1 = 0 ;
27980 void *argp2 = 0 ;
27981 int res2 = 0 ;
27982 PyObject *swig_obj[2] ;
27983
27984 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27986 if (!SWIG_IsOK(res1)) {
27987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27988 }
27989 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27990 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27991 if (!SWIG_IsOK(res2)) {
27992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27993 }
27994 arg2 = reinterpret_cast< wxPoint * >(argp2);
27995 if (arg1) (arg1)->m_pointDrag = *arg2;
27996
27997 resultobj = SWIG_Py_Void();
27998 return resultobj;
27999fail:
28000 return NULL;
d55e5bfc
RD
28001}
28002
28003
1bd55598
RD
28004SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28005 PyObject *resultobj = 0;
28006 wxListEvent *arg1 = (wxListEvent *) 0 ;
28007 wxPoint *result = 0 ;
28008 void *argp1 = 0 ;
28009 int res1 = 0 ;
28010 PyObject *swig_obj[1] ;
28011
28012 if (!args) SWIG_fail;
28013 swig_obj[0] = args;
28014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28015 if (!SWIG_IsOK(res1)) {
28016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28017 }
28018 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28019 result = (wxPoint *)& ((arg1)->m_pointDrag);
28020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
28021 return resultobj;
28022fail:
28023 return NULL;
28024}
28025
28026
28027SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28028 PyObject *resultobj = 0;
28029 wxListEvent *arg1 = (wxListEvent *) 0 ;
28030 wxListItem *result = 0 ;
28031 void *argp1 = 0 ;
28032 int res1 = 0 ;
28033 PyObject *swig_obj[1] ;
28034
28035 if (!args) SWIG_fail;
28036 swig_obj[0] = args;
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_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
28040 }
28041 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28042 result = (wxListItem *)& ((arg1)->m_item);
28043 {
28044 resultobj = wxPyMake_wxObject(result, (bool)0);
28045 }
28046 return resultobj;
28047fail:
28048 return NULL;
d55e5bfc
RD
28049}
28050
28051
1bd55598
RD
28052SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28053 PyObject *resultobj = 0;
28054 wxListEvent *arg1 = (wxListEvent *) 0 ;
28055 int result;
28056 void *argp1 = 0 ;
28057 int res1 = 0 ;
28058 PyObject *swig_obj[1] ;
28059
28060 if (!args) SWIG_fail;
28061 swig_obj[0] = args;
28062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28063 if (!SWIG_IsOK(res1)) {
28064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
28065 }
28066 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28067 {
28068 PyThreadState* __tstate = wxPyBeginAllowThreads();
28069 result = (int)(arg1)->GetKeyCode();
28070 wxPyEndAllowThreads(__tstate);
28071 if (PyErr_Occurred()) SWIG_fail;
28072 }
28073 resultobj = SWIG_From_int(static_cast< int >(result));
28074 return resultobj;
28075fail:
28076 return NULL;
d55e5bfc
RD
28077}
28078
28079
1bd55598
RD
28080SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28081 PyObject *resultobj = 0;
28082 wxListEvent *arg1 = (wxListEvent *) 0 ;
28083 long result;
28084 void *argp1 = 0 ;
28085 int res1 = 0 ;
28086 PyObject *swig_obj[1] ;
28087
28088 if (!args) SWIG_fail;
28089 swig_obj[0] = args;
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_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
28093 }
28094 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28095 {
28096 PyThreadState* __tstate = wxPyBeginAllowThreads();
28097 result = (long)(arg1)->GetIndex();
28098 wxPyEndAllowThreads(__tstate);
28099 if (PyErr_Occurred()) SWIG_fail;
28100 }
28101 resultobj = SWIG_From_long(static_cast< long >(result));
28102 return resultobj;
28103fail:
28104 return NULL;
d55e5bfc
RD
28105}
28106
28107
1bd55598
RD
28108SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28109 PyObject *resultobj = 0;
28110 wxListEvent *arg1 = (wxListEvent *) 0 ;
28111 int result;
28112 void *argp1 = 0 ;
28113 int res1 = 0 ;
28114 PyObject *swig_obj[1] ;
28115
28116 if (!args) SWIG_fail;
28117 swig_obj[0] = args;
28118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28119 if (!SWIG_IsOK(res1)) {
28120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
28121 }
28122 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28123 {
28124 PyThreadState* __tstate = wxPyBeginAllowThreads();
28125 result = (int)(arg1)->GetColumn();
28126 wxPyEndAllowThreads(__tstate);
28127 if (PyErr_Occurred()) SWIG_fail;
28128 }
28129 resultobj = SWIG_From_int(static_cast< int >(result));
28130 return resultobj;
28131fail:
28132 return NULL;
d55e5bfc
RD
28133}
28134
28135
1bd55598
RD
28136SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28137 PyObject *resultobj = 0;
28138 wxListEvent *arg1 = (wxListEvent *) 0 ;
28139 wxPoint result;
28140 void *argp1 = 0 ;
28141 int res1 = 0 ;
28142 PyObject *swig_obj[1] ;
28143
28144 if (!args) SWIG_fail;
28145 swig_obj[0] = args;
28146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28147 if (!SWIG_IsOK(res1)) {
28148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
28149 }
28150 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28151 {
28152 PyThreadState* __tstate = wxPyBeginAllowThreads();
28153 result = (arg1)->GetPoint();
28154 wxPyEndAllowThreads(__tstate);
28155 if (PyErr_Occurred()) SWIG_fail;
28156 }
28157 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28158 return resultobj;
28159fail:
28160 return NULL;
d55e5bfc
RD
28161}
28162
28163
1bd55598
RD
28164SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28165 PyObject *resultobj = 0;
28166 wxListEvent *arg1 = (wxListEvent *) 0 ;
28167 wxString *result = 0 ;
28168 void *argp1 = 0 ;
28169 int res1 = 0 ;
28170 PyObject *swig_obj[1] ;
28171
28172 if (!args) SWIG_fail;
28173 swig_obj[0] = args;
28174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28175 if (!SWIG_IsOK(res1)) {
28176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28177 }
28178 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28179 {
28180 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28181 {
1bd55598
RD
28182 wxString const &_result_ref = (arg1)->GetLabel();
28183 result = (wxString *) &_result_ref;
d55e5bfc 28184 }
1bd55598
RD
28185 wxPyEndAllowThreads(__tstate);
28186 if (PyErr_Occurred()) SWIG_fail;
28187 }
28188 {
28189#if wxUSE_UNICODE
28190 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28191#else
28192 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28193#endif
28194 }
28195 return resultobj;
28196fail:
28197 return NULL;
d55e5bfc
RD
28198}
28199
28200
1bd55598
RD
28201SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28202 PyObject *resultobj = 0;
28203 wxListEvent *arg1 = (wxListEvent *) 0 ;
28204 wxString *result = 0 ;
28205 void *argp1 = 0 ;
28206 int res1 = 0 ;
28207 PyObject *swig_obj[1] ;
28208
28209 if (!args) SWIG_fail;
28210 swig_obj[0] = args;
28211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28212 if (!SWIG_IsOK(res1)) {
28213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28214 }
28215 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28216 {
28217 PyThreadState* __tstate = wxPyBeginAllowThreads();
36ed4f51 28218 {
1bd55598
RD
28219 wxString const &_result_ref = (arg1)->GetText();
28220 result = (wxString *) &_result_ref;
36ed4f51 28221 }
1bd55598
RD
28222 wxPyEndAllowThreads(__tstate);
28223 if (PyErr_Occurred()) SWIG_fail;
28224 }
28225 {
28226#if wxUSE_UNICODE
28227 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28228#else
28229 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28230#endif
28231 }
28232 return resultobj;
28233fail:
28234 return NULL;
d55e5bfc
RD
28235}
28236
28237
1bd55598
RD
28238SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28239 PyObject *resultobj = 0;
28240 wxListEvent *arg1 = (wxListEvent *) 0 ;
28241 int result;
28242 void *argp1 = 0 ;
28243 int res1 = 0 ;
28244 PyObject *swig_obj[1] ;
28245
28246 if (!args) SWIG_fail;
28247 swig_obj[0] = args;
28248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28249 if (!SWIG_IsOK(res1)) {
28250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28251 }
28252 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28253 {
28254 PyThreadState* __tstate = wxPyBeginAllowThreads();
28255 result = (int)(arg1)->GetImage();
28256 wxPyEndAllowThreads(__tstate);
28257 if (PyErr_Occurred()) SWIG_fail;
28258 }
28259 resultobj = SWIG_From_int(static_cast< int >(result));
28260 return resultobj;
28261fail:
28262 return NULL;
d55e5bfc
RD
28263}
28264
28265
1bd55598
RD
28266SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28267 PyObject *resultobj = 0;
28268 wxListEvent *arg1 = (wxListEvent *) 0 ;
28269 long result;
28270 void *argp1 = 0 ;
28271 int res1 = 0 ;
28272 PyObject *swig_obj[1] ;
28273
28274 if (!args) SWIG_fail;
28275 swig_obj[0] = args;
28276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28277 if (!SWIG_IsOK(res1)) {
28278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28279 }
28280 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28281 {
28282 PyThreadState* __tstate = wxPyBeginAllowThreads();
28283 result = (long)(arg1)->GetData();
28284 wxPyEndAllowThreads(__tstate);
28285 if (PyErr_Occurred()) SWIG_fail;
28286 }
28287 resultobj = SWIG_From_long(static_cast< long >(result));
28288 return resultobj;
28289fail:
28290 return NULL;
d55e5bfc
RD
28291}
28292
28293
1bd55598
RD
28294SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28295 PyObject *resultobj = 0;
28296 wxListEvent *arg1 = (wxListEvent *) 0 ;
28297 long result;
28298 void *argp1 = 0 ;
28299 int res1 = 0 ;
28300 PyObject *swig_obj[1] ;
28301
28302 if (!args) SWIG_fail;
28303 swig_obj[0] = args;
28304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28305 if (!SWIG_IsOK(res1)) {
28306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28307 }
28308 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28309 {
28310 PyThreadState* __tstate = wxPyBeginAllowThreads();
28311 result = (long)(arg1)->GetMask();
28312 wxPyEndAllowThreads(__tstate);
28313 if (PyErr_Occurred()) SWIG_fail;
28314 }
28315 resultobj = SWIG_From_long(static_cast< long >(result));
28316 return resultobj;
28317fail:
28318 return NULL;
d55e5bfc
RD
28319}
28320
28321
1bd55598
RD
28322SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28323 PyObject *resultobj = 0;
28324 wxListEvent *arg1 = (wxListEvent *) 0 ;
28325 wxListItem *result = 0 ;
28326 void *argp1 = 0 ;
28327 int res1 = 0 ;
28328 PyObject *swig_obj[1] ;
28329
28330 if (!args) SWIG_fail;
28331 swig_obj[0] = args;
28332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28333 if (!SWIG_IsOK(res1)) {
28334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28335 }
28336 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28337 {
28338 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 28339 {
1bd55598
RD
28340 wxListItem const &_result_ref = (arg1)->GetItem();
28341 result = (wxListItem *) &_result_ref;
d55e5bfc 28342 }
1bd55598
RD
28343 wxPyEndAllowThreads(__tstate);
28344 if (PyErr_Occurred()) SWIG_fail;
28345 }
28346 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28347 return resultobj;
28348fail:
28349 return NULL;
d55e5bfc
RD
28350}
28351
28352
1bd55598
RD
28353SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28354 PyObject *resultobj = 0;
28355 wxListEvent *arg1 = (wxListEvent *) 0 ;
28356 long result;
28357 void *argp1 = 0 ;
28358 int res1 = 0 ;
28359 PyObject *swig_obj[1] ;
28360
28361 if (!args) SWIG_fail;
28362 swig_obj[0] = args;
28363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28364 if (!SWIG_IsOK(res1)) {
28365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28366 }
28367 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28368 {
28369 PyThreadState* __tstate = wxPyBeginAllowThreads();
28370 result = (long)(arg1)->GetCacheFrom();
28371 wxPyEndAllowThreads(__tstate);
28372 if (PyErr_Occurred()) SWIG_fail;
28373 }
28374 resultobj = SWIG_From_long(static_cast< long >(result));
28375 return resultobj;
28376fail:
28377 return NULL;
d55e5bfc
RD
28378}
28379
28380
1bd55598
RD
28381SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28382 PyObject *resultobj = 0;
28383 wxListEvent *arg1 = (wxListEvent *) 0 ;
28384 long result;
28385 void *argp1 = 0 ;
28386 int res1 = 0 ;
28387 PyObject *swig_obj[1] ;
28388
28389 if (!args) SWIG_fail;
28390 swig_obj[0] = args;
28391 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28392 if (!SWIG_IsOK(res1)) {
28393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28394 }
28395 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28396 {
28397 PyThreadState* __tstate = wxPyBeginAllowThreads();
28398 result = (long)(arg1)->GetCacheTo();
28399 wxPyEndAllowThreads(__tstate);
28400 if (PyErr_Occurred()) SWIG_fail;
28401 }
28402 resultobj = SWIG_From_long(static_cast< long >(result));
28403 return resultobj;
28404fail:
28405 return NULL;
7e08d4ef
RD
28406}
28407
28408
1bd55598
RD
28409SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28410 PyObject *resultobj = 0;
28411 wxListEvent *arg1 = (wxListEvent *) 0 ;
28412 bool result;
28413 void *argp1 = 0 ;
28414 int res1 = 0 ;
28415 PyObject *swig_obj[1] ;
28416
28417 if (!args) SWIG_fail;
28418 swig_obj[0] = args;
28419 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28420 if (!SWIG_IsOK(res1)) {
28421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28422 }
28423 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28424 {
28425 PyThreadState* __tstate = wxPyBeginAllowThreads();
28426 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28427 wxPyEndAllowThreads(__tstate);
28428 if (PyErr_Occurred()) SWIG_fail;
28429 }
28430 {
28431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28432 }
28433 return resultobj;
28434fail:
28435 return NULL;
28436}
28437
28438
28439SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28440 PyObject *resultobj = 0;
28441 wxListEvent *arg1 = (wxListEvent *) 0 ;
28442 bool arg2 ;
28443 void *argp1 = 0 ;
28444 int res1 = 0 ;
28445 bool val2 ;
28446 int ecode2 = 0 ;
28447 PyObject * obj0 = 0 ;
28448 PyObject * obj1 = 0 ;
28449 char * kwnames[] = {
28450 (char *) "self",(char *) "editCancelled", NULL
28451 };
28452
28453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28455 if (!SWIG_IsOK(res1)) {
28456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28457 }
28458 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28459 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28460 if (!SWIG_IsOK(ecode2)) {
28461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28462 }
28463 arg2 = static_cast< bool >(val2);
28464 {
28465 PyThreadState* __tstate = wxPyBeginAllowThreads();
28466 (arg1)->SetEditCanceled(arg2);
28467 wxPyEndAllowThreads(__tstate);
28468 if (PyErr_Occurred()) SWIG_fail;
28469 }
28470 resultobj = SWIG_Py_Void();
28471 return resultobj;
28472fail:
28473 return NULL;
28474}
28475
28476
28477SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28478 PyObject *obj;
28479 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28480 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28481 return SWIG_Py_Void();
28482}
28483
28484SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28485 return SWIG_Python_InitShadowInstance(args);
28486}
28487
28488SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28489 PyObject *resultobj = 0;
28490 wxWindow *arg1 = (wxWindow *) 0 ;
28491 int arg2 = (int) -1 ;
28492 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28493 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28494 wxSize const &arg4_defvalue = wxDefaultSize ;
28495 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28496 long arg5 = (long) wxLC_ICON ;
28497 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28498 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28499 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28500 wxString *arg7 = (wxString *) &arg7_defvalue ;
28501 wxPyListCtrl *result = 0 ;
28502 void *argp1 = 0 ;
28503 int res1 = 0 ;
28504 int val2 ;
28505 int ecode2 = 0 ;
28506 wxPoint temp3 ;
28507 wxSize temp4 ;
28508 long val5 ;
28509 int ecode5 = 0 ;
28510 void *argp6 = 0 ;
28511 int res6 = 0 ;
28512 bool temp7 = false ;
28513 PyObject * obj0 = 0 ;
28514 PyObject * obj1 = 0 ;
28515 PyObject * obj2 = 0 ;
28516 PyObject * obj3 = 0 ;
28517 PyObject * obj4 = 0 ;
28518 PyObject * obj5 = 0 ;
28519 PyObject * obj6 = 0 ;
28520 char * kwnames[] = {
28521 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28522 };
28523
28524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28526 if (!SWIG_IsOK(res1)) {
28527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28528 }
28529 arg1 = reinterpret_cast< wxWindow * >(argp1);
28530 if (obj1) {
28531 ecode2 = SWIG_AsVal_int(obj1, &val2);
28532 if (!SWIG_IsOK(ecode2)) {
28533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28534 }
28535 arg2 = static_cast< int >(val2);
28536 }
28537 if (obj2) {
7e08d4ef 28538 {
1bd55598
RD
28539 arg3 = &temp3;
28540 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7e08d4ef 28541 }
1bd55598
RD
28542 }
28543 if (obj3) {
7e08d4ef 28544 {
1bd55598
RD
28545 arg4 = &temp4;
28546 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28547 }
1bd55598
RD
28548 }
28549 if (obj4) {
28550 ecode5 = SWIG_AsVal_long(obj4, &val5);
28551 if (!SWIG_IsOK(ecode5)) {
28552 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28553 }
28554 arg5 = static_cast< long >(val5);
28555 }
28556 if (obj5) {
28557 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28558 if (!SWIG_IsOK(res6)) {
28559 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28560 }
1bd55598
RD
28561 if (!argp6) {
28562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
7e08d4ef 28563 }
1bd55598
RD
28564 arg6 = reinterpret_cast< wxValidator * >(argp6);
28565 }
28566 if (obj6) {
7e08d4ef 28567 {
1bd55598
RD
28568 arg7 = wxString_in_helper(obj6);
28569 if (arg7 == NULL) SWIG_fail;
28570 temp7 = true;
7e08d4ef 28571 }
1bd55598
RD
28572 }
28573 {
28574 if (!wxPyCheckForApp()) SWIG_fail;
28575 PyThreadState* __tstate = wxPyBeginAllowThreads();
28576 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28577 wxPyEndAllowThreads(__tstate);
28578 if (PyErr_Occurred()) SWIG_fail;
28579 }
28580 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28581 {
28582 if (temp7)
28583 delete arg7;
28584 }
28585 return resultobj;
28586fail:
28587 {
28588 if (temp7)
28589 delete arg7;
28590 }
28591 return NULL;
7e08d4ef
RD
28592}
28593
28594
1bd55598
RD
28595SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28596 PyObject *resultobj = 0;
28597 wxPyListCtrl *result = 0 ;
28598
28599 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28600 {
28601 if (!wxPyCheckForApp()) SWIG_fail;
28602 PyThreadState* __tstate = wxPyBeginAllowThreads();
28603 result = (wxPyListCtrl *)new wxPyListCtrl();
28604 wxPyEndAllowThreads(__tstate);
28605 if (PyErr_Occurred()) SWIG_fail;
28606 }
28607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28608 return resultobj;
28609fail:
28610 return NULL;
28611}
28612
28613
28614SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28615 PyObject *resultobj = 0;
28616 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28617 wxWindow *arg2 = (wxWindow *) 0 ;
28618 int arg3 = (int) -1 ;
28619 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28620 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28621 wxSize const &arg5_defvalue = wxDefaultSize ;
28622 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28623 long arg6 = (long) wxLC_ICON ;
28624 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28625 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28626 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28627 wxString *arg8 = (wxString *) &arg8_defvalue ;
28628 bool result;
28629 void *argp1 = 0 ;
28630 int res1 = 0 ;
28631 void *argp2 = 0 ;
28632 int res2 = 0 ;
28633 int val3 ;
28634 int ecode3 = 0 ;
28635 wxPoint temp4 ;
28636 wxSize temp5 ;
28637 long val6 ;
28638 int ecode6 = 0 ;
28639 void *argp7 = 0 ;
28640 int res7 = 0 ;
28641 bool temp8 = false ;
28642 PyObject * obj0 = 0 ;
28643 PyObject * obj1 = 0 ;
28644 PyObject * obj2 = 0 ;
28645 PyObject * obj3 = 0 ;
28646 PyObject * obj4 = 0 ;
28647 PyObject * obj5 = 0 ;
28648 PyObject * obj6 = 0 ;
28649 PyObject * obj7 = 0 ;
28650 char * kwnames[] = {
28651 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28652 };
28653
28654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28656 if (!SWIG_IsOK(res1)) {
28657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28658 }
28659 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28660 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28661 if (!SWIG_IsOK(res2)) {
28662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28663 }
28664 arg2 = reinterpret_cast< wxWindow * >(argp2);
28665 if (obj2) {
28666 ecode3 = SWIG_AsVal_int(obj2, &val3);
28667 if (!SWIG_IsOK(ecode3)) {
28668 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28669 }
28670 arg3 = static_cast< int >(val3);
28671 }
28672 if (obj3) {
7e08d4ef 28673 {
1bd55598
RD
28674 arg4 = &temp4;
28675 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7e08d4ef 28676 }
1bd55598
RD
28677 }
28678 if (obj4) {
7e08d4ef 28679 {
1bd55598
RD
28680 arg5 = &temp5;
28681 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7e08d4ef 28682 }
1bd55598
RD
28683 }
28684 if (obj5) {
28685 ecode6 = SWIG_AsVal_long(obj5, &val6);
28686 if (!SWIG_IsOK(ecode6)) {
28687 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28688 }
28689 arg6 = static_cast< long >(val6);
28690 }
28691 if (obj6) {
28692 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28693 if (!SWIG_IsOK(res7)) {
28694 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 28695 }
1bd55598
RD
28696 if (!argp7) {
28697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
7e08d4ef 28698 }
1bd55598
RD
28699 arg7 = reinterpret_cast< wxValidator * >(argp7);
28700 }
28701 if (obj7) {
7e08d4ef 28702 {
1bd55598
RD
28703 arg8 = wxString_in_helper(obj7);
28704 if (arg8 == NULL) SWIG_fail;
28705 temp8 = true;
7e08d4ef 28706 }
1bd55598
RD
28707 }
28708 {
28709 PyThreadState* __tstate = wxPyBeginAllowThreads();
28710 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28711 wxPyEndAllowThreads(__tstate);
28712 if (PyErr_Occurred()) SWIG_fail;
28713 }
28714 {
28715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28716 }
28717 {
28718 if (temp8)
28719 delete arg8;
28720 }
28721 return resultobj;
28722fail:
28723 {
28724 if (temp8)
28725 delete arg8;
28726 }
28727 return NULL;
28728}
28729
28730
28731SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28732 PyObject *resultobj = 0;
28733 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28734 PyObject *arg2 = (PyObject *) 0 ;
28735 PyObject *arg3 = (PyObject *) 0 ;
28736 void *argp1 = 0 ;
28737 int res1 = 0 ;
28738 PyObject * obj0 = 0 ;
28739 PyObject * obj1 = 0 ;
28740 PyObject * obj2 = 0 ;
28741 char * kwnames[] = {
28742 (char *) "self",(char *) "self",(char *) "_class", NULL
28743 };
28744
28745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28747 if (!SWIG_IsOK(res1)) {
28748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28749 }
28750 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28751 arg2 = obj1;
28752 arg3 = obj2;
28753 {
28754 PyThreadState* __tstate = wxPyBeginAllowThreads();
28755 (arg1)->_setCallbackInfo(arg2,arg3);
28756 wxPyEndAllowThreads(__tstate);
28757 if (PyErr_Occurred()) SWIG_fail;
28758 }
28759 resultobj = SWIG_Py_Void();
28760 return resultobj;
28761fail:
28762 return NULL;
28763}
28764
28765
28766SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28767 PyObject *resultobj = 0;
28768 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28769 int arg2 ;
28770 wxListItem *result = 0 ;
28771 void *argp1 = 0 ;
28772 int res1 = 0 ;
28773 int val2 ;
28774 int ecode2 = 0 ;
28775 PyObject * obj0 = 0 ;
28776 PyObject * obj1 = 0 ;
28777 char * kwnames[] = {
28778 (char *) "self",(char *) "col", NULL
28779 };
28780
28781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28783 if (!SWIG_IsOK(res1)) {
28784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28785 }
28786 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28787 ecode2 = SWIG_AsVal_int(obj1, &val2);
28788 if (!SWIG_IsOK(ecode2)) {
28789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28790 }
28791 arg2 = static_cast< int >(val2);
28792 {
28793 PyThreadState* __tstate = wxPyBeginAllowThreads();
28794 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28795 wxPyEndAllowThreads(__tstate);
28796 if (PyErr_Occurred()) SWIG_fail;
28797 }
28798 {
28799 resultobj = wxPyMake_wxObject(result, (bool)0);
28800 }
28801 return resultobj;
28802fail:
28803 return NULL;
28804}
28805
28806
28807SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28808 PyObject *resultobj = 0;
28809 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28810 int arg2 ;
28811 wxListItem *arg3 = 0 ;
28812 bool result;
28813 void *argp1 = 0 ;
28814 int res1 = 0 ;
28815 int val2 ;
28816 int ecode2 = 0 ;
28817 void *argp3 = 0 ;
28818 int res3 = 0 ;
28819 PyObject * obj0 = 0 ;
28820 PyObject * obj1 = 0 ;
28821 PyObject * obj2 = 0 ;
28822 char * kwnames[] = {
28823 (char *) "self",(char *) "col",(char *) "item", NULL
28824 };
28825
28826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28828 if (!SWIG_IsOK(res1)) {
28829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28830 }
28831 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28832 ecode2 = SWIG_AsVal_int(obj1, &val2);
28833 if (!SWIG_IsOK(ecode2)) {
28834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28835 }
28836 arg2 = static_cast< int >(val2);
28837 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28838 if (!SWIG_IsOK(res3)) {
28839 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28840 }
28841 if (!argp3) {
28842 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28843 }
28844 arg3 = reinterpret_cast< wxListItem * >(argp3);
28845 {
28846 PyThreadState* __tstate = wxPyBeginAllowThreads();
28847 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28848 wxPyEndAllowThreads(__tstate);
28849 if (PyErr_Occurred()) SWIG_fail;
28850 }
28851 {
28852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28853 }
28854 return resultobj;
28855fail:
28856 return NULL;
28857}
28858
28859
28860SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28861 PyObject *resultobj = 0;
28862 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28863 int arg2 ;
28864 int result;
28865 void *argp1 = 0 ;
28866 int res1 = 0 ;
28867 int val2 ;
28868 int ecode2 = 0 ;
28869 PyObject * obj0 = 0 ;
28870 PyObject * obj1 = 0 ;
28871 char * kwnames[] = {
28872 (char *) "self",(char *) "col", NULL
28873 };
28874
28875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28877 if (!SWIG_IsOK(res1)) {
28878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28879 }
28880 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28881 ecode2 = SWIG_AsVal_int(obj1, &val2);
28882 if (!SWIG_IsOK(ecode2)) {
28883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28884 }
28885 arg2 = static_cast< int >(val2);
28886 {
28887 PyThreadState* __tstate = wxPyBeginAllowThreads();
28888 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28889 wxPyEndAllowThreads(__tstate);
28890 if (PyErr_Occurred()) SWIG_fail;
28891 }
28892 resultobj = SWIG_From_int(static_cast< int >(result));
28893 return resultobj;
28894fail:
28895 return NULL;
28896}
28897
28898
28899SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28900 PyObject *resultobj = 0;
28901 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28902 int arg2 ;
28903 int arg3 ;
28904 bool result;
28905 void *argp1 = 0 ;
28906 int res1 = 0 ;
28907 int val2 ;
28908 int ecode2 = 0 ;
28909 int val3 ;
28910 int ecode3 = 0 ;
28911 PyObject * obj0 = 0 ;
28912 PyObject * obj1 = 0 ;
28913 PyObject * obj2 = 0 ;
28914 char * kwnames[] = {
28915 (char *) "self",(char *) "col",(char *) "width", NULL
28916 };
28917
28918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) 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_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28922 }
28923 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28924 ecode2 = SWIG_AsVal_int(obj1, &val2);
28925 if (!SWIG_IsOK(ecode2)) {
28926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28927 }
28928 arg2 = static_cast< int >(val2);
28929 ecode3 = SWIG_AsVal_int(obj2, &val3);
28930 if (!SWIG_IsOK(ecode3)) {
28931 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28932 }
28933 arg3 = static_cast< int >(val3);
28934 {
28935 PyThreadState* __tstate = wxPyBeginAllowThreads();
28936 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28937 wxPyEndAllowThreads(__tstate);
28938 if (PyErr_Occurred()) SWIG_fail;
28939 }
28940 {
28941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28942 }
28943 return resultobj;
28944fail:
28945 return NULL;
7e08d4ef
RD
28946}
28947
28948
1bd55598
RD
28949SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28950 PyObject *resultobj = 0;
28951 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28952 int result;
28953 void *argp1 = 0 ;
28954 int res1 = 0 ;
28955 PyObject *swig_obj[1] ;
28956
28957 if (!args) SWIG_fail;
28958 swig_obj[0] = args;
28959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28960 if (!SWIG_IsOK(res1)) {
28961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28962 }
28963 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28964 {
28965 PyThreadState* __tstate = wxPyBeginAllowThreads();
28966 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28967 wxPyEndAllowThreads(__tstate);
28968 if (PyErr_Occurred()) SWIG_fail;
28969 }
28970 resultobj = SWIG_From_int(static_cast< int >(result));
28971 return resultobj;
28972fail:
28973 return NULL;
7e08d4ef
RD
28974}
28975
28976
1bd55598
RD
28977SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28978 PyObject *resultobj = 0;
28979 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28980 wxRect result;
28981 void *argp1 = 0 ;
28982 int res1 = 0 ;
28983 PyObject *swig_obj[1] ;
28984
28985 if (!args) SWIG_fail;
28986 swig_obj[0] = args;
28987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28988 if (!SWIG_IsOK(res1)) {
28989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28990 }
28991 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28992 {
28993 PyThreadState* __tstate = wxPyBeginAllowThreads();
28994 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28995 wxPyEndAllowThreads(__tstate);
28996 if (PyErr_Occurred()) SWIG_fail;
28997 }
28998 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28999 return resultobj;
29000fail:
29001 return NULL;
7e08d4ef
RD
29002}
29003
29004
1bd55598
RD
29005SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29006 PyObject *resultobj = 0;
29007 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29008 wxTextCtrl *result = 0 ;
29009 void *argp1 = 0 ;
29010 int res1 = 0 ;
29011 PyObject *swig_obj[1] ;
29012
29013 if (!args) SWIG_fail;
29014 swig_obj[0] = args;
29015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29016 if (!SWIG_IsOK(res1)) {
29017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29018 }
29019 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29020 {
29021 PyThreadState* __tstate = wxPyBeginAllowThreads();
29022 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
29023 wxPyEndAllowThreads(__tstate);
29024 if (PyErr_Occurred()) SWIG_fail;
29025 }
29026 {
29027 resultobj = wxPyMake_wxObject(result, 0);
29028 }
29029 return resultobj;
29030fail:
29031 return NULL;
29032}
29033
29034
29035SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29036 PyObject *resultobj = 0;
29037 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29038 long arg2 ;
29039 int arg3 = (int) 0 ;
29040 wxListItem *result = 0 ;
29041 void *argp1 = 0 ;
29042 int res1 = 0 ;
29043 long val2 ;
29044 int ecode2 = 0 ;
29045 int val3 ;
29046 int ecode3 = 0 ;
29047 PyObject * obj0 = 0 ;
29048 PyObject * obj1 = 0 ;
29049 PyObject * obj2 = 0 ;
29050 char * kwnames[] = {
29051 (char *) "self",(char *) "itemId",(char *) "col", NULL
29052 };
29053
29054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29056 if (!SWIG_IsOK(res1)) {
29057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29058 }
29059 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29060 ecode2 = SWIG_AsVal_long(obj1, &val2);
29061 if (!SWIG_IsOK(ecode2)) {
29062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
29063 }
29064 arg2 = static_cast< long >(val2);
29065 if (obj2) {
29066 ecode3 = SWIG_AsVal_int(obj2, &val3);
29067 if (!SWIG_IsOK(ecode3)) {
29068 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
29069 }
29070 arg3 = static_cast< int >(val3);
29071 }
29072 {
29073 PyThreadState* __tstate = wxPyBeginAllowThreads();
29074 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
29075 wxPyEndAllowThreads(__tstate);
29076 if (PyErr_Occurred()) SWIG_fail;
29077 }
29078 {
29079 resultobj = wxPyMake_wxObject(result, (bool)0);
29080 }
29081 return resultobj;
29082fail:
29083 return NULL;
29084}
29085
29086
29087SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29088 PyObject *resultobj = 0;
29089 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29090 wxListItem *arg2 = 0 ;
29091 bool result;
29092 void *argp1 = 0 ;
29093 int res1 = 0 ;
29094 void *argp2 = 0 ;
29095 int res2 = 0 ;
29096 PyObject * obj0 = 0 ;
29097 PyObject * obj1 = 0 ;
29098 char * kwnames[] = {
29099 (char *) "self",(char *) "info", NULL
29100 };
29101
29102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
29103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29104 if (!SWIG_IsOK(res1)) {
29105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29106 }
29107 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29108 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
29109 if (!SWIG_IsOK(res2)) {
29110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29111 }
29112 if (!argp2) {
29113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
29114 }
29115 arg2 = reinterpret_cast< wxListItem * >(argp2);
29116 {
29117 PyThreadState* __tstate = wxPyBeginAllowThreads();
29118 result = (bool)(arg1)->SetItem(*arg2);
29119 wxPyEndAllowThreads(__tstate);
29120 if (PyErr_Occurred()) SWIG_fail;
29121 }
29122 {
29123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29124 }
29125 return resultobj;
29126fail:
29127 return NULL;
29128}
29129
29130
29131SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29132 PyObject *resultobj = 0;
29133 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29134 long arg2 ;
29135 int arg3 ;
29136 wxString *arg4 = 0 ;
29137 int arg5 = (int) -1 ;
29138 long result;
29139 void *argp1 = 0 ;
29140 int res1 = 0 ;
29141 long val2 ;
29142 int ecode2 = 0 ;
29143 int val3 ;
29144 int ecode3 = 0 ;
29145 bool temp4 = false ;
29146 int val5 ;
29147 int ecode5 = 0 ;
29148 PyObject * obj0 = 0 ;
29149 PyObject * obj1 = 0 ;
29150 PyObject * obj2 = 0 ;
29151 PyObject * obj3 = 0 ;
29152 PyObject * obj4 = 0 ;
29153 char * kwnames[] = {
29154 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
29155 };
29156
29157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29159 if (!SWIG_IsOK(res1)) {
29160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29161 }
29162 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29163 ecode2 = SWIG_AsVal_long(obj1, &val2);
29164 if (!SWIG_IsOK(ecode2)) {
29165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29166 }
29167 arg2 = static_cast< long >(val2);
29168 ecode3 = SWIG_AsVal_int(obj2, &val3);
29169 if (!SWIG_IsOK(ecode3)) {
29170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29171 }
29172 arg3 = static_cast< int >(val3);
29173 {
29174 arg4 = wxString_in_helper(obj3);
29175 if (arg4 == NULL) SWIG_fail;
29176 temp4 = true;
29177 }
29178 if (obj4) {
29179 ecode5 = SWIG_AsVal_int(obj4, &val5);
29180 if (!SWIG_IsOK(ecode5)) {
29181 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29182 }
29183 arg5 = static_cast< int >(val5);
29184 }
29185 {
29186 PyThreadState* __tstate = wxPyBeginAllowThreads();
29187 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29188 wxPyEndAllowThreads(__tstate);
29189 if (PyErr_Occurred()) SWIG_fail;
29190 }
29191 resultobj = SWIG_From_long(static_cast< long >(result));
29192 {
29193 if (temp4)
29194 delete arg4;
29195 }
29196 return resultobj;
29197fail:
29198 {
29199 if (temp4)
29200 delete arg4;
29201 }
29202 return NULL;
29203}
29204
29205
29206SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29207 PyObject *resultobj = 0;
29208 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29209 long arg2 ;
29210 long arg3 ;
29211 int result;
29212 void *argp1 = 0 ;
29213 int res1 = 0 ;
29214 long val2 ;
29215 int ecode2 = 0 ;
29216 long val3 ;
29217 int ecode3 = 0 ;
29218 PyObject * obj0 = 0 ;
29219 PyObject * obj1 = 0 ;
29220 PyObject * obj2 = 0 ;
29221 char * kwnames[] = {
29222 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29223 };
29224
29225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29227 if (!SWIG_IsOK(res1)) {
29228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29229 }
29230 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29231 ecode2 = SWIG_AsVal_long(obj1, &val2);
29232 if (!SWIG_IsOK(ecode2)) {
29233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29234 }
29235 arg2 = static_cast< long >(val2);
29236 ecode3 = SWIG_AsVal_long(obj2, &val3);
29237 if (!SWIG_IsOK(ecode3)) {
29238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29239 }
29240 arg3 = static_cast< long >(val3);
29241 {
29242 PyThreadState* __tstate = wxPyBeginAllowThreads();
29243 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29244 wxPyEndAllowThreads(__tstate);
29245 if (PyErr_Occurred()) SWIG_fail;
29246 }
29247 resultobj = SWIG_From_int(static_cast< int >(result));
29248 return resultobj;
29249fail:
29250 return NULL;
29251}
29252
29253
29254SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29255 PyObject *resultobj = 0;
29256 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29257 long arg2 ;
29258 long arg3 ;
29259 long arg4 ;
29260 bool result;
29261 void *argp1 = 0 ;
29262 int res1 = 0 ;
29263 long val2 ;
29264 int ecode2 = 0 ;
29265 long val3 ;
29266 int ecode3 = 0 ;
29267 long val4 ;
29268 int ecode4 = 0 ;
29269 PyObject * obj0 = 0 ;
29270 PyObject * obj1 = 0 ;
29271 PyObject * obj2 = 0 ;
29272 PyObject * obj3 = 0 ;
29273 char * kwnames[] = {
29274 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29275 };
29276
29277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29279 if (!SWIG_IsOK(res1)) {
29280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29281 }
29282 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29283 ecode2 = SWIG_AsVal_long(obj1, &val2);
29284 if (!SWIG_IsOK(ecode2)) {
29285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29286 }
29287 arg2 = static_cast< long >(val2);
29288 ecode3 = SWIG_AsVal_long(obj2, &val3);
29289 if (!SWIG_IsOK(ecode3)) {
29290 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29291 }
29292 arg3 = static_cast< long >(val3);
29293 ecode4 = SWIG_AsVal_long(obj3, &val4);
29294 if (!SWIG_IsOK(ecode4)) {
29295 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29296 }
29297 arg4 = static_cast< long >(val4);
29298 {
29299 PyThreadState* __tstate = wxPyBeginAllowThreads();
29300 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29301 wxPyEndAllowThreads(__tstate);
29302 if (PyErr_Occurred()) SWIG_fail;
29303 }
29304 {
29305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29306 }
29307 return resultobj;
29308fail:
29309 return NULL;
29310}
29311
29312
29313SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29314 PyObject *resultobj = 0;
29315 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29316 long arg2 ;
29317 int arg3 ;
29318 int arg4 = (int) -1 ;
29319 bool result;
29320 void *argp1 = 0 ;
29321 int res1 = 0 ;
29322 long val2 ;
29323 int ecode2 = 0 ;
29324 int val3 ;
29325 int ecode3 = 0 ;
29326 int val4 ;
29327 int ecode4 = 0 ;
29328 PyObject * obj0 = 0 ;
29329 PyObject * obj1 = 0 ;
29330 PyObject * obj2 = 0 ;
29331 PyObject * obj3 = 0 ;
29332 char * kwnames[] = {
29333 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29334 };
29335
29336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29338 if (!SWIG_IsOK(res1)) {
29339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29340 }
29341 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29342 ecode2 = SWIG_AsVal_long(obj1, &val2);
29343 if (!SWIG_IsOK(ecode2)) {
29344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29345 }
29346 arg2 = static_cast< long >(val2);
29347 ecode3 = SWIG_AsVal_int(obj2, &val3);
29348 if (!SWIG_IsOK(ecode3)) {
29349 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29350 }
29351 arg3 = static_cast< int >(val3);
29352 if (obj3) {
29353 ecode4 = SWIG_AsVal_int(obj3, &val4);
29354 if (!SWIG_IsOK(ecode4)) {
29355 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29356 }
29357 arg4 = static_cast< int >(val4);
29358 }
29359 {
29360 PyThreadState* __tstate = wxPyBeginAllowThreads();
29361 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29362 wxPyEndAllowThreads(__tstate);
29363 if (PyErr_Occurred()) SWIG_fail;
29364 }
29365 {
29366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29367 }
29368 return resultobj;
29369fail:
29370 return NULL;
29371}
29372
29373
29374SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29375 PyObject *resultobj = 0;
29376 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29377 long arg2 ;
29378 long arg3 ;
29379 int arg4 ;
29380 bool result;
29381 void *argp1 = 0 ;
29382 int res1 = 0 ;
29383 long val2 ;
29384 int ecode2 = 0 ;
29385 long val3 ;
29386 int ecode3 = 0 ;
29387 int val4 ;
29388 int ecode4 = 0 ;
29389 PyObject * obj0 = 0 ;
29390 PyObject * obj1 = 0 ;
29391 PyObject * obj2 = 0 ;
29392 PyObject * obj3 = 0 ;
29393 char * kwnames[] = {
29394 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29395 };
29396
29397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29399 if (!SWIG_IsOK(res1)) {
29400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29401 }
29402 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29403 ecode2 = SWIG_AsVal_long(obj1, &val2);
29404 if (!SWIG_IsOK(ecode2)) {
29405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29406 }
29407 arg2 = static_cast< long >(val2);
29408 ecode3 = SWIG_AsVal_long(obj2, &val3);
29409 if (!SWIG_IsOK(ecode3)) {
29410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29411 }
29412 arg3 = static_cast< long >(val3);
29413 ecode4 = SWIG_AsVal_int(obj3, &val4);
29414 if (!SWIG_IsOK(ecode4)) {
29415 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29416 }
29417 arg4 = static_cast< int >(val4);
29418 {
29419 PyThreadState* __tstate = wxPyBeginAllowThreads();
29420 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29421 wxPyEndAllowThreads(__tstate);
29422 if (PyErr_Occurred()) SWIG_fail;
29423 }
29424 {
29425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29426 }
29427 return resultobj;
29428fail:
29429 return NULL;
29430}
29431
29432
29433SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29434 PyObject *resultobj = 0;
29435 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29436 long arg2 ;
29437 wxString result;
29438 void *argp1 = 0 ;
29439 int res1 = 0 ;
29440 long val2 ;
29441 int ecode2 = 0 ;
29442 PyObject * obj0 = 0 ;
29443 PyObject * obj1 = 0 ;
29444 char * kwnames[] = {
29445 (char *) "self",(char *) "item", NULL
29446 };
29447
29448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29450 if (!SWIG_IsOK(res1)) {
29451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29452 }
29453 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29454 ecode2 = SWIG_AsVal_long(obj1, &val2);
29455 if (!SWIG_IsOK(ecode2)) {
29456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29457 }
29458 arg2 = static_cast< long >(val2);
29459 {
29460 PyThreadState* __tstate = wxPyBeginAllowThreads();
29461 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29462 wxPyEndAllowThreads(__tstate);
29463 if (PyErr_Occurred()) SWIG_fail;
29464 }
29465 {
29466#if wxUSE_UNICODE
29467 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29468#else
29469 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29470#endif
29471 }
29472 return resultobj;
29473fail:
29474 return NULL;
29475}
29476
29477
29478SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29479 PyObject *resultobj = 0;
29480 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29481 long arg2 ;
29482 wxString *arg3 = 0 ;
29483 void *argp1 = 0 ;
29484 int res1 = 0 ;
29485 long val2 ;
29486 int ecode2 = 0 ;
29487 bool temp3 = false ;
29488 PyObject * obj0 = 0 ;
29489 PyObject * obj1 = 0 ;
29490 PyObject * obj2 = 0 ;
29491 char * kwnames[] = {
29492 (char *) "self",(char *) "item",(char *) "str", NULL
29493 };
29494
29495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29497 if (!SWIG_IsOK(res1)) {
29498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29499 }
29500 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29501 ecode2 = SWIG_AsVal_long(obj1, &val2);
29502 if (!SWIG_IsOK(ecode2)) {
29503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29504 }
29505 arg2 = static_cast< long >(val2);
29506 {
29507 arg3 = wxString_in_helper(obj2);
29508 if (arg3 == NULL) SWIG_fail;
29509 temp3 = true;
29510 }
29511 {
29512 PyThreadState* __tstate = wxPyBeginAllowThreads();
29513 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29514 wxPyEndAllowThreads(__tstate);
29515 if (PyErr_Occurred()) SWIG_fail;
29516 }
29517 resultobj = SWIG_Py_Void();
29518 {
29519 if (temp3)
29520 delete arg3;
29521 }
29522 return resultobj;
29523fail:
29524 {
29525 if (temp3)
29526 delete arg3;
29527 }
29528 return NULL;
29529}
29530
29531
29532SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29533 PyObject *resultobj = 0;
29534 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29535 long arg2 ;
29536 long result;
29537 void *argp1 = 0 ;
29538 int res1 = 0 ;
29539 long val2 ;
29540 int ecode2 = 0 ;
29541 PyObject * obj0 = 0 ;
29542 PyObject * obj1 = 0 ;
29543 char * kwnames[] = {
29544 (char *) "self",(char *) "item", NULL
29545 };
29546
29547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29549 if (!SWIG_IsOK(res1)) {
29550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29551 }
29552 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29553 ecode2 = SWIG_AsVal_long(obj1, &val2);
29554 if (!SWIG_IsOK(ecode2)) {
29555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29556 }
29557 arg2 = static_cast< long >(val2);
29558 {
29559 PyThreadState* __tstate = wxPyBeginAllowThreads();
29560 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29561 wxPyEndAllowThreads(__tstate);
29562 if (PyErr_Occurred()) SWIG_fail;
29563 }
29564 resultobj = SWIG_From_long(static_cast< long >(result));
29565 return resultobj;
29566fail:
29567 return NULL;
29568}
29569
29570
29571SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29572 PyObject *resultobj = 0;
29573 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29574 long arg2 ;
29575 long arg3 ;
29576 bool result;
29577 void *argp1 = 0 ;
29578 int res1 = 0 ;
29579 long val2 ;
29580 int ecode2 = 0 ;
29581 long val3 ;
29582 int ecode3 = 0 ;
29583 PyObject * obj0 = 0 ;
29584 PyObject * obj1 = 0 ;
29585 PyObject * obj2 = 0 ;
29586 char * kwnames[] = {
29587 (char *) "self",(char *) "item",(char *) "data", NULL
29588 };
29589
29590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29592 if (!SWIG_IsOK(res1)) {
29593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29594 }
29595 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29596 ecode2 = SWIG_AsVal_long(obj1, &val2);
29597 if (!SWIG_IsOK(ecode2)) {
29598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29599 }
29600 arg2 = static_cast< long >(val2);
29601 ecode3 = SWIG_AsVal_long(obj2, &val3);
29602 if (!SWIG_IsOK(ecode3)) {
29603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29604 }
29605 arg3 = static_cast< long >(val3);
29606 {
29607 PyThreadState* __tstate = wxPyBeginAllowThreads();
29608 result = (bool)(arg1)->SetItemData(arg2,arg3);
29609 wxPyEndAllowThreads(__tstate);
29610 if (PyErr_Occurred()) SWIG_fail;
29611 }
29612 {
29613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29614 }
29615 return resultobj;
29616fail:
29617 return NULL;
29618}
29619
29620
29621SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29622 PyObject *resultobj = 0;
29623 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29624 long arg2 ;
29625 wxPoint result;
29626 void *argp1 = 0 ;
29627 int res1 = 0 ;
29628 long val2 ;
29629 int ecode2 = 0 ;
29630 PyObject * obj0 = 0 ;
29631 PyObject * obj1 = 0 ;
29632 char * kwnames[] = {
29633 (char *) "self",(char *) "item", NULL
29634 };
29635
29636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29638 if (!SWIG_IsOK(res1)) {
29639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29640 }
29641 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29642 ecode2 = SWIG_AsVal_long(obj1, &val2);
29643 if (!SWIG_IsOK(ecode2)) {
29644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29645 }
29646 arg2 = static_cast< long >(val2);
29647 {
29648 PyThreadState* __tstate = wxPyBeginAllowThreads();
29649 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29650 wxPyEndAllowThreads(__tstate);
29651 if (PyErr_Occurred()) SWIG_fail;
29652 }
29653 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29654 return resultobj;
29655fail:
29656 return NULL;
29657}
29658
29659
29660SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29661 PyObject *resultobj = 0;
29662 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29663 long arg2 ;
29664 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29665 wxRect result;
29666 void *argp1 = 0 ;
29667 int res1 = 0 ;
29668 long val2 ;
29669 int ecode2 = 0 ;
29670 int val3 ;
29671 int ecode3 = 0 ;
29672 PyObject * obj0 = 0 ;
29673 PyObject * obj1 = 0 ;
29674 PyObject * obj2 = 0 ;
29675 char * kwnames[] = {
29676 (char *) "self",(char *) "item",(char *) "code", NULL
29677 };
29678
29679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29681 if (!SWIG_IsOK(res1)) {
29682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29683 }
29684 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29685 ecode2 = SWIG_AsVal_long(obj1, &val2);
29686 if (!SWIG_IsOK(ecode2)) {
29687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29688 }
29689 arg2 = static_cast< long >(val2);
29690 if (obj2) {
29691 ecode3 = SWIG_AsVal_int(obj2, &val3);
29692 if (!SWIG_IsOK(ecode3)) {
29693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29694 }
29695 arg3 = static_cast< int >(val3);
29696 }
29697 {
29698 PyThreadState* __tstate = wxPyBeginAllowThreads();
29699 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29700 wxPyEndAllowThreads(__tstate);
29701 if (PyErr_Occurred()) SWIG_fail;
29702 }
29703 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29704 return resultobj;
29705fail:
29706 return NULL;
29707}
29708
29709
29710SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29711 PyObject *resultobj = 0;
29712 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29713 long arg2 ;
29714 wxPoint *arg3 = 0 ;
29715 bool result;
29716 void *argp1 = 0 ;
29717 int res1 = 0 ;
29718 long val2 ;
29719 int ecode2 = 0 ;
29720 wxPoint temp3 ;
29721 PyObject * obj0 = 0 ;
29722 PyObject * obj1 = 0 ;
29723 PyObject * obj2 = 0 ;
29724 char * kwnames[] = {
29725 (char *) "self",(char *) "item",(char *) "pos", NULL
29726 };
29727
29728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29730 if (!SWIG_IsOK(res1)) {
29731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29732 }
29733 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29734 ecode2 = SWIG_AsVal_long(obj1, &val2);
29735 if (!SWIG_IsOK(ecode2)) {
29736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29737 }
29738 arg2 = static_cast< long >(val2);
29739 {
29740 arg3 = &temp3;
29741 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29742 }
29743 {
29744 PyThreadState* __tstate = wxPyBeginAllowThreads();
29745 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29746 wxPyEndAllowThreads(__tstate);
29747 if (PyErr_Occurred()) SWIG_fail;
29748 }
29749 {
29750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29751 }
29752 return resultobj;
29753fail:
29754 return NULL;
7e08d4ef
RD
29755}
29756
29757
1bd55598
RD
29758SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29759 PyObject *resultobj = 0;
29760 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29761 int result;
29762 void *argp1 = 0 ;
29763 int res1 = 0 ;
29764 PyObject *swig_obj[1] ;
29765
29766 if (!args) SWIG_fail;
29767 swig_obj[0] = args;
29768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29769 if (!SWIG_IsOK(res1)) {
29770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29771 }
29772 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29773 {
29774 PyThreadState* __tstate = wxPyBeginAllowThreads();
29775 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29776 wxPyEndAllowThreads(__tstate);
29777 if (PyErr_Occurred()) SWIG_fail;
29778 }
29779 resultobj = SWIG_From_int(static_cast< int >(result));
29780 return resultobj;
29781fail:
29782 return NULL;
7e08d4ef
RD
29783}
29784
29785
1bd55598
RD
29786SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29787 PyObject *resultobj = 0;
29788 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29789 int result;
29790 void *argp1 = 0 ;
29791 int res1 = 0 ;
29792 PyObject *swig_obj[1] ;
29793
29794 if (!args) SWIG_fail;
29795 swig_obj[0] = args;
29796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29797 if (!SWIG_IsOK(res1)) {
29798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29799 }
29800 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29801 {
29802 PyThreadState* __tstate = wxPyBeginAllowThreads();
29803 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29804 wxPyEndAllowThreads(__tstate);
29805 if (PyErr_Occurred()) SWIG_fail;
29806 }
29807 resultobj = SWIG_From_int(static_cast< int >(result));
29808 return resultobj;
29809fail:
29810 return NULL;
7e08d4ef
RD
29811}
29812
29813
1bd55598
RD
29814SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29815 PyObject *resultobj = 0;
29816 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29817 wxSize result;
29818 void *argp1 = 0 ;
29819 int res1 = 0 ;
29820 PyObject *swig_obj[1] ;
29821
29822 if (!args) SWIG_fail;
29823 swig_obj[0] = args;
29824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29825 if (!SWIG_IsOK(res1)) {
29826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29827 }
29828 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29829 {
29830 PyThreadState* __tstate = wxPyBeginAllowThreads();
29831 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29832 wxPyEndAllowThreads(__tstate);
29833 if (PyErr_Occurred()) SWIG_fail;
29834 }
29835 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29836 return resultobj;
29837fail:
29838 return NULL;
29839}
29840
29841
29842SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29843 PyObject *resultobj = 0;
29844 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29845 int arg2 ;
29846 bool arg3 = (bool) false ;
29847 void *argp1 = 0 ;
29848 int res1 = 0 ;
29849 int val2 ;
29850 int ecode2 = 0 ;
29851 bool val3 ;
29852 int ecode3 = 0 ;
29853 PyObject * obj0 = 0 ;
29854 PyObject * obj1 = 0 ;
29855 PyObject * obj2 = 0 ;
29856 char * kwnames[] = {
29857 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29858 };
29859
29860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29862 if (!SWIG_IsOK(res1)) {
29863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29864 }
29865 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29866 ecode2 = SWIG_AsVal_int(obj1, &val2);
29867 if (!SWIG_IsOK(ecode2)) {
29868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29869 }
29870 arg2 = static_cast< int >(val2);
29871 if (obj2) {
29872 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29873 if (!SWIG_IsOK(ecode3)) {
29874 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29875 }
29876 arg3 = static_cast< bool >(val3);
29877 }
29878 {
29879 PyThreadState* __tstate = wxPyBeginAllowThreads();
29880 (arg1)->SetItemSpacing(arg2,arg3);
29881 wxPyEndAllowThreads(__tstate);
29882 if (PyErr_Occurred()) SWIG_fail;
29883 }
29884 resultobj = SWIG_Py_Void();
29885 return resultobj;
29886fail:
29887 return NULL;
7e08d4ef
RD
29888}
29889
29890
1bd55598
RD
29891SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29892 PyObject *resultobj = 0;
29893 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29894 int result;
29895 void *argp1 = 0 ;
29896 int res1 = 0 ;
29897 PyObject *swig_obj[1] ;
29898
29899 if (!args) SWIG_fail;
29900 swig_obj[0] = args;
29901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29902 if (!SWIG_IsOK(res1)) {
29903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29904 }
29905 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29906 {
29907 PyThreadState* __tstate = wxPyBeginAllowThreads();
29908 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29909 wxPyEndAllowThreads(__tstate);
29910 if (PyErr_Occurred()) SWIG_fail;
29911 }
29912 resultobj = SWIG_From_int(static_cast< int >(result));
29913 return resultobj;
29914fail:
29915 return NULL;
7e08d4ef
RD
29916}
29917
29918
1bd55598
RD
29919SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29920 PyObject *resultobj = 0;
29921 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29922 wxColour result;
29923 void *argp1 = 0 ;
29924 int res1 = 0 ;
29925 PyObject *swig_obj[1] ;
29926
29927 if (!args) SWIG_fail;
29928 swig_obj[0] = args;
29929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29930 if (!SWIG_IsOK(res1)) {
29931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29932 }
29933 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29934 {
29935 PyThreadState* __tstate = wxPyBeginAllowThreads();
29936 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29937 wxPyEndAllowThreads(__tstate);
29938 if (PyErr_Occurred()) SWIG_fail;
29939 }
29940 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29941 return resultobj;
29942fail:
29943 return NULL;
29944}
29945
29946
29947SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29948 PyObject *resultobj = 0;
29949 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29950 wxColour *arg2 = 0 ;
29951 void *argp1 = 0 ;
29952 int res1 = 0 ;
29953 wxColour temp2 ;
29954 PyObject * obj0 = 0 ;
29955 PyObject * obj1 = 0 ;
29956 char * kwnames[] = {
29957 (char *) "self",(char *) "col", NULL
29958 };
29959
29960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29962 if (!SWIG_IsOK(res1)) {
29963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29964 }
29965 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29966 {
29967 arg2 = &temp2;
29968 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29969 }
29970 {
29971 PyThreadState* __tstate = wxPyBeginAllowThreads();
29972 (arg1)->SetTextColour((wxColour const &)*arg2);
29973 wxPyEndAllowThreads(__tstate);
29974 if (PyErr_Occurred()) SWIG_fail;
29975 }
29976 resultobj = SWIG_Py_Void();
29977 return resultobj;
29978fail:
29979 return NULL;
7e08d4ef
RD
29980}
29981
29982
1bd55598
RD
29983SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29984 PyObject *resultobj = 0;
29985 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29986 long result;
29987 void *argp1 = 0 ;
29988 int res1 = 0 ;
29989 PyObject *swig_obj[1] ;
29990
29991 if (!args) SWIG_fail;
29992 swig_obj[0] = args;
29993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29994 if (!SWIG_IsOK(res1)) {
29995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29996 }
29997 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29998 {
29999 PyThreadState* __tstate = wxPyBeginAllowThreads();
30000 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
30001 wxPyEndAllowThreads(__tstate);
30002 if (PyErr_Occurred()) SWIG_fail;
30003 }
30004 resultobj = SWIG_From_long(static_cast< long >(result));
30005 return resultobj;
30006fail:
30007 return NULL;
30008}
30009
30010
30011SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30012 PyObject *resultobj = 0;
30013 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30014 long arg2 ;
30015 bool arg3 = (bool) true ;
30016 void *argp1 = 0 ;
30017 int res1 = 0 ;
30018 long val2 ;
30019 int ecode2 = 0 ;
30020 bool val3 ;
30021 int ecode3 = 0 ;
30022 PyObject * obj0 = 0 ;
30023 PyObject * obj1 = 0 ;
30024 PyObject * obj2 = 0 ;
30025 char * kwnames[] = {
30026 (char *) "self",(char *) "style",(char *) "add", NULL
30027 };
30028
30029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30031 if (!SWIG_IsOK(res1)) {
30032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30033 }
30034 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30035 ecode2 = SWIG_AsVal_long(obj1, &val2);
30036 if (!SWIG_IsOK(ecode2)) {
30037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
30038 }
30039 arg2 = static_cast< long >(val2);
30040 if (obj2) {
30041 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30042 if (!SWIG_IsOK(ecode3)) {
30043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
30044 }
30045 arg3 = static_cast< bool >(val3);
30046 }
30047 {
30048 PyThreadState* __tstate = wxPyBeginAllowThreads();
30049 (arg1)->SetSingleStyle(arg2,arg3);
30050 wxPyEndAllowThreads(__tstate);
30051 if (PyErr_Occurred()) SWIG_fail;
30052 }
30053 resultobj = SWIG_Py_Void();
30054 return resultobj;
30055fail:
30056 return NULL;
30057}
30058
30059
30060SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30061 PyObject *resultobj = 0;
30062 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30063 long arg2 ;
30064 int arg3 = (int) wxLIST_NEXT_ALL ;
30065 int arg4 = (int) wxLIST_STATE_DONTCARE ;
30066 long result;
30067 void *argp1 = 0 ;
30068 int res1 = 0 ;
30069 long val2 ;
30070 int ecode2 = 0 ;
30071 int val3 ;
30072 int ecode3 = 0 ;
30073 int val4 ;
30074 int ecode4 = 0 ;
30075 PyObject * obj0 = 0 ;
30076 PyObject * obj1 = 0 ;
30077 PyObject * obj2 = 0 ;
30078 PyObject * obj3 = 0 ;
30079 char * kwnames[] = {
30080 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
30081 };
30082
30083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30085 if (!SWIG_IsOK(res1)) {
30086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30087 }
30088 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30089 ecode2 = SWIG_AsVal_long(obj1, &val2);
30090 if (!SWIG_IsOK(ecode2)) {
30091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
30092 }
30093 arg2 = static_cast< long >(val2);
30094 if (obj2) {
30095 ecode3 = SWIG_AsVal_int(obj2, &val3);
30096 if (!SWIG_IsOK(ecode3)) {
30097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
30098 }
30099 arg3 = static_cast< int >(val3);
30100 }
30101 if (obj3) {
30102 ecode4 = SWIG_AsVal_int(obj3, &val4);
30103 if (!SWIG_IsOK(ecode4)) {
30104 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
30105 }
30106 arg4 = static_cast< int >(val4);
30107 }
30108 {
30109 PyThreadState* __tstate = wxPyBeginAllowThreads();
30110 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
30111 wxPyEndAllowThreads(__tstate);
30112 if (PyErr_Occurred()) SWIG_fail;
30113 }
30114 resultobj = SWIG_From_long(static_cast< long >(result));
30115 return resultobj;
30116fail:
30117 return NULL;
30118}
30119
30120
30121SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30122 PyObject *resultobj = 0;
30123 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30124 int arg2 ;
30125 wxImageList *result = 0 ;
30126 void *argp1 = 0 ;
30127 int res1 = 0 ;
30128 int val2 ;
30129 int ecode2 = 0 ;
30130 PyObject * obj0 = 0 ;
30131 PyObject * obj1 = 0 ;
30132 char * kwnames[] = {
30133 (char *) "self",(char *) "which", NULL
30134 };
30135
30136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
30137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30138 if (!SWIG_IsOK(res1)) {
30139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30140 }
30141 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30142 ecode2 = SWIG_AsVal_int(obj1, &val2);
30143 if (!SWIG_IsOK(ecode2)) {
30144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
30145 }
30146 arg2 = static_cast< int >(val2);
30147 {
30148 PyThreadState* __tstate = wxPyBeginAllowThreads();
30149 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
30150 wxPyEndAllowThreads(__tstate);
30151 if (PyErr_Occurred()) SWIG_fail;
30152 }
30153 {
30154 resultobj = wxPyMake_wxObject(result, (bool)0);
30155 }
30156 return resultobj;
30157fail:
30158 return NULL;
30159}
30160
30161
30162SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30163 PyObject *resultobj = 0;
30164 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30165 wxImageList *arg2 = (wxImageList *) 0 ;
30166 int arg3 ;
30167 void *argp1 = 0 ;
30168 int res1 = 0 ;
30169 void *argp2 = 0 ;
30170 int res2 = 0 ;
30171 int val3 ;
30172 int ecode3 = 0 ;
30173 PyObject * obj0 = 0 ;
30174 PyObject * obj1 = 0 ;
30175 PyObject * obj2 = 0 ;
30176 char * kwnames[] = {
30177 (char *) "self",(char *) "imageList",(char *) "which", NULL
30178 };
30179
30180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30182 if (!SWIG_IsOK(res1)) {
30183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30184 }
30185 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30186 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30187 if (!SWIG_IsOK(res2)) {
30188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30189 }
30190 arg2 = reinterpret_cast< wxImageList * >(argp2);
30191 ecode3 = SWIG_AsVal_int(obj2, &val3);
30192 if (!SWIG_IsOK(ecode3)) {
30193 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30194 }
30195 arg3 = static_cast< int >(val3);
30196 {
30197 PyThreadState* __tstate = wxPyBeginAllowThreads();
30198 (arg1)->SetImageList(arg2,arg3);
30199 wxPyEndAllowThreads(__tstate);
30200 if (PyErr_Occurred()) SWIG_fail;
30201 }
30202 resultobj = SWIG_Py_Void();
30203 return resultobj;
30204fail:
30205 return NULL;
30206}
30207
30208
30209SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30210 PyObject *resultobj = 0;
30211 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30212 wxImageList *arg2 = (wxImageList *) 0 ;
30213 int arg3 ;
30214 void *argp1 = 0 ;
30215 int res1 = 0 ;
30216 int res2 = 0 ;
30217 int val3 ;
30218 int ecode3 = 0 ;
30219 PyObject * obj0 = 0 ;
30220 PyObject * obj1 = 0 ;
30221 PyObject * obj2 = 0 ;
30222 char * kwnames[] = {
30223 (char *) "self",(char *) "imageList",(char *) "which", NULL
30224 };
30225
30226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30228 if (!SWIG_IsOK(res1)) {
30229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30230 }
30231 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30232 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30233 if (!SWIG_IsOK(res2)) {
30234 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30235 }
30236 ecode3 = SWIG_AsVal_int(obj2, &val3);
30237 if (!SWIG_IsOK(ecode3)) {
30238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30239 }
30240 arg3 = static_cast< int >(val3);
30241 {
30242 PyThreadState* __tstate = wxPyBeginAllowThreads();
30243 (arg1)->AssignImageList(arg2,arg3);
30244 wxPyEndAllowThreads(__tstate);
30245 if (PyErr_Occurred()) SWIG_fail;
30246 }
30247 resultobj = SWIG_Py_Void();
30248 return resultobj;
30249fail:
30250 return NULL;
7e08d4ef
RD
30251}
30252
30253
1bd55598
RD
30254SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30255 PyObject *resultobj = 0;
30256 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30257 bool result;
30258 void *argp1 = 0 ;
30259 int res1 = 0 ;
30260 PyObject *swig_obj[1] ;
30261
30262 if (!args) SWIG_fail;
30263 swig_obj[0] = args;
30264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30265 if (!SWIG_IsOK(res1)) {
30266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30267 }
30268 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30269 {
30270 PyThreadState* __tstate = wxPyBeginAllowThreads();
30271 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30272 wxPyEndAllowThreads(__tstate);
30273 if (PyErr_Occurred()) SWIG_fail;
30274 }
30275 {
30276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30277 }
30278 return resultobj;
30279fail:
30280 return NULL;
44bf767a
RD
30281}
30282
30283
1bd55598
RD
30284SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30285 PyObject *resultobj = 0;
30286 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30287 bool result;
30288 void *argp1 = 0 ;
30289 int res1 = 0 ;
30290 PyObject *swig_obj[1] ;
30291
30292 if (!args) SWIG_fail;
30293 swig_obj[0] = args;
30294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30295 if (!SWIG_IsOK(res1)) {
30296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30297 }
30298 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30299 {
30300 PyThreadState* __tstate = wxPyBeginAllowThreads();
30301 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30302 wxPyEndAllowThreads(__tstate);
30303 if (PyErr_Occurred()) SWIG_fail;
30304 }
30305 {
30306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30307 }
30308 return resultobj;
30309fail:
30310 return NULL;
30311}
30312
30313
30314SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30315 PyObject *resultobj = 0;
30316 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30317 long arg2 ;
30318 void *argp1 = 0 ;
30319 int res1 = 0 ;
30320 long val2 ;
30321 int ecode2 = 0 ;
30322 PyObject * obj0 = 0 ;
30323 PyObject * obj1 = 0 ;
30324 char * kwnames[] = {
30325 (char *) "self",(char *) "item", NULL
30326 };
30327
30328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30330 if (!SWIG_IsOK(res1)) {
30331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30332 }
30333 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30334 ecode2 = SWIG_AsVal_long(obj1, &val2);
30335 if (!SWIG_IsOK(ecode2)) {
30336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30337 }
30338 arg2 = static_cast< long >(val2);
30339 {
30340 PyThreadState* __tstate = wxPyBeginAllowThreads();
30341 (arg1)->RefreshItem(arg2);
30342 wxPyEndAllowThreads(__tstate);
30343 if (PyErr_Occurred()) SWIG_fail;
30344 }
30345 resultobj = SWIG_Py_Void();
30346 return resultobj;
30347fail:
30348 return NULL;
30349}
30350
30351
30352SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30353 PyObject *resultobj = 0;
30354 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30355 long arg2 ;
30356 long arg3 ;
30357 void *argp1 = 0 ;
30358 int res1 = 0 ;
30359 long val2 ;
30360 int ecode2 = 0 ;
30361 long val3 ;
30362 int ecode3 = 0 ;
30363 PyObject * obj0 = 0 ;
30364 PyObject * obj1 = 0 ;
30365 PyObject * obj2 = 0 ;
30366 char * kwnames[] = {
30367 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30368 };
30369
30370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30372 if (!SWIG_IsOK(res1)) {
30373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30374 }
30375 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30376 ecode2 = SWIG_AsVal_long(obj1, &val2);
30377 if (!SWIG_IsOK(ecode2)) {
30378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30379 }
30380 arg2 = static_cast< long >(val2);
30381 ecode3 = SWIG_AsVal_long(obj2, &val3);
30382 if (!SWIG_IsOK(ecode3)) {
30383 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30384 }
30385 arg3 = static_cast< long >(val3);
30386 {
30387 PyThreadState* __tstate = wxPyBeginAllowThreads();
30388 (arg1)->RefreshItems(arg2,arg3);
30389 wxPyEndAllowThreads(__tstate);
30390 if (PyErr_Occurred()) SWIG_fail;
30391 }
30392 resultobj = SWIG_Py_Void();
30393 return resultobj;
30394fail:
30395 return NULL;
30396}
30397
30398
30399SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30400 PyObject *resultobj = 0;
30401 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30402 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30403 bool result;
30404 void *argp1 = 0 ;
30405 int res1 = 0 ;
30406 int val2 ;
30407 int ecode2 = 0 ;
30408 PyObject * obj0 = 0 ;
30409 PyObject * obj1 = 0 ;
30410 char * kwnames[] = {
30411 (char *) "self",(char *) "flag", NULL
30412 };
30413
30414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30416 if (!SWIG_IsOK(res1)) {
30417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30418 }
30419 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30420 if (obj1) {
30421 ecode2 = SWIG_AsVal_int(obj1, &val2);
30422 if (!SWIG_IsOK(ecode2)) {
30423 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30424 }
30425 arg2 = static_cast< int >(val2);
30426 }
30427 {
30428 PyThreadState* __tstate = wxPyBeginAllowThreads();
30429 result = (bool)(arg1)->Arrange(arg2);
30430 wxPyEndAllowThreads(__tstate);
30431 if (PyErr_Occurred()) SWIG_fail;
30432 }
30433 {
30434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30435 }
30436 return resultobj;
30437fail:
30438 return NULL;
30439}
30440
30441
30442SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30443 PyObject *resultobj = 0;
30444 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30445 long arg2 ;
30446 bool result;
30447 void *argp1 = 0 ;
30448 int res1 = 0 ;
30449 long val2 ;
30450 int ecode2 = 0 ;
30451 PyObject * obj0 = 0 ;
30452 PyObject * obj1 = 0 ;
30453 char * kwnames[] = {
30454 (char *) "self",(char *) "item", NULL
30455 };
30456
30457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30459 if (!SWIG_IsOK(res1)) {
30460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30461 }
30462 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30463 ecode2 = SWIG_AsVal_long(obj1, &val2);
30464 if (!SWIG_IsOK(ecode2)) {
30465 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30466 }
30467 arg2 = static_cast< long >(val2);
30468 {
30469 PyThreadState* __tstate = wxPyBeginAllowThreads();
30470 result = (bool)(arg1)->DeleteItem(arg2);
30471 wxPyEndAllowThreads(__tstate);
30472 if (PyErr_Occurred()) SWIG_fail;
30473 }
30474 {
30475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30476 }
30477 return resultobj;
30478fail:
30479 return NULL;
d55e5bfc
RD
30480}
30481
30482
1bd55598
RD
30483SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30484 PyObject *resultobj = 0;
30485 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30486 bool result;
30487 void *argp1 = 0 ;
30488 int res1 = 0 ;
30489 PyObject *swig_obj[1] ;
30490
30491 if (!args) SWIG_fail;
30492 swig_obj[0] = args;
30493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30494 if (!SWIG_IsOK(res1)) {
30495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30496 }
30497 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30498 {
30499 PyThreadState* __tstate = wxPyBeginAllowThreads();
30500 result = (bool)(arg1)->DeleteAllItems();
30501 wxPyEndAllowThreads(__tstate);
30502 if (PyErr_Occurred()) SWIG_fail;
30503 }
30504 {
30505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30506 }
30507 return resultobj;
30508fail:
30509 return NULL;
30510}
30511
30512
30513SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30514 PyObject *resultobj = 0;
30515 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30516 int arg2 ;
30517 bool result;
30518 void *argp1 = 0 ;
30519 int res1 = 0 ;
30520 int val2 ;
30521 int ecode2 = 0 ;
30522 PyObject * obj0 = 0 ;
30523 PyObject * obj1 = 0 ;
30524 char * kwnames[] = {
30525 (char *) "self",(char *) "col", NULL
30526 };
30527
30528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30530 if (!SWIG_IsOK(res1)) {
30531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30532 }
30533 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30534 ecode2 = SWIG_AsVal_int(obj1, &val2);
30535 if (!SWIG_IsOK(ecode2)) {
30536 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30537 }
30538 arg2 = static_cast< int >(val2);
30539 {
30540 PyThreadState* __tstate = wxPyBeginAllowThreads();
30541 result = (bool)(arg1)->DeleteColumn(arg2);
30542 wxPyEndAllowThreads(__tstate);
30543 if (PyErr_Occurred()) SWIG_fail;
30544 }
30545 {
30546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30547 }
30548 return resultobj;
30549fail:
30550 return NULL;
b411df4a
RD
30551}
30552
30553
1bd55598
RD
30554SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30555 PyObject *resultobj = 0;
30556 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30557 bool result;
30558 void *argp1 = 0 ;
30559 int res1 = 0 ;
30560 PyObject *swig_obj[1] ;
30561
30562 if (!args) SWIG_fail;
30563 swig_obj[0] = args;
30564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30565 if (!SWIG_IsOK(res1)) {
30566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30567 }
30568 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30569 {
30570 PyThreadState* __tstate = wxPyBeginAllowThreads();
30571 result = (bool)(arg1)->DeleteAllColumns();
30572 wxPyEndAllowThreads(__tstate);
30573 if (PyErr_Occurred()) SWIG_fail;
30574 }
30575 {
30576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30577 }
30578 return resultobj;
30579fail:
30580 return NULL;
b411df4a
RD
30581}
30582
30583
1bd55598
RD
30584SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30585 PyObject *resultobj = 0;
30586 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30587 void *argp1 = 0 ;
30588 int res1 = 0 ;
30589 PyObject *swig_obj[1] ;
30590
30591 if (!args) SWIG_fail;
30592 swig_obj[0] = args;
30593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30594 if (!SWIG_IsOK(res1)) {
30595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30596 }
30597 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30598 {
30599 PyThreadState* __tstate = wxPyBeginAllowThreads();
30600 (arg1)->ClearAll();
30601 wxPyEndAllowThreads(__tstate);
30602 if (PyErr_Occurred()) SWIG_fail;
30603 }
30604 resultobj = SWIG_Py_Void();
30605 return resultobj;
30606fail:
30607 return NULL;
30608}
30609
30610
30611SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30612 PyObject *resultobj = 0;
30613 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30614 long arg2 ;
30615 void *argp1 = 0 ;
30616 int res1 = 0 ;
30617 long val2 ;
30618 int ecode2 = 0 ;
30619 PyObject * obj0 = 0 ;
30620 PyObject * obj1 = 0 ;
30621 char * kwnames[] = {
30622 (char *) "self",(char *) "item", NULL
30623 };
30624
30625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30627 if (!SWIG_IsOK(res1)) {
30628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30629 }
30630 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30631 ecode2 = SWIG_AsVal_long(obj1, &val2);
30632 if (!SWIG_IsOK(ecode2)) {
30633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30634 }
30635 arg2 = static_cast< long >(val2);
30636 {
30637 PyThreadState* __tstate = wxPyBeginAllowThreads();
30638 (arg1)->EditLabel(arg2);
30639 wxPyEndAllowThreads(__tstate);
30640 if (PyErr_Occurred()) SWIG_fail;
30641 }
30642 resultobj = SWIG_Py_Void();
30643 return resultobj;
30644fail:
30645 return NULL;
30646}
30647
30648
30649SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30650 PyObject *resultobj = 0;
30651 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30652 long arg2 ;
30653 bool result;
30654 void *argp1 = 0 ;
30655 int res1 = 0 ;
30656 long val2 ;
30657 int ecode2 = 0 ;
30658 PyObject * obj0 = 0 ;
30659 PyObject * obj1 = 0 ;
30660 char * kwnames[] = {
30661 (char *) "self",(char *) "item", NULL
30662 };
30663
30664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30666 if (!SWIG_IsOK(res1)) {
30667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30668 }
30669 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30670 ecode2 = SWIG_AsVal_long(obj1, &val2);
30671 if (!SWIG_IsOK(ecode2)) {
30672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30673 }
30674 arg2 = static_cast< long >(val2);
30675 {
30676 PyThreadState* __tstate = wxPyBeginAllowThreads();
30677 result = (bool)(arg1)->EnsureVisible(arg2);
30678 wxPyEndAllowThreads(__tstate);
30679 if (PyErr_Occurred()) SWIG_fail;
30680 }
30681 {
30682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30683 }
30684 return resultobj;
30685fail:
30686 return NULL;
30687}
30688
30689
30690SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30691 PyObject *resultobj = 0;
30692 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30693 long arg2 ;
30694 wxString *arg3 = 0 ;
30695 bool arg4 = (bool) false ;
30696 long result;
30697 void *argp1 = 0 ;
30698 int res1 = 0 ;
30699 long val2 ;
30700 int ecode2 = 0 ;
30701 bool temp3 = false ;
30702 bool val4 ;
30703 int ecode4 = 0 ;
30704 PyObject * obj0 = 0 ;
30705 PyObject * obj1 = 0 ;
30706 PyObject * obj2 = 0 ;
30707 PyObject * obj3 = 0 ;
30708 char * kwnames[] = {
30709 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30710 };
30711
30712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30714 if (!SWIG_IsOK(res1)) {
30715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30716 }
30717 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30718 ecode2 = SWIG_AsVal_long(obj1, &val2);
30719 if (!SWIG_IsOK(ecode2)) {
30720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30721 }
30722 arg2 = static_cast< long >(val2);
30723 {
30724 arg3 = wxString_in_helper(obj2);
30725 if (arg3 == NULL) SWIG_fail;
30726 temp3 = true;
30727 }
30728 if (obj3) {
30729 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30730 if (!SWIG_IsOK(ecode4)) {
30731 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30732 }
30733 arg4 = static_cast< bool >(val4);
30734 }
30735 {
30736 PyThreadState* __tstate = wxPyBeginAllowThreads();
30737 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30738 wxPyEndAllowThreads(__tstate);
30739 if (PyErr_Occurred()) SWIG_fail;
30740 }
30741 resultobj = SWIG_From_long(static_cast< long >(result));
30742 {
30743 if (temp3)
30744 delete arg3;
30745 }
30746 return resultobj;
30747fail:
30748 {
30749 if (temp3)
30750 delete arg3;
30751 }
30752 return NULL;
30753}
30754
30755
30756SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30757 PyObject *resultobj = 0;
30758 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30759 long arg2 ;
30760 long arg3 ;
30761 long result;
30762 void *argp1 = 0 ;
30763 int res1 = 0 ;
30764 long val2 ;
30765 int ecode2 = 0 ;
30766 long val3 ;
30767 int ecode3 = 0 ;
30768 PyObject * obj0 = 0 ;
30769 PyObject * obj1 = 0 ;
30770 PyObject * obj2 = 0 ;
30771 char * kwnames[] = {
30772 (char *) "self",(char *) "start",(char *) "data", NULL
30773 };
30774
30775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30777 if (!SWIG_IsOK(res1)) {
30778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30779 }
30780 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30781 ecode2 = SWIG_AsVal_long(obj1, &val2);
30782 if (!SWIG_IsOK(ecode2)) {
30783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30784 }
30785 arg2 = static_cast< long >(val2);
30786 ecode3 = SWIG_AsVal_long(obj2, &val3);
30787 if (!SWIG_IsOK(ecode3)) {
30788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30789 }
30790 arg3 = static_cast< long >(val3);
30791 {
30792 PyThreadState* __tstate = wxPyBeginAllowThreads();
30793 result = (long)(arg1)->FindItem(arg2,arg3);
30794 wxPyEndAllowThreads(__tstate);
30795 if (PyErr_Occurred()) SWIG_fail;
30796 }
30797 resultobj = SWIG_From_long(static_cast< long >(result));
30798 return resultobj;
30799fail:
30800 return NULL;
30801}
30802
30803
30804SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30805 PyObject *resultobj = 0;
30806 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30807 long arg2 ;
30808 wxPoint *arg3 = 0 ;
30809 int arg4 ;
30810 long result;
30811 void *argp1 = 0 ;
30812 int res1 = 0 ;
30813 long val2 ;
30814 int ecode2 = 0 ;
30815 wxPoint temp3 ;
30816 int val4 ;
30817 int ecode4 = 0 ;
30818 PyObject * obj0 = 0 ;
30819 PyObject * obj1 = 0 ;
30820 PyObject * obj2 = 0 ;
30821 PyObject * obj3 = 0 ;
30822 char * kwnames[] = {
30823 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30824 };
30825
30826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30828 if (!SWIG_IsOK(res1)) {
30829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30830 }
30831 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30832 ecode2 = SWIG_AsVal_long(obj1, &val2);
30833 if (!SWIG_IsOK(ecode2)) {
30834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30835 }
30836 arg2 = static_cast< long >(val2);
30837 {
30838 arg3 = &temp3;
30839 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30840 }
30841 ecode4 = SWIG_AsVal_int(obj3, &val4);
30842 if (!SWIG_IsOK(ecode4)) {
30843 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30844 }
30845 arg4 = static_cast< int >(val4);
30846 {
30847 PyThreadState* __tstate = wxPyBeginAllowThreads();
30848 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30849 wxPyEndAllowThreads(__tstate);
30850 if (PyErr_Occurred()) SWIG_fail;
30851 }
30852 resultobj = SWIG_From_long(static_cast< long >(result));
30853 return resultobj;
30854fail:
30855 return NULL;
30856}
30857
30858
30859SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30860 PyObject *resultobj = 0;
30861 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30862 wxPoint *arg2 = 0 ;
30863 int *arg3 = 0 ;
30864 long result;
30865 void *argp1 = 0 ;
30866 int res1 = 0 ;
30867 wxPoint temp2 ;
30868 int temp3 ;
30869 int res3 = SWIG_TMPOBJ ;
30870 PyObject * obj0 = 0 ;
30871 PyObject * obj1 = 0 ;
30872 char * kwnames[] = {
30873 (char *) "self",(char *) "point", NULL
30874 };
30875
30876 arg3 = &temp3;
30877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30879 if (!SWIG_IsOK(res1)) {
30880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30881 }
30882 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30883 {
30884 arg2 = &temp2;
30885 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30886 }
30887 {
30888 PyThreadState* __tstate = wxPyBeginAllowThreads();
30889 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30890 wxPyEndAllowThreads(__tstate);
30891 if (PyErr_Occurred()) SWIG_fail;
30892 }
30893 resultobj = SWIG_From_long(static_cast< long >(result));
30894 if (SWIG_IsTmpObj(res3)) {
30895 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30896 } else {
30897 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30898 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30899 }
30900 return resultobj;
30901fail:
30902 return NULL;
30903}
30904
30905
704eda0c
RD
30906SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30907 PyObject *resultobj = 0;
30908 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30909 wxPoint *arg2 = 0 ;
30910 int *arg3 = 0 ;
30911 long *arg4 = (long *) 0 ;
30912 long result;
30913 void *argp1 = 0 ;
30914 int res1 = 0 ;
30915 wxPoint temp2 ;
30916 int temp3 ;
30917 int res3 = SWIG_TMPOBJ ;
30918 long temp4 ;
30919 int res4 = SWIG_TMPOBJ ;
30920 PyObject * obj0 = 0 ;
30921 PyObject * obj1 = 0 ;
30922 char * kwnames[] = {
30923 (char *) "self",(char *) "point", NULL
30924 };
30925
30926 arg3 = &temp3;
30927 arg4 = &temp4;
30928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",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_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30932 }
30933 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30934 {
30935 arg2 = &temp2;
30936 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30937 }
30938 {
30939 PyThreadState* __tstate = wxPyBeginAllowThreads();
30940 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
30941 wxPyEndAllowThreads(__tstate);
30942 if (PyErr_Occurred()) SWIG_fail;
30943 }
30944 resultobj = SWIG_From_long(static_cast< long >(result));
30945 if (SWIG_IsTmpObj(res3)) {
30946 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30947 } else {
30948 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30949 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30950 }
30951 if (SWIG_IsTmpObj(res4)) {
30952 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
30953 } else {
30954 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30955 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
30956 }
30957 return resultobj;
30958fail:
30959 return NULL;
30960}
30961
30962
1bd55598
RD
30963SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30964 PyObject *resultobj = 0;
30965 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30966 wxListItem *arg2 = 0 ;
30967 long result;
30968 void *argp1 = 0 ;
30969 int res1 = 0 ;
30970 void *argp2 = 0 ;
30971 int res2 = 0 ;
30972 PyObject * obj0 = 0 ;
30973 PyObject * obj1 = 0 ;
30974 char * kwnames[] = {
30975 (char *) "self",(char *) "info", NULL
30976 };
30977
30978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30980 if (!SWIG_IsOK(res1)) {
30981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30982 }
30983 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30984 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30985 if (!SWIG_IsOK(res2)) {
30986 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30987 }
30988 if (!argp2) {
30989 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30990 }
30991 arg2 = reinterpret_cast< wxListItem * >(argp2);
30992 {
30993 PyThreadState* __tstate = wxPyBeginAllowThreads();
30994 result = (long)(arg1)->InsertItem(*arg2);
30995 wxPyEndAllowThreads(__tstate);
30996 if (PyErr_Occurred()) SWIG_fail;
30997 }
30998 resultobj = SWIG_From_long(static_cast< long >(result));
30999 return resultobj;
31000fail:
31001 return NULL;
31002}
31003
31004
31005SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31006 PyObject *resultobj = 0;
31007 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31008 long arg2 ;
31009 wxString *arg3 = 0 ;
31010 int arg4 = (int) -1 ;
31011 long result;
31012 void *argp1 = 0 ;
31013 int res1 = 0 ;
31014 long val2 ;
31015 int ecode2 = 0 ;
31016 bool temp3 = false ;
31017 int val4 ;
31018 int ecode4 = 0 ;
31019 PyObject * obj0 = 0 ;
31020 PyObject * obj1 = 0 ;
31021 PyObject * obj2 = 0 ;
31022 PyObject * obj3 = 0 ;
31023 char * kwnames[] = {
31024 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31025 };
31026
31027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31029 if (!SWIG_IsOK(res1)) {
31030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31031 }
31032 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31033 ecode2 = SWIG_AsVal_long(obj1, &val2);
31034 if (!SWIG_IsOK(ecode2)) {
31035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
31036 }
31037 arg2 = static_cast< long >(val2);
31038 {
31039 arg3 = wxString_in_helper(obj2);
31040 if (arg3 == NULL) SWIG_fail;
31041 temp3 = true;
31042 }
31043 if (obj3) {
31044 ecode4 = SWIG_AsVal_int(obj3, &val4);
31045 if (!SWIG_IsOK(ecode4)) {
31046 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
31047 }
31048 arg4 = static_cast< int >(val4);
31049 }
31050 {
31051 PyThreadState* __tstate = wxPyBeginAllowThreads();
31052 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31053 wxPyEndAllowThreads(__tstate);
31054 if (PyErr_Occurred()) SWIG_fail;
31055 }
31056 resultobj = SWIG_From_long(static_cast< long >(result));
31057 {
31058 if (temp3)
31059 delete arg3;
31060 }
31061 return resultobj;
31062fail:
31063 {
31064 if (temp3)
31065 delete arg3;
31066 }
31067 return NULL;
31068}
31069
31070
31071SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31072 PyObject *resultobj = 0;
31073 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31074 long arg2 ;
31075 int arg3 ;
31076 long result;
31077 void *argp1 = 0 ;
31078 int res1 = 0 ;
31079 long val2 ;
31080 int ecode2 = 0 ;
31081 int val3 ;
31082 int ecode3 = 0 ;
31083 PyObject * obj0 = 0 ;
31084 PyObject * obj1 = 0 ;
31085 PyObject * obj2 = 0 ;
31086 char * kwnames[] = {
31087 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
31088 };
31089
31090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) 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_InsertImageItem" "', 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_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
31099 }
31100 arg2 = static_cast< long >(val2);
31101 ecode3 = SWIG_AsVal_int(obj2, &val3);
31102 if (!SWIG_IsOK(ecode3)) {
31103 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
31104 }
31105 arg3 = static_cast< int >(val3);
31106 {
31107 PyThreadState* __tstate = wxPyBeginAllowThreads();
31108 result = (long)(arg1)->InsertItem(arg2,arg3);
31109 wxPyEndAllowThreads(__tstate);
31110 if (PyErr_Occurred()) SWIG_fail;
31111 }
31112 resultobj = SWIG_From_long(static_cast< long >(result));
31113 return resultobj;
31114fail:
31115 return NULL;
31116}
31117
31118
31119SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31120 PyObject *resultobj = 0;
31121 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31122 long arg2 ;
31123 wxString *arg3 = 0 ;
31124 int arg4 ;
31125 long result;
31126 void *argp1 = 0 ;
31127 int res1 = 0 ;
31128 long val2 ;
31129 int ecode2 = 0 ;
31130 bool temp3 = false ;
31131 int val4 ;
31132 int ecode4 = 0 ;
31133 PyObject * obj0 = 0 ;
31134 PyObject * obj1 = 0 ;
31135 PyObject * obj2 = 0 ;
31136 PyObject * obj3 = 0 ;
31137 char * kwnames[] = {
31138 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
31139 };
31140
31141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) 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_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31145 }
31146 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31147 ecode2 = SWIG_AsVal_long(obj1, &val2);
31148 if (!SWIG_IsOK(ecode2)) {
31149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
31150 }
31151 arg2 = static_cast< long >(val2);
31152 {
31153 arg3 = wxString_in_helper(obj2);
31154 if (arg3 == NULL) SWIG_fail;
31155 temp3 = true;
31156 }
31157 ecode4 = SWIG_AsVal_int(obj3, &val4);
31158 if (!SWIG_IsOK(ecode4)) {
31159 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31160 }
31161 arg4 = static_cast< int >(val4);
31162 {
31163 PyThreadState* __tstate = wxPyBeginAllowThreads();
31164 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31165 wxPyEndAllowThreads(__tstate);
31166 if (PyErr_Occurred()) SWIG_fail;
31167 }
31168 resultobj = SWIG_From_long(static_cast< long >(result));
31169 {
31170 if (temp3)
31171 delete arg3;
31172 }
31173 return resultobj;
31174fail:
31175 {
31176 if (temp3)
31177 delete arg3;
31178 }
31179 return NULL;
31180}
31181
31182
31183SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31184 PyObject *resultobj = 0;
31185 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31186 long arg2 ;
31187 wxListItem *arg3 = 0 ;
31188 long result;
31189 void *argp1 = 0 ;
31190 int res1 = 0 ;
31191 long val2 ;
31192 int ecode2 = 0 ;
31193 void *argp3 = 0 ;
31194 int res3 = 0 ;
31195 PyObject * obj0 = 0 ;
31196 PyObject * obj1 = 0 ;
31197 PyObject * obj2 = 0 ;
31198 char * kwnames[] = {
31199 (char *) "self",(char *) "col",(char *) "info", NULL
31200 };
31201
31202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31204 if (!SWIG_IsOK(res1)) {
31205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31206 }
31207 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31208 ecode2 = SWIG_AsVal_long(obj1, &val2);
31209 if (!SWIG_IsOK(ecode2)) {
31210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31211 }
31212 arg2 = static_cast< long >(val2);
31213 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31214 if (!SWIG_IsOK(res3)) {
31215 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31216 }
31217 if (!argp3) {
31218 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31219 }
31220 arg3 = reinterpret_cast< wxListItem * >(argp3);
31221 {
31222 PyThreadState* __tstate = wxPyBeginAllowThreads();
31223 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31224 wxPyEndAllowThreads(__tstate);
31225 if (PyErr_Occurred()) SWIG_fail;
31226 }
31227 resultobj = SWIG_From_long(static_cast< long >(result));
31228 return resultobj;
31229fail:
31230 return NULL;
31231}
31232
31233
31234SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31235 PyObject *resultobj = 0;
31236 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31237 long arg2 ;
31238 wxString *arg3 = 0 ;
31239 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31240 int arg5 = (int) -1 ;
31241 long result;
31242 void *argp1 = 0 ;
31243 int res1 = 0 ;
31244 long val2 ;
31245 int ecode2 = 0 ;
31246 bool temp3 = false ;
31247 int val4 ;
31248 int ecode4 = 0 ;
31249 int val5 ;
31250 int ecode5 = 0 ;
31251 PyObject * obj0 = 0 ;
31252 PyObject * obj1 = 0 ;
31253 PyObject * obj2 = 0 ;
31254 PyObject * obj3 = 0 ;
31255 PyObject * obj4 = 0 ;
31256 char * kwnames[] = {
31257 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31258 };
31259
31260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31262 if (!SWIG_IsOK(res1)) {
31263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31264 }
31265 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31266 ecode2 = SWIG_AsVal_long(obj1, &val2);
31267 if (!SWIG_IsOK(ecode2)) {
31268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31269 }
31270 arg2 = static_cast< long >(val2);
31271 {
31272 arg3 = wxString_in_helper(obj2);
31273 if (arg3 == NULL) SWIG_fail;
31274 temp3 = true;
31275 }
31276 if (obj3) {
31277 ecode4 = SWIG_AsVal_int(obj3, &val4);
31278 if (!SWIG_IsOK(ecode4)) {
31279 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31280 }
31281 arg4 = static_cast< int >(val4);
31282 }
31283 if (obj4) {
31284 ecode5 = SWIG_AsVal_int(obj4, &val5);
31285 if (!SWIG_IsOK(ecode5)) {
31286 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31287 }
31288 arg5 = static_cast< int >(val5);
31289 }
31290 {
31291 PyThreadState* __tstate = wxPyBeginAllowThreads();
31292 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31293 wxPyEndAllowThreads(__tstate);
31294 if (PyErr_Occurred()) SWIG_fail;
31295 }
31296 resultobj = SWIG_From_long(static_cast< long >(result));
31297 {
31298 if (temp3)
31299 delete arg3;
31300 }
31301 return resultobj;
31302fail:
31303 {
31304 if (temp3)
31305 delete arg3;
31306 }
31307 return NULL;
31308}
31309
31310
31311SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31312 PyObject *resultobj = 0;
31313 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31314 long arg2 ;
31315 void *argp1 = 0 ;
31316 int res1 = 0 ;
31317 long val2 ;
31318 int ecode2 = 0 ;
31319 PyObject * obj0 = 0 ;
31320 PyObject * obj1 = 0 ;
31321 char * kwnames[] = {
31322 (char *) "self",(char *) "count", NULL
31323 };
31324
31325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31327 if (!SWIG_IsOK(res1)) {
31328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31329 }
31330 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31331 ecode2 = SWIG_AsVal_long(obj1, &val2);
31332 if (!SWIG_IsOK(ecode2)) {
31333 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31334 }
31335 arg2 = static_cast< long >(val2);
31336 {
31337 PyThreadState* __tstate = wxPyBeginAllowThreads();
31338 (arg1)->SetItemCount(arg2);
31339 wxPyEndAllowThreads(__tstate);
31340 if (PyErr_Occurred()) SWIG_fail;
31341 }
31342 resultobj = SWIG_Py_Void();
31343 return resultobj;
31344fail:
31345 return NULL;
31346}
31347
31348
31349SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31350 PyObject *resultobj = 0;
31351 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31352 int arg2 ;
31353 int arg3 ;
31354 bool result;
31355 void *argp1 = 0 ;
31356 int res1 = 0 ;
31357 int val2 ;
31358 int ecode2 = 0 ;
31359 int val3 ;
31360 int ecode3 = 0 ;
31361 PyObject * obj0 = 0 ;
31362 PyObject * obj1 = 0 ;
31363 PyObject * obj2 = 0 ;
31364 char * kwnames[] = {
31365 (char *) "self",(char *) "dx",(char *) "dy", NULL
31366 };
31367
31368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31370 if (!SWIG_IsOK(res1)) {
31371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31372 }
31373 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31374 ecode2 = SWIG_AsVal_int(obj1, &val2);
31375 if (!SWIG_IsOK(ecode2)) {
31376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31377 }
31378 arg2 = static_cast< int >(val2);
31379 ecode3 = SWIG_AsVal_int(obj2, &val3);
31380 if (!SWIG_IsOK(ecode3)) {
31381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31382 }
31383 arg3 = static_cast< int >(val3);
31384 {
31385 PyThreadState* __tstate = wxPyBeginAllowThreads();
31386 result = (bool)(arg1)->ScrollList(arg2,arg3);
31387 wxPyEndAllowThreads(__tstate);
31388 if (PyErr_Occurred()) SWIG_fail;
31389 }
31390 {
31391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31392 }
31393 return resultobj;
31394fail:
31395 return NULL;
31396}
31397
31398
31399SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31400 PyObject *resultobj = 0;
31401 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31402 long arg2 ;
31403 wxColour *arg3 = 0 ;
31404 void *argp1 = 0 ;
31405 int res1 = 0 ;
31406 long val2 ;
31407 int ecode2 = 0 ;
31408 wxColour temp3 ;
31409 PyObject * obj0 = 0 ;
31410 PyObject * obj1 = 0 ;
31411 PyObject * obj2 = 0 ;
31412 char * kwnames[] = {
31413 (char *) "self",(char *) "item",(char *) "col", NULL
31414 };
31415
31416 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31417 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31418 if (!SWIG_IsOK(res1)) {
31419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31420 }
31421 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31422 ecode2 = SWIG_AsVal_long(obj1, &val2);
31423 if (!SWIG_IsOK(ecode2)) {
31424 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31425 }
31426 arg2 = static_cast< long >(val2);
31427 {
31428 arg3 = &temp3;
31429 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31430 }
31431 {
31432 PyThreadState* __tstate = wxPyBeginAllowThreads();
31433 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31434 wxPyEndAllowThreads(__tstate);
31435 if (PyErr_Occurred()) SWIG_fail;
31436 }
31437 resultobj = SWIG_Py_Void();
31438 return resultobj;
31439fail:
31440 return NULL;
31441}
31442
31443
31444SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31445 PyObject *resultobj = 0;
31446 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31447 long arg2 ;
31448 wxColour result;
31449 void *argp1 = 0 ;
31450 int res1 = 0 ;
31451 long val2 ;
31452 int ecode2 = 0 ;
31453 PyObject * obj0 = 0 ;
31454 PyObject * obj1 = 0 ;
31455 char * kwnames[] = {
31456 (char *) "self",(char *) "item", NULL
31457 };
31458
31459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31461 if (!SWIG_IsOK(res1)) {
31462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31463 }
31464 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31465 ecode2 = SWIG_AsVal_long(obj1, &val2);
31466 if (!SWIG_IsOK(ecode2)) {
31467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31468 }
31469 arg2 = static_cast< long >(val2);
31470 {
31471 PyThreadState* __tstate = wxPyBeginAllowThreads();
31472 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31473 wxPyEndAllowThreads(__tstate);
31474 if (PyErr_Occurred()) SWIG_fail;
31475 }
31476 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31477 return resultobj;
31478fail:
31479 return NULL;
31480}
31481
31482
31483SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31484 PyObject *resultobj = 0;
31485 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31486 long arg2 ;
31487 wxColour *arg3 = 0 ;
31488 void *argp1 = 0 ;
31489 int res1 = 0 ;
31490 long val2 ;
31491 int ecode2 = 0 ;
31492 wxColour temp3 ;
31493 PyObject * obj0 = 0 ;
31494 PyObject * obj1 = 0 ;
31495 PyObject * obj2 = 0 ;
31496 char * kwnames[] = {
31497 (char *) "self",(char *) "item",(char *) "col", NULL
31498 };
31499
31500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31502 if (!SWIG_IsOK(res1)) {
31503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31504 }
31505 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31506 ecode2 = SWIG_AsVal_long(obj1, &val2);
31507 if (!SWIG_IsOK(ecode2)) {
31508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31509 }
31510 arg2 = static_cast< long >(val2);
31511 {
31512 arg3 = &temp3;
31513 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31514 }
31515 {
31516 PyThreadState* __tstate = wxPyBeginAllowThreads();
31517 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31518 wxPyEndAllowThreads(__tstate);
31519 if (PyErr_Occurred()) SWIG_fail;
31520 }
31521 resultobj = SWIG_Py_Void();
31522 return resultobj;
31523fail:
31524 return NULL;
31525}
31526
31527
31528SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31529 PyObject *resultobj = 0;
31530 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31531 long arg2 ;
31532 wxColour result;
31533 void *argp1 = 0 ;
31534 int res1 = 0 ;
31535 long val2 ;
31536 int ecode2 = 0 ;
31537 PyObject * obj0 = 0 ;
31538 PyObject * obj1 = 0 ;
31539 char * kwnames[] = {
31540 (char *) "self",(char *) "item", NULL
31541 };
31542
31543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31545 if (!SWIG_IsOK(res1)) {
31546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31547 }
31548 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31549 ecode2 = SWIG_AsVal_long(obj1, &val2);
31550 if (!SWIG_IsOK(ecode2)) {
31551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31552 }
31553 arg2 = static_cast< long >(val2);
31554 {
31555 PyThreadState* __tstate = wxPyBeginAllowThreads();
31556 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31557 wxPyEndAllowThreads(__tstate);
31558 if (PyErr_Occurred()) SWIG_fail;
31559 }
31560 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31561 return resultobj;
31562fail:
31563 return NULL;
31564}
31565
31566
31567SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31568 PyObject *resultobj = 0;
31569 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31570 long arg2 ;
31571 wxFont *arg3 = 0 ;
31572 void *argp1 = 0 ;
31573 int res1 = 0 ;
31574 long val2 ;
31575 int ecode2 = 0 ;
31576 void *argp3 = 0 ;
31577 int res3 = 0 ;
31578 PyObject * obj0 = 0 ;
31579 PyObject * obj1 = 0 ;
31580 PyObject * obj2 = 0 ;
31581 char * kwnames[] = {
31582 (char *) "self",(char *) "item",(char *) "f", NULL
31583 };
31584
31585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31587 if (!SWIG_IsOK(res1)) {
31588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31589 }
31590 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31591 ecode2 = SWIG_AsVal_long(obj1, &val2);
31592 if (!SWIG_IsOK(ecode2)) {
31593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31594 }
31595 arg2 = static_cast< long >(val2);
31596 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31597 if (!SWIG_IsOK(res3)) {
31598 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31599 }
31600 if (!argp3) {
31601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31602 }
31603 arg3 = reinterpret_cast< wxFont * >(argp3);
31604 {
31605 PyThreadState* __tstate = wxPyBeginAllowThreads();
31606 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31607 wxPyEndAllowThreads(__tstate);
31608 if (PyErr_Occurred()) SWIG_fail;
31609 }
31610 resultobj = SWIG_Py_Void();
31611 return resultobj;
31612fail:
31613 return NULL;
31614}
31615
31616
31617SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31618 PyObject *resultobj = 0;
31619 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31620 long arg2 ;
31621 wxFont result;
31622 void *argp1 = 0 ;
31623 int res1 = 0 ;
31624 long val2 ;
31625 int ecode2 = 0 ;
31626 PyObject * obj0 = 0 ;
31627 PyObject * obj1 = 0 ;
31628 char * kwnames[] = {
31629 (char *) "self",(char *) "item", NULL
31630 };
31631
31632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) 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_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31636 }
31637 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31638 ecode2 = SWIG_AsVal_long(obj1, &val2);
31639 if (!SWIG_IsOK(ecode2)) {
31640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31641 }
31642 arg2 = static_cast< long >(val2);
31643 {
31644 PyThreadState* __tstate = wxPyBeginAllowThreads();
31645 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31646 wxPyEndAllowThreads(__tstate);
31647 if (PyErr_Occurred()) SWIG_fail;
31648 }
31649 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31650 return resultobj;
31651fail:
31652 return NULL;
31653}
31654
31655
31656SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31657 PyObject *resultobj = 0;
31658 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31659 PyObject *arg2 = (PyObject *) 0 ;
31660 bool result;
31661 void *argp1 = 0 ;
31662 int res1 = 0 ;
31663 PyObject * obj0 = 0 ;
31664 PyObject * obj1 = 0 ;
31665 char * kwnames[] = {
31666 (char *) "self",(char *) "func", NULL
31667 };
31668
31669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31671 if (!SWIG_IsOK(res1)) {
31672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31673 }
31674 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31675 arg2 = obj1;
31676 {
31677 PyThreadState* __tstate = wxPyBeginAllowThreads();
31678 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31679 wxPyEndAllowThreads(__tstate);
31680 if (PyErr_Occurred()) SWIG_fail;
31681 }
31682 {
31683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31684 }
31685 return resultobj;
31686fail:
31687 return NULL;
b411df4a
RD
31688}
31689
31690
1bd55598
RD
31691SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31692 PyObject *resultobj = 0;
31693 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31694 wxWindow *result = 0 ;
31695 void *argp1 = 0 ;
31696 int res1 = 0 ;
31697 PyObject *swig_obj[1] ;
31698
31699 if (!args) SWIG_fail;
31700 swig_obj[0] = args;
31701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31702 if (!SWIG_IsOK(res1)) {
31703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31704 }
31705 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31706 {
31707 PyThreadState* __tstate = wxPyBeginAllowThreads();
31708 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31709 wxPyEndAllowThreads(__tstate);
31710 if (PyErr_Occurred()) SWIG_fail;
31711 }
31712 {
31713 resultobj = wxPyMake_wxObject(result, 0);
31714 }
31715 return resultobj;
31716fail:
31717 return NULL;
7993762b
RD
31718}
31719
31720
1bd55598
RD
31721SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31722 PyObject *resultobj = 0;
31723 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31724 SwigValueWrapper<wxVisualAttributes > result;
31725 int val1 ;
31726 int ecode1 = 0 ;
31727 PyObject * obj0 = 0 ;
31728 char * kwnames[] = {
31729 (char *) "variant", NULL
31730 };
31731
31732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31733 if (obj0) {
31734 ecode1 = SWIG_AsVal_int(obj0, &val1);
31735 if (!SWIG_IsOK(ecode1)) {
31736 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31737 }
31738 arg1 = static_cast< wxWindowVariant >(val1);
31739 }
31740 {
31741 if (!wxPyCheckForApp()) SWIG_fail;
31742 PyThreadState* __tstate = wxPyBeginAllowThreads();
31743 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31744 wxPyEndAllowThreads(__tstate);
31745 if (PyErr_Occurred()) SWIG_fail;
31746 }
31747 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31748 return resultobj;
31749fail:
31750 return NULL;
31751}
31752
31753
31754SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31755 PyObject *obj;
31756 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31757 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31758 return SWIG_Py_Void();
31759}
31760
31761SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31762 return SWIG_Python_InitShadowInstance(args);
31763}
31764
31765SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31766 PyObject *resultobj = 0;
31767 wxWindow *arg1 = (wxWindow *) 0 ;
31768 int arg2 = (int) -1 ;
31769 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31770 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31771 wxSize const &arg4_defvalue = wxDefaultSize ;
31772 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31773 long arg5 = (long) wxLC_REPORT ;
31774 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31775 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31776 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31777 wxString *arg7 = (wxString *) &arg7_defvalue ;
31778 wxListView *result = 0 ;
31779 void *argp1 = 0 ;
31780 int res1 = 0 ;
31781 int val2 ;
31782 int ecode2 = 0 ;
31783 wxPoint temp3 ;
31784 wxSize temp4 ;
31785 long val5 ;
31786 int ecode5 = 0 ;
31787 void *argp6 = 0 ;
31788 int res6 = 0 ;
31789 bool temp7 = false ;
31790 PyObject * obj0 = 0 ;
31791 PyObject * obj1 = 0 ;
31792 PyObject * obj2 = 0 ;
31793 PyObject * obj3 = 0 ;
31794 PyObject * obj4 = 0 ;
31795 PyObject * obj5 = 0 ;
31796 PyObject * obj6 = 0 ;
31797 char * kwnames[] = {
31798 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31799 };
31800
31801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31803 if (!SWIG_IsOK(res1)) {
31804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31805 }
31806 arg1 = reinterpret_cast< wxWindow * >(argp1);
31807 if (obj1) {
31808 ecode2 = SWIG_AsVal_int(obj1, &val2);
31809 if (!SWIG_IsOK(ecode2)) {
31810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31811 }
31812 arg2 = static_cast< int >(val2);
31813 }
31814 if (obj2) {
b411df4a 31815 {
1bd55598
RD
31816 arg3 = &temp3;
31817 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
b411df4a 31818 }
1bd55598
RD
31819 }
31820 if (obj3) {
31821 {
31822 arg4 = &temp4;
31823 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
b411df4a 31824 }
1bd55598
RD
31825 }
31826 if (obj4) {
31827 ecode5 = SWIG_AsVal_long(obj4, &val5);
31828 if (!SWIG_IsOK(ecode5)) {
31829 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31830 }
31831 arg5 = static_cast< long >(val5);
31832 }
31833 if (obj5) {
31834 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31835 if (!SWIG_IsOK(res6)) {
31836 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 31837 }
1bd55598
RD
31838 if (!argp6) {
31839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
b411df4a 31840 }
1bd55598
RD
31841 arg6 = reinterpret_cast< wxValidator * >(argp6);
31842 }
31843 if (obj6) {
b411df4a 31844 {
1bd55598
RD
31845 arg7 = wxString_in_helper(obj6);
31846 if (arg7 == NULL) SWIG_fail;
31847 temp7 = true;
b411df4a 31848 }
1bd55598
RD
31849 }
31850 {
31851 if (!wxPyCheckForApp()) SWIG_fail;
31852 PyThreadState* __tstate = wxPyBeginAllowThreads();
31853 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31854 wxPyEndAllowThreads(__tstate);
31855 if (PyErr_Occurred()) SWIG_fail;
31856 }
31857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31858 {
31859 if (temp7)
31860 delete arg7;
31861 }
31862 return resultobj;
31863fail:
31864 {
31865 if (temp7)
31866 delete arg7;
31867 }
31868 return NULL;
b411df4a
RD
31869}
31870
31871
1bd55598
RD
31872SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31873 PyObject *resultobj = 0;
31874 wxListView *result = 0 ;
31875
31876 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31877 {
31878 if (!wxPyCheckForApp()) SWIG_fail;
31879 PyThreadState* __tstate = wxPyBeginAllowThreads();
31880 result = (wxListView *)new wxListView();
31881 wxPyEndAllowThreads(__tstate);
31882 if (PyErr_Occurred()) SWIG_fail;
31883 }
31884 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31885 return resultobj;
31886fail:
31887 return NULL;
31888}
31889
31890
31891SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31892 PyObject *resultobj = 0;
31893 wxListView *arg1 = (wxListView *) 0 ;
31894 wxWindow *arg2 = (wxWindow *) 0 ;
31895 int arg3 = (int) -1 ;
31896 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31897 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31898 wxSize const &arg5_defvalue = wxDefaultSize ;
31899 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31900 long arg6 = (long) wxLC_REPORT ;
31901 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31902 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31903 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31904 wxString *arg8 = (wxString *) &arg8_defvalue ;
31905 bool result;
31906 void *argp1 = 0 ;
31907 int res1 = 0 ;
31908 void *argp2 = 0 ;
31909 int res2 = 0 ;
31910 int val3 ;
31911 int ecode3 = 0 ;
31912 wxPoint temp4 ;
31913 wxSize temp5 ;
31914 long val6 ;
31915 int ecode6 = 0 ;
31916 void *argp7 = 0 ;
31917 int res7 = 0 ;
31918 bool temp8 = false ;
31919 PyObject * obj0 = 0 ;
31920 PyObject * obj1 = 0 ;
31921 PyObject * obj2 = 0 ;
31922 PyObject * obj3 = 0 ;
31923 PyObject * obj4 = 0 ;
31924 PyObject * obj5 = 0 ;
31925 PyObject * obj6 = 0 ;
31926 PyObject * obj7 = 0 ;
31927 char * kwnames[] = {
31928 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31929 };
31930
31931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31933 if (!SWIG_IsOK(res1)) {
31934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31935 }
31936 arg1 = reinterpret_cast< wxListView * >(argp1);
31937 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31938 if (!SWIG_IsOK(res2)) {
31939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31940 }
31941 arg2 = reinterpret_cast< wxWindow * >(argp2);
31942 if (obj2) {
31943 ecode3 = SWIG_AsVal_int(obj2, &val3);
31944 if (!SWIG_IsOK(ecode3)) {
31945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31946 }
31947 arg3 = static_cast< int >(val3);
31948 }
31949 if (obj3) {
d55e5bfc 31950 {
1bd55598
RD
31951 arg4 = &temp4;
31952 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 31953 }
1bd55598
RD
31954 }
31955 if (obj4) {
36ed4f51 31956 {
1bd55598
RD
31957 arg5 = &temp5;
31958 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 31959 }
1bd55598
RD
31960 }
31961 if (obj5) {
31962 ecode6 = SWIG_AsVal_long(obj5, &val6);
31963 if (!SWIG_IsOK(ecode6)) {
31964 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31965 }
31966 arg6 = static_cast< long >(val6);
31967 }
31968 if (obj6) {
31969 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31970 if (!SWIG_IsOK(res7)) {
31971 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 31972 }
1bd55598
RD
31973 if (!argp7) {
31974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31975 }
31976 arg7 = reinterpret_cast< wxValidator * >(argp7);
31977 }
31978 if (obj7) {
d55e5bfc 31979 {
1bd55598
RD
31980 arg8 = wxString_in_helper(obj7);
31981 if (arg8 == NULL) SWIG_fail;
31982 temp8 = true;
d55e5bfc 31983 }
1bd55598
RD
31984 }
31985 {
31986 PyThreadState* __tstate = wxPyBeginAllowThreads();
31987 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31988 wxPyEndAllowThreads(__tstate);
31989 if (PyErr_Occurred()) SWIG_fail;
31990 }
31991 {
31992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31993 }
31994 {
31995 if (temp8)
31996 delete arg8;
31997 }
31998 return resultobj;
31999fail:
32000 {
32001 if (temp8)
32002 delete arg8;
32003 }
32004 return NULL;
32005}
32006
32007
32008SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32009 PyObject *resultobj = 0;
32010 wxListView *arg1 = (wxListView *) 0 ;
32011 long arg2 ;
32012 bool arg3 = (bool) true ;
32013 void *argp1 = 0 ;
32014 int res1 = 0 ;
32015 long val2 ;
32016 int ecode2 = 0 ;
32017 bool val3 ;
32018 int ecode3 = 0 ;
32019 PyObject * obj0 = 0 ;
32020 PyObject * obj1 = 0 ;
32021 PyObject * obj2 = 0 ;
32022 char * kwnames[] = {
32023 (char *) "self",(char *) "n",(char *) "on", NULL
32024 };
32025
32026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32028 if (!SWIG_IsOK(res1)) {
32029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
32030 }
32031 arg1 = reinterpret_cast< wxListView * >(argp1);
32032 ecode2 = SWIG_AsVal_long(obj1, &val2);
32033 if (!SWIG_IsOK(ecode2)) {
32034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
32035 }
32036 arg2 = static_cast< long >(val2);
32037 if (obj2) {
32038 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32039 if (!SWIG_IsOK(ecode3)) {
32040 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
32041 }
32042 arg3 = static_cast< bool >(val3);
32043 }
32044 {
32045 PyThreadState* __tstate = wxPyBeginAllowThreads();
32046 (arg1)->Select(arg2,arg3);
32047 wxPyEndAllowThreads(__tstate);
32048 if (PyErr_Occurred()) SWIG_fail;
32049 }
32050 resultobj = SWIG_Py_Void();
32051 return resultobj;
32052fail:
32053 return NULL;
32054}
32055
32056
32057SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32058 PyObject *resultobj = 0;
32059 wxListView *arg1 = (wxListView *) 0 ;
32060 long arg2 ;
32061 void *argp1 = 0 ;
32062 int res1 = 0 ;
32063 long val2 ;
32064 int ecode2 = 0 ;
32065 PyObject * obj0 = 0 ;
32066 PyObject * obj1 = 0 ;
32067 char * kwnames[] = {
32068 (char *) "self",(char *) "index", NULL
32069 };
32070
32071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
32072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32073 if (!SWIG_IsOK(res1)) {
32074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
32075 }
32076 arg1 = reinterpret_cast< wxListView * >(argp1);
32077 ecode2 = SWIG_AsVal_long(obj1, &val2);
32078 if (!SWIG_IsOK(ecode2)) {
32079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
32080 }
32081 arg2 = static_cast< long >(val2);
32082 {
32083 PyThreadState* __tstate = wxPyBeginAllowThreads();
32084 (arg1)->Focus(arg2);
32085 wxPyEndAllowThreads(__tstate);
32086 if (PyErr_Occurred()) SWIG_fail;
32087 }
32088 resultobj = SWIG_Py_Void();
32089 return resultobj;
32090fail:
32091 return NULL;
d55e5bfc
RD
32092}
32093
32094
1bd55598
RD
32095SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32096 PyObject *resultobj = 0;
32097 wxListView *arg1 = (wxListView *) 0 ;
32098 long result;
32099 void *argp1 = 0 ;
32100 int res1 = 0 ;
32101 PyObject *swig_obj[1] ;
32102
32103 if (!args) SWIG_fail;
32104 swig_obj[0] = args;
32105 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32106 if (!SWIG_IsOK(res1)) {
32107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
32108 }
32109 arg1 = reinterpret_cast< wxListView * >(argp1);
32110 {
32111 PyThreadState* __tstate = wxPyBeginAllowThreads();
32112 result = (long)((wxListView const *)arg1)->GetFocusedItem();
32113 wxPyEndAllowThreads(__tstate);
32114 if (PyErr_Occurred()) SWIG_fail;
32115 }
32116 resultobj = SWIG_From_long(static_cast< long >(result));
32117 return resultobj;
32118fail:
32119 return NULL;
32120}
32121
32122
32123SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32124 PyObject *resultobj = 0;
32125 wxListView *arg1 = (wxListView *) 0 ;
32126 long arg2 ;
32127 long result;
32128 void *argp1 = 0 ;
32129 int res1 = 0 ;
32130 long val2 ;
32131 int ecode2 = 0 ;
32132 PyObject * obj0 = 0 ;
32133 PyObject * obj1 = 0 ;
32134 char * kwnames[] = {
32135 (char *) "self",(char *) "item", NULL
32136 };
32137
32138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32140 if (!SWIG_IsOK(res1)) {
32141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32142 }
32143 arg1 = reinterpret_cast< wxListView * >(argp1);
32144 ecode2 = SWIG_AsVal_long(obj1, &val2);
32145 if (!SWIG_IsOK(ecode2)) {
32146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
32147 }
32148 arg2 = static_cast< long >(val2);
32149 {
32150 PyThreadState* __tstate = wxPyBeginAllowThreads();
32151 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
32152 wxPyEndAllowThreads(__tstate);
32153 if (PyErr_Occurred()) SWIG_fail;
32154 }
32155 resultobj = SWIG_From_long(static_cast< long >(result));
32156 return resultobj;
32157fail:
32158 return NULL;
d55e5bfc
RD
32159}
32160
32161
1bd55598
RD
32162SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32163 PyObject *resultobj = 0;
32164 wxListView *arg1 = (wxListView *) 0 ;
32165 long result;
32166 void *argp1 = 0 ;
32167 int res1 = 0 ;
32168 PyObject *swig_obj[1] ;
32169
32170 if (!args) SWIG_fail;
32171 swig_obj[0] = args;
32172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32173 if (!SWIG_IsOK(res1)) {
32174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32175 }
32176 arg1 = reinterpret_cast< wxListView * >(argp1);
32177 {
32178 PyThreadState* __tstate = wxPyBeginAllowThreads();
32179 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32180 wxPyEndAllowThreads(__tstate);
32181 if (PyErr_Occurred()) SWIG_fail;
32182 }
32183 resultobj = SWIG_From_long(static_cast< long >(result));
32184 return resultobj;
32185fail:
32186 return NULL;
32187}
32188
32189
32190SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32191 PyObject *resultobj = 0;
32192 wxListView *arg1 = (wxListView *) 0 ;
32193 long arg2 ;
32194 bool result;
32195 void *argp1 = 0 ;
32196 int res1 = 0 ;
32197 long val2 ;
32198 int ecode2 = 0 ;
32199 PyObject * obj0 = 0 ;
32200 PyObject * obj1 = 0 ;
32201 char * kwnames[] = {
32202 (char *) "self",(char *) "index", NULL
32203 };
32204
32205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32207 if (!SWIG_IsOK(res1)) {
32208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32209 }
32210 arg1 = reinterpret_cast< wxListView * >(argp1);
32211 ecode2 = SWIG_AsVal_long(obj1, &val2);
32212 if (!SWIG_IsOK(ecode2)) {
32213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32214 }
32215 arg2 = static_cast< long >(val2);
32216 {
32217 PyThreadState* __tstate = wxPyBeginAllowThreads();
32218 result = (bool)(arg1)->IsSelected(arg2);
32219 wxPyEndAllowThreads(__tstate);
32220 if (PyErr_Occurred()) SWIG_fail;
32221 }
32222 {
32223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32224 }
32225 return resultobj;
32226fail:
32227 return NULL;
32228}
32229
32230
32231SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32232 PyObject *resultobj = 0;
32233 wxListView *arg1 = (wxListView *) 0 ;
32234 int arg2 ;
32235 int arg3 ;
32236 void *argp1 = 0 ;
32237 int res1 = 0 ;
32238 int val2 ;
32239 int ecode2 = 0 ;
32240 int val3 ;
32241 int ecode3 = 0 ;
32242 PyObject * obj0 = 0 ;
32243 PyObject * obj1 = 0 ;
32244 PyObject * obj2 = 0 ;
32245 char * kwnames[] = {
32246 (char *) "self",(char *) "col",(char *) "image", NULL
32247 };
32248
32249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32251 if (!SWIG_IsOK(res1)) {
32252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32253 }
32254 arg1 = reinterpret_cast< wxListView * >(argp1);
32255 ecode2 = SWIG_AsVal_int(obj1, &val2);
32256 if (!SWIG_IsOK(ecode2)) {
32257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32258 }
32259 arg2 = static_cast< int >(val2);
32260 ecode3 = SWIG_AsVal_int(obj2, &val3);
32261 if (!SWIG_IsOK(ecode3)) {
32262 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32263 }
32264 arg3 = static_cast< int >(val3);
32265 {
32266 PyThreadState* __tstate = wxPyBeginAllowThreads();
32267 (arg1)->SetColumnImage(arg2,arg3);
32268 wxPyEndAllowThreads(__tstate);
32269 if (PyErr_Occurred()) SWIG_fail;
32270 }
32271 resultobj = SWIG_Py_Void();
32272 return resultobj;
32273fail:
32274 return NULL;
32275}
32276
32277
32278SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32279 PyObject *resultobj = 0;
32280 wxListView *arg1 = (wxListView *) 0 ;
32281 int arg2 ;
32282 void *argp1 = 0 ;
32283 int res1 = 0 ;
32284 int val2 ;
32285 int ecode2 = 0 ;
32286 PyObject * obj0 = 0 ;
32287 PyObject * obj1 = 0 ;
32288 char * kwnames[] = {
32289 (char *) "self",(char *) "col", NULL
32290 };
32291
32292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32294 if (!SWIG_IsOK(res1)) {
32295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32296 }
32297 arg1 = reinterpret_cast< wxListView * >(argp1);
32298 ecode2 = SWIG_AsVal_int(obj1, &val2);
32299 if (!SWIG_IsOK(ecode2)) {
32300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32301 }
32302 arg2 = static_cast< int >(val2);
32303 {
32304 PyThreadState* __tstate = wxPyBeginAllowThreads();
32305 (arg1)->ClearColumnImage(arg2);
32306 wxPyEndAllowThreads(__tstate);
32307 if (PyErr_Occurred()) SWIG_fail;
32308 }
32309 resultobj = SWIG_Py_Void();
32310 return resultobj;
32311fail:
32312 return NULL;
d55e5bfc
RD
32313}
32314
32315
1bd55598
RD
32316SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32317 PyObject *obj;
32318 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32319 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32320 return SWIG_Py_Void();
d55e5bfc
RD
32321}
32322
1bd55598
RD
32323SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32324 return SWIG_Python_InitShadowInstance(args);
32325}
d55e5bfc 32326
1bd55598
RD
32327SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32328 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32329 return 1;
d55e5bfc
RD
32330}
32331
32332
1bd55598
RD
32333SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32334 PyObject *pyobj = 0;
32335
32336 {
32337#if wxUSE_UNICODE
32338 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32339#else
32340 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32341#endif
32342 }
32343 return pyobj;
d55e5bfc
RD
32344}
32345
32346
1bd55598
RD
32347SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32348 PyObject *resultobj = 0;
32349 wxTreeItemId *result = 0 ;
32350
32351 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32352 {
32353 PyThreadState* __tstate = wxPyBeginAllowThreads();
32354 result = (wxTreeItemId *)new wxTreeItemId();
32355 wxPyEndAllowThreads(__tstate);
32356 if (PyErr_Occurred()) SWIG_fail;
32357 }
32358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32359 return resultobj;
32360fail:
32361 return NULL;
d55e5bfc
RD
32362}
32363
32364
1bd55598
RD
32365SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32366 PyObject *resultobj = 0;
32367 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32368 void *argp1 = 0 ;
32369 int res1 = 0 ;
32370 PyObject *swig_obj[1] ;
32371
32372 if (!args) SWIG_fail;
32373 swig_obj[0] = args;
32374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32375 if (!SWIG_IsOK(res1)) {
32376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32377 }
32378 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32379 {
32380 PyThreadState* __tstate = wxPyBeginAllowThreads();
32381 delete arg1;
d55e5bfc 32382
1bd55598
RD
32383 wxPyEndAllowThreads(__tstate);
32384 if (PyErr_Occurred()) SWIG_fail;
32385 }
32386 resultobj = SWIG_Py_Void();
32387 return resultobj;
32388fail:
32389 return NULL;
d55e5bfc
RD
32390}
32391
32392
1bd55598
RD
32393SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32394 PyObject *resultobj = 0;
32395 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32396 bool result;
32397 void *argp1 = 0 ;
32398 int res1 = 0 ;
32399 PyObject *swig_obj[1] ;
32400
32401 if (!args) SWIG_fail;
32402 swig_obj[0] = args;
32403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32404 if (!SWIG_IsOK(res1)) {
32405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32406 }
32407 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32408 {
32409 PyThreadState* __tstate = wxPyBeginAllowThreads();
32410 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32411 wxPyEndAllowThreads(__tstate);
32412 if (PyErr_Occurred()) SWIG_fail;
32413 }
32414 {
32415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32416 }
32417 return resultobj;
32418fail:
32419 return NULL;
32420}
32421
32422
32423SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32424 PyObject *resultobj = 0;
32425 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32426 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32427 bool result;
32428 void *argp1 = 0 ;
32429 int res1 = 0 ;
32430 void *argp2 = 0 ;
32431 int res2 = 0 ;
32432 PyObject * obj0 = 0 ;
32433 PyObject * obj1 = 0 ;
32434 char * kwnames[] = {
32435 (char *) "self",(char *) "other", NULL
32436 };
32437
32438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32440 if (!SWIG_IsOK(res1)) {
32441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32442 }
32443 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32444 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32445 if (!SWIG_IsOK(res2)) {
32446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32447 }
32448 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32449 {
32450 PyThreadState* __tstate = wxPyBeginAllowThreads();
32451 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32452 wxPyEndAllowThreads(__tstate);
32453 if (PyErr_Occurred()) SWIG_fail;
32454 }
32455 {
32456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32457 }
32458 return resultobj;
32459fail:
32460 return NULL;
32461}
32462
32463
32464SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32465 PyObject *resultobj = 0;
32466 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32467 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32468 bool result;
32469 void *argp1 = 0 ;
32470 int res1 = 0 ;
32471 void *argp2 = 0 ;
32472 int res2 = 0 ;
32473 PyObject * obj0 = 0 ;
32474 PyObject * obj1 = 0 ;
32475 char * kwnames[] = {
32476 (char *) "self",(char *) "other", NULL
32477 };
32478
32479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32481 if (!SWIG_IsOK(res1)) {
32482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32483 }
32484 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32485 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32486 if (!SWIG_IsOK(res2)) {
32487 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32488 }
32489 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32490 {
32491 PyThreadState* __tstate = wxPyBeginAllowThreads();
32492 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32493 wxPyEndAllowThreads(__tstate);
32494 if (PyErr_Occurred()) SWIG_fail;
32495 }
32496 {
32497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32498 }
32499 return resultobj;
32500fail:
32501 return NULL;
d55e5bfc
RD
32502}
32503
32504
1bd55598
RD
32505SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32506 PyObject *resultobj = 0;
32507 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32508 void *arg2 = (void *) 0 ;
32509 void *argp1 = 0 ;
32510 int res1 = 0 ;
32511 int res2 ;
32512 PyObject *swig_obj[2] ;
32513
32514 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32516 if (!SWIG_IsOK(res1)) {
32517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32518 }
32519 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32520 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32521 if (!SWIG_IsOK(res2)) {
32522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32523 }
32524 if (arg1) (arg1)->m_pItem = arg2;
32525
32526 resultobj = SWIG_Py_Void();
32527 return resultobj;
32528fail:
32529 return NULL;
d55e5bfc
RD
32530}
32531
32532
1bd55598
RD
32533SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32534 PyObject *resultobj = 0;
32535 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32536 void *result = 0 ;
32537 void *argp1 = 0 ;
32538 int res1 = 0 ;
32539 PyObject *swig_obj[1] ;
32540
32541 if (!args) SWIG_fail;
32542 swig_obj[0] = args;
32543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32544 if (!SWIG_IsOK(res1)) {
32545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32546 }
32547 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32548 result = (void *) ((arg1)->m_pItem);
32549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32550 return resultobj;
32551fail:
32552 return NULL;
d55e5bfc
RD
32553}
32554
32555
1bd55598
RD
32556SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32557 PyObject *obj;
32558 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32559 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32560 return SWIG_Py_Void();
d55e5bfc
RD
32561}
32562
1bd55598
RD
32563SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32564 return SWIG_Python_InitShadowInstance(args);
32565}
d55e5bfc 32566
1bd55598
RD
32567SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32568 PyObject *resultobj = 0;
32569 PyObject *arg1 = (PyObject *) NULL ;
32570 wxPyTreeItemData *result = 0 ;
32571 PyObject * obj0 = 0 ;
32572 char * kwnames[] = {
32573 (char *) "obj", NULL
32574 };
32575
32576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32577 if (obj0) {
32578 arg1 = obj0;
32579 }
32580 {
32581 PyThreadState* __tstate = wxPyBeginAllowThreads();
32582 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32583 wxPyEndAllowThreads(__tstate);
32584 if (PyErr_Occurred()) SWIG_fail;
32585 }
32586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32587 return resultobj;
32588fail:
32589 return NULL;
d55e5bfc
RD
32590}
32591
32592
1bd55598
RD
32593SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32594 PyObject *resultobj = 0;
32595 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32596 void *argp1 = 0 ;
32597 int res1 = 0 ;
32598 PyObject *swig_obj[1] ;
32599
32600 if (!args) SWIG_fail;
32601 swig_obj[0] = args;
32602 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32603 if (!SWIG_IsOK(res1)) {
32604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32605 }
32606 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32607 {
32608 PyThreadState* __tstate = wxPyBeginAllowThreads();
32609 delete arg1;
d55e5bfc 32610
1bd55598
RD
32611 wxPyEndAllowThreads(__tstate);
32612 if (PyErr_Occurred()) SWIG_fail;
32613 }
32614 resultobj = SWIG_Py_Void();
32615 return resultobj;
32616fail:
32617 return NULL;
d55e5bfc
RD
32618}
32619
32620
1bd55598
RD
32621SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32622 PyObject *resultobj = 0;
32623 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32624 PyObject *result = 0 ;
32625 void *argp1 = 0 ;
32626 int res1 = 0 ;
32627 PyObject *swig_obj[1] ;
32628
32629 if (!args) SWIG_fail;
32630 swig_obj[0] = args;
32631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32632 if (!SWIG_IsOK(res1)) {
32633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32634 }
32635 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32636 {
32637 PyThreadState* __tstate = wxPyBeginAllowThreads();
32638 result = (PyObject *)(arg1)->GetData();
32639 wxPyEndAllowThreads(__tstate);
32640 if (PyErr_Occurred()) SWIG_fail;
32641 }
32642 resultobj = result;
32643 return resultobj;
32644fail:
32645 return NULL;
32646}
32647
32648
32649SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32650 PyObject *resultobj = 0;
32651 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32652 PyObject *arg2 = (PyObject *) 0 ;
32653 void *argp1 = 0 ;
32654 int res1 = 0 ;
32655 PyObject * obj0 = 0 ;
32656 PyObject * obj1 = 0 ;
32657 char * kwnames[] = {
32658 (char *) "self",(char *) "obj", NULL
32659 };
32660
32661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32663 if (!SWIG_IsOK(res1)) {
32664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32665 }
32666 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32667 arg2 = obj1;
32668 {
32669 PyThreadState* __tstate = wxPyBeginAllowThreads();
32670 (arg1)->SetData(arg2);
32671 wxPyEndAllowThreads(__tstate);
32672 if (PyErr_Occurred()) SWIG_fail;
32673 }
32674 resultobj = SWIG_Py_Void();
32675 return resultobj;
32676fail:
32677 return NULL;
d55e5bfc
RD
32678}
32679
32680
1bd55598
RD
32681SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32682 PyObject *resultobj = 0;
32683 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32684 wxTreeItemId *result = 0 ;
32685 void *argp1 = 0 ;
32686 int res1 = 0 ;
32687 PyObject *swig_obj[1] ;
32688
32689 if (!args) SWIG_fail;
32690 swig_obj[0] = args;
32691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32692 if (!SWIG_IsOK(res1)) {
32693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32694 }
32695 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32696 {
32697 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 32698 {
1bd55598
RD
32699 wxTreeItemId const &_result_ref = (arg1)->GetId();
32700 result = (wxTreeItemId *) &_result_ref;
d55e5bfc 32701 }
1bd55598
RD
32702 wxPyEndAllowThreads(__tstate);
32703 if (PyErr_Occurred()) SWIG_fail;
32704 }
32705 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32706 return resultobj;
32707fail:
32708 return NULL;
32709}
32710
32711
32712SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32713 PyObject *resultobj = 0;
32714 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32715 wxTreeItemId *arg2 = 0 ;
32716 void *argp1 = 0 ;
32717 int res1 = 0 ;
32718 void *argp2 = 0 ;
32719 int res2 = 0 ;
32720 PyObject * obj0 = 0 ;
32721 PyObject * obj1 = 0 ;
32722 char * kwnames[] = {
32723 (char *) "self",(char *) "id", NULL
32724 };
32725
32726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32728 if (!SWIG_IsOK(res1)) {
32729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32730 }
32731 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32732 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32733 if (!SWIG_IsOK(res2)) {
32734 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32735 }
32736 if (!argp2) {
32737 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32738 }
32739 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32740 {
32741 PyThreadState* __tstate = wxPyBeginAllowThreads();
32742 (arg1)->SetId((wxTreeItemId const &)*arg2);
32743 wxPyEndAllowThreads(__tstate);
32744 if (PyErr_Occurred()) SWIG_fail;
32745 }
32746 resultobj = SWIG_Py_Void();
32747 return resultobj;
32748fail:
32749 return NULL;
d55e5bfc
RD
32750}
32751
32752
1bd55598
RD
32753SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32754 PyObject *resultobj = 0;
32755 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32756 void *argp1 = 0 ;
32757 int res1 = 0 ;
32758 PyObject *swig_obj[1] ;
32759
32760 if (!args) SWIG_fail;
32761 swig_obj[0] = args;
32762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32763 if (!SWIG_IsOK(res1)) {
32764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32765 }
32766 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32767 {
32768 PyThreadState* __tstate = wxPyBeginAllowThreads();
32769 wxPyTreeItemData_Destroy(arg1);
32770 wxPyEndAllowThreads(__tstate);
32771 if (PyErr_Occurred()) SWIG_fail;
32772 }
32773 resultobj = SWIG_Py_Void();
32774 return resultobj;
32775fail:
32776 return NULL;
d55e5bfc
RD
32777}
32778
32779
1bd55598
RD
32780SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32781 PyObject *obj;
32782 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32783 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32784 return SWIG_Py_Void();
d55e5bfc
RD
32785}
32786
1bd55598
RD
32787SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32788 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
32789}
32790
b02396e8
RD
32791SWIGINTERN int NullTreeItemId_set(PyObject *_val) {
32792 {
32793 void *argp = 0;
32794 int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32795 if (!SWIG_IsOK(res)) {
32796 SWIG_exception_fail(SWIG_ArgError(res), "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32797 }
32798 if (!argp) {
32799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""wxNullTreeItemId""' of type '""wxTreeItemId""'");
32800 } else {
32801 wxTreeItemId * temp;
32802 temp = reinterpret_cast< wxTreeItemId * >(argp);
32803 wxNullTreeItemId = *temp;
32804 if (SWIG_IsNewObj(res)) delete temp;
32805 }
32806 }
32807 return 0;
32808fail:
32809 return 1;
32810}
32811
32812
32813SWIGINTERN PyObject *NullTreeItemId_get(void) {
32814 PyObject *pyobj = 0;
32815
32816 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullTreeItemId), SWIGTYPE_p_wxTreeItemId, 0 );
32817 return pyobj;
32818}
32819
32820
32821SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
1bd55598
RD
32822 PyObject *resultobj = 0;
32823 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32824 int arg2 = (int) 0 ;
32825 wxTreeEvent *result = 0 ;
32826 int val1 ;
32827 int ecode1 = 0 ;
32828 int val2 ;
32829 int ecode2 = 0 ;
1bd55598 32830
b02396e8
RD
32831 if ((nobjs < 0) || (nobjs > 2)) SWIG_fail;
32832 if (swig_obj[0]) {
32833 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
1bd55598
RD
32834 if (!SWIG_IsOK(ecode1)) {
32835 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32836 }
32837 arg1 = static_cast< wxEventType >(val1);
32838 }
b02396e8
RD
32839 if (swig_obj[1]) {
32840 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
1bd55598
RD
32841 if (!SWIG_IsOK(ecode2)) {
32842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32843 }
32844 arg2 = static_cast< int >(val2);
32845 }
32846 {
32847 PyThreadState* __tstate = wxPyBeginAllowThreads();
32848 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32849 wxPyEndAllowThreads(__tstate);
32850 if (PyErr_Occurred()) SWIG_fail;
32851 }
32852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32853 return resultobj;
32854fail:
32855 return NULL;
d55e5bfc
RD
32856}
32857
32858
b02396e8
RD
32859SWIGINTERN PyObject *_wrap_new_TreeEvent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
32860 PyObject *resultobj = 0;
32861 wxEventType arg1 ;
32862 wxPyTreeCtrl *arg2 = (wxPyTreeCtrl *) 0 ;
32863 wxTreeItemId &arg3_defvalue = wxNullTreeItemId ;
32864 wxTreeItemId *arg3 = (wxTreeItemId *) &arg3_defvalue ;
32865 wxTreeEvent *result = 0 ;
32866 int val1 ;
32867 int ecode1 = 0 ;
32868 void *argp2 = 0 ;
32869 int res2 = 0 ;
32870 void *argp3 = 0 ;
32871 int res3 = 0 ;
32872
32873 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
32874 ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
32875 if (!SWIG_IsOK(ecode1)) {
32876 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32877 }
32878 arg1 = static_cast< wxEventType >(val1);
32879 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
32880 if (!SWIG_IsOK(res2)) {
32881 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "wxPyTreeCtrl *""'");
32882 }
32883 arg2 = reinterpret_cast< wxPyTreeCtrl * >(argp2);
32884 if (swig_obj[2]) {
32885 res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxTreeItemId, 0 );
32886 if (!SWIG_IsOK(res3)) {
32887 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32888 }
32889 if (!argp3) {
32890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeEvent" "', expected argument " "3"" of type '" "wxTreeItemId &""'");
32891 }
32892 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
32893 }
32894 {
32895 PyThreadState* __tstate = wxPyBeginAllowThreads();
32896 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2,*arg3);
32897 wxPyEndAllowThreads(__tstate);
32898 if (PyErr_Occurred()) SWIG_fail;
32899 }
32900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32901 return resultobj;
32902fail:
32903 return NULL;
32904}
32905
32906
32907SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args) {
32908 int argc;
32909 PyObject *argv[4];
32910
32911 if (!(argc = SWIG_Python_UnpackTuple(args,"new_TreeEvent",0,3,argv))) SWIG_fail;
32912 --argc;
32913 if ((argc >= 0) && (argc <= 2)) {
32914 int _v = 0;
32915 if (argc > 1) {
32916 {
32917 {
32918 int res = SWIG_AsVal_int(argv[1], NULL);
32919 _v = SWIG_CheckState(res);
32920 }
32921 }
32922 if (!_v) goto check_1;
32923 }
32924 return _wrap_new_TreeEvent__SWIG_0(self, argc, argv);
32925 }
32926check_1:
32927
32928 if ((argc >= 2) && (argc <= 3)) {
32929 return _wrap_new_TreeEvent__SWIG_1(self, argc, argv);
32930 }
32931
32932fail:
32933 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_TreeEvent'");
32934 return NULL;
32935}
32936
32937
1bd55598
RD
32938SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32939 PyObject *resultobj = 0;
32940 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32941 wxTreeItemId result;
32942 void *argp1 = 0 ;
32943 int res1 = 0 ;
32944 PyObject *swig_obj[1] ;
32945
32946 if (!args) SWIG_fail;
32947 swig_obj[0] = args;
32948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32949 if (!SWIG_IsOK(res1)) {
32950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32951 }
32952 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32953 {
32954 PyThreadState* __tstate = wxPyBeginAllowThreads();
32955 result = ((wxTreeEvent const *)arg1)->GetItem();
32956 wxPyEndAllowThreads(__tstate);
32957 if (PyErr_Occurred()) SWIG_fail;
32958 }
32959 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32960 return resultobj;
32961fail:
32962 return NULL;
32963}
32964
32965
32966SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32967 PyObject *resultobj = 0;
32968 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32969 wxTreeItemId *arg2 = 0 ;
32970 void *argp1 = 0 ;
32971 int res1 = 0 ;
32972 void *argp2 = 0 ;
32973 int res2 = 0 ;
32974 PyObject * obj0 = 0 ;
32975 PyObject * obj1 = 0 ;
32976 char * kwnames[] = {
32977 (char *) "self",(char *) "item", NULL
32978 };
32979
32980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32982 if (!SWIG_IsOK(res1)) {
32983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32984 }
32985 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32986 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32987 if (!SWIG_IsOK(res2)) {
32988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32989 }
32990 if (!argp2) {
32991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32992 }
32993 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32994 {
32995 PyThreadState* __tstate = wxPyBeginAllowThreads();
32996 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32997 wxPyEndAllowThreads(__tstate);
32998 if (PyErr_Occurred()) SWIG_fail;
32999 }
33000 resultobj = SWIG_Py_Void();
33001 return resultobj;
33002fail:
33003 return NULL;
d55e5bfc
RD
33004}
33005
33006
1bd55598
RD
33007SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33008 PyObject *resultobj = 0;
33009 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33010 wxTreeItemId result;
33011 void *argp1 = 0 ;
33012 int res1 = 0 ;
33013 PyObject *swig_obj[1] ;
33014
33015 if (!args) SWIG_fail;
33016 swig_obj[0] = args;
33017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33018 if (!SWIG_IsOK(res1)) {
33019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33020 }
33021 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33022 {
33023 PyThreadState* __tstate = wxPyBeginAllowThreads();
33024 result = ((wxTreeEvent const *)arg1)->GetOldItem();
33025 wxPyEndAllowThreads(__tstate);
33026 if (PyErr_Occurred()) SWIG_fail;
33027 }
33028 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
33029 return resultobj;
33030fail:
33031 return NULL;
33032}
33033
33034
33035SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33036 PyObject *resultobj = 0;
33037 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33038 wxTreeItemId *arg2 = 0 ;
33039 void *argp1 = 0 ;
33040 int res1 = 0 ;
33041 void *argp2 = 0 ;
33042 int res2 = 0 ;
33043 PyObject * obj0 = 0 ;
33044 PyObject * obj1 = 0 ;
33045 char * kwnames[] = {
33046 (char *) "self",(char *) "item", NULL
33047 };
33048
33049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
33050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33051 if (!SWIG_IsOK(res1)) {
33052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33053 }
33054 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33055 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33056 if (!SWIG_IsOK(res2)) {
33057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33058 }
33059 if (!argp2) {
33060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33061 }
33062 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33063 {
33064 PyThreadState* __tstate = wxPyBeginAllowThreads();
33065 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
33066 wxPyEndAllowThreads(__tstate);
33067 if (PyErr_Occurred()) SWIG_fail;
33068 }
33069 resultobj = SWIG_Py_Void();
33070 return resultobj;
33071fail:
33072 return NULL;
d55e5bfc
RD
33073}
33074
33075
1bd55598
RD
33076SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33077 PyObject *resultobj = 0;
33078 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33079 wxPoint result;
33080 void *argp1 = 0 ;
33081 int res1 = 0 ;
33082 PyObject *swig_obj[1] ;
33083
33084 if (!args) SWIG_fail;
33085 swig_obj[0] = args;
33086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33087 if (!SWIG_IsOK(res1)) {
33088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33089 }
33090 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33091 {
33092 PyThreadState* __tstate = wxPyBeginAllowThreads();
33093 result = ((wxTreeEvent const *)arg1)->GetPoint();
33094 wxPyEndAllowThreads(__tstate);
33095 if (PyErr_Occurred()) SWIG_fail;
33096 }
33097 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
33098 return resultobj;
33099fail:
33100 return NULL;
33101}
33102
33103
33104SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33105 PyObject *resultobj = 0;
33106 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33107 wxPoint *arg2 = 0 ;
33108 void *argp1 = 0 ;
33109 int res1 = 0 ;
33110 wxPoint temp2 ;
33111 PyObject * obj0 = 0 ;
33112 PyObject * obj1 = 0 ;
33113 char * kwnames[] = {
33114 (char *) "self",(char *) "pt", NULL
33115 };
33116
33117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33119 if (!SWIG_IsOK(res1)) {
33120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33121 }
33122 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33123 {
33124 arg2 = &temp2;
33125 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33126 }
33127 {
33128 PyThreadState* __tstate = wxPyBeginAllowThreads();
33129 (arg1)->SetPoint((wxPoint const &)*arg2);
33130 wxPyEndAllowThreads(__tstate);
33131 if (PyErr_Occurred()) SWIG_fail;
33132 }
33133 resultobj = SWIG_Py_Void();
33134 return resultobj;
33135fail:
33136 return NULL;
d55e5bfc
RD
33137}
33138
33139
1bd55598
RD
33140SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33141 PyObject *resultobj = 0;
33142 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33143 wxKeyEvent *result = 0 ;
33144 void *argp1 = 0 ;
33145 int res1 = 0 ;
33146 PyObject *swig_obj[1] ;
33147
33148 if (!args) SWIG_fail;
33149 swig_obj[0] = args;
33150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33151 if (!SWIG_IsOK(res1)) {
33152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33153 }
33154 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33155 {
33156 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33157 {
1bd55598
RD
33158 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
33159 result = (wxKeyEvent *) &_result_ref;
d55e5bfc 33160 }
1bd55598
RD
33161 wxPyEndAllowThreads(__tstate);
33162 if (PyErr_Occurred()) SWIG_fail;
33163 }
33164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
33165 return resultobj;
33166fail:
33167 return NULL;
d55e5bfc
RD
33168}
33169
33170
1bd55598
RD
33171SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33172 PyObject *resultobj = 0;
33173 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33174 int result;
33175 void *argp1 = 0 ;
33176 int res1 = 0 ;
33177 PyObject *swig_obj[1] ;
33178
33179 if (!args) SWIG_fail;
33180 swig_obj[0] = args;
33181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33182 if (!SWIG_IsOK(res1)) {
33183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33184 }
33185 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33186 {
33187 PyThreadState* __tstate = wxPyBeginAllowThreads();
33188 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
33189 wxPyEndAllowThreads(__tstate);
33190 if (PyErr_Occurred()) SWIG_fail;
33191 }
33192 resultobj = SWIG_From_int(static_cast< int >(result));
33193 return resultobj;
33194fail:
33195 return NULL;
33196}
33197
33198
33199SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33200 PyObject *resultobj = 0;
33201 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33202 wxKeyEvent *arg2 = 0 ;
33203 void *argp1 = 0 ;
33204 int res1 = 0 ;
33205 void *argp2 = 0 ;
33206 int res2 = 0 ;
33207 PyObject * obj0 = 0 ;
33208 PyObject * obj1 = 0 ;
33209 char * kwnames[] = {
33210 (char *) "self",(char *) "evt", NULL
33211 };
33212
33213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
33214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33215 if (!SWIG_IsOK(res1)) {
33216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33217 }
33218 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
33220 if (!SWIG_IsOK(res2)) {
33221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33222 }
33223 if (!argp2) {
33224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
33225 }
33226 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
33227 {
33228 PyThreadState* __tstate = wxPyBeginAllowThreads();
33229 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
33230 wxPyEndAllowThreads(__tstate);
33231 if (PyErr_Occurred()) SWIG_fail;
33232 }
33233 resultobj = SWIG_Py_Void();
33234 return resultobj;
33235fail:
33236 return NULL;
d55e5bfc
RD
33237}
33238
33239
1bd55598
RD
33240SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33241 PyObject *resultobj = 0;
33242 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33243 wxString *result = 0 ;
33244 void *argp1 = 0 ;
33245 int res1 = 0 ;
33246 PyObject *swig_obj[1] ;
33247
33248 if (!args) SWIG_fail;
33249 swig_obj[0] = args;
33250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33251 if (!SWIG_IsOK(res1)) {
33252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33253 }
33254 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33255 {
33256 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 33257 {
1bd55598
RD
33258 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
33259 result = (wxString *) &_result_ref;
d55e5bfc 33260 }
1bd55598
RD
33261 wxPyEndAllowThreads(__tstate);
33262 if (PyErr_Occurred()) SWIG_fail;
33263 }
33264 {
33265#if wxUSE_UNICODE
33266 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33267#else
33268 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33269#endif
33270 }
33271 return resultobj;
33272fail:
33273 return NULL;
33274}
33275
33276
33277SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33278 PyObject *resultobj = 0;
33279 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33280 wxString *arg2 = 0 ;
33281 void *argp1 = 0 ;
33282 int res1 = 0 ;
33283 bool temp2 = false ;
33284 PyObject * obj0 = 0 ;
33285 PyObject * obj1 = 0 ;
33286 char * kwnames[] = {
33287 (char *) "self",(char *) "label", NULL
33288 };
33289
33290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33292 if (!SWIG_IsOK(res1)) {
33293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33294 }
33295 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33296 {
33297 arg2 = wxString_in_helper(obj1);
33298 if (arg2 == NULL) SWIG_fail;
33299 temp2 = true;
33300 }
33301 {
33302 PyThreadState* __tstate = wxPyBeginAllowThreads();
33303 (arg1)->SetLabel((wxString const &)*arg2);
33304 wxPyEndAllowThreads(__tstate);
33305 if (PyErr_Occurred()) SWIG_fail;
33306 }
33307 resultobj = SWIG_Py_Void();
33308 {
33309 if (temp2)
33310 delete arg2;
33311 }
33312 return resultobj;
33313fail:
33314 {
33315 if (temp2)
33316 delete arg2;
33317 }
33318 return NULL;
d55e5bfc
RD
33319}
33320
33321
1bd55598
RD
33322SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33323 PyObject *resultobj = 0;
33324 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33325 bool result;
33326 void *argp1 = 0 ;
33327 int res1 = 0 ;
33328 PyObject *swig_obj[1] ;
33329
33330 if (!args) SWIG_fail;
33331 swig_obj[0] = args;
33332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33333 if (!SWIG_IsOK(res1)) {
33334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33335 }
33336 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33337 {
33338 PyThreadState* __tstate = wxPyBeginAllowThreads();
33339 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33340 wxPyEndAllowThreads(__tstate);
33341 if (PyErr_Occurred()) SWIG_fail;
33342 }
33343 {
33344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33345 }
33346 return resultobj;
33347fail:
33348 return NULL;
33349}
33350
33351
33352SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33353 PyObject *resultobj = 0;
33354 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33355 bool arg2 ;
33356 void *argp1 = 0 ;
33357 int res1 = 0 ;
33358 bool val2 ;
33359 int ecode2 = 0 ;
33360 PyObject * obj0 = 0 ;
33361 PyObject * obj1 = 0 ;
33362 char * kwnames[] = {
33363 (char *) "self",(char *) "editCancelled", NULL
33364 };
33365
33366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33368 if (!SWIG_IsOK(res1)) {
33369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33370 }
33371 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33372 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33373 if (!SWIG_IsOK(ecode2)) {
33374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33375 }
33376 arg2 = static_cast< bool >(val2);
33377 {
33378 PyThreadState* __tstate = wxPyBeginAllowThreads();
33379 (arg1)->SetEditCanceled(arg2);
33380 wxPyEndAllowThreads(__tstate);
33381 if (PyErr_Occurred()) SWIG_fail;
33382 }
33383 resultobj = SWIG_Py_Void();
33384 return resultobj;
33385fail:
33386 return NULL;
33387}
33388
33389
33390SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33391 PyObject *resultobj = 0;
33392 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33393 wxString *arg2 = 0 ;
33394 void *argp1 = 0 ;
33395 int res1 = 0 ;
33396 bool temp2 = false ;
33397 PyObject * obj0 = 0 ;
33398 PyObject * obj1 = 0 ;
33399 char * kwnames[] = {
33400 (char *) "self",(char *) "toolTip", NULL
33401 };
33402
33403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33405 if (!SWIG_IsOK(res1)) {
33406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33407 }
33408 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33409 {
33410 arg2 = wxString_in_helper(obj1);
33411 if (arg2 == NULL) SWIG_fail;
33412 temp2 = true;
33413 }
33414 {
33415 PyThreadState* __tstate = wxPyBeginAllowThreads();
33416 (arg1)->SetToolTip((wxString const &)*arg2);
33417 wxPyEndAllowThreads(__tstate);
33418 if (PyErr_Occurred()) SWIG_fail;
33419 }
33420 resultobj = SWIG_Py_Void();
33421 {
33422 if (temp2)
33423 delete arg2;
33424 }
33425 return resultobj;
33426fail:
33427 {
33428 if (temp2)
33429 delete arg2;
33430 }
33431 return NULL;
d55e5bfc
RD
33432}
33433
33434
1bd55598
RD
33435SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33436 PyObject *resultobj = 0;
33437 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33438 wxString 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_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33448 }
33449 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33450 {
33451 PyThreadState* __tstate = wxPyBeginAllowThreads();
33452 result = (arg1)->GetToolTip();
33453 wxPyEndAllowThreads(__tstate);
33454 if (PyErr_Occurred()) SWIG_fail;
33455 }
33456 {
33457#if wxUSE_UNICODE
33458 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33459#else
33460 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33461#endif
33462 }
33463 return resultobj;
33464fail:
33465 return NULL;
33466}
33467
33468
33469SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33470 PyObject *obj;
33471 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33472 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33473 return SWIG_Py_Void();
33474}
33475
33476SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33477 return SWIG_Python_InitShadowInstance(args);
33478}
33479
33480SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33481 PyObject *resultobj = 0;
33482 wxWindow *arg1 = (wxWindow *) 0 ;
33483 int arg2 = (int) -1 ;
33484 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33485 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33486 wxSize const &arg4_defvalue = wxDefaultSize ;
33487 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33488 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33489 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33490 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33491 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33492 wxString *arg7 = (wxString *) &arg7_defvalue ;
33493 wxPyTreeCtrl *result = 0 ;
33494 void *argp1 = 0 ;
33495 int res1 = 0 ;
33496 int val2 ;
33497 int ecode2 = 0 ;
33498 wxPoint temp3 ;
33499 wxSize temp4 ;
33500 long val5 ;
33501 int ecode5 = 0 ;
33502 void *argp6 = 0 ;
33503 int res6 = 0 ;
33504 bool temp7 = false ;
33505 PyObject * obj0 = 0 ;
33506 PyObject * obj1 = 0 ;
33507 PyObject * obj2 = 0 ;
33508 PyObject * obj3 = 0 ;
33509 PyObject * obj4 = 0 ;
33510 PyObject * obj5 = 0 ;
33511 PyObject * obj6 = 0 ;
33512 char * kwnames[] = {
33513 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33514 };
33515
33516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33518 if (!SWIG_IsOK(res1)) {
33519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33520 }
33521 arg1 = reinterpret_cast< wxWindow * >(argp1);
33522 if (obj1) {
33523 ecode2 = SWIG_AsVal_int(obj1, &val2);
33524 if (!SWIG_IsOK(ecode2)) {
33525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33526 }
33527 arg2 = static_cast< int >(val2);
33528 }
33529 if (obj2) {
d55e5bfc 33530 {
1bd55598
RD
33531 arg3 = &temp3;
33532 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 33533 }
1bd55598
RD
33534 }
33535 if (obj3) {
36ed4f51 33536 {
1bd55598
RD
33537 arg4 = &temp4;
33538 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33539 }
1bd55598
RD
33540 }
33541 if (obj4) {
33542 ecode5 = SWIG_AsVal_long(obj4, &val5);
33543 if (!SWIG_IsOK(ecode5)) {
33544 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33545 }
33546 arg5 = static_cast< long >(val5);
33547 }
33548 if (obj5) {
33549 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33550 if (!SWIG_IsOK(res6)) {
33551 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33552 }
1bd55598
RD
33553 if (!argp6) {
33554 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
d55e5bfc 33555 }
1bd55598
RD
33556 arg6 = reinterpret_cast< wxValidator * >(argp6);
33557 }
33558 if (obj6) {
d55e5bfc 33559 {
1bd55598
RD
33560 arg7 = wxString_in_helper(obj6);
33561 if (arg7 == NULL) SWIG_fail;
33562 temp7 = true;
d55e5bfc 33563 }
1bd55598
RD
33564 }
33565 {
33566 if (!wxPyCheckForApp()) SWIG_fail;
33567 PyThreadState* __tstate = wxPyBeginAllowThreads();
33568 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33569 wxPyEndAllowThreads(__tstate);
33570 if (PyErr_Occurred()) SWIG_fail;
33571 }
33572 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33573 {
33574 if (temp7)
33575 delete arg7;
33576 }
33577 return resultobj;
33578fail:
33579 {
33580 if (temp7)
33581 delete arg7;
33582 }
33583 return NULL;
33584}
33585
33586
33587SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33588 PyObject *resultobj = 0;
33589 wxPyTreeCtrl *result = 0 ;
33590
33591 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33592 {
33593 if (!wxPyCheckForApp()) SWIG_fail;
33594 PyThreadState* __tstate = wxPyBeginAllowThreads();
33595 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33596 wxPyEndAllowThreads(__tstate);
33597 if (PyErr_Occurred()) SWIG_fail;
33598 }
33599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33600 return resultobj;
33601fail:
33602 return NULL;
33603}
33604
33605
33606SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33607 PyObject *resultobj = 0;
33608 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33609 wxWindow *arg2 = (wxWindow *) 0 ;
33610 int arg3 = (int) -1 ;
33611 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33612 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33613 wxSize const &arg5_defvalue = wxDefaultSize ;
33614 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33615 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33616 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33617 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33618 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33619 wxString *arg8 = (wxString *) &arg8_defvalue ;
33620 bool result;
33621 void *argp1 = 0 ;
33622 int res1 = 0 ;
33623 void *argp2 = 0 ;
33624 int res2 = 0 ;
33625 int val3 ;
33626 int ecode3 = 0 ;
33627 wxPoint temp4 ;
33628 wxSize temp5 ;
33629 long val6 ;
33630 int ecode6 = 0 ;
33631 void *argp7 = 0 ;
33632 int res7 = 0 ;
33633 bool temp8 = false ;
33634 PyObject * obj0 = 0 ;
33635 PyObject * obj1 = 0 ;
33636 PyObject * obj2 = 0 ;
33637 PyObject * obj3 = 0 ;
33638 PyObject * obj4 = 0 ;
33639 PyObject * obj5 = 0 ;
33640 PyObject * obj6 = 0 ;
33641 PyObject * obj7 = 0 ;
33642 char * kwnames[] = {
33643 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33644 };
33645
33646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33648 if (!SWIG_IsOK(res1)) {
33649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33650 }
33651 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33652 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33653 if (!SWIG_IsOK(res2)) {
33654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33655 }
33656 arg2 = reinterpret_cast< wxWindow * >(argp2);
33657 if (obj2) {
33658 ecode3 = SWIG_AsVal_int(obj2, &val3);
33659 if (!SWIG_IsOK(ecode3)) {
33660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33661 }
33662 arg3 = static_cast< int >(val3);
33663 }
33664 if (obj3) {
d55e5bfc 33665 {
1bd55598
RD
33666 arg4 = &temp4;
33667 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 33668 }
1bd55598
RD
33669 }
33670 if (obj4) {
d55e5bfc 33671 {
1bd55598
RD
33672 arg5 = &temp5;
33673 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 33674 }
1bd55598
RD
33675 }
33676 if (obj5) {
33677 ecode6 = SWIG_AsVal_long(obj5, &val6);
33678 if (!SWIG_IsOK(ecode6)) {
33679 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33680 }
33681 arg6 = static_cast< long >(val6);
33682 }
33683 if (obj6) {
33684 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33685 if (!SWIG_IsOK(res7)) {
33686 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33687 }
1bd55598
RD
33688 if (!argp7) {
33689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 33690 }
1bd55598
RD
33691 arg7 = reinterpret_cast< wxValidator * >(argp7);
33692 }
33693 if (obj7) {
d55e5bfc 33694 {
1bd55598
RD
33695 arg8 = wxString_in_helper(obj7);
33696 if (arg8 == NULL) SWIG_fail;
33697 temp8 = true;
d55e5bfc 33698 }
1bd55598
RD
33699 }
33700 {
33701 PyThreadState* __tstate = wxPyBeginAllowThreads();
33702 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33703 wxPyEndAllowThreads(__tstate);
33704 if (PyErr_Occurred()) SWIG_fail;
33705 }
33706 {
33707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33708 }
33709 {
33710 if (temp8)
33711 delete arg8;
33712 }
33713 return resultobj;
33714fail:
33715 {
33716 if (temp8)
33717 delete arg8;
33718 }
33719 return NULL;
33720}
33721
33722
33723SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33724 PyObject *resultobj = 0;
33725 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33726 PyObject *arg2 = (PyObject *) 0 ;
33727 PyObject *arg3 = (PyObject *) 0 ;
33728 void *argp1 = 0 ;
33729 int res1 = 0 ;
33730 PyObject * obj0 = 0 ;
33731 PyObject * obj1 = 0 ;
33732 PyObject * obj2 = 0 ;
33733 char * kwnames[] = {
33734 (char *) "self",(char *) "self",(char *) "_class", NULL
33735 };
33736
33737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33739 if (!SWIG_IsOK(res1)) {
33740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33741 }
33742 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33743 arg2 = obj1;
33744 arg3 = obj2;
33745 {
33746 PyThreadState* __tstate = wxPyBeginAllowThreads();
33747 (arg1)->_setCallbackInfo(arg2,arg3);
33748 wxPyEndAllowThreads(__tstate);
33749 if (PyErr_Occurred()) SWIG_fail;
33750 }
33751 resultobj = SWIG_Py_Void();
33752 return resultobj;
33753fail:
33754 return NULL;
d55e5bfc
RD
33755}
33756
33757
1bd55598
RD
33758SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33759 PyObject *resultobj = 0;
33760 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
e9d6f3a4 33761 unsigned int result;
1bd55598
RD
33762 void *argp1 = 0 ;
33763 int res1 = 0 ;
33764 PyObject *swig_obj[1] ;
33765
33766 if (!args) SWIG_fail;
33767 swig_obj[0] = args;
33768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33769 if (!SWIG_IsOK(res1)) {
33770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33771 }
33772 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33773 {
33774 PyThreadState* __tstate = wxPyBeginAllowThreads();
e9d6f3a4 33775 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
1bd55598
RD
33776 wxPyEndAllowThreads(__tstate);
33777 if (PyErr_Occurred()) SWIG_fail;
33778 }
e9d6f3a4 33779 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
1bd55598
RD
33780 return resultobj;
33781fail:
33782 return NULL;
d55e5bfc
RD
33783}
33784
33785
1bd55598
RD
33786SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33787 PyObject *resultobj = 0;
33788 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33789 unsigned int result;
33790 void *argp1 = 0 ;
33791 int res1 = 0 ;
33792 PyObject *swig_obj[1] ;
33793
33794 if (!args) SWIG_fail;
33795 swig_obj[0] = args;
33796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33797 if (!SWIG_IsOK(res1)) {
33798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33799 }
33800 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33801 {
33802 PyThreadState* __tstate = wxPyBeginAllowThreads();
33803 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33804 wxPyEndAllowThreads(__tstate);
33805 if (PyErr_Occurred()) SWIG_fail;
33806 }
33807 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33808 return resultobj;
33809fail:
33810 return NULL;
33811}
33812
33813
33814SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33815 PyObject *resultobj = 0;
33816 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33817 unsigned int arg2 ;
33818 void *argp1 = 0 ;
33819 int res1 = 0 ;
33820 unsigned int val2 ;
33821 int ecode2 = 0 ;
33822 PyObject * obj0 = 0 ;
33823 PyObject * obj1 = 0 ;
33824 char * kwnames[] = {
33825 (char *) "self",(char *) "indent", NULL
33826 };
33827
33828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33830 if (!SWIG_IsOK(res1)) {
33831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33832 }
33833 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33834 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33835 if (!SWIG_IsOK(ecode2)) {
33836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33837 }
33838 arg2 = static_cast< unsigned int >(val2);
33839 {
33840 PyThreadState* __tstate = wxPyBeginAllowThreads();
33841 (arg1)->SetIndent(arg2);
33842 wxPyEndAllowThreads(__tstate);
33843 if (PyErr_Occurred()) SWIG_fail;
33844 }
33845 resultobj = SWIG_Py_Void();
33846 return resultobj;
33847fail:
33848 return NULL;
d55e5bfc
RD
33849}
33850
33851
1bd55598
RD
33852SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33853 PyObject *resultobj = 0;
33854 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33855 unsigned int result;
33856 void *argp1 = 0 ;
33857 int res1 = 0 ;
33858 PyObject *swig_obj[1] ;
33859
33860 if (!args) SWIG_fail;
33861 swig_obj[0] = args;
33862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33863 if (!SWIG_IsOK(res1)) {
33864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33865 }
33866 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33867 {
33868 PyThreadState* __tstate = wxPyBeginAllowThreads();
33869 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33870 wxPyEndAllowThreads(__tstate);
33871 if (PyErr_Occurred()) SWIG_fail;
33872 }
33873 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33874 return resultobj;
33875fail:
33876 return NULL;
33877}
33878
33879
33880SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33881 PyObject *resultobj = 0;
33882 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33883 unsigned int arg2 ;
33884 void *argp1 = 0 ;
33885 int res1 = 0 ;
33886 unsigned int val2 ;
33887 int ecode2 = 0 ;
33888 PyObject * obj0 = 0 ;
33889 PyObject * obj1 = 0 ;
33890 char * kwnames[] = {
33891 (char *) "self",(char *) "spacing", NULL
33892 };
33893
33894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33896 if (!SWIG_IsOK(res1)) {
33897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33898 }
33899 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33900 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33901 if (!SWIG_IsOK(ecode2)) {
33902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33903 }
33904 arg2 = static_cast< unsigned int >(val2);
33905 {
33906 PyThreadState* __tstate = wxPyBeginAllowThreads();
33907 (arg1)->SetSpacing(arg2);
33908 wxPyEndAllowThreads(__tstate);
33909 if (PyErr_Occurred()) SWIG_fail;
33910 }
33911 resultobj = SWIG_Py_Void();
33912 return resultobj;
33913fail:
33914 return NULL;
d55e5bfc
RD
33915}
33916
33917
1bd55598
RD
33918SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33919 PyObject *resultobj = 0;
33920 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33921 wxImageList *result = 0 ;
33922 void *argp1 = 0 ;
33923 int res1 = 0 ;
33924 PyObject *swig_obj[1] ;
33925
33926 if (!args) SWIG_fail;
33927 swig_obj[0] = args;
33928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33929 if (!SWIG_IsOK(res1)) {
33930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33931 }
33932 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33933 {
33934 PyThreadState* __tstate = wxPyBeginAllowThreads();
33935 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33936 wxPyEndAllowThreads(__tstate);
33937 if (PyErr_Occurred()) SWIG_fail;
33938 }
33939 {
33940 resultobj = wxPyMake_wxObject(result, (bool)0);
33941 }
33942 return resultobj;
33943fail:
33944 return NULL;
d55e5bfc
RD
33945}
33946
33947
1bd55598
RD
33948SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33949 PyObject *resultobj = 0;
33950 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33951 wxImageList *result = 0 ;
33952 void *argp1 = 0 ;
33953 int res1 = 0 ;
33954 PyObject *swig_obj[1] ;
33955
33956 if (!args) SWIG_fail;
33957 swig_obj[0] = args;
33958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33959 if (!SWIG_IsOK(res1)) {
33960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33961 }
33962 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33963 {
33964 PyThreadState* __tstate = wxPyBeginAllowThreads();
33965 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33966 wxPyEndAllowThreads(__tstate);
33967 if (PyErr_Occurred()) SWIG_fail;
33968 }
33969 {
33970 resultobj = wxPyMake_wxObject(result, (bool)0);
33971 }
33972 return resultobj;
33973fail:
33974 return NULL;
33975}
33976
33977
33978SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33979 PyObject *resultobj = 0;
33980 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33981 wxImageList *arg2 = (wxImageList *) 0 ;
33982 void *argp1 = 0 ;
33983 int res1 = 0 ;
33984 void *argp2 = 0 ;
33985 int res2 = 0 ;
33986 PyObject * obj0 = 0 ;
33987 PyObject * obj1 = 0 ;
33988 char * kwnames[] = {
33989 (char *) "self",(char *) "imageList", NULL
33990 };
33991
33992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33994 if (!SWIG_IsOK(res1)) {
33995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33996 }
33997 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33998 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33999 if (!SWIG_IsOK(res2)) {
34000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34001 }
34002 arg2 = reinterpret_cast< wxImageList * >(argp2);
34003 {
34004 PyThreadState* __tstate = wxPyBeginAllowThreads();
34005 (arg1)->SetImageList(arg2);
34006 wxPyEndAllowThreads(__tstate);
34007 if (PyErr_Occurred()) SWIG_fail;
34008 }
34009 resultobj = SWIG_Py_Void();
34010 return resultobj;
34011fail:
34012 return NULL;
34013}
34014
34015
34016SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34017 PyObject *resultobj = 0;
34018 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34019 wxImageList *arg2 = (wxImageList *) 0 ;
34020 void *argp1 = 0 ;
34021 int res1 = 0 ;
34022 void *argp2 = 0 ;
34023 int res2 = 0 ;
34024 PyObject * obj0 = 0 ;
34025 PyObject * obj1 = 0 ;
34026 char * kwnames[] = {
34027 (char *) "self",(char *) "imageList", NULL
34028 };
34029
34030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34032 if (!SWIG_IsOK(res1)) {
34033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34034 }
34035 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34036 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
34037 if (!SWIG_IsOK(res2)) {
34038 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34039 }
34040 arg2 = reinterpret_cast< wxImageList * >(argp2);
34041 {
34042 PyThreadState* __tstate = wxPyBeginAllowThreads();
34043 (arg1)->SetStateImageList(arg2);
34044 wxPyEndAllowThreads(__tstate);
34045 if (PyErr_Occurred()) SWIG_fail;
34046 }
34047 resultobj = SWIG_Py_Void();
34048 return resultobj;
34049fail:
34050 return NULL;
34051}
34052
34053
34054SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34055 PyObject *resultobj = 0;
34056 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34057 wxImageList *arg2 = (wxImageList *) 0 ;
34058 void *argp1 = 0 ;
34059 int res1 = 0 ;
34060 int res2 = 0 ;
34061 PyObject * obj0 = 0 ;
34062 PyObject * obj1 = 0 ;
34063 char * kwnames[] = {
34064 (char *) "self",(char *) "imageList", NULL
34065 };
34066
34067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34069 if (!SWIG_IsOK(res1)) {
34070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34071 }
34072 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34073 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34074 if (!SWIG_IsOK(res2)) {
34075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34076 }
34077 {
34078 PyThreadState* __tstate = wxPyBeginAllowThreads();
34079 (arg1)->AssignImageList(arg2);
34080 wxPyEndAllowThreads(__tstate);
34081 if (PyErr_Occurred()) SWIG_fail;
34082 }
34083 resultobj = SWIG_Py_Void();
34084 return resultobj;
34085fail:
34086 return NULL;
34087}
34088
34089
34090SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34091 PyObject *resultobj = 0;
34092 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34093 wxImageList *arg2 = (wxImageList *) 0 ;
34094 void *argp1 = 0 ;
34095 int res1 = 0 ;
34096 int res2 = 0 ;
34097 PyObject * obj0 = 0 ;
34098 PyObject * obj1 = 0 ;
34099 char * kwnames[] = {
34100 (char *) "self",(char *) "imageList", NULL
34101 };
34102
34103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
34104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34105 if (!SWIG_IsOK(res1)) {
34106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34107 }
34108 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34109 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
34110 if (!SWIG_IsOK(res2)) {
34111 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
34112 }
34113 {
34114 PyThreadState* __tstate = wxPyBeginAllowThreads();
34115 (arg1)->AssignStateImageList(arg2);
34116 wxPyEndAllowThreads(__tstate);
34117 if (PyErr_Occurred()) SWIG_fail;
34118 }
34119 resultobj = SWIG_Py_Void();
34120 return resultobj;
34121fail:
34122 return NULL;
34123}
34124
34125
34126SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34127 PyObject *resultobj = 0;
34128 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34129 wxTreeItemId *arg2 = 0 ;
34130 wxString result;
34131 void *argp1 = 0 ;
34132 int res1 = 0 ;
34133 void *argp2 = 0 ;
34134 int res2 = 0 ;
34135 PyObject * obj0 = 0 ;
34136 PyObject * obj1 = 0 ;
34137 char * kwnames[] = {
34138 (char *) "self",(char *) "item", NULL
34139 };
34140
34141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
34142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34143 if (!SWIG_IsOK(res1)) {
34144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34145 }
34146 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34147 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34148 if (!SWIG_IsOK(res2)) {
34149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34150 }
34151 if (!argp2) {
34152 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34153 }
34154 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34155 {
34156 PyThreadState* __tstate = wxPyBeginAllowThreads();
34157 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
34158 wxPyEndAllowThreads(__tstate);
34159 if (PyErr_Occurred()) SWIG_fail;
34160 }
34161 {
34162#if wxUSE_UNICODE
34163 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34164#else
34165 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34166#endif
34167 }
34168 return resultobj;
34169fail:
34170 return NULL;
34171}
34172
34173
34174SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34175 PyObject *resultobj = 0;
34176 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34177 wxTreeItemId *arg2 = 0 ;
34178 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34179 int result;
34180 void *argp1 = 0 ;
34181 int res1 = 0 ;
34182 void *argp2 = 0 ;
34183 int res2 = 0 ;
34184 int val3 ;
34185 int ecode3 = 0 ;
34186 PyObject * obj0 = 0 ;
34187 PyObject * obj1 = 0 ;
34188 PyObject * obj2 = 0 ;
34189 char * kwnames[] = {
34190 (char *) "self",(char *) "item",(char *) "which", NULL
34191 };
34192
34193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34195 if (!SWIG_IsOK(res1)) {
34196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34197 }
34198 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34199 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34200 if (!SWIG_IsOK(res2)) {
34201 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34202 }
34203 if (!argp2) {
34204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34205 }
34206 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34207 if (obj2) {
34208 ecode3 = SWIG_AsVal_int(obj2, &val3);
34209 if (!SWIG_IsOK(ecode3)) {
34210 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
34211 }
34212 arg3 = static_cast< wxTreeItemIcon >(val3);
34213 }
34214 {
34215 PyThreadState* __tstate = wxPyBeginAllowThreads();
34216 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
34217 wxPyEndAllowThreads(__tstate);
34218 if (PyErr_Occurred()) SWIG_fail;
34219 }
34220 resultobj = SWIG_From_int(static_cast< int >(result));
34221 return resultobj;
34222fail:
34223 return NULL;
34224}
34225
34226
34227SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34228 PyObject *resultobj = 0;
34229 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34230 wxTreeItemId *arg2 = 0 ;
34231 wxPyTreeItemData *result = 0 ;
34232 void *argp1 = 0 ;
34233 int res1 = 0 ;
34234 void *argp2 = 0 ;
34235 int res2 = 0 ;
34236 PyObject * obj0 = 0 ;
34237 PyObject * obj1 = 0 ;
34238 char * kwnames[] = {
34239 (char *) "self",(char *) "item", NULL
34240 };
34241
34242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
34243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34244 if (!SWIG_IsOK(res1)) {
34245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34246 }
34247 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34248 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34249 if (!SWIG_IsOK(res2)) {
34250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34251 }
34252 if (!argp2) {
34253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34254 }
34255 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34256 {
34257 PyThreadState* __tstate = wxPyBeginAllowThreads();
34258 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
34259 wxPyEndAllowThreads(__tstate);
34260 if (PyErr_Occurred()) SWIG_fail;
34261 }
34262 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34263 return resultobj;
34264fail:
34265 return NULL;
34266}
34267
34268
34269SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34270 PyObject *resultobj = 0;
34271 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34272 wxTreeItemId *arg2 = 0 ;
34273 PyObject *result = 0 ;
34274 void *argp1 = 0 ;
34275 int res1 = 0 ;
34276 void *argp2 = 0 ;
34277 int res2 = 0 ;
34278 PyObject * obj0 = 0 ;
34279 PyObject * obj1 = 0 ;
34280 char * kwnames[] = {
34281 (char *) "self",(char *) "item", NULL
34282 };
34283
34284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) SWIG_fail;
34285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34286 if (!SWIG_IsOK(res1)) {
34287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34288 }
34289 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34290 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34291 if (!SWIG_IsOK(res2)) {
34292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34293 }
34294 if (!argp2) {
34295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34296 }
34297 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34298 {
34299 PyThreadState* __tstate = wxPyBeginAllowThreads();
34300 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34301 wxPyEndAllowThreads(__tstate);
34302 if (PyErr_Occurred()) SWIG_fail;
34303 }
34304 resultobj = result;
34305 return resultobj;
34306fail:
34307 return NULL;
34308}
34309
34310
34311SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34312 PyObject *resultobj = 0;
34313 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34314 wxTreeItemId *arg2 = 0 ;
34315 wxColour result;
34316 void *argp1 = 0 ;
34317 int res1 = 0 ;
34318 void *argp2 = 0 ;
34319 int res2 = 0 ;
34320 PyObject * obj0 = 0 ;
34321 PyObject * obj1 = 0 ;
34322 char * kwnames[] = {
34323 (char *) "self",(char *) "item", NULL
34324 };
34325
34326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34328 if (!SWIG_IsOK(res1)) {
34329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34330 }
34331 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34332 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34333 if (!SWIG_IsOK(res2)) {
34334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34335 }
34336 if (!argp2) {
34337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34338 }
34339 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34340 {
34341 PyThreadState* __tstate = wxPyBeginAllowThreads();
34342 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34343 wxPyEndAllowThreads(__tstate);
34344 if (PyErr_Occurred()) SWIG_fail;
34345 }
34346 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34347 return resultobj;
34348fail:
34349 return NULL;
34350}
34351
34352
34353SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34354 PyObject *resultobj = 0;
34355 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34356 wxTreeItemId *arg2 = 0 ;
34357 wxColour result;
34358 void *argp1 = 0 ;
34359 int res1 = 0 ;
34360 void *argp2 = 0 ;
34361 int res2 = 0 ;
34362 PyObject * obj0 = 0 ;
34363 PyObject * obj1 = 0 ;
34364 char * kwnames[] = {
34365 (char *) "self",(char *) "item", NULL
34366 };
34367
34368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34370 if (!SWIG_IsOK(res1)) {
34371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34372 }
34373 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34374 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34375 if (!SWIG_IsOK(res2)) {
34376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34377 }
34378 if (!argp2) {
34379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34380 }
34381 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34382 {
34383 PyThreadState* __tstate = wxPyBeginAllowThreads();
34384 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34385 wxPyEndAllowThreads(__tstate);
34386 if (PyErr_Occurred()) SWIG_fail;
34387 }
34388 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34389 return resultobj;
34390fail:
34391 return NULL;
34392}
34393
34394
34395SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34396 PyObject *resultobj = 0;
34397 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34398 wxTreeItemId *arg2 = 0 ;
34399 wxFont result;
34400 void *argp1 = 0 ;
34401 int res1 = 0 ;
34402 void *argp2 = 0 ;
34403 int res2 = 0 ;
34404 PyObject * obj0 = 0 ;
34405 PyObject * obj1 = 0 ;
34406 char * kwnames[] = {
34407 (char *) "self",(char *) "item", NULL
34408 };
34409
34410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34412 if (!SWIG_IsOK(res1)) {
34413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34414 }
34415 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34416 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34417 if (!SWIG_IsOK(res2)) {
34418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34419 }
34420 if (!argp2) {
34421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34422 }
34423 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34424 {
34425 PyThreadState* __tstate = wxPyBeginAllowThreads();
34426 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34427 wxPyEndAllowThreads(__tstate);
34428 if (PyErr_Occurred()) SWIG_fail;
34429 }
34430 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34431 return resultobj;
34432fail:
34433 return NULL;
34434}
34435
34436
34437SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34438 PyObject *resultobj = 0;
34439 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34440 wxTreeItemId *arg2 = 0 ;
34441 wxString *arg3 = 0 ;
34442 void *argp1 = 0 ;
34443 int res1 = 0 ;
34444 void *argp2 = 0 ;
34445 int res2 = 0 ;
34446 bool temp3 = false ;
34447 PyObject * obj0 = 0 ;
34448 PyObject * obj1 = 0 ;
34449 PyObject * obj2 = 0 ;
34450 char * kwnames[] = {
34451 (char *) "self",(char *) "item",(char *) "text", NULL
34452 };
34453
34454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34456 if (!SWIG_IsOK(res1)) {
34457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34458 }
34459 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34461 if (!SWIG_IsOK(res2)) {
34462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34463 }
34464 if (!argp2) {
34465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34466 }
34467 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34468 {
34469 arg3 = wxString_in_helper(obj2);
34470 if (arg3 == NULL) SWIG_fail;
34471 temp3 = true;
34472 }
34473 {
34474 PyThreadState* __tstate = wxPyBeginAllowThreads();
34475 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34476 wxPyEndAllowThreads(__tstate);
34477 if (PyErr_Occurred()) SWIG_fail;
34478 }
34479 resultobj = SWIG_Py_Void();
34480 {
34481 if (temp3)
34482 delete arg3;
34483 }
34484 return resultobj;
34485fail:
34486 {
34487 if (temp3)
34488 delete arg3;
34489 }
34490 return NULL;
34491}
34492
34493
34494SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34495 PyObject *resultobj = 0;
34496 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34497 wxTreeItemId *arg2 = 0 ;
34498 int arg3 ;
34499 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34500 void *argp1 = 0 ;
34501 int res1 = 0 ;
34502 void *argp2 = 0 ;
34503 int res2 = 0 ;
34504 int val3 ;
34505 int ecode3 = 0 ;
34506 int val4 ;
34507 int ecode4 = 0 ;
34508 PyObject * obj0 = 0 ;
34509 PyObject * obj1 = 0 ;
34510 PyObject * obj2 = 0 ;
34511 PyObject * obj3 = 0 ;
34512 char * kwnames[] = {
34513 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34514 };
34515
34516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34518 if (!SWIG_IsOK(res1)) {
34519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34520 }
34521 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34522 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34523 if (!SWIG_IsOK(res2)) {
34524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34525 }
34526 if (!argp2) {
34527 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34528 }
34529 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34530 ecode3 = SWIG_AsVal_int(obj2, &val3);
34531 if (!SWIG_IsOK(ecode3)) {
34532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34533 }
34534 arg3 = static_cast< int >(val3);
34535 if (obj3) {
34536 ecode4 = SWIG_AsVal_int(obj3, &val4);
34537 if (!SWIG_IsOK(ecode4)) {
34538 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34539 }
34540 arg4 = static_cast< wxTreeItemIcon >(val4);
34541 }
34542 {
34543 PyThreadState* __tstate = wxPyBeginAllowThreads();
34544 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34545 wxPyEndAllowThreads(__tstate);
34546 if (PyErr_Occurred()) SWIG_fail;
34547 }
34548 resultobj = SWIG_Py_Void();
34549 return resultobj;
34550fail:
34551 return NULL;
34552}
34553
34554
34555SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34556 PyObject *resultobj = 0;
34557 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34558 wxTreeItemId *arg2 = 0 ;
34559 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34560 void *argp1 = 0 ;
34561 int res1 = 0 ;
34562 void *argp2 = 0 ;
34563 int res2 = 0 ;
34564 int res3 = 0 ;
34565 PyObject * obj0 = 0 ;
34566 PyObject * obj1 = 0 ;
34567 PyObject * obj2 = 0 ;
34568 char * kwnames[] = {
34569 (char *) "self",(char *) "item",(char *) "data", NULL
34570 };
34571
34572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34574 if (!SWIG_IsOK(res1)) {
34575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34576 }
34577 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34578 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34579 if (!SWIG_IsOK(res2)) {
34580 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34581 }
34582 if (!argp2) {
34583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34584 }
34585 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34586 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34587 if (!SWIG_IsOK(res3)) {
34588 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34589 }
34590 {
34591 PyThreadState* __tstate = wxPyBeginAllowThreads();
34592 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34593 wxPyEndAllowThreads(__tstate);
34594 if (PyErr_Occurred()) SWIG_fail;
34595 }
34596 resultobj = SWIG_Py_Void();
34597 return resultobj;
34598fail:
34599 return NULL;
34600}
34601
34602
34603SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34604 PyObject *resultobj = 0;
34605 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34606 wxTreeItemId *arg2 = 0 ;
34607 PyObject *arg3 = (PyObject *) 0 ;
34608 void *argp1 = 0 ;
34609 int res1 = 0 ;
34610 void *argp2 = 0 ;
34611 int res2 = 0 ;
34612 PyObject * obj0 = 0 ;
34613 PyObject * obj1 = 0 ;
34614 PyObject * obj2 = 0 ;
34615 char * kwnames[] = {
34616 (char *) "self",(char *) "item",(char *) "obj", NULL
34617 };
34618
34619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34621 if (!SWIG_IsOK(res1)) {
34622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34623 }
34624 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34625 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34626 if (!SWIG_IsOK(res2)) {
34627 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34628 }
34629 if (!argp2) {
34630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34631 }
34632 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34633 arg3 = obj2;
34634 {
34635 PyThreadState* __tstate = wxPyBeginAllowThreads();
34636 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34637 wxPyEndAllowThreads(__tstate);
34638 if (PyErr_Occurred()) SWIG_fail;
34639 }
34640 resultobj = SWIG_Py_Void();
34641 return resultobj;
34642fail:
34643 return NULL;
34644}
34645
34646
34647SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34648 PyObject *resultobj = 0;
34649 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34650 wxTreeItemId *arg2 = 0 ;
34651 bool arg3 = (bool) true ;
34652 void *argp1 = 0 ;
34653 int res1 = 0 ;
34654 void *argp2 = 0 ;
34655 int res2 = 0 ;
34656 bool val3 ;
34657 int ecode3 = 0 ;
34658 PyObject * obj0 = 0 ;
34659 PyObject * obj1 = 0 ;
34660 PyObject * obj2 = 0 ;
34661 char * kwnames[] = {
34662 (char *) "self",(char *) "item",(char *) "has", NULL
34663 };
34664
34665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34667 if (!SWIG_IsOK(res1)) {
34668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34669 }
34670 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34671 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34672 if (!SWIG_IsOK(res2)) {
34673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34674 }
34675 if (!argp2) {
34676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34677 }
34678 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34679 if (obj2) {
34680 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34681 if (!SWIG_IsOK(ecode3)) {
34682 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34683 }
34684 arg3 = static_cast< bool >(val3);
34685 }
34686 {
34687 PyThreadState* __tstate = wxPyBeginAllowThreads();
34688 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34689 wxPyEndAllowThreads(__tstate);
34690 if (PyErr_Occurred()) SWIG_fail;
34691 }
34692 resultobj = SWIG_Py_Void();
34693 return resultobj;
34694fail:
34695 return NULL;
34696}
34697
34698
34699SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34700 PyObject *resultobj = 0;
34701 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34702 wxTreeItemId *arg2 = 0 ;
34703 bool arg3 = (bool) true ;
34704 void *argp1 = 0 ;
34705 int res1 = 0 ;
34706 void *argp2 = 0 ;
34707 int res2 = 0 ;
34708 bool val3 ;
34709 int ecode3 = 0 ;
34710 PyObject * obj0 = 0 ;
34711 PyObject * obj1 = 0 ;
34712 PyObject * obj2 = 0 ;
34713 char * kwnames[] = {
34714 (char *) "self",(char *) "item",(char *) "bold", NULL
34715 };
34716
34717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34719 if (!SWIG_IsOK(res1)) {
34720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34721 }
34722 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34723 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34724 if (!SWIG_IsOK(res2)) {
34725 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34726 }
34727 if (!argp2) {
34728 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34729 }
34730 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34731 if (obj2) {
34732 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34733 if (!SWIG_IsOK(ecode3)) {
34734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34735 }
34736 arg3 = static_cast< bool >(val3);
34737 }
34738 {
34739 PyThreadState* __tstate = wxPyBeginAllowThreads();
34740 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34741 wxPyEndAllowThreads(__tstate);
34742 if (PyErr_Occurred()) SWIG_fail;
34743 }
34744 resultobj = SWIG_Py_Void();
34745 return resultobj;
34746fail:
34747 return NULL;
34748}
34749
34750
34751SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34752 PyObject *resultobj = 0;
34753 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34754 wxTreeItemId *arg2 = 0 ;
34755 bool arg3 = (bool) true ;
34756 void *argp1 = 0 ;
34757 int res1 = 0 ;
34758 void *argp2 = 0 ;
34759 int res2 = 0 ;
34760 bool val3 ;
34761 int ecode3 = 0 ;
34762 PyObject * obj0 = 0 ;
34763 PyObject * obj1 = 0 ;
34764 PyObject * obj2 = 0 ;
34765 char * kwnames[] = {
34766 (char *) "self",(char *) "item",(char *) "highlight", NULL
34767 };
34768
34769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34771 if (!SWIG_IsOK(res1)) {
34772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34773 }
34774 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34775 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34776 if (!SWIG_IsOK(res2)) {
34777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34778 }
34779 if (!argp2) {
34780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34781 }
34782 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34783 if (obj2) {
34784 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34785 if (!SWIG_IsOK(ecode3)) {
34786 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34787 }
34788 arg3 = static_cast< bool >(val3);
34789 }
34790 {
34791 PyThreadState* __tstate = wxPyBeginAllowThreads();
34792 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34793 wxPyEndAllowThreads(__tstate);
34794 if (PyErr_Occurred()) SWIG_fail;
34795 }
34796 resultobj = SWIG_Py_Void();
34797 return resultobj;
34798fail:
34799 return NULL;
34800}
34801
34802
34803SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34804 PyObject *resultobj = 0;
34805 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34806 wxTreeItemId *arg2 = 0 ;
34807 wxColour *arg3 = 0 ;
34808 void *argp1 = 0 ;
34809 int res1 = 0 ;
34810 void *argp2 = 0 ;
34811 int res2 = 0 ;
34812 wxColour temp3 ;
34813 PyObject * obj0 = 0 ;
34814 PyObject * obj1 = 0 ;
34815 PyObject * obj2 = 0 ;
34816 char * kwnames[] = {
34817 (char *) "self",(char *) "item",(char *) "col", NULL
34818 };
34819
34820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34822 if (!SWIG_IsOK(res1)) {
34823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34824 }
34825 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34826 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34827 if (!SWIG_IsOK(res2)) {
34828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34829 }
34830 if (!argp2) {
34831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34832 }
34833 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34834 {
34835 arg3 = &temp3;
34836 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34837 }
34838 {
34839 PyThreadState* __tstate = wxPyBeginAllowThreads();
34840 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34841 wxPyEndAllowThreads(__tstate);
34842 if (PyErr_Occurred()) SWIG_fail;
34843 }
34844 resultobj = SWIG_Py_Void();
34845 return resultobj;
34846fail:
34847 return NULL;
34848}
34849
34850
34851SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34852 PyObject *resultobj = 0;
34853 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34854 wxTreeItemId *arg2 = 0 ;
34855 wxColour *arg3 = 0 ;
34856 void *argp1 = 0 ;
34857 int res1 = 0 ;
34858 void *argp2 = 0 ;
34859 int res2 = 0 ;
34860 wxColour temp3 ;
34861 PyObject * obj0 = 0 ;
34862 PyObject * obj1 = 0 ;
34863 PyObject * obj2 = 0 ;
34864 char * kwnames[] = {
34865 (char *) "self",(char *) "item",(char *) "col", NULL
34866 };
34867
34868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34870 if (!SWIG_IsOK(res1)) {
34871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34872 }
34873 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34874 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34875 if (!SWIG_IsOK(res2)) {
34876 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34877 }
34878 if (!argp2) {
34879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34880 }
34881 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34882 {
34883 arg3 = &temp3;
34884 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34885 }
34886 {
34887 PyThreadState* __tstate = wxPyBeginAllowThreads();
34888 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34889 wxPyEndAllowThreads(__tstate);
34890 if (PyErr_Occurred()) SWIG_fail;
34891 }
34892 resultobj = SWIG_Py_Void();
34893 return resultobj;
34894fail:
34895 return NULL;
34896}
34897
34898
34899SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34900 PyObject *resultobj = 0;
34901 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34902 wxTreeItemId *arg2 = 0 ;
34903 wxFont *arg3 = 0 ;
34904 void *argp1 = 0 ;
34905 int res1 = 0 ;
34906 void *argp2 = 0 ;
34907 int res2 = 0 ;
34908 void *argp3 = 0 ;
34909 int res3 = 0 ;
34910 PyObject * obj0 = 0 ;
34911 PyObject * obj1 = 0 ;
34912 PyObject * obj2 = 0 ;
34913 char * kwnames[] = {
34914 (char *) "self",(char *) "item",(char *) "font", NULL
34915 };
34916
34917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34919 if (!SWIG_IsOK(res1)) {
34920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34921 }
34922 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34923 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34924 if (!SWIG_IsOK(res2)) {
34925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34926 }
34927 if (!argp2) {
34928 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34929 }
34930 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34931 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34932 if (!SWIG_IsOK(res3)) {
34933 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34934 }
34935 if (!argp3) {
34936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34937 }
34938 arg3 = reinterpret_cast< wxFont * >(argp3);
34939 {
34940 PyThreadState* __tstate = wxPyBeginAllowThreads();
34941 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34942 wxPyEndAllowThreads(__tstate);
34943 if (PyErr_Occurred()) SWIG_fail;
34944 }
34945 resultobj = SWIG_Py_Void();
34946 return resultobj;
34947fail:
34948 return NULL;
34949}
34950
34951
34952SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34953 PyObject *resultobj = 0;
34954 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34955 wxTreeItemId *arg2 = 0 ;
34956 bool result;
34957 void *argp1 = 0 ;
34958 int res1 = 0 ;
34959 void *argp2 = 0 ;
34960 int res2 = 0 ;
34961 PyObject * obj0 = 0 ;
34962 PyObject * obj1 = 0 ;
34963 char * kwnames[] = {
34964 (char *) "self",(char *) "item", NULL
34965 };
34966
34967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34969 if (!SWIG_IsOK(res1)) {
34970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34971 }
34972 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34973 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34974 if (!SWIG_IsOK(res2)) {
34975 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34976 }
34977 if (!argp2) {
34978 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34979 }
34980 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34981 {
34982 PyThreadState* __tstate = wxPyBeginAllowThreads();
34983 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34984 wxPyEndAllowThreads(__tstate);
34985 if (PyErr_Occurred()) SWIG_fail;
34986 }
34987 {
34988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34989 }
34990 return resultobj;
34991fail:
34992 return NULL;
34993}
34994
34995
34996SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34997 PyObject *resultobj = 0;
34998 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34999 wxTreeItemId *arg2 = 0 ;
35000 bool result;
35001 void *argp1 = 0 ;
35002 int res1 = 0 ;
35003 void *argp2 = 0 ;
35004 int res2 = 0 ;
35005 PyObject * obj0 = 0 ;
35006 PyObject * obj1 = 0 ;
35007 char * kwnames[] = {
35008 (char *) "self",(char *) "item", NULL
35009 };
35010
35011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35013 if (!SWIG_IsOK(res1)) {
35014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35015 }
35016 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35017 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35018 if (!SWIG_IsOK(res2)) {
35019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35020 }
35021 if (!argp2) {
35022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35023 }
35024 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35025 {
35026 PyThreadState* __tstate = wxPyBeginAllowThreads();
35027 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
35028 wxPyEndAllowThreads(__tstate);
35029 if (PyErr_Occurred()) SWIG_fail;
35030 }
35031 {
35032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35033 }
35034 return resultobj;
35035fail:
35036 return NULL;
35037}
35038
35039
35040SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35041 PyObject *resultobj = 0;
35042 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35043 wxTreeItemId *arg2 = 0 ;
35044 bool result;
35045 void *argp1 = 0 ;
35046 int res1 = 0 ;
35047 void *argp2 = 0 ;
35048 int res2 = 0 ;
35049 PyObject * obj0 = 0 ;
35050 PyObject * obj1 = 0 ;
35051 char * kwnames[] = {
35052 (char *) "self",(char *) "item", NULL
35053 };
35054
35055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
35056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35057 if (!SWIG_IsOK(res1)) {
35058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35059 }
35060 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35061 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35062 if (!SWIG_IsOK(res2)) {
35063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35064 }
35065 if (!argp2) {
35066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35067 }
35068 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35069 {
35070 PyThreadState* __tstate = wxPyBeginAllowThreads();
35071 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
35072 wxPyEndAllowThreads(__tstate);
35073 if (PyErr_Occurred()) SWIG_fail;
35074 }
35075 {
35076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35077 }
35078 return resultobj;
35079fail:
35080 return NULL;
35081}
35082
35083
35084SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35085 PyObject *resultobj = 0;
35086 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35087 wxTreeItemId *arg2 = 0 ;
35088 bool result;
35089 void *argp1 = 0 ;
35090 int res1 = 0 ;
35091 void *argp2 = 0 ;
35092 int res2 = 0 ;
35093 PyObject * obj0 = 0 ;
35094 PyObject * obj1 = 0 ;
35095 char * kwnames[] = {
35096 (char *) "self",(char *) "item", NULL
35097 };
35098
35099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
35100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35101 if (!SWIG_IsOK(res1)) {
35102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35103 }
35104 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35105 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35106 if (!SWIG_IsOK(res2)) {
35107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35108 }
35109 if (!argp2) {
35110 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35111 }
35112 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35113 {
35114 PyThreadState* __tstate = wxPyBeginAllowThreads();
35115 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
35116 wxPyEndAllowThreads(__tstate);
35117 if (PyErr_Occurred()) SWIG_fail;
35118 }
35119 {
35120 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35121 }
35122 return resultobj;
35123fail:
35124 return NULL;
35125}
35126
35127
35128SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35129 PyObject *resultobj = 0;
35130 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35131 wxTreeItemId *arg2 = 0 ;
35132 bool result;
35133 void *argp1 = 0 ;
35134 int res1 = 0 ;
35135 void *argp2 = 0 ;
35136 int res2 = 0 ;
35137 PyObject * obj0 = 0 ;
35138 PyObject * obj1 = 0 ;
35139 char * kwnames[] = {
35140 (char *) "self",(char *) "item", NULL
35141 };
35142
35143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
35144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35145 if (!SWIG_IsOK(res1)) {
35146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35147 }
35148 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35149 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35150 if (!SWIG_IsOK(res2)) {
35151 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35152 }
35153 if (!argp2) {
35154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35155 }
35156 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35157 {
35158 PyThreadState* __tstate = wxPyBeginAllowThreads();
35159 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
35160 wxPyEndAllowThreads(__tstate);
35161 if (PyErr_Occurred()) SWIG_fail;
35162 }
35163 {
35164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35165 }
35166 return resultobj;
35167fail:
35168 return NULL;
35169}
35170
35171
35172SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35173 PyObject *resultobj = 0;
35174 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35175 wxTreeItemId *arg2 = 0 ;
35176 bool arg3 = (bool) true ;
35177 size_t result;
35178 void *argp1 = 0 ;
35179 int res1 = 0 ;
35180 void *argp2 = 0 ;
35181 int res2 = 0 ;
35182 bool val3 ;
35183 int ecode3 = 0 ;
35184 PyObject * obj0 = 0 ;
35185 PyObject * obj1 = 0 ;
35186 PyObject * obj2 = 0 ;
35187 char * kwnames[] = {
35188 (char *) "self",(char *) "item",(char *) "recursively", NULL
35189 };
35190
35191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35193 if (!SWIG_IsOK(res1)) {
35194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35195 }
35196 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35197 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35198 if (!SWIG_IsOK(res2)) {
35199 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35200 }
35201 if (!argp2) {
35202 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35203 }
35204 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35205 if (obj2) {
35206 ecode3 = SWIG_AsVal_bool(obj2, &val3);
35207 if (!SWIG_IsOK(ecode3)) {
35208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
35209 }
35210 arg3 = static_cast< bool >(val3);
35211 }
35212 {
35213 PyThreadState* __tstate = wxPyBeginAllowThreads();
35214 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
35215 wxPyEndAllowThreads(__tstate);
35216 if (PyErr_Occurred()) SWIG_fail;
35217 }
35218 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
35219 return resultobj;
35220fail:
35221 return NULL;
d55e5bfc
RD
35222}
35223
35224
1bd55598
RD
35225SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35226 PyObject *resultobj = 0;
35227 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35228 wxTreeItemId result;
35229 void *argp1 = 0 ;
35230 int res1 = 0 ;
35231 PyObject *swig_obj[1] ;
35232
35233 if (!args) SWIG_fail;
35234 swig_obj[0] = args;
35235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35236 if (!SWIG_IsOK(res1)) {
35237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35238 }
35239 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35240 {
35241 PyThreadState* __tstate = wxPyBeginAllowThreads();
35242 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
35243 wxPyEndAllowThreads(__tstate);
35244 if (PyErr_Occurred()) SWIG_fail;
35245 }
35246 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35247 return resultobj;
35248fail:
35249 return NULL;
d55e5bfc
RD
35250}
35251
35252
1bd55598
RD
35253SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35254 PyObject *resultobj = 0;
35255 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35256 wxTreeItemId result;
35257 void *argp1 = 0 ;
35258 int res1 = 0 ;
35259 PyObject *swig_obj[1] ;
35260
35261 if (!args) SWIG_fail;
35262 swig_obj[0] = args;
35263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35264 if (!SWIG_IsOK(res1)) {
35265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35266 }
35267 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35268 {
35269 PyThreadState* __tstate = wxPyBeginAllowThreads();
35270 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35271 wxPyEndAllowThreads(__tstate);
35272 if (PyErr_Occurred()) SWIG_fail;
35273 }
35274 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35275 return resultobj;
35276fail:
35277 return NULL;
d55e5bfc
RD
35278}
35279
35280
1bd55598
RD
35281SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35282 PyObject *resultobj = 0;
35283 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35284 PyObject *result = 0 ;
35285 void *argp1 = 0 ;
35286 int res1 = 0 ;
35287 PyObject *swig_obj[1] ;
35288
35289 if (!args) SWIG_fail;
35290 swig_obj[0] = args;
35291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35292 if (!SWIG_IsOK(res1)) {
35293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35294 }
35295 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35296 {
35297 PyThreadState* __tstate = wxPyBeginAllowThreads();
35298 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35299 wxPyEndAllowThreads(__tstate);
35300 if (PyErr_Occurred()) SWIG_fail;
35301 }
35302 resultobj = result;
35303 return resultobj;
35304fail:
35305 return NULL;
35306}
35307
35308
35309SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35310 PyObject *resultobj = 0;
35311 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35312 wxTreeItemId *arg2 = 0 ;
35313 wxTreeItemId result;
35314 void *argp1 = 0 ;
35315 int res1 = 0 ;
35316 void *argp2 = 0 ;
35317 int res2 = 0 ;
35318 PyObject * obj0 = 0 ;
35319 PyObject * obj1 = 0 ;
35320 char * kwnames[] = {
35321 (char *) "self",(char *) "item", NULL
35322 };
35323
35324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35326 if (!SWIG_IsOK(res1)) {
35327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35328 }
35329 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35330 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35331 if (!SWIG_IsOK(res2)) {
35332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35333 }
35334 if (!argp2) {
35335 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35336 }
35337 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35338 {
35339 PyThreadState* __tstate = wxPyBeginAllowThreads();
35340 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35341 wxPyEndAllowThreads(__tstate);
35342 if (PyErr_Occurred()) SWIG_fail;
35343 }
35344 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35345 return resultobj;
35346fail:
35347 return NULL;
35348}
35349
35350
35351SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35352 PyObject *resultobj = 0;
35353 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35354 wxTreeItemId *arg2 = 0 ;
35355 PyObject *result = 0 ;
35356 void *argp1 = 0 ;
35357 int res1 = 0 ;
35358 void *argp2 = 0 ;
35359 int res2 = 0 ;
35360 PyObject * obj0 = 0 ;
35361 PyObject * obj1 = 0 ;
35362 char * kwnames[] = {
35363 (char *) "self",(char *) "item", NULL
35364 };
35365
35366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35368 if (!SWIG_IsOK(res1)) {
35369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35370 }
35371 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35373 if (!SWIG_IsOK(res2)) {
35374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35375 }
35376 if (!argp2) {
35377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35378 }
35379 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35380 {
35381 PyThreadState* __tstate = wxPyBeginAllowThreads();
35382 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35383 wxPyEndAllowThreads(__tstate);
35384 if (PyErr_Occurred()) SWIG_fail;
35385 }
35386 resultobj = result;
35387 return resultobj;
35388fail:
35389 return NULL;
35390}
35391
35392
35393SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35394 PyObject *resultobj = 0;
35395 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35396 wxTreeItemId *arg2 = 0 ;
35397 void *arg3 = (void *) 0 ;
35398 PyObject *result = 0 ;
35399 void *argp1 = 0 ;
35400 int res1 = 0 ;
35401 void *argp2 = 0 ;
35402 int res2 = 0 ;
35403 int res3 ;
35404 PyObject * obj0 = 0 ;
35405 PyObject * obj1 = 0 ;
35406 PyObject * obj2 = 0 ;
35407 char * kwnames[] = {
35408 (char *) "self",(char *) "item",(char *) "cookie", NULL
35409 };
35410
35411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35413 if (!SWIG_IsOK(res1)) {
35414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35415 }
35416 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35417 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35418 if (!SWIG_IsOK(res2)) {
35419 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35420 }
35421 if (!argp2) {
35422 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35423 }
35424 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35425 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35426 if (!SWIG_IsOK(res3)) {
35427 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35428 }
35429 {
35430 PyThreadState* __tstate = wxPyBeginAllowThreads();
35431 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35432 wxPyEndAllowThreads(__tstate);
35433 if (PyErr_Occurred()) SWIG_fail;
35434 }
35435 resultobj = result;
35436 return resultobj;
35437fail:
35438 return NULL;
35439}
35440
35441
35442SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35443 PyObject *resultobj = 0;
35444 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35445 wxTreeItemId *arg2 = 0 ;
35446 wxTreeItemId result;
35447 void *argp1 = 0 ;
35448 int res1 = 0 ;
35449 void *argp2 = 0 ;
35450 int res2 = 0 ;
35451 PyObject * obj0 = 0 ;
35452 PyObject * obj1 = 0 ;
35453 char * kwnames[] = {
35454 (char *) "self",(char *) "item", NULL
35455 };
35456
35457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35459 if (!SWIG_IsOK(res1)) {
35460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35461 }
35462 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35463 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35464 if (!SWIG_IsOK(res2)) {
35465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35466 }
35467 if (!argp2) {
35468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35469 }
35470 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35471 {
35472 PyThreadState* __tstate = wxPyBeginAllowThreads();
35473 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35474 wxPyEndAllowThreads(__tstate);
35475 if (PyErr_Occurred()) SWIG_fail;
35476 }
35477 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35478 return resultobj;
35479fail:
35480 return NULL;
35481}
35482
35483
35484SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35485 PyObject *resultobj = 0;
35486 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35487 wxTreeItemId *arg2 = 0 ;
35488 wxTreeItemId result;
35489 void *argp1 = 0 ;
35490 int res1 = 0 ;
35491 void *argp2 = 0 ;
35492 int res2 = 0 ;
35493 PyObject * obj0 = 0 ;
35494 PyObject * obj1 = 0 ;
35495 char * kwnames[] = {
35496 (char *) "self",(char *) "item", NULL
35497 };
35498
35499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35501 if (!SWIG_IsOK(res1)) {
35502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35503 }
35504 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35505 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35506 if (!SWIG_IsOK(res2)) {
35507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35508 }
35509 if (!argp2) {
35510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35511 }
35512 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35513 {
35514 PyThreadState* __tstate = wxPyBeginAllowThreads();
35515 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35516 wxPyEndAllowThreads(__tstate);
35517 if (PyErr_Occurred()) SWIG_fail;
35518 }
35519 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35520 return resultobj;
35521fail:
35522 return NULL;
35523}
35524
35525
35526SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35527 PyObject *resultobj = 0;
35528 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35529 wxTreeItemId *arg2 = 0 ;
35530 wxTreeItemId result;
35531 void *argp1 = 0 ;
35532 int res1 = 0 ;
35533 void *argp2 = 0 ;
35534 int res2 = 0 ;
35535 PyObject * obj0 = 0 ;
35536 PyObject * obj1 = 0 ;
35537 char * kwnames[] = {
35538 (char *) "self",(char *) "item", NULL
35539 };
35540
35541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35543 if (!SWIG_IsOK(res1)) {
35544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35545 }
35546 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35547 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35548 if (!SWIG_IsOK(res2)) {
35549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35550 }
35551 if (!argp2) {
35552 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35553 }
35554 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35555 {
35556 PyThreadState* __tstate = wxPyBeginAllowThreads();
35557 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35558 wxPyEndAllowThreads(__tstate);
35559 if (PyErr_Occurred()) SWIG_fail;
35560 }
35561 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35562 return resultobj;
35563fail:
35564 return NULL;
d55e5bfc
RD
35565}
35566
35567
1bd55598
RD
35568SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35569 PyObject *resultobj = 0;
35570 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35571 wxTreeItemId result;
35572 void *argp1 = 0 ;
35573 int res1 = 0 ;
35574 PyObject *swig_obj[1] ;
35575
35576 if (!args) SWIG_fail;
35577 swig_obj[0] = args;
35578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35579 if (!SWIG_IsOK(res1)) {
35580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35581 }
35582 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35583 {
35584 PyThreadState* __tstate = wxPyBeginAllowThreads();
35585 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35586 wxPyEndAllowThreads(__tstate);
35587 if (PyErr_Occurred()) SWIG_fail;
35588 }
35589 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35590 return resultobj;
35591fail:
35592 return NULL;
35593}
35594
35595
35596SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35597 PyObject *resultobj = 0;
35598 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35599 wxTreeItemId *arg2 = 0 ;
35600 wxTreeItemId result;
35601 void *argp1 = 0 ;
35602 int res1 = 0 ;
35603 void *argp2 = 0 ;
35604 int res2 = 0 ;
35605 PyObject * obj0 = 0 ;
35606 PyObject * obj1 = 0 ;
35607 char * kwnames[] = {
35608 (char *) "self",(char *) "item", NULL
35609 };
35610
35611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35613 if (!SWIG_IsOK(res1)) {
35614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35615 }
35616 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35617 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35618 if (!SWIG_IsOK(res2)) {
35619 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35620 }
35621 if (!argp2) {
35622 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35623 }
35624 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35625 {
35626 PyThreadState* __tstate = wxPyBeginAllowThreads();
35627 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35628 wxPyEndAllowThreads(__tstate);
35629 if (PyErr_Occurred()) SWIG_fail;
35630 }
35631 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35632 return resultobj;
35633fail:
35634 return NULL;
35635}
35636
35637
35638SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35639 PyObject *resultobj = 0;
35640 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35641 wxTreeItemId *arg2 = 0 ;
35642 wxTreeItemId result;
35643 void *argp1 = 0 ;
35644 int res1 = 0 ;
35645 void *argp2 = 0 ;
35646 int res2 = 0 ;
35647 PyObject * obj0 = 0 ;
35648 PyObject * obj1 = 0 ;
35649 char * kwnames[] = {
35650 (char *) "self",(char *) "item", NULL
35651 };
35652
35653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35655 if (!SWIG_IsOK(res1)) {
35656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35657 }
35658 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35660 if (!SWIG_IsOK(res2)) {
35661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35662 }
35663 if (!argp2) {
35664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35665 }
35666 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35667 {
35668 PyThreadState* __tstate = wxPyBeginAllowThreads();
35669 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35670 wxPyEndAllowThreads(__tstate);
35671 if (PyErr_Occurred()) SWIG_fail;
35672 }
35673 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35674 return resultobj;
35675fail:
35676 return NULL;
35677}
35678
35679
35680SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35681 PyObject *resultobj = 0;
35682 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35683 wxString *arg2 = 0 ;
35684 int arg3 = (int) -1 ;
35685 int arg4 = (int) -1 ;
35686 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35687 wxTreeItemId result;
35688 void *argp1 = 0 ;
35689 int res1 = 0 ;
35690 bool temp2 = false ;
35691 int val3 ;
35692 int ecode3 = 0 ;
35693 int val4 ;
35694 int ecode4 = 0 ;
35695 int res5 = 0 ;
35696 PyObject * obj0 = 0 ;
35697 PyObject * obj1 = 0 ;
35698 PyObject * obj2 = 0 ;
35699 PyObject * obj3 = 0 ;
35700 PyObject * obj4 = 0 ;
35701 char * kwnames[] = {
35702 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35703 };
35704
35705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35707 if (!SWIG_IsOK(res1)) {
35708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35709 }
35710 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35711 {
35712 arg2 = wxString_in_helper(obj1);
35713 if (arg2 == NULL) SWIG_fail;
35714 temp2 = true;
35715 }
35716 if (obj2) {
35717 ecode3 = SWIG_AsVal_int(obj2, &val3);
35718 if (!SWIG_IsOK(ecode3)) {
35719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35720 }
35721 arg3 = static_cast< int >(val3);
35722 }
35723 if (obj3) {
35724 ecode4 = SWIG_AsVal_int(obj3, &val4);
35725 if (!SWIG_IsOK(ecode4)) {
35726 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35727 }
35728 arg4 = static_cast< int >(val4);
35729 }
35730 if (obj4) {
35731 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35732 if (!SWIG_IsOK(res5)) {
35733 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
36ed4f51 35734 }
1bd55598
RD
35735 }
35736 {
35737 PyThreadState* __tstate = wxPyBeginAllowThreads();
35738 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35739 wxPyEndAllowThreads(__tstate);
35740 if (PyErr_Occurred()) SWIG_fail;
35741 }
35742 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35743 {
35744 if (temp2)
35745 delete arg2;
35746 }
35747 return resultobj;
35748fail:
35749 {
35750 if (temp2)
35751 delete arg2;
35752 }
35753 return NULL;
35754}
35755
35756
35757SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35758 PyObject *resultobj = 0;
35759 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35760 wxTreeItemId *arg2 = 0 ;
35761 wxString *arg3 = 0 ;
35762 int arg4 = (int) -1 ;
35763 int arg5 = (int) -1 ;
35764 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35765 wxTreeItemId result;
35766 void *argp1 = 0 ;
35767 int res1 = 0 ;
35768 void *argp2 = 0 ;
35769 int res2 = 0 ;
35770 bool temp3 = false ;
35771 int val4 ;
35772 int ecode4 = 0 ;
35773 int val5 ;
35774 int ecode5 = 0 ;
35775 int res6 = 0 ;
35776 PyObject * obj0 = 0 ;
35777 PyObject * obj1 = 0 ;
35778 PyObject * obj2 = 0 ;
35779 PyObject * obj3 = 0 ;
35780 PyObject * obj4 = 0 ;
35781 PyObject * obj5 = 0 ;
35782 char * kwnames[] = {
35783 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35784 };
35785
35786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35788 if (!SWIG_IsOK(res1)) {
35789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35790 }
35791 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35792 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35793 if (!SWIG_IsOK(res2)) {
35794 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35795 }
35796 if (!argp2) {
35797 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35798 }
35799 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35800 {
35801 arg3 = wxString_in_helper(obj2);
35802 if (arg3 == NULL) SWIG_fail;
35803 temp3 = true;
35804 }
35805 if (obj3) {
35806 ecode4 = SWIG_AsVal_int(obj3, &val4);
35807 if (!SWIG_IsOK(ecode4)) {
35808 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35809 }
35810 arg4 = static_cast< int >(val4);
35811 }
35812 if (obj4) {
35813 ecode5 = SWIG_AsVal_int(obj4, &val5);
35814 if (!SWIG_IsOK(ecode5)) {
35815 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35816 }
35817 arg5 = static_cast< int >(val5);
35818 }
35819 if (obj5) {
35820 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35821 if (!SWIG_IsOK(res6)) {
35822 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 35823 }
1bd55598
RD
35824 }
35825 {
35826 PyThreadState* __tstate = wxPyBeginAllowThreads();
35827 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35828 wxPyEndAllowThreads(__tstate);
35829 if (PyErr_Occurred()) SWIG_fail;
35830 }
35831 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35832 {
35833 if (temp3)
35834 delete arg3;
35835 }
35836 return resultobj;
35837fail:
35838 {
35839 if (temp3)
35840 delete arg3;
35841 }
35842 return NULL;
35843}
35844
35845
35846SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35847 PyObject *resultobj = 0;
35848 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35849 wxTreeItemId *arg2 = 0 ;
35850 wxTreeItemId *arg3 = 0 ;
35851 wxString *arg4 = 0 ;
35852 int arg5 = (int) -1 ;
35853 int arg6 = (int) -1 ;
35854 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35855 wxTreeItemId result;
35856 void *argp1 = 0 ;
35857 int res1 = 0 ;
35858 void *argp2 = 0 ;
35859 int res2 = 0 ;
35860 void *argp3 = 0 ;
35861 int res3 = 0 ;
35862 bool temp4 = false ;
35863 int val5 ;
35864 int ecode5 = 0 ;
35865 int val6 ;
35866 int ecode6 = 0 ;
35867 int res7 = 0 ;
35868 PyObject * obj0 = 0 ;
35869 PyObject * obj1 = 0 ;
35870 PyObject * obj2 = 0 ;
35871 PyObject * obj3 = 0 ;
35872 PyObject * obj4 = 0 ;
35873 PyObject * obj5 = 0 ;
35874 PyObject * obj6 = 0 ;
35875 char * kwnames[] = {
35876 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35877 };
35878
35879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35881 if (!SWIG_IsOK(res1)) {
35882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35883 }
35884 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35885 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35886 if (!SWIG_IsOK(res2)) {
35887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35888 }
35889 if (!argp2) {
35890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35891 }
35892 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35893 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35894 if (!SWIG_IsOK(res3)) {
35895 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35896 }
35897 if (!argp3) {
35898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35899 }
35900 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35901 {
35902 arg4 = wxString_in_helper(obj3);
35903 if (arg4 == NULL) SWIG_fail;
35904 temp4 = true;
35905 }
35906 if (obj4) {
35907 ecode5 = SWIG_AsVal_int(obj4, &val5);
35908 if (!SWIG_IsOK(ecode5)) {
35909 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35910 }
35911 arg5 = static_cast< int >(val5);
35912 }
35913 if (obj5) {
35914 ecode6 = SWIG_AsVal_int(obj5, &val6);
35915 if (!SWIG_IsOK(ecode6)) {
35916 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35917 }
35918 arg6 = static_cast< int >(val6);
35919 }
35920 if (obj6) {
35921 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35922 if (!SWIG_IsOK(res7)) {
35923 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 35924 }
1bd55598
RD
35925 }
35926 {
35927 PyThreadState* __tstate = wxPyBeginAllowThreads();
35928 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35929 wxPyEndAllowThreads(__tstate);
35930 if (PyErr_Occurred()) SWIG_fail;
35931 }
35932 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35933 {
35934 if (temp4)
35935 delete arg4;
35936 }
35937 return resultobj;
35938fail:
35939 {
35940 if (temp4)
35941 delete arg4;
35942 }
35943 return NULL;
35944}
35945
35946
35947SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35948 PyObject *resultobj = 0;
35949 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35950 wxTreeItemId *arg2 = 0 ;
35951 size_t arg3 ;
35952 wxString *arg4 = 0 ;
35953 int arg5 = (int) -1 ;
35954 int arg6 = (int) -1 ;
35955 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35956 wxTreeItemId result;
35957 void *argp1 = 0 ;
35958 int res1 = 0 ;
35959 void *argp2 = 0 ;
35960 int res2 = 0 ;
35961 size_t val3 ;
35962 int ecode3 = 0 ;
35963 bool temp4 = false ;
35964 int val5 ;
35965 int ecode5 = 0 ;
35966 int val6 ;
35967 int ecode6 = 0 ;
35968 int res7 = 0 ;
35969 PyObject * obj0 = 0 ;
35970 PyObject * obj1 = 0 ;
35971 PyObject * obj2 = 0 ;
35972 PyObject * obj3 = 0 ;
35973 PyObject * obj4 = 0 ;
35974 PyObject * obj5 = 0 ;
35975 PyObject * obj6 = 0 ;
35976 char * kwnames[] = {
35977 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35978 };
35979
35980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35982 if (!SWIG_IsOK(res1)) {
35983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35984 }
35985 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35986 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35987 if (!SWIG_IsOK(res2)) {
35988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35989 }
35990 if (!argp2) {
35991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35992 }
35993 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35994 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35995 if (!SWIG_IsOK(ecode3)) {
35996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35997 }
35998 arg3 = static_cast< size_t >(val3);
35999 {
36000 arg4 = wxString_in_helper(obj3);
36001 if (arg4 == NULL) SWIG_fail;
36002 temp4 = true;
36003 }
36004 if (obj4) {
36005 ecode5 = SWIG_AsVal_int(obj4, &val5);
36006 if (!SWIG_IsOK(ecode5)) {
36007 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
36008 }
36009 arg5 = static_cast< int >(val5);
36010 }
36011 if (obj5) {
36012 ecode6 = SWIG_AsVal_int(obj5, &val6);
36013 if (!SWIG_IsOK(ecode6)) {
36014 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
36015 }
36016 arg6 = static_cast< int >(val6);
36017 }
36018 if (obj6) {
36019 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36020 if (!SWIG_IsOK(res7)) {
36021 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36022 }
1bd55598
RD
36023 }
36024 {
36025 PyThreadState* __tstate = wxPyBeginAllowThreads();
36026 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
36027 wxPyEndAllowThreads(__tstate);
36028 if (PyErr_Occurred()) SWIG_fail;
36029 }
36030 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36031 {
36032 if (temp4)
36033 delete arg4;
36034 }
36035 return resultobj;
36036fail:
36037 {
36038 if (temp4)
36039 delete arg4;
36040 }
36041 return NULL;
36042}
36043
36044
36045SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36046 PyObject *resultobj = 0;
36047 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36048 wxTreeItemId *arg2 = 0 ;
36049 wxString *arg3 = 0 ;
36050 int arg4 = (int) -1 ;
36051 int arg5 = (int) -1 ;
36052 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
36053 wxTreeItemId result;
36054 void *argp1 = 0 ;
36055 int res1 = 0 ;
36056 void *argp2 = 0 ;
36057 int res2 = 0 ;
36058 bool temp3 = false ;
36059 int val4 ;
36060 int ecode4 = 0 ;
36061 int val5 ;
36062 int ecode5 = 0 ;
36063 int res6 = 0 ;
36064 PyObject * obj0 = 0 ;
36065 PyObject * obj1 = 0 ;
36066 PyObject * obj2 = 0 ;
36067 PyObject * obj3 = 0 ;
36068 PyObject * obj4 = 0 ;
36069 PyObject * obj5 = 0 ;
36070 char * kwnames[] = {
36071 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
36072 };
36073
36074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36076 if (!SWIG_IsOK(res1)) {
36077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36078 }
36079 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36080 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36081 if (!SWIG_IsOK(res2)) {
36082 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36083 }
36084 if (!argp2) {
36085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36086 }
36087 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36088 {
36089 arg3 = wxString_in_helper(obj2);
36090 if (arg3 == NULL) SWIG_fail;
36091 temp3 = true;
36092 }
36093 if (obj3) {
36094 ecode4 = SWIG_AsVal_int(obj3, &val4);
36095 if (!SWIG_IsOK(ecode4)) {
36096 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
36097 }
36098 arg4 = static_cast< int >(val4);
36099 }
36100 if (obj4) {
36101 ecode5 = SWIG_AsVal_int(obj4, &val5);
36102 if (!SWIG_IsOK(ecode5)) {
36103 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
36104 }
36105 arg5 = static_cast< int >(val5);
36106 }
36107 if (obj5) {
36108 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
36109 if (!SWIG_IsOK(res6)) {
36110 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
d55e5bfc 36111 }
1bd55598
RD
36112 }
36113 {
36114 PyThreadState* __tstate = wxPyBeginAllowThreads();
36115 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
36116 wxPyEndAllowThreads(__tstate);
36117 if (PyErr_Occurred()) SWIG_fail;
36118 }
36119 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36120 {
36121 if (temp3)
36122 delete arg3;
36123 }
36124 return resultobj;
36125fail:
36126 {
36127 if (temp3)
36128 delete arg3;
36129 }
36130 return NULL;
36131}
36132
36133
36134SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36135 PyObject *resultobj = 0;
36136 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36137 wxTreeItemId *arg2 = 0 ;
36138 void *argp1 = 0 ;
36139 int res1 = 0 ;
36140 void *argp2 = 0 ;
36141 int res2 = 0 ;
36142 PyObject * obj0 = 0 ;
36143 PyObject * obj1 = 0 ;
36144 char * kwnames[] = {
36145 (char *) "self",(char *) "item", NULL
36146 };
36147
36148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
36149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36150 if (!SWIG_IsOK(res1)) {
36151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36152 }
36153 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36154 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36155 if (!SWIG_IsOK(res2)) {
36156 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36157 }
36158 if (!argp2) {
36159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36160 }
36161 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36162 {
36163 PyThreadState* __tstate = wxPyBeginAllowThreads();
36164 (arg1)->Delete((wxTreeItemId const &)*arg2);
36165 wxPyEndAllowThreads(__tstate);
36166 if (PyErr_Occurred()) SWIG_fail;
36167 }
36168 resultobj = SWIG_Py_Void();
36169 return resultobj;
36170fail:
36171 return NULL;
36172}
36173
36174
36175SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36176 PyObject *resultobj = 0;
36177 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36178 wxTreeItemId *arg2 = 0 ;
36179 void *argp1 = 0 ;
36180 int res1 = 0 ;
36181 void *argp2 = 0 ;
36182 int res2 = 0 ;
36183 PyObject * obj0 = 0 ;
36184 PyObject * obj1 = 0 ;
36185 char * kwnames[] = {
36186 (char *) "self",(char *) "item", NULL
36187 };
36188
36189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36191 if (!SWIG_IsOK(res1)) {
36192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36193 }
36194 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36195 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36196 if (!SWIG_IsOK(res2)) {
36197 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36198 }
36199 if (!argp2) {
36200 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36201 }
36202 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36203 {
36204 PyThreadState* __tstate = wxPyBeginAllowThreads();
36205 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
36206 wxPyEndAllowThreads(__tstate);
36207 if (PyErr_Occurred()) SWIG_fail;
36208 }
36209 resultobj = SWIG_Py_Void();
36210 return resultobj;
36211fail:
36212 return NULL;
d55e5bfc
RD
36213}
36214
36215
1bd55598
RD
36216SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36217 PyObject *resultobj = 0;
36218 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36219 void *argp1 = 0 ;
36220 int res1 = 0 ;
36221 PyObject *swig_obj[1] ;
36222
36223 if (!args) SWIG_fail;
36224 swig_obj[0] = args;
36225 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36226 if (!SWIG_IsOK(res1)) {
36227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36228 }
36229 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36230 {
36231 PyThreadState* __tstate = wxPyBeginAllowThreads();
36232 (arg1)->DeleteAllItems();
36233 wxPyEndAllowThreads(__tstate);
36234 if (PyErr_Occurred()) SWIG_fail;
36235 }
36236 resultobj = SWIG_Py_Void();
36237 return resultobj;
36238fail:
36239 return NULL;
36240}
36241
36242
36243SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36244 PyObject *resultobj = 0;
36245 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36246 wxTreeItemId *arg2 = 0 ;
36247 void *argp1 = 0 ;
36248 int res1 = 0 ;
36249 void *argp2 = 0 ;
36250 int res2 = 0 ;
36251 PyObject * obj0 = 0 ;
36252 PyObject * obj1 = 0 ;
36253 char * kwnames[] = {
36254 (char *) "self",(char *) "item", NULL
36255 };
36256
36257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
36258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36259 if (!SWIG_IsOK(res1)) {
36260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36261 }
36262 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36264 if (!SWIG_IsOK(res2)) {
36265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36266 }
36267 if (!argp2) {
36268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36269 }
36270 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36271 {
36272 PyThreadState* __tstate = wxPyBeginAllowThreads();
36273 (arg1)->Expand((wxTreeItemId const &)*arg2);
36274 wxPyEndAllowThreads(__tstate);
36275 if (PyErr_Occurred()) SWIG_fail;
36276 }
36277 resultobj = SWIG_Py_Void();
36278 return resultobj;
36279fail:
36280 return NULL;
36281}
36282
36283
3d6c9062
RD
36284SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAllChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36285 PyObject *resultobj = 0;
36286 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36287 wxTreeItemId *arg2 = 0 ;
36288 void *argp1 = 0 ;
36289 int res1 = 0 ;
36290 void *argp2 = 0 ;
36291 int res2 = 0 ;
36292 PyObject * obj0 = 0 ;
36293 PyObject * obj1 = 0 ;
36294 char * kwnames[] = {
36295 (char *) "self",(char *) "item", NULL
36296 };
36297
36298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ExpandAllChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36300 if (!SWIG_IsOK(res1)) {
36301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36302 }
36303 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36304 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36305 if (!SWIG_IsOK(res2)) {
36306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36307 }
36308 if (!argp2) {
36309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ExpandAllChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36310 }
36311 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36312 {
36313 PyThreadState* __tstate = wxPyBeginAllowThreads();
36314 (arg1)->ExpandAllChildren((wxTreeItemId const &)*arg2);
36315 wxPyEndAllowThreads(__tstate);
36316 if (PyErr_Occurred()) SWIG_fail;
36317 }
36318 resultobj = SWIG_Py_Void();
36319 return resultobj;
36320fail:
36321 return NULL;
36322}
36323
36324
36325SWIGINTERN PyObject *_wrap_TreeCtrl_ExpandAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36326 PyObject *resultobj = 0;
36327 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36328 void *argp1 = 0 ;
36329 int res1 = 0 ;
36330 PyObject *swig_obj[1] ;
36331
36332 if (!args) SWIG_fail;
36333 swig_obj[0] = args;
36334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36335 if (!SWIG_IsOK(res1)) {
36336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ExpandAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36337 }
36338 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36339 {
36340 PyThreadState* __tstate = wxPyBeginAllowThreads();
36341 (arg1)->ExpandAll();
36342 wxPyEndAllowThreads(__tstate);
36343 if (PyErr_Occurred()) SWIG_fail;
36344 }
36345 resultobj = SWIG_Py_Void();
36346 return resultobj;
36347fail:
36348 return NULL;
36349}
36350
36351
1bd55598
RD
36352SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36353 PyObject *resultobj = 0;
36354 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36355 wxTreeItemId *arg2 = 0 ;
36356 void *argp1 = 0 ;
36357 int res1 = 0 ;
36358 void *argp2 = 0 ;
36359 int res2 = 0 ;
36360 PyObject * obj0 = 0 ;
36361 PyObject * obj1 = 0 ;
36362 char * kwnames[] = {
36363 (char *) "self",(char *) "item", NULL
36364 };
36365
36366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36368 if (!SWIG_IsOK(res1)) {
36369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36370 }
36371 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36373 if (!SWIG_IsOK(res2)) {
36374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36375 }
36376 if (!argp2) {
36377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36378 }
36379 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36380 {
36381 PyThreadState* __tstate = wxPyBeginAllowThreads();
36382 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36383 wxPyEndAllowThreads(__tstate);
36384 if (PyErr_Occurred()) SWIG_fail;
36385 }
36386 resultobj = SWIG_Py_Void();
36387 return resultobj;
36388fail:
36389 return NULL;
36390}
36391
36392
36393SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36394 PyObject *resultobj = 0;
36395 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36396 wxTreeItemId *arg2 = 0 ;
36397 void *argp1 = 0 ;
36398 int res1 = 0 ;
36399 void *argp2 = 0 ;
36400 int res2 = 0 ;
36401 PyObject * obj0 = 0 ;
36402 PyObject * obj1 = 0 ;
36403 char * kwnames[] = {
36404 (char *) "self",(char *) "item", NULL
36405 };
36406
36407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36409 if (!SWIG_IsOK(res1)) {
36410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36411 }
36412 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36413 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36414 if (!SWIG_IsOK(res2)) {
36415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36416 }
36417 if (!argp2) {
36418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36419 }
36420 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36421 {
36422 PyThreadState* __tstate = wxPyBeginAllowThreads();
36423 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36424 wxPyEndAllowThreads(__tstate);
36425 if (PyErr_Occurred()) SWIG_fail;
36426 }
36427 resultobj = SWIG_Py_Void();
36428 return resultobj;
36429fail:
36430 return NULL;
36431}
36432
36433
36434SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36435 PyObject *resultobj = 0;
36436 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36437 wxTreeItemId *arg2 = 0 ;
36438 void *argp1 = 0 ;
36439 int res1 = 0 ;
36440 void *argp2 = 0 ;
36441 int res2 = 0 ;
36442 PyObject * obj0 = 0 ;
36443 PyObject * obj1 = 0 ;
36444 char * kwnames[] = {
36445 (char *) "self",(char *) "item", NULL
36446 };
36447
36448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36450 if (!SWIG_IsOK(res1)) {
36451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36452 }
36453 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36454 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36455 if (!SWIG_IsOK(res2)) {
36456 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36457 }
36458 if (!argp2) {
36459 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36460 }
36461 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36462 {
36463 PyThreadState* __tstate = wxPyBeginAllowThreads();
36464 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36465 wxPyEndAllowThreads(__tstate);
36466 if (PyErr_Occurred()) SWIG_fail;
36467 }
36468 resultobj = SWIG_Py_Void();
36469 return resultobj;
36470fail:
36471 return NULL;
d55e5bfc
RD
36472}
36473
36474
1bd55598
RD
36475SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36476 PyObject *resultobj = 0;
36477 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36478 void *argp1 = 0 ;
36479 int res1 = 0 ;
36480 PyObject *swig_obj[1] ;
36481
36482 if (!args) SWIG_fail;
36483 swig_obj[0] = args;
36484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36485 if (!SWIG_IsOK(res1)) {
36486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36487 }
36488 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36489 {
36490 PyThreadState* __tstate = wxPyBeginAllowThreads();
36491 (arg1)->Unselect();
36492 wxPyEndAllowThreads(__tstate);
36493 if (PyErr_Occurred()) SWIG_fail;
36494 }
36495 resultobj = SWIG_Py_Void();
36496 return resultobj;
36497fail:
36498 return NULL;
36499}
36500
36501
36502SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36503 PyObject *resultobj = 0;
36504 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36505 wxTreeItemId *arg2 = 0 ;
36506 void *argp1 = 0 ;
36507 int res1 = 0 ;
36508 void *argp2 = 0 ;
36509 int res2 = 0 ;
36510 PyObject * obj0 = 0 ;
36511 PyObject * obj1 = 0 ;
36512 char * kwnames[] = {
36513 (char *) "self",(char *) "item", NULL
36514 };
36515
36516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36518 if (!SWIG_IsOK(res1)) {
36519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36520 }
36521 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36522 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36523 if (!SWIG_IsOK(res2)) {
36524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36525 }
36526 if (!argp2) {
36527 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36528 }
36529 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36530 {
36531 PyThreadState* __tstate = wxPyBeginAllowThreads();
36532 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36533 wxPyEndAllowThreads(__tstate);
36534 if (PyErr_Occurred()) SWIG_fail;
36535 }
36536 resultobj = SWIG_Py_Void();
36537 return resultobj;
36538fail:
36539 return NULL;
d55e5bfc
RD
36540}
36541
36542
1bd55598
RD
36543SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36544 PyObject *resultobj = 0;
36545 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36546 void *argp1 = 0 ;
36547 int res1 = 0 ;
36548 PyObject *swig_obj[1] ;
36549
36550 if (!args) SWIG_fail;
36551 swig_obj[0] = args;
36552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36553 if (!SWIG_IsOK(res1)) {
36554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36555 }
36556 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36557 {
36558 PyThreadState* __tstate = wxPyBeginAllowThreads();
36559 (arg1)->UnselectAll();
36560 wxPyEndAllowThreads(__tstate);
36561 if (PyErr_Occurred()) SWIG_fail;
36562 }
36563 resultobj = SWIG_Py_Void();
36564 return resultobj;
36565fail:
36566 return NULL;
36567}
36568
36569
36570SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36571 PyObject *resultobj = 0;
36572 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36573 wxTreeItemId *arg2 = 0 ;
36574 bool arg3 = (bool) true ;
36575 void *argp1 = 0 ;
36576 int res1 = 0 ;
36577 void *argp2 = 0 ;
36578 int res2 = 0 ;
36579 bool val3 ;
36580 int ecode3 = 0 ;
36581 PyObject * obj0 = 0 ;
36582 PyObject * obj1 = 0 ;
36583 PyObject * obj2 = 0 ;
36584 char * kwnames[] = {
36585 (char *) "self",(char *) "item",(char *) "select", NULL
36586 };
36587
36588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36590 if (!SWIG_IsOK(res1)) {
36591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36592 }
36593 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36594 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36595 if (!SWIG_IsOK(res2)) {
36596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36597 }
36598 if (!argp2) {
36599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36600 }
36601 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36602 if (obj2) {
36603 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36604 if (!SWIG_IsOK(ecode3)) {
36605 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36606 }
36607 arg3 = static_cast< bool >(val3);
36608 }
36609 {
36610 PyThreadState* __tstate = wxPyBeginAllowThreads();
36611 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36612 wxPyEndAllowThreads(__tstate);
36613 if (PyErr_Occurred()) SWIG_fail;
36614 }
36615 resultobj = SWIG_Py_Void();
36616 return resultobj;
36617fail:
36618 return NULL;
36619}
36620
36621
36622SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36623 PyObject *resultobj = 0;
36624 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36625 wxTreeItemId *arg2 = 0 ;
36626 void *argp1 = 0 ;
36627 int res1 = 0 ;
36628 void *argp2 = 0 ;
36629 int res2 = 0 ;
36630 PyObject * obj0 = 0 ;
36631 PyObject * obj1 = 0 ;
36632 char * kwnames[] = {
36633 (char *) "self",(char *) "item", NULL
36634 };
36635
36636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36638 if (!SWIG_IsOK(res1)) {
36639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36640 }
36641 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36642 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36643 if (!SWIG_IsOK(res2)) {
36644 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36645 }
36646 if (!argp2) {
36647 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36648 }
36649 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36650 {
36651 PyThreadState* __tstate = wxPyBeginAllowThreads();
36652 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36653 wxPyEndAllowThreads(__tstate);
36654 if (PyErr_Occurred()) SWIG_fail;
36655 }
36656 resultobj = SWIG_Py_Void();
36657 return resultobj;
36658fail:
36659 return NULL;
36660}
36661
36662
36663SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36664 PyObject *resultobj = 0;
36665 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36666 wxTreeItemId *arg2 = 0 ;
36667 void *argp1 = 0 ;
36668 int res1 = 0 ;
36669 void *argp2 = 0 ;
36670 int res2 = 0 ;
36671 PyObject * obj0 = 0 ;
36672 PyObject * obj1 = 0 ;
36673 char * kwnames[] = {
36674 (char *) "self",(char *) "item", NULL
36675 };
36676
36677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36679 if (!SWIG_IsOK(res1)) {
36680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36681 }
36682 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36683 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36684 if (!SWIG_IsOK(res2)) {
36685 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36686 }
36687 if (!argp2) {
36688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36689 }
36690 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36691 {
36692 PyThreadState* __tstate = wxPyBeginAllowThreads();
36693 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36694 wxPyEndAllowThreads(__tstate);
36695 if (PyErr_Occurred()) SWIG_fail;
36696 }
36697 resultobj = SWIG_Py_Void();
36698 return resultobj;
36699fail:
36700 return NULL;
36701}
36702
36703
36704SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36705 PyObject *resultobj = 0;
36706 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36707 wxTreeItemId *arg2 = 0 ;
36708 void *argp1 = 0 ;
36709 int res1 = 0 ;
36710 void *argp2 = 0 ;
36711 int res2 = 0 ;
36712 PyObject * obj0 = 0 ;
36713 PyObject * obj1 = 0 ;
36714 char * kwnames[] = {
36715 (char *) "self",(char *) "item", NULL
36716 };
36717
36718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36720 if (!SWIG_IsOK(res1)) {
36721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36722 }
36723 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36724 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36725 if (!SWIG_IsOK(res2)) {
36726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36727 }
36728 if (!argp2) {
36729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36730 }
36731 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36732 {
36733 PyThreadState* __tstate = wxPyBeginAllowThreads();
36734 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36735 wxPyEndAllowThreads(__tstate);
36736 if (PyErr_Occurred()) SWIG_fail;
36737 }
36738 resultobj = SWIG_Py_Void();
36739 return resultobj;
36740fail:
36741 return NULL;
36742}
36743
36744
36745SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36746 PyObject *resultobj = 0;
36747 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36748 wxTreeItemId *arg2 = 0 ;
36749 void *argp1 = 0 ;
36750 int res1 = 0 ;
36751 void *argp2 = 0 ;
36752 int res2 = 0 ;
36753 PyObject * obj0 = 0 ;
36754 PyObject * obj1 = 0 ;
36755 char * kwnames[] = {
36756 (char *) "self",(char *) "item", NULL
36757 };
36758
36759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36761 if (!SWIG_IsOK(res1)) {
36762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36763 }
36764 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36765 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36766 if (!SWIG_IsOK(res2)) {
36767 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36768 }
36769 if (!argp2) {
36770 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36771 }
36772 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36773 {
36774 PyThreadState* __tstate = wxPyBeginAllowThreads();
36775 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36776 wxPyEndAllowThreads(__tstate);
36777 if (PyErr_Occurred()) SWIG_fail;
36778 }
36779 resultobj = SWIG_Py_Void();
36780 return resultobj;
36781fail:
36782 return NULL;
d55e5bfc
RD
36783}
36784
36785
1bd55598
RD
36786SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36787 PyObject *resultobj = 0;
36788 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36789 wxTextCtrl *result = 0 ;
36790 void *argp1 = 0 ;
36791 int res1 = 0 ;
36792 PyObject *swig_obj[1] ;
36793
36794 if (!args) SWIG_fail;
36795 swig_obj[0] = args;
36796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36797 if (!SWIG_IsOK(res1)) {
36798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36799 }
36800 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36801 {
36802 PyThreadState* __tstate = wxPyBeginAllowThreads();
36803 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36804 wxPyEndAllowThreads(__tstate);
36805 if (PyErr_Occurred()) SWIG_fail;
36806 }
36807 {
36808 resultobj = wxPyMake_wxObject(result, 0);
36809 }
36810 return resultobj;
36811fail:
36812 return NULL;
36813}
36814
36815
36816SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36817 PyObject *resultobj = 0;
36818 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36819 wxTreeItemId *arg2 = 0 ;
36820 void *argp1 = 0 ;
36821 int res1 = 0 ;
36822 void *argp2 = 0 ;
36823 int res2 = 0 ;
36824 PyObject * obj0 = 0 ;
36825 PyObject * obj1 = 0 ;
36826 char * kwnames[] = {
36827 (char *) "self",(char *) "item", NULL
36828 };
36829
36830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36832 if (!SWIG_IsOK(res1)) {
36833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36834 }
36835 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36836 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36837 if (!SWIG_IsOK(res2)) {
36838 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36839 }
36840 if (!argp2) {
36841 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36842 }
36843 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36844 {
36845 PyThreadState* __tstate = wxPyBeginAllowThreads();
36846 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36847 wxPyEndAllowThreads(__tstate);
36848 if (PyErr_Occurred()) SWIG_fail;
36849 }
36850 resultobj = SWIG_Py_Void();
36851 return resultobj;
36852fail:
36853 return NULL;
36854}
36855
36856
36857SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36858 PyObject *resultobj = 0;
36859 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36860 wxPoint *arg2 = 0 ;
36861 int *arg3 = 0 ;
36862 wxTreeItemId result;
36863 void *argp1 = 0 ;
36864 int res1 = 0 ;
36865 wxPoint temp2 ;
36866 int temp3 ;
36867 int res3 = SWIG_TMPOBJ ;
36868 PyObject * obj0 = 0 ;
36869 PyObject * obj1 = 0 ;
36870 char * kwnames[] = {
36871 (char *) "self",(char *) "point", NULL
36872 };
36873
36874 arg3 = &temp3;
36875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36877 if (!SWIG_IsOK(res1)) {
36878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36879 }
36880 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36881 {
36882 arg2 = &temp2;
36883 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36884 }
36885 {
36886 PyThreadState* __tstate = wxPyBeginAllowThreads();
36887 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36888 wxPyEndAllowThreads(__tstate);
36889 if (PyErr_Occurred()) SWIG_fail;
36890 }
36891 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36892 if (SWIG_IsTmpObj(res3)) {
36893 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36894 } else {
36895 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36897 }
36898 return resultobj;
36899fail:
36900 return NULL;
36901}
36902
36903
36904SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36905 PyObject *resultobj = 0;
36906 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36907 wxTreeItemId *arg2 = 0 ;
36908 bool arg3 = (bool) false ;
36909 PyObject *result = 0 ;
36910 void *argp1 = 0 ;
36911 int res1 = 0 ;
36912 void *argp2 = 0 ;
36913 int res2 = 0 ;
36914 bool val3 ;
36915 int ecode3 = 0 ;
36916 PyObject * obj0 = 0 ;
36917 PyObject * obj1 = 0 ;
36918 PyObject * obj2 = 0 ;
36919 char * kwnames[] = {
36920 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36921 };
36922
36923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36925 if (!SWIG_IsOK(res1)) {
36926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36927 }
36928 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36929 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36930 if (!SWIG_IsOK(res2)) {
36931 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36932 }
36933 if (!argp2) {
36934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36935 }
36936 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36937 if (obj2) {
36938 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36939 if (!SWIG_IsOK(ecode3)) {
36940 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36941 }
36942 arg3 = static_cast< bool >(val3);
36943 }
36944 {
36945 PyThreadState* __tstate = wxPyBeginAllowThreads();
36946 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36947 wxPyEndAllowThreads(__tstate);
36948 if (PyErr_Occurred()) SWIG_fail;
36949 }
36950 resultobj = result;
36951 return resultobj;
36952fail:
36953 return NULL;
36954}
36955
36956
36957SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36958 PyObject *resultobj = 0;
36959 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36960 SwigValueWrapper<wxVisualAttributes > result;
36961 int val1 ;
36962 int ecode1 = 0 ;
36963 PyObject * obj0 = 0 ;
36964 char * kwnames[] = {
36965 (char *) "variant", NULL
36966 };
36967
36968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36969 if (obj0) {
36970 ecode1 = SWIG_AsVal_int(obj0, &val1);
36971 if (!SWIG_IsOK(ecode1)) {
36972 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36973 }
36974 arg1 = static_cast< wxWindowVariant >(val1);
36975 }
36976 {
36977 if (!wxPyCheckForApp()) SWIG_fail;
36978 PyThreadState* __tstate = wxPyBeginAllowThreads();
36979 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36980 wxPyEndAllowThreads(__tstate);
36981 if (PyErr_Occurred()) SWIG_fail;
36982 }
36983 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36984 return resultobj;
36985fail:
36986 return NULL;
d55e5bfc
RD
36987}
36988
36989
2131d850
RD
36990SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36991 PyObject *resultobj = 0;
36992 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36993 bool arg2 ;
36994 void *argp1 = 0 ;
36995 int res1 = 0 ;
36996 bool val2 ;
36997 int ecode2 = 0 ;
36998 PyObject * obj0 = 0 ;
36999 PyObject * obj1 = 0 ;
37000 char * kwnames[] = {
37001 (char *) "self",(char *) "q", NULL
37002 };
37003
37004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
37005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37006 if (!SWIG_IsOK(res1)) {
37007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
37008 }
37009 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37010 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37011 if (!SWIG_IsOK(ecode2)) {
37012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
37013 }
37014 arg2 = static_cast< bool >(val2);
37015 {
37016 PyThreadState* __tstate = wxPyBeginAllowThreads();
37017 (arg1)->SetQuickBestSize(arg2);
37018 wxPyEndAllowThreads(__tstate);
37019 if (PyErr_Occurred()) SWIG_fail;
37020 }
37021 resultobj = SWIG_Py_Void();
37022 return resultobj;
37023fail:
37024 return NULL;
37025}
37026
37027
37028SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37029 PyObject *resultobj = 0;
37030 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
37031 bool result;
37032 void *argp1 = 0 ;
37033 int res1 = 0 ;
37034 PyObject *swig_obj[1] ;
37035
37036 if (!args) SWIG_fail;
37037 swig_obj[0] = args;
37038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
37039 if (!SWIG_IsOK(res1)) {
37040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
37041 }
37042 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
37043 {
37044 PyThreadState* __tstate = wxPyBeginAllowThreads();
37045 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
37046 wxPyEndAllowThreads(__tstate);
37047 if (PyErr_Occurred()) SWIG_fail;
37048 }
37049 {
37050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37051 }
37052 return resultobj;
37053fail:
37054 return NULL;
37055}
37056
37057
1bd55598
RD
37058SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37059 PyObject *obj;
37060 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37061 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
37062 return SWIG_Py_Void();
d55e5bfc
RD
37063}
37064
1bd55598
RD
37065SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37066 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
37067}
37068
1bd55598
RD
37069SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
37070 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
37071 return 1;
d55e5bfc
RD
37072}
37073
37074
1bd55598
RD
37075SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
37076 PyObject *pyobj = 0;
37077
37078 {
37079#if wxUSE_UNICODE
37080 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37081#else
37082 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
37083#endif
37084 }
37085 return pyobj;
37086}
37087
37088
37089SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37090 PyObject *resultobj = 0;
37091 wxWindow *arg1 = (wxWindow *) 0 ;
37092 int arg2 = (int) (int)-1 ;
37093 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
37094 wxString *arg3 = (wxString *) &arg3_defvalue ;
37095 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37096 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37097 wxSize const &arg5_defvalue = wxDefaultSize ;
37098 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37099 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37100 wxString const &arg7_defvalue = wxPyEmptyString ;
37101 wxString *arg7 = (wxString *) &arg7_defvalue ;
37102 int arg8 = (int) 0 ;
37103 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
37104 wxString *arg9 = (wxString *) &arg9_defvalue ;
37105 wxGenericDirCtrl *result = 0 ;
37106 void *argp1 = 0 ;
37107 int res1 = 0 ;
37108 int val2 ;
37109 int ecode2 = 0 ;
37110 bool temp3 = false ;
37111 wxPoint temp4 ;
37112 wxSize temp5 ;
37113 long val6 ;
37114 int ecode6 = 0 ;
37115 bool temp7 = false ;
37116 int val8 ;
37117 int ecode8 = 0 ;
37118 bool temp9 = false ;
37119 PyObject * obj0 = 0 ;
37120 PyObject * obj1 = 0 ;
37121 PyObject * obj2 = 0 ;
37122 PyObject * obj3 = 0 ;
37123 PyObject * obj4 = 0 ;
37124 PyObject * obj5 = 0 ;
37125 PyObject * obj6 = 0 ;
37126 PyObject * obj7 = 0 ;
37127 PyObject * obj8 = 0 ;
37128 char * kwnames[] = {
37129 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37130 };
37131
37132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
37133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
37134 if (!SWIG_IsOK(res1)) {
37135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
37136 }
37137 arg1 = reinterpret_cast< wxWindow * >(argp1);
37138 if (obj1) {
37139 ecode2 = SWIG_AsVal_int(obj1, &val2);
37140 if (!SWIG_IsOK(ecode2)) {
37141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
37142 }
37143 arg2 = static_cast< int >(val2);
37144 }
37145 if (obj2) {
36ed4f51 37146 {
1bd55598
RD
37147 arg3 = wxString_in_helper(obj2);
37148 if (arg3 == NULL) SWIG_fail;
37149 temp3 = true;
36ed4f51 37150 }
1bd55598
RD
37151 }
37152 if (obj3) {
d55e5bfc 37153 {
1bd55598
RD
37154 arg4 = &temp4;
37155 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 37156 }
1bd55598
RD
37157 }
37158 if (obj4) {
36ed4f51 37159 {
1bd55598
RD
37160 arg5 = &temp5;
37161 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37162 }
1bd55598
RD
37163 }
37164 if (obj5) {
37165 ecode6 = SWIG_AsVal_long(obj5, &val6);
37166 if (!SWIG_IsOK(ecode6)) {
37167 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
37168 }
37169 arg6 = static_cast< long >(val6);
37170 }
37171 if (obj6) {
36ed4f51 37172 {
1bd55598
RD
37173 arg7 = wxString_in_helper(obj6);
37174 if (arg7 == NULL) SWIG_fail;
37175 temp7 = true;
36ed4f51 37176 }
1bd55598
RD
37177 }
37178 if (obj7) {
37179 ecode8 = SWIG_AsVal_int(obj7, &val8);
37180 if (!SWIG_IsOK(ecode8)) {
37181 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
37182 }
37183 arg8 = static_cast< int >(val8);
37184 }
37185 if (obj8) {
d55e5bfc 37186 {
1bd55598
RD
37187 arg9 = wxString_in_helper(obj8);
37188 if (arg9 == NULL) SWIG_fail;
37189 temp9 = true;
d55e5bfc 37190 }
1bd55598
RD
37191 }
37192 {
37193 if (!wxPyCheckForApp()) SWIG_fail;
37194 PyThreadState* __tstate = wxPyBeginAllowThreads();
37195 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
37196 wxPyEndAllowThreads(__tstate);
37197 if (PyErr_Occurred()) SWIG_fail;
37198 }
37199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
37200 {
37201 if (temp3)
37202 delete arg3;
37203 }
37204 {
37205 if (temp7)
37206 delete arg7;
37207 }
37208 {
37209 if (temp9)
37210 delete arg9;
37211 }
37212 return resultobj;
37213fail:
37214 {
37215 if (temp3)
37216 delete arg3;
37217 }
37218 {
37219 if (temp7)
37220 delete arg7;
37221 }
37222 {
37223 if (temp9)
37224 delete arg9;
37225 }
37226 return NULL;
d55e5bfc
RD
37227}
37228
37229
1bd55598
RD
37230SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37231 PyObject *resultobj = 0;
37232 wxGenericDirCtrl *result = 0 ;
37233
37234 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
37235 {
37236 if (!wxPyCheckForApp()) SWIG_fail;
37237 PyThreadState* __tstate = wxPyBeginAllowThreads();
37238 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
37239 wxPyEndAllowThreads(__tstate);
37240 if (PyErr_Occurred()) SWIG_fail;
37241 }
37242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
37243 return resultobj;
37244fail:
37245 return NULL;
37246}
37247
37248
37249SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37250 PyObject *resultobj = 0;
37251 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37252 wxWindow *arg2 = (wxWindow *) 0 ;
37253 int arg3 = (int) (int)-1 ;
37254 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
37255 wxString *arg4 = (wxString *) &arg4_defvalue ;
37256 wxPoint const &arg5_defvalue = wxDefaultPosition ;
37257 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
37258 wxSize const &arg6_defvalue = wxDefaultSize ;
37259 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
37260 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
37261 wxString const &arg8_defvalue = wxPyEmptyString ;
37262 wxString *arg8 = (wxString *) &arg8_defvalue ;
37263 int arg9 = (int) 0 ;
37264 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
37265 wxString *arg10 = (wxString *) &arg10_defvalue ;
37266 bool result;
37267 void *argp1 = 0 ;
37268 int res1 = 0 ;
37269 void *argp2 = 0 ;
37270 int res2 = 0 ;
37271 int val3 ;
37272 int ecode3 = 0 ;
37273 bool temp4 = false ;
37274 wxPoint temp5 ;
37275 wxSize temp6 ;
37276 long val7 ;
37277 int ecode7 = 0 ;
37278 bool temp8 = false ;
37279 int val9 ;
37280 int ecode9 = 0 ;
37281 bool temp10 = false ;
37282 PyObject * obj0 = 0 ;
37283 PyObject * obj1 = 0 ;
37284 PyObject * obj2 = 0 ;
37285 PyObject * obj3 = 0 ;
37286 PyObject * obj4 = 0 ;
37287 PyObject * obj5 = 0 ;
37288 PyObject * obj6 = 0 ;
37289 PyObject * obj7 = 0 ;
37290 PyObject * obj8 = 0 ;
37291 PyObject * obj9 = 0 ;
37292 char * kwnames[] = {
37293 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
37294 };
37295
37296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
37297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37298 if (!SWIG_IsOK(res1)) {
37299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37300 }
37301 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37302 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
37303 if (!SWIG_IsOK(res2)) {
37304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
37305 }
37306 arg2 = reinterpret_cast< wxWindow * >(argp2);
37307 if (obj2) {
37308 ecode3 = SWIG_AsVal_int(obj2, &val3);
37309 if (!SWIG_IsOK(ecode3)) {
37310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37311 }
37312 arg3 = static_cast< int >(val3);
37313 }
37314 if (obj3) {
36ed4f51 37315 {
1bd55598
RD
37316 arg4 = wxString_in_helper(obj3);
37317 if (arg4 == NULL) SWIG_fail;
37318 temp4 = true;
36ed4f51 37319 }
1bd55598
RD
37320 }
37321 if (obj4) {
36ed4f51 37322 {
1bd55598
RD
37323 arg5 = &temp5;
37324 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 37325 }
1bd55598
RD
37326 }
37327 if (obj5) {
d55e5bfc 37328 {
1bd55598
RD
37329 arg6 = &temp6;
37330 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 37331 }
1bd55598
RD
37332 }
37333 if (obj6) {
37334 ecode7 = SWIG_AsVal_long(obj6, &val7);
37335 if (!SWIG_IsOK(ecode7)) {
37336 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37337 }
37338 arg7 = static_cast< long >(val7);
37339 }
37340 if (obj7) {
d55e5bfc 37341 {
1bd55598
RD
37342 arg8 = wxString_in_helper(obj7);
37343 if (arg8 == NULL) SWIG_fail;
37344 temp8 = true;
d55e5bfc 37345 }
1bd55598
RD
37346 }
37347 if (obj8) {
37348 ecode9 = SWIG_AsVal_int(obj8, &val9);
37349 if (!SWIG_IsOK(ecode9)) {
37350 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37351 }
37352 arg9 = static_cast< int >(val9);
37353 }
37354 if (obj9) {
36ed4f51 37355 {
1bd55598
RD
37356 arg10 = wxString_in_helper(obj9);
37357 if (arg10 == NULL) SWIG_fail;
37358 temp10 = true;
36ed4f51 37359 }
1bd55598
RD
37360 }
37361 {
37362 PyThreadState* __tstate = wxPyBeginAllowThreads();
37363 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37364 wxPyEndAllowThreads(__tstate);
37365 if (PyErr_Occurred()) SWIG_fail;
37366 }
37367 {
37368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37369 }
37370 {
37371 if (temp4)
37372 delete arg4;
37373 }
37374 {
37375 if (temp8)
37376 delete arg8;
37377 }
37378 {
37379 if (temp10)
37380 delete arg10;
37381 }
37382 return resultobj;
37383fail:
37384 {
37385 if (temp4)
37386 delete arg4;
37387 }
37388 {
37389 if (temp8)
37390 delete arg8;
37391 }
37392 {
37393 if (temp10)
37394 delete arg10;
37395 }
37396 return NULL;
37397}
37398
37399
37400SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37401 PyObject *resultobj = 0;
37402 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37403 wxString *arg2 = 0 ;
37404 bool result;
37405 void *argp1 = 0 ;
37406 int res1 = 0 ;
37407 bool temp2 = false ;
37408 PyObject * obj0 = 0 ;
37409 PyObject * obj1 = 0 ;
37410 char * kwnames[] = {
37411 (char *) "self",(char *) "path", NULL
37412 };
37413
37414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37416 if (!SWIG_IsOK(res1)) {
37417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37418 }
37419 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37420 {
37421 arg2 = wxString_in_helper(obj1);
37422 if (arg2 == NULL) SWIG_fail;
37423 temp2 = true;
37424 }
37425 {
37426 PyThreadState* __tstate = wxPyBeginAllowThreads();
37427 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37428 wxPyEndAllowThreads(__tstate);
37429 if (PyErr_Occurred()) SWIG_fail;
37430 }
37431 {
37432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37433 }
37434 {
37435 if (temp2)
37436 delete arg2;
37437 }
37438 return resultobj;
37439fail:
37440 {
37441 if (temp2)
37442 delete arg2;
37443 }
37444 return NULL;
d55e5bfc
RD
37445}
37446
37447
704eda0c
RD
37448SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37449 PyObject *resultobj = 0;
37450 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37451 wxString *arg2 = 0 ;
37452 bool result;
37453 void *argp1 = 0 ;
37454 int res1 = 0 ;
37455 bool temp2 = false ;
37456 PyObject * obj0 = 0 ;
37457 PyObject * obj1 = 0 ;
37458 char * kwnames[] = {
37459 (char *) "self",(char *) "path", NULL
37460 };
37461
37462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37464 if (!SWIG_IsOK(res1)) {
37465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37466 }
37467 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37468 {
37469 arg2 = wxString_in_helper(obj1);
37470 if (arg2 == NULL) SWIG_fail;
37471 temp2 = true;
37472 }
37473 {
37474 PyThreadState* __tstate = wxPyBeginAllowThreads();
37475 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37476 wxPyEndAllowThreads(__tstate);
37477 if (PyErr_Occurred()) SWIG_fail;
37478 }
37479 {
37480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37481 }
37482 {
37483 if (temp2)
37484 delete arg2;
37485 }
37486 return resultobj;
37487fail:
37488 {
37489 if (temp2)
37490 delete arg2;
37491 }
37492 return NULL;
37493}
37494
37495
1bd55598
RD
37496SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37497 PyObject *resultobj = 0;
37498 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37499 wxString result;
37500 void *argp1 = 0 ;
37501 int res1 = 0 ;
37502 PyObject *swig_obj[1] ;
37503
37504 if (!args) SWIG_fail;
37505 swig_obj[0] = args;
37506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37507 if (!SWIG_IsOK(res1)) {
37508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37509 }
37510 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37511 {
37512 PyThreadState* __tstate = wxPyBeginAllowThreads();
37513 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37514 wxPyEndAllowThreads(__tstate);
37515 if (PyErr_Occurred()) SWIG_fail;
37516 }
37517 {
37518#if wxUSE_UNICODE
37519 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37520#else
37521 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37522#endif
37523 }
37524 return resultobj;
37525fail:
37526 return NULL;
37527}
37528
37529
37530SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37531 PyObject *resultobj = 0;
37532 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37533 wxString *arg2 = 0 ;
37534 void *argp1 = 0 ;
37535 int res1 = 0 ;
37536 bool temp2 = false ;
37537 PyObject * obj0 = 0 ;
37538 PyObject * obj1 = 0 ;
37539 char * kwnames[] = {
37540 (char *) "self",(char *) "path", NULL
37541 };
37542
37543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37545 if (!SWIG_IsOK(res1)) {
37546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37547 }
37548 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37549 {
37550 arg2 = wxString_in_helper(obj1);
37551 if (arg2 == NULL) SWIG_fail;
37552 temp2 = true;
37553 }
37554 {
37555 PyThreadState* __tstate = wxPyBeginAllowThreads();
37556 (arg1)->SetDefaultPath((wxString const &)*arg2);
37557 wxPyEndAllowThreads(__tstate);
37558 if (PyErr_Occurred()) SWIG_fail;
37559 }
37560 resultobj = SWIG_Py_Void();
37561 {
37562 if (temp2)
37563 delete arg2;
37564 }
37565 return resultobj;
37566fail:
37567 {
37568 if (temp2)
37569 delete arg2;
37570 }
37571 return NULL;
d55e5bfc
RD
37572}
37573
37574
1bd55598
RD
37575SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37576 PyObject *resultobj = 0;
37577 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37578 wxString result;
37579 void *argp1 = 0 ;
37580 int res1 = 0 ;
37581 PyObject *swig_obj[1] ;
37582
37583 if (!args) SWIG_fail;
37584 swig_obj[0] = args;
37585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37586 if (!SWIG_IsOK(res1)) {
37587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37588 }
37589 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37590 {
37591 PyThreadState* __tstate = wxPyBeginAllowThreads();
37592 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37593 wxPyEndAllowThreads(__tstate);
37594 if (PyErr_Occurred()) SWIG_fail;
37595 }
37596 {
37597#if wxUSE_UNICODE
37598 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37599#else
37600 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37601#endif
37602 }
37603 return resultobj;
37604fail:
37605 return NULL;
d55e5bfc
RD
37606}
37607
37608
1bd55598
RD
37609SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37610 PyObject *resultobj = 0;
37611 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37612 wxString result;
37613 void *argp1 = 0 ;
37614 int res1 = 0 ;
37615 PyObject *swig_obj[1] ;
37616
37617 if (!args) SWIG_fail;
37618 swig_obj[0] = args;
37619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37620 if (!SWIG_IsOK(res1)) {
37621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37622 }
37623 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37624 {
37625 PyThreadState* __tstate = wxPyBeginAllowThreads();
37626 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37627 wxPyEndAllowThreads(__tstate);
37628 if (PyErr_Occurred()) SWIG_fail;
37629 }
37630 {
37631#if wxUSE_UNICODE
37632 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37633#else
37634 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37635#endif
37636 }
37637 return resultobj;
37638fail:
37639 return NULL;
37640}
37641
37642
37643SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37644 PyObject *resultobj = 0;
37645 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37646 wxString *arg2 = 0 ;
37647 void *argp1 = 0 ;
37648 int res1 = 0 ;
37649 bool temp2 = false ;
37650 PyObject * obj0 = 0 ;
37651 PyObject * obj1 = 0 ;
37652 char * kwnames[] = {
37653 (char *) "self",(char *) "path", NULL
37654 };
37655
37656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37658 if (!SWIG_IsOK(res1)) {
37659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37660 }
37661 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37662 {
37663 arg2 = wxString_in_helper(obj1);
37664 if (arg2 == NULL) SWIG_fail;
37665 temp2 = true;
37666 }
37667 {
37668 PyThreadState* __tstate = wxPyBeginAllowThreads();
37669 (arg1)->SetPath((wxString const &)*arg2);
37670 wxPyEndAllowThreads(__tstate);
37671 if (PyErr_Occurred()) SWIG_fail;
37672 }
37673 resultobj = SWIG_Py_Void();
37674 {
37675 if (temp2)
37676 delete arg2;
37677 }
37678 return resultobj;
37679fail:
37680 {
37681 if (temp2)
37682 delete arg2;
37683 }
37684 return NULL;
37685}
37686
37687
37688SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37689 PyObject *resultobj = 0;
37690 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37691 bool arg2 ;
37692 void *argp1 = 0 ;
37693 int res1 = 0 ;
37694 bool val2 ;
37695 int ecode2 = 0 ;
37696 PyObject * obj0 = 0 ;
37697 PyObject * obj1 = 0 ;
37698 char * kwnames[] = {
37699 (char *) "self",(char *) "show", NULL
37700 };
37701
37702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37704 if (!SWIG_IsOK(res1)) {
37705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37706 }
37707 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37708 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37709 if (!SWIG_IsOK(ecode2)) {
37710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37711 }
37712 arg2 = static_cast< bool >(val2);
37713 {
37714 PyThreadState* __tstate = wxPyBeginAllowThreads();
37715 (arg1)->ShowHidden(arg2);
37716 wxPyEndAllowThreads(__tstate);
37717 if (PyErr_Occurred()) SWIG_fail;
37718 }
37719 resultobj = SWIG_Py_Void();
37720 return resultobj;
37721fail:
37722 return NULL;
d55e5bfc
RD
37723}
37724
37725
1bd55598
RD
37726SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37727 PyObject *resultobj = 0;
37728 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37729 bool result;
37730 void *argp1 = 0 ;
37731 int res1 = 0 ;
37732 PyObject *swig_obj[1] ;
37733
37734 if (!args) SWIG_fail;
37735 swig_obj[0] = args;
37736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37737 if (!SWIG_IsOK(res1)) {
37738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37739 }
37740 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37741 {
37742 PyThreadState* __tstate = wxPyBeginAllowThreads();
37743 result = (bool)(arg1)->GetShowHidden();
37744 wxPyEndAllowThreads(__tstate);
37745 if (PyErr_Occurred()) SWIG_fail;
37746 }
37747 {
37748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37749 }
37750 return resultobj;
37751fail:
37752 return NULL;
d55e5bfc
RD
37753}
37754
37755
1bd55598
RD
37756SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37757 PyObject *resultobj = 0;
37758 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37759 wxString result;
37760 void *argp1 = 0 ;
37761 int res1 = 0 ;
37762 PyObject *swig_obj[1] ;
37763
37764 if (!args) SWIG_fail;
37765 swig_obj[0] = args;
37766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37767 if (!SWIG_IsOK(res1)) {
37768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37769 }
37770 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37771 {
37772 PyThreadState* __tstate = wxPyBeginAllowThreads();
37773 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37774 wxPyEndAllowThreads(__tstate);
37775 if (PyErr_Occurred()) SWIG_fail;
37776 }
37777 {
37778#if wxUSE_UNICODE
37779 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37780#else
37781 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37782#endif
37783 }
37784 return resultobj;
37785fail:
37786 return NULL;
37787}
37788
37789
37790SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37791 PyObject *resultobj = 0;
37792 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37793 wxString *arg2 = 0 ;
37794 void *argp1 = 0 ;
37795 int res1 = 0 ;
37796 bool temp2 = false ;
37797 PyObject * obj0 = 0 ;
37798 PyObject * obj1 = 0 ;
37799 char * kwnames[] = {
37800 (char *) "self",(char *) "filter", NULL
37801 };
37802
37803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37805 if (!SWIG_IsOK(res1)) {
37806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37807 }
37808 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37809 {
37810 arg2 = wxString_in_helper(obj1);
37811 if (arg2 == NULL) SWIG_fail;
37812 temp2 = true;
37813 }
37814 {
37815 PyThreadState* __tstate = wxPyBeginAllowThreads();
37816 (arg1)->SetFilter((wxString const &)*arg2);
37817 wxPyEndAllowThreads(__tstate);
37818 if (PyErr_Occurred()) SWIG_fail;
37819 }
37820 resultobj = SWIG_Py_Void();
37821 {
37822 if (temp2)
37823 delete arg2;
37824 }
37825 return resultobj;
37826fail:
37827 {
37828 if (temp2)
37829 delete arg2;
37830 }
37831 return NULL;
d55e5bfc
RD
37832}
37833
37834
1bd55598
RD
37835SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37836 PyObject *resultobj = 0;
37837 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37838 int result;
37839 void *argp1 = 0 ;
37840 int res1 = 0 ;
37841 PyObject *swig_obj[1] ;
37842
37843 if (!args) SWIG_fail;
37844 swig_obj[0] = args;
37845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37846 if (!SWIG_IsOK(res1)) {
37847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37848 }
37849 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37850 {
37851 PyThreadState* __tstate = wxPyBeginAllowThreads();
37852 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37853 wxPyEndAllowThreads(__tstate);
37854 if (PyErr_Occurred()) SWIG_fail;
37855 }
37856 resultobj = SWIG_From_int(static_cast< int >(result));
37857 return resultobj;
37858fail:
37859 return NULL;
37860}
37861
37862
37863SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37864 PyObject *resultobj = 0;
37865 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37866 int arg2 ;
37867 void *argp1 = 0 ;
37868 int res1 = 0 ;
37869 int val2 ;
37870 int ecode2 = 0 ;
37871 PyObject * obj0 = 0 ;
37872 PyObject * obj1 = 0 ;
37873 char * kwnames[] = {
37874 (char *) "self",(char *) "n", NULL
37875 };
37876
37877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37879 if (!SWIG_IsOK(res1)) {
37880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37881 }
37882 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37883 ecode2 = SWIG_AsVal_int(obj1, &val2);
37884 if (!SWIG_IsOK(ecode2)) {
37885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37886 }
37887 arg2 = static_cast< int >(val2);
37888 {
37889 PyThreadState* __tstate = wxPyBeginAllowThreads();
37890 (arg1)->SetFilterIndex(arg2);
37891 wxPyEndAllowThreads(__tstate);
37892 if (PyErr_Occurred()) SWIG_fail;
37893 }
37894 resultobj = SWIG_Py_Void();
37895 return resultobj;
37896fail:
37897 return NULL;
d55e5bfc
RD
37898}
37899
37900
1bd55598
RD
37901SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37902 PyObject *resultobj = 0;
37903 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37904 wxTreeItemId result;
37905 void *argp1 = 0 ;
37906 int res1 = 0 ;
37907 PyObject *swig_obj[1] ;
37908
37909 if (!args) SWIG_fail;
37910 swig_obj[0] = args;
37911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37912 if (!SWIG_IsOK(res1)) {
37913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37914 }
37915 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37916 {
37917 PyThreadState* __tstate = wxPyBeginAllowThreads();
37918 result = (arg1)->GetRootId();
37919 wxPyEndAllowThreads(__tstate);
37920 if (PyErr_Occurred()) SWIG_fail;
37921 }
37922 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37923 return resultobj;
37924fail:
37925 return NULL;
d55e5bfc
RD
37926}
37927
37928
1bd55598
RD
37929SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37930 PyObject *resultobj = 0;
37931 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37932 wxPyTreeCtrl *result = 0 ;
37933 void *argp1 = 0 ;
37934 int res1 = 0 ;
37935 PyObject *swig_obj[1] ;
37936
37937 if (!args) SWIG_fail;
37938 swig_obj[0] = args;
37939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37940 if (!SWIG_IsOK(res1)) {
37941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37942 }
37943 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37944 {
37945 PyThreadState* __tstate = wxPyBeginAllowThreads();
37946 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37947 wxPyEndAllowThreads(__tstate);
37948 if (PyErr_Occurred()) SWIG_fail;
37949 }
37950 {
37951 resultobj = wxPyMake_wxObject(result, 0);
37952 }
37953 return resultobj;
37954fail:
37955 return NULL;
d55e5bfc
RD
37956}
37957
37958
1bd55598
RD
37959SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37960 PyObject *resultobj = 0;
37961 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37962 wxDirFilterListCtrl *result = 0 ;
37963 void *argp1 = 0 ;
37964 int res1 = 0 ;
37965 PyObject *swig_obj[1] ;
37966
37967 if (!args) SWIG_fail;
37968 swig_obj[0] = args;
37969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37970 if (!SWIG_IsOK(res1)) {
37971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37972 }
37973 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37974 {
37975 PyThreadState* __tstate = wxPyBeginAllowThreads();
37976 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37977 wxPyEndAllowThreads(__tstate);
37978 if (PyErr_Occurred()) SWIG_fail;
37979 }
37980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37981 return resultobj;
37982fail:
37983 return NULL;
37984}
37985
37986
37987SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37988 PyObject *resultobj = 0;
37989 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37990 wxTreeItemId arg2 ;
37991 wxString *arg3 = 0 ;
37992 bool *arg4 = 0 ;
37993 wxTreeItemId result;
37994 void *argp1 = 0 ;
37995 int res1 = 0 ;
37996 void *argp2 ;
37997 int res2 = 0 ;
37998 bool temp3 = false ;
37999 bool temp4 ;
38000 int res4 = SWIG_TMPOBJ ;
38001 PyObject * obj0 = 0 ;
38002 PyObject * obj1 = 0 ;
38003 PyObject * obj2 = 0 ;
38004 char * kwnames[] = {
38005 (char *) "self",(char *) "parentId",(char *) "path", NULL
38006 };
38007
38008 arg4 = &temp4;
38009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38011 if (!SWIG_IsOK(res1)) {
38012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38013 }
38014 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38015 {
38016 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
38017 if (!SWIG_IsOK(res2)) {
38018 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38019 }
38020 if (!argp2) {
38021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
38022 } else {
38023 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
38024 arg2 = *temp;
38025 if (SWIG_IsNewObj(res2)) delete temp;
d55e5bfc 38026 }
1bd55598
RD
38027 }
38028 {
38029 arg3 = wxString_in_helper(obj2);
38030 if (arg3 == NULL) SWIG_fail;
38031 temp3 = true;
38032 }
38033 {
38034 PyThreadState* __tstate = wxPyBeginAllowThreads();
38035 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
38036 wxPyEndAllowThreads(__tstate);
38037 if (PyErr_Occurred()) SWIG_fail;
38038 }
38039 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
38040 if (SWIG_IsTmpObj(res4)) {
38041 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
38042 } else {
38043 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38044 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
38045 }
38046 {
38047 if (temp3)
38048 delete arg3;
38049 }
38050 return resultobj;
38051fail:
38052 {
38053 if (temp3)
38054 delete arg3;
38055 }
38056 return NULL;
d55e5bfc
RD
38057}
38058
38059
1bd55598
RD
38060SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38061 PyObject *resultobj = 0;
38062 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38063 void *argp1 = 0 ;
38064 int res1 = 0 ;
38065 PyObject *swig_obj[1] ;
38066
38067 if (!args) SWIG_fail;
38068 swig_obj[0] = args;
38069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38070 if (!SWIG_IsOK(res1)) {
38071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38072 }
38073 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38074 {
38075 PyThreadState* __tstate = wxPyBeginAllowThreads();
38076 (arg1)->DoResize();
38077 wxPyEndAllowThreads(__tstate);
38078 if (PyErr_Occurred()) SWIG_fail;
38079 }
38080 resultobj = SWIG_Py_Void();
38081 return resultobj;
38082fail:
38083 return NULL;
38084}
38085
38086
38087SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38088 PyObject *resultobj = 0;
38089 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38090 void *argp1 = 0 ;
38091 int res1 = 0 ;
38092 PyObject *swig_obj[1] ;
38093
38094 if (!args) SWIG_fail;
38095 swig_obj[0] = args;
38096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38097 if (!SWIG_IsOK(res1)) {
38098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38099 }
38100 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38101 {
38102 PyThreadState* __tstate = wxPyBeginAllowThreads();
38103 (arg1)->ReCreateTree();
38104 wxPyEndAllowThreads(__tstate);
38105 if (PyErr_Occurred()) SWIG_fail;
38106 }
38107 resultobj = SWIG_Py_Void();
38108 return resultobj;
38109fail:
38110 return NULL;
38111}
38112
38113
38114SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38115 PyObject *obj;
38116 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38117 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
38118 return SWIG_Py_Void();
38119}
38120
38121SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38122 return SWIG_Python_InitShadowInstance(args);
38123}
38124
38125SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38126 PyObject *resultobj = 0;
38127 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
38128 int arg2 = (int) (int)-1 ;
38129 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38130 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38131 wxSize const &arg4_defvalue = wxDefaultSize ;
38132 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38133 long arg5 = (long) 0 ;
38134 wxDirFilterListCtrl *result = 0 ;
38135 void *argp1 = 0 ;
38136 int res1 = 0 ;
38137 int val2 ;
38138 int ecode2 = 0 ;
38139 wxPoint temp3 ;
38140 wxSize temp4 ;
38141 long val5 ;
38142 int ecode5 = 0 ;
38143 PyObject * obj0 = 0 ;
38144 PyObject * obj1 = 0 ;
38145 PyObject * obj2 = 0 ;
38146 PyObject * obj3 = 0 ;
38147 PyObject * obj4 = 0 ;
38148 char * kwnames[] = {
38149 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38150 };
38151
38152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38154 if (!SWIG_IsOK(res1)) {
38155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
38156 }
38157 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
38158 if (obj1) {
38159 ecode2 = SWIG_AsVal_int(obj1, &val2);
38160 if (!SWIG_IsOK(ecode2)) {
38161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
38162 }
38163 arg2 = static_cast< int >(val2);
38164 }
38165 if (obj2) {
d55e5bfc 38166 {
1bd55598
RD
38167 arg3 = &temp3;
38168 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38169 }
1bd55598
RD
38170 }
38171 if (obj3) {
d55e5bfc 38172 {
1bd55598
RD
38173 arg4 = &temp4;
38174 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38175 }
1bd55598
RD
38176 }
38177 if (obj4) {
38178 ecode5 = SWIG_AsVal_long(obj4, &val5);
38179 if (!SWIG_IsOK(ecode5)) {
38180 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
38181 }
38182 arg5 = static_cast< long >(val5);
38183 }
38184 {
38185 if (!wxPyCheckForApp()) SWIG_fail;
38186 PyThreadState* __tstate = wxPyBeginAllowThreads();
38187 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
38188 wxPyEndAllowThreads(__tstate);
38189 if (PyErr_Occurred()) SWIG_fail;
38190 }
38191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
38192 return resultobj;
38193fail:
38194 return NULL;
d55e5bfc
RD
38195}
38196
38197
1bd55598
RD
38198SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38199 PyObject *resultobj = 0;
38200 wxDirFilterListCtrl *result = 0 ;
38201
38202 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
38203 {
38204 if (!wxPyCheckForApp()) SWIG_fail;
38205 PyThreadState* __tstate = wxPyBeginAllowThreads();
38206 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
38207 wxPyEndAllowThreads(__tstate);
38208 if (PyErr_Occurred()) SWIG_fail;
38209 }
38210 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
38211 return resultobj;
38212fail:
38213 return NULL;
38214}
38215
38216
38217SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38218 PyObject *resultobj = 0;
38219 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38220 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
38221 int arg3 = (int) (int)-1 ;
38222 wxPoint const &arg4_defvalue = wxDefaultPosition ;
38223 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
38224 wxSize const &arg5_defvalue = wxDefaultSize ;
38225 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
38226 long arg6 = (long) 0 ;
38227 bool result;
38228 void *argp1 = 0 ;
38229 int res1 = 0 ;
38230 void *argp2 = 0 ;
38231 int res2 = 0 ;
38232 int val3 ;
38233 int ecode3 = 0 ;
38234 wxPoint temp4 ;
38235 wxSize temp5 ;
38236 long val6 ;
38237 int ecode6 = 0 ;
38238 PyObject * obj0 = 0 ;
38239 PyObject * obj1 = 0 ;
38240 PyObject * obj2 = 0 ;
38241 PyObject * obj3 = 0 ;
38242 PyObject * obj4 = 0 ;
38243 PyObject * obj5 = 0 ;
38244 char * kwnames[] = {
38245 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
38246 };
38247
38248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38250 if (!SWIG_IsOK(res1)) {
38251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38252 }
38253 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38254 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
38255 if (!SWIG_IsOK(res2)) {
38256 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
38257 }
38258 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
38259 if (obj2) {
38260 ecode3 = SWIG_AsVal_int(obj2, &val3);
38261 if (!SWIG_IsOK(ecode3)) {
38262 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
38263 }
38264 arg3 = static_cast< int >(val3);
38265 }
38266 if (obj3) {
36ed4f51 38267 {
1bd55598
RD
38268 arg4 = &temp4;
38269 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 38270 }
1bd55598
RD
38271 }
38272 if (obj4) {
36ed4f51 38273 {
1bd55598
RD
38274 arg5 = &temp5;
38275 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36ed4f51 38276 }
1bd55598
RD
38277 }
38278 if (obj5) {
38279 ecode6 = SWIG_AsVal_long(obj5, &val6);
38280 if (!SWIG_IsOK(ecode6)) {
38281 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
38282 }
38283 arg6 = static_cast< long >(val6);
38284 }
38285 {
38286 PyThreadState* __tstate = wxPyBeginAllowThreads();
38287 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
38288 wxPyEndAllowThreads(__tstate);
38289 if (PyErr_Occurred()) SWIG_fail;
38290 }
38291 {
38292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38293 }
38294 return resultobj;
38295fail:
38296 return NULL;
38297}
38298
38299
38300SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38301 PyObject *resultobj = 0;
38302 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
38303 wxString *arg2 = 0 ;
38304 int arg3 ;
38305 void *argp1 = 0 ;
38306 int res1 = 0 ;
38307 bool temp2 = false ;
38308 int val3 ;
38309 int ecode3 = 0 ;
38310 PyObject * obj0 = 0 ;
38311 PyObject * obj1 = 0 ;
38312 PyObject * obj2 = 0 ;
38313 char * kwnames[] = {
38314 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
38315 };
38316
38317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
38319 if (!SWIG_IsOK(res1)) {
38320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
38321 }
38322 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
38323 {
38324 arg2 = wxString_in_helper(obj1);
38325 if (arg2 == NULL) SWIG_fail;
38326 temp2 = true;
38327 }
38328 ecode3 = SWIG_AsVal_int(obj2, &val3);
38329 if (!SWIG_IsOK(ecode3)) {
38330 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38331 }
38332 arg3 = static_cast< int >(val3);
38333 {
38334 PyThreadState* __tstate = wxPyBeginAllowThreads();
38335 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38336 wxPyEndAllowThreads(__tstate);
38337 if (PyErr_Occurred()) SWIG_fail;
38338 }
38339 resultobj = SWIG_Py_Void();
38340 {
38341 if (temp2)
38342 delete arg2;
38343 }
38344 return resultobj;
38345fail:
38346 {
38347 if (temp2)
38348 delete arg2;
38349 }
38350 return NULL;
38351}
38352
38353
38354SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38355 PyObject *obj;
38356 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38357 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38358 return SWIG_Py_Void();
38359}
38360
38361SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38362 return SWIG_Python_InitShadowInstance(args);
38363}
38364
38365SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38366 PyObject *resultobj = 0;
38367 wxWindow *arg1 = (wxWindow *) 0 ;
38368 int arg2 = (int) (int)-1 ;
38369 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38370 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38371 wxSize const &arg4_defvalue = wxDefaultSize ;
38372 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38373 long arg5 = (long) 0 ;
38374 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38375 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38376 wxString const &arg7_defvalue = wxPyControlNameStr ;
38377 wxString *arg7 = (wxString *) &arg7_defvalue ;
38378 wxPyControl *result = 0 ;
38379 void *argp1 = 0 ;
38380 int res1 = 0 ;
38381 int val2 ;
38382 int ecode2 = 0 ;
38383 wxPoint temp3 ;
38384 wxSize temp4 ;
38385 long val5 ;
38386 int ecode5 = 0 ;
38387 void *argp6 = 0 ;
38388 int res6 = 0 ;
38389 bool temp7 = false ;
38390 PyObject * obj0 = 0 ;
38391 PyObject * obj1 = 0 ;
38392 PyObject * obj2 = 0 ;
38393 PyObject * obj3 = 0 ;
38394 PyObject * obj4 = 0 ;
38395 PyObject * obj5 = 0 ;
38396 PyObject * obj6 = 0 ;
38397 char * kwnames[] = {
38398 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38399 };
38400
38401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38403 if (!SWIG_IsOK(res1)) {
38404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38405 }
38406 arg1 = reinterpret_cast< wxWindow * >(argp1);
38407 if (obj1) {
38408 ecode2 = SWIG_AsVal_int(obj1, &val2);
38409 if (!SWIG_IsOK(ecode2)) {
38410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38411 }
38412 arg2 = static_cast< int >(val2);
38413 }
38414 if (obj2) {
d55e5bfc 38415 {
1bd55598
RD
38416 arg3 = &temp3;
38417 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 38418 }
1bd55598
RD
38419 }
38420 if (obj3) {
d55e5bfc 38421 {
1bd55598
RD
38422 arg4 = &temp4;
38423 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 38424 }
1bd55598
RD
38425 }
38426 if (obj4) {
38427 ecode5 = SWIG_AsVal_long(obj4, &val5);
38428 if (!SWIG_IsOK(ecode5)) {
38429 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38430 }
38431 arg5 = static_cast< long >(val5);
38432 }
38433 if (obj5) {
38434 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38435 if (!SWIG_IsOK(res6)) {
38436 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 38437 }
1bd55598
RD
38438 if (!argp6) {
38439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
f20a2e1f 38440 }
1bd55598
RD
38441 arg6 = reinterpret_cast< wxValidator * >(argp6);
38442 }
38443 if (obj6) {
f20a2e1f 38444 {
1bd55598
RD
38445 arg7 = wxString_in_helper(obj6);
38446 if (arg7 == NULL) SWIG_fail;
38447 temp7 = true;
f20a2e1f 38448 }
1bd55598
RD
38449 }
38450 {
38451 if (!wxPyCheckForApp()) SWIG_fail;
38452 PyThreadState* __tstate = wxPyBeginAllowThreads();
38453 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38454 wxPyEndAllowThreads(__tstate);
38455 if (PyErr_Occurred()) SWIG_fail;
38456 }
38457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38458 {
38459 if (temp7)
38460 delete arg7;
38461 }
38462 return resultobj;
38463fail:
38464 {
38465 if (temp7)
38466 delete arg7;
38467 }
38468 return NULL;
d55e5bfc
RD
38469}
38470
38471
1bd55598
RD
38472SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38473 PyObject *resultobj = 0;
38474 wxPyControl *result = 0 ;
38475
38476 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38477 {
38478 if (!wxPyCheckForApp()) SWIG_fail;
38479 PyThreadState* __tstate = wxPyBeginAllowThreads();
38480 result = (wxPyControl *)new wxPyControl();
38481 wxPyEndAllowThreads(__tstate);
38482 if (PyErr_Occurred()) SWIG_fail;
38483 }
38484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38485 return resultobj;
38486fail:
38487 return NULL;
38488}
38489
38490
38491SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38492 PyObject *resultobj = 0;
38493 wxPyControl *arg1 = (wxPyControl *) 0 ;
38494 PyObject *arg2 = (PyObject *) 0 ;
38495 PyObject *arg3 = (PyObject *) 0 ;
38496 void *argp1 = 0 ;
38497 int res1 = 0 ;
38498 PyObject * obj0 = 0 ;
38499 PyObject * obj1 = 0 ;
38500 PyObject * obj2 = 0 ;
38501 char * kwnames[] = {
38502 (char *) "self",(char *) "self",(char *) "_class", NULL
38503 };
38504
38505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38507 if (!SWIG_IsOK(res1)) {
38508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38509 }
38510 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38511 arg2 = obj1;
38512 arg3 = obj2;
38513 {
38514 PyThreadState* __tstate = wxPyBeginAllowThreads();
38515 (arg1)->_setCallbackInfo(arg2,arg3);
38516 wxPyEndAllowThreads(__tstate);
38517 if (PyErr_Occurred()) SWIG_fail;
38518 }
38519 resultobj = SWIG_Py_Void();
38520 return resultobj;
38521fail:
38522 return NULL;
38523}
38524
38525
38526SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38527 PyObject *resultobj = 0;
38528 wxPyControl *arg1 = (wxPyControl *) 0 ;
38529 wxSize *arg2 = 0 ;
38530 void *argp1 = 0 ;
38531 int res1 = 0 ;
38532 wxSize temp2 ;
38533 PyObject * obj0 = 0 ;
38534 PyObject * obj1 = 0 ;
38535 char * kwnames[] = {
38536 (char *) "self",(char *) "size", NULL
38537 };
38538
38539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38541 if (!SWIG_IsOK(res1)) {
38542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38543 }
38544 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38545 {
38546 arg2 = &temp2;
38547 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38548 }
38549 {
38550 PyThreadState* __tstate = wxPyBeginAllowThreads();
38551 (arg1)->SetBestSize((wxSize const &)*arg2);
38552 wxPyEndAllowThreads(__tstate);
38553 if (PyErr_Occurred()) SWIG_fail;
38554 }
38555 resultobj = SWIG_Py_Void();
38556 return resultobj;
38557fail:
38558 return NULL;
38559}
38560
38561
38562SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38563 PyObject *resultobj = 0;
38564 wxPyControl *arg1 = (wxPyControl *) 0 ;
38565 wxDC *arg2 = (wxDC *) 0 ;
38566 bool result;
38567 void *argp1 = 0 ;
38568 int res1 = 0 ;
38569 void *argp2 = 0 ;
38570 int res2 = 0 ;
38571 PyObject * obj0 = 0 ;
38572 PyObject * obj1 = 0 ;
38573 char * kwnames[] = {
38574 (char *) "self",(char *) "dc", NULL
38575 };
38576
38577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38579 if (!SWIG_IsOK(res1)) {
38580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38581 }
38582 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38583 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38584 if (!SWIG_IsOK(res2)) {
38585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38586 }
38587 arg2 = reinterpret_cast< wxDC * >(argp2);
38588 {
38589 PyThreadState* __tstate = wxPyBeginAllowThreads();
38590 result = (bool)(arg1)->DoEraseBackground(arg2);
38591 wxPyEndAllowThreads(__tstate);
38592 if (PyErr_Occurred()) SWIG_fail;
38593 }
38594 {
38595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38596 }
38597 return resultobj;
38598fail:
38599 return NULL;
38600}
38601
38602
38603SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38604 PyObject *resultobj = 0;
38605 wxPyControl *arg1 = (wxPyControl *) 0 ;
38606 int arg2 ;
38607 int arg3 ;
38608 int arg4 ;
38609 int arg5 ;
38610 void *argp1 = 0 ;
38611 int res1 = 0 ;
38612 int val2 ;
38613 int ecode2 = 0 ;
38614 int val3 ;
38615 int ecode3 = 0 ;
38616 int val4 ;
38617 int ecode4 = 0 ;
38618 int val5 ;
38619 int ecode5 = 0 ;
38620 PyObject * obj0 = 0 ;
38621 PyObject * obj1 = 0 ;
38622 PyObject * obj2 = 0 ;
38623 PyObject * obj3 = 0 ;
38624 PyObject * obj4 = 0 ;
38625 char * kwnames[] = {
38626 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38627 };
38628
38629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38631 if (!SWIG_IsOK(res1)) {
38632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38633 }
38634 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38635 ecode2 = SWIG_AsVal_int(obj1, &val2);
38636 if (!SWIG_IsOK(ecode2)) {
38637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38638 }
38639 arg2 = static_cast< int >(val2);
38640 ecode3 = SWIG_AsVal_int(obj2, &val3);
38641 if (!SWIG_IsOK(ecode3)) {
38642 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38643 }
38644 arg3 = static_cast< int >(val3);
38645 ecode4 = SWIG_AsVal_int(obj3, &val4);
38646 if (!SWIG_IsOK(ecode4)) {
38647 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38648 }
38649 arg4 = static_cast< int >(val4);
38650 ecode5 = SWIG_AsVal_int(obj4, &val5);
38651 if (!SWIG_IsOK(ecode5)) {
38652 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38653 }
38654 arg5 = static_cast< int >(val5);
38655 {
38656 PyThreadState* __tstate = wxPyBeginAllowThreads();
38657 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38658 wxPyEndAllowThreads(__tstate);
38659 if (PyErr_Occurred()) SWIG_fail;
38660 }
38661 resultobj = SWIG_Py_Void();
38662 return resultobj;
38663fail:
38664 return NULL;
38665}
38666
38667
38668SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38669 PyObject *resultobj = 0;
38670 wxPyControl *arg1 = (wxPyControl *) 0 ;
38671 int arg2 ;
38672 int arg3 ;
38673 int arg4 ;
38674 int arg5 ;
38675 int arg6 = (int) wxSIZE_AUTO ;
38676 void *argp1 = 0 ;
38677 int res1 = 0 ;
38678 int val2 ;
38679 int ecode2 = 0 ;
38680 int val3 ;
38681 int ecode3 = 0 ;
38682 int val4 ;
38683 int ecode4 = 0 ;
38684 int val5 ;
38685 int ecode5 = 0 ;
38686 int val6 ;
38687 int ecode6 = 0 ;
38688 PyObject * obj0 = 0 ;
38689 PyObject * obj1 = 0 ;
38690 PyObject * obj2 = 0 ;
38691 PyObject * obj3 = 0 ;
38692 PyObject * obj4 = 0 ;
38693 PyObject * obj5 = 0 ;
38694 char * kwnames[] = {
38695 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38696 };
38697
38698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38700 if (!SWIG_IsOK(res1)) {
38701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38702 }
38703 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38704 ecode2 = SWIG_AsVal_int(obj1, &val2);
38705 if (!SWIG_IsOK(ecode2)) {
38706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38707 }
38708 arg2 = static_cast< int >(val2);
38709 ecode3 = SWIG_AsVal_int(obj2, &val3);
38710 if (!SWIG_IsOK(ecode3)) {
38711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38712 }
38713 arg3 = static_cast< int >(val3);
38714 ecode4 = SWIG_AsVal_int(obj3, &val4);
38715 if (!SWIG_IsOK(ecode4)) {
38716 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38717 }
38718 arg4 = static_cast< int >(val4);
38719 ecode5 = SWIG_AsVal_int(obj4, &val5);
38720 if (!SWIG_IsOK(ecode5)) {
38721 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38722 }
38723 arg5 = static_cast< int >(val5);
38724 if (obj5) {
38725 ecode6 = SWIG_AsVal_int(obj5, &val6);
38726 if (!SWIG_IsOK(ecode6)) {
38727 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38728 }
38729 arg6 = static_cast< int >(val6);
38730 }
38731 {
38732 PyThreadState* __tstate = wxPyBeginAllowThreads();
38733 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38734 wxPyEndAllowThreads(__tstate);
38735 if (PyErr_Occurred()) SWIG_fail;
38736 }
38737 resultobj = SWIG_Py_Void();
38738 return resultobj;
38739fail:
38740 return NULL;
38741}
38742
38743
38744SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38745 PyObject *resultobj = 0;
38746 wxPyControl *arg1 = (wxPyControl *) 0 ;
38747 int arg2 ;
38748 int arg3 ;
38749 void *argp1 = 0 ;
38750 int res1 = 0 ;
38751 int val2 ;
38752 int ecode2 = 0 ;
38753 int val3 ;
38754 int ecode3 = 0 ;
38755 PyObject * obj0 = 0 ;
38756 PyObject * obj1 = 0 ;
38757 PyObject * obj2 = 0 ;
38758 char * kwnames[] = {
38759 (char *) "self",(char *) "width",(char *) "height", NULL
38760 };
38761
38762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38764 if (!SWIG_IsOK(res1)) {
38765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38766 }
38767 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38768 ecode2 = SWIG_AsVal_int(obj1, &val2);
38769 if (!SWIG_IsOK(ecode2)) {
38770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38771 }
38772 arg2 = static_cast< int >(val2);
38773 ecode3 = SWIG_AsVal_int(obj2, &val3);
38774 if (!SWIG_IsOK(ecode3)) {
38775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38776 }
38777 arg3 = static_cast< int >(val3);
38778 {
38779 PyThreadState* __tstate = wxPyBeginAllowThreads();
38780 (arg1)->DoSetClientSize(arg2,arg3);
38781 wxPyEndAllowThreads(__tstate);
38782 if (PyErr_Occurred()) SWIG_fail;
38783 }
38784 resultobj = SWIG_Py_Void();
38785 return resultobj;
38786fail:
38787 return NULL;
38788}
38789
38790
38791SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38792 PyObject *resultobj = 0;
38793 wxPyControl *arg1 = (wxPyControl *) 0 ;
38794 int arg2 ;
38795 int arg3 ;
38796 void *argp1 = 0 ;
38797 int res1 = 0 ;
38798 int val2 ;
38799 int ecode2 = 0 ;
38800 int val3 ;
38801 int ecode3 = 0 ;
38802 PyObject * obj0 = 0 ;
38803 PyObject * obj1 = 0 ;
38804 PyObject * obj2 = 0 ;
38805 char * kwnames[] = {
38806 (char *) "self",(char *) "x",(char *) "y", NULL
38807 };
38808
38809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38811 if (!SWIG_IsOK(res1)) {
38812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38813 }
38814 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38815 ecode2 = SWIG_AsVal_int(obj1, &val2);
38816 if (!SWIG_IsOK(ecode2)) {
38817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38818 }
38819 arg2 = static_cast< int >(val2);
38820 ecode3 = SWIG_AsVal_int(obj2, &val3);
38821 if (!SWIG_IsOK(ecode3)) {
38822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38823 }
38824 arg3 = static_cast< int >(val3);
38825 {
38826 PyThreadState* __tstate = wxPyBeginAllowThreads();
38827 (arg1)->DoSetVirtualSize(arg2,arg3);
38828 wxPyEndAllowThreads(__tstate);
38829 if (PyErr_Occurred()) SWIG_fail;
38830 }
38831 resultobj = SWIG_Py_Void();
38832 return resultobj;
38833fail:
38834 return NULL;
38835}
38836
38837
38838SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38839 PyObject *resultobj = 0;
38840 wxPyControl *arg1 = (wxPyControl *) 0 ;
38841 int *arg2 = (int *) 0 ;
38842 int *arg3 = (int *) 0 ;
38843 void *argp1 = 0 ;
38844 int res1 = 0 ;
38845 int temp2 ;
38846 int res2 = SWIG_TMPOBJ ;
38847 int temp3 ;
38848 int res3 = SWIG_TMPOBJ ;
38849 PyObject *swig_obj[1] ;
38850
38851 arg2 = &temp2;
38852 arg3 = &temp3;
38853 if (!args) SWIG_fail;
38854 swig_obj[0] = args;
38855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38856 if (!SWIG_IsOK(res1)) {
38857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38858 }
38859 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38860 {
38861 PyThreadState* __tstate = wxPyBeginAllowThreads();
38862 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38863 wxPyEndAllowThreads(__tstate);
38864 if (PyErr_Occurred()) SWIG_fail;
38865 }
38866 resultobj = SWIG_Py_Void();
38867 if (SWIG_IsTmpObj(res2)) {
38868 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38869 } else {
38870 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38871 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38872 }
38873 if (SWIG_IsTmpObj(res3)) {
38874 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38875 } else {
38876 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38877 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38878 }
38879 return resultobj;
38880fail:
38881 return NULL;
38882}
38883
38884
38885SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38886 PyObject *resultobj = 0;
38887 wxPyControl *arg1 = (wxPyControl *) 0 ;
38888 int *arg2 = (int *) 0 ;
38889 int *arg3 = (int *) 0 ;
38890 void *argp1 = 0 ;
38891 int res1 = 0 ;
38892 int temp2 ;
38893 int res2 = SWIG_TMPOBJ ;
38894 int temp3 ;
38895 int res3 = SWIG_TMPOBJ ;
38896 PyObject *swig_obj[1] ;
38897
38898 arg2 = &temp2;
38899 arg3 = &temp3;
38900 if (!args) SWIG_fail;
38901 swig_obj[0] = args;
38902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38903 if (!SWIG_IsOK(res1)) {
38904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38905 }
38906 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38907 {
38908 PyThreadState* __tstate = wxPyBeginAllowThreads();
38909 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38910 wxPyEndAllowThreads(__tstate);
38911 if (PyErr_Occurred()) SWIG_fail;
38912 }
38913 resultobj = SWIG_Py_Void();
38914 if (SWIG_IsTmpObj(res2)) {
38915 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38916 } else {
38917 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38918 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38919 }
38920 if (SWIG_IsTmpObj(res3)) {
38921 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38922 } else {
38923 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38924 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38925 }
38926 return resultobj;
38927fail:
38928 return NULL;
38929}
38930
38931
38932SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38933 PyObject *resultobj = 0;
38934 wxPyControl *arg1 = (wxPyControl *) 0 ;
38935 int *arg2 = (int *) 0 ;
38936 int *arg3 = (int *) 0 ;
38937 void *argp1 = 0 ;
38938 int res1 = 0 ;
38939 int temp2 ;
38940 int res2 = SWIG_TMPOBJ ;
38941 int temp3 ;
38942 int res3 = SWIG_TMPOBJ ;
38943 PyObject *swig_obj[1] ;
38944
38945 arg2 = &temp2;
38946 arg3 = &temp3;
38947 if (!args) SWIG_fail;
38948 swig_obj[0] = args;
38949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38950 if (!SWIG_IsOK(res1)) {
38951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38952 }
38953 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38954 {
38955 PyThreadState* __tstate = wxPyBeginAllowThreads();
38956 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38957 wxPyEndAllowThreads(__tstate);
38958 if (PyErr_Occurred()) SWIG_fail;
38959 }
38960 resultobj = SWIG_Py_Void();
38961 if (SWIG_IsTmpObj(res2)) {
38962 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38963 } else {
38964 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38965 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38966 }
38967 if (SWIG_IsTmpObj(res3)) {
38968 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38969 } else {
38970 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38971 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38972 }
38973 return resultobj;
38974fail:
38975 return NULL;
d55e5bfc
RD
38976}
38977
38978
1bd55598
RD
38979SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38980 PyObject *resultobj = 0;
38981 wxPyControl *arg1 = (wxPyControl *) 0 ;
38982 wxSize result;
38983 void *argp1 = 0 ;
38984 int res1 = 0 ;
38985 PyObject *swig_obj[1] ;
38986
38987 if (!args) SWIG_fail;
38988 swig_obj[0] = args;
38989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38990 if (!SWIG_IsOK(res1)) {
38991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38992 }
38993 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38994 {
38995 PyThreadState* __tstate = wxPyBeginAllowThreads();
38996 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38997 wxPyEndAllowThreads(__tstate);
38998 if (PyErr_Occurred()) SWIG_fail;
38999 }
39000 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39001 return resultobj;
39002fail:
39003 return NULL;
7e08d4ef
RD
39004}
39005
39006
1bd55598
RD
39007SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39008 PyObject *resultobj = 0;
39009 wxPyControl *arg1 = (wxPyControl *) 0 ;
39010 wxSize result;
39011 void *argp1 = 0 ;
39012 int res1 = 0 ;
39013 PyObject *swig_obj[1] ;
39014
39015 if (!args) SWIG_fail;
39016 swig_obj[0] = args;
39017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39018 if (!SWIG_IsOK(res1)) {
39019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
39020 }
39021 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39022 {
39023 PyThreadState* __tstate = wxPyBeginAllowThreads();
39024 result = ((wxPyControl const *)arg1)->DoGetBestSize();
39025 wxPyEndAllowThreads(__tstate);
39026 if (PyErr_Occurred()) SWIG_fail;
39027 }
39028 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
39029 return resultobj;
39030fail:
39031 return NULL;
d55e5bfc
RD
39032}
39033
39034
1bd55598
RD
39035SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39036 PyObject *resultobj = 0;
39037 wxPyControl *arg1 = (wxPyControl *) 0 ;
39038 SwigValueWrapper<wxVisualAttributes > result;
39039 void *argp1 = 0 ;
39040 int res1 = 0 ;
39041 PyObject *swig_obj[1] ;
39042
39043 if (!args) SWIG_fail;
39044 swig_obj[0] = args;
39045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39046 if (!SWIG_IsOK(res1)) {
39047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
39048 }
39049 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39050 {
39051 PyThreadState* __tstate = wxPyBeginAllowThreads();
39052 result = (arg1)->GetDefaultAttributes();
39053 wxPyEndAllowThreads(__tstate);
39054 if (PyErr_Occurred()) SWIG_fail;
39055 }
39056 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
39057 return resultobj;
39058fail:
39059 return NULL;
d55e5bfc
RD
39060}
39061
39062
1bd55598
RD
39063SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39064 PyObject *resultobj = 0;
39065 wxPyControl *arg1 = (wxPyControl *) 0 ;
39066 void *argp1 = 0 ;
39067 int res1 = 0 ;
39068 PyObject *swig_obj[1] ;
39069
39070 if (!args) SWIG_fail;
39071 swig_obj[0] = args;
39072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
39073 if (!SWIG_IsOK(res1)) {
39074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
39075 }
39076 arg1 = reinterpret_cast< wxPyControl * >(argp1);
39077 {
39078 PyThreadState* __tstate = wxPyBeginAllowThreads();
39079 (arg1)->OnInternalIdle();
39080 wxPyEndAllowThreads(__tstate);
39081 if (PyErr_Occurred()) SWIG_fail;
39082 }
39083 resultobj = SWIG_Py_Void();
39084 return resultobj;
39085fail:
39086 return NULL;
39087}
39088
39089
39090SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39091 PyObject *obj;
39092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39093 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
39094 return SWIG_Py_Void();
39095}
39096
39097SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39098 return SWIG_Python_InitShadowInstance(args);
39099}
39100
39101SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39102 PyObject *resultobj = 0;
39103 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
39104 int arg2 = (int) 0 ;
39105 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39106 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
704eda0c 39107 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
1bd55598
RD
39108 wxHelpEvent *result = 0 ;
39109 int val1 ;
39110 int ecode1 = 0 ;
39111 int val2 ;
39112 int ecode2 = 0 ;
39113 wxPoint temp3 ;
704eda0c
RD
39114 int val4 ;
39115 int ecode4 = 0 ;
1bd55598
RD
39116 PyObject * obj0 = 0 ;
39117 PyObject * obj1 = 0 ;
39118 PyObject * obj2 = 0 ;
704eda0c 39119 PyObject * obj3 = 0 ;
1bd55598 39120 char * kwnames[] = {
704eda0c 39121 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
1bd55598
RD
39122 };
39123
704eda0c 39124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
1bd55598
RD
39125 if (obj0) {
39126 ecode1 = SWIG_AsVal_int(obj0, &val1);
39127 if (!SWIG_IsOK(ecode1)) {
39128 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
39129 }
39130 arg1 = static_cast< wxEventType >(val1);
39131 }
39132 if (obj1) {
39133 ecode2 = SWIG_AsVal_int(obj1, &val2);
39134 if (!SWIG_IsOK(ecode2)) {
39135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
39136 }
39137 arg2 = static_cast< int >(val2);
39138 }
39139 if (obj2) {
d55e5bfc 39140 {
1bd55598
RD
39141 arg3 = &temp3;
39142 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39143 }
1bd55598 39144 }
704eda0c
RD
39145 if (obj3) {
39146 ecode4 = SWIG_AsVal_int(obj3, &val4);
39147 if (!SWIG_IsOK(ecode4)) {
39148 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39149 }
39150 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39151 }
1bd55598
RD
39152 {
39153 PyThreadState* __tstate = wxPyBeginAllowThreads();
704eda0c 39154 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
1bd55598
RD
39155 wxPyEndAllowThreads(__tstate);
39156 if (PyErr_Occurred()) SWIG_fail;
39157 }
39158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
39159 return resultobj;
39160fail:
39161 return NULL;
d55e5bfc
RD
39162}
39163
39164
1bd55598
RD
39165SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39166 PyObject *resultobj = 0;
39167 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39168 wxPoint result;
39169 void *argp1 = 0 ;
39170 int res1 = 0 ;
39171 PyObject *swig_obj[1] ;
39172
39173 if (!args) SWIG_fail;
39174 swig_obj[0] = args;
39175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39176 if (!SWIG_IsOK(res1)) {
39177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39178 }
39179 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39180 {
39181 PyThreadState* __tstate = wxPyBeginAllowThreads();
39182 result = ((wxHelpEvent const *)arg1)->GetPosition();
39183 wxPyEndAllowThreads(__tstate);
39184 if (PyErr_Occurred()) SWIG_fail;
39185 }
39186 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
39187 return resultobj;
39188fail:
39189 return NULL;
39190}
39191
39192
39193SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39194 PyObject *resultobj = 0;
39195 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39196 wxPoint *arg2 = 0 ;
39197 void *argp1 = 0 ;
39198 int res1 = 0 ;
39199 wxPoint temp2 ;
39200 PyObject * obj0 = 0 ;
39201 PyObject * obj1 = 0 ;
39202 char * kwnames[] = {
39203 (char *) "self",(char *) "pos", NULL
39204 };
39205
39206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
39207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39208 if (!SWIG_IsOK(res1)) {
39209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39210 }
39211 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39212 {
39213 arg2 = &temp2;
39214 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39215 }
39216 {
39217 PyThreadState* __tstate = wxPyBeginAllowThreads();
39218 (arg1)->SetPosition((wxPoint const &)*arg2);
39219 wxPyEndAllowThreads(__tstate);
39220 if (PyErr_Occurred()) SWIG_fail;
39221 }
39222 resultobj = SWIG_Py_Void();
39223 return resultobj;
39224fail:
39225 return NULL;
d55e5bfc
RD
39226}
39227
39228
1bd55598
RD
39229SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39230 PyObject *resultobj = 0;
39231 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39232 wxString *result = 0 ;
39233 void *argp1 = 0 ;
39234 int res1 = 0 ;
39235 PyObject *swig_obj[1] ;
39236
39237 if (!args) SWIG_fail;
39238 swig_obj[0] = args;
39239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39240 if (!SWIG_IsOK(res1)) {
39241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39242 }
39243 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39244 {
39245 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39246 {
1bd55598
RD
39247 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
39248 result = (wxString *) &_result_ref;
d55e5bfc 39249 }
1bd55598
RD
39250 wxPyEndAllowThreads(__tstate);
39251 if (PyErr_Occurred()) SWIG_fail;
39252 }
39253 {
39254#if wxUSE_UNICODE
39255 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39256#else
39257 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39258#endif
39259 }
39260 return resultobj;
39261fail:
39262 return NULL;
39263}
39264
39265
39266SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39267 PyObject *resultobj = 0;
39268 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39269 wxString *arg2 = 0 ;
39270 void *argp1 = 0 ;
39271 int res1 = 0 ;
39272 bool temp2 = false ;
39273 PyObject * obj0 = 0 ;
39274 PyObject * obj1 = 0 ;
39275 char * kwnames[] = {
39276 (char *) "self",(char *) "link", NULL
39277 };
39278
39279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
39280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39281 if (!SWIG_IsOK(res1)) {
39282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39283 }
39284 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39285 {
39286 arg2 = wxString_in_helper(obj1);
39287 if (arg2 == NULL) SWIG_fail;
39288 temp2 = true;
39289 }
39290 {
39291 PyThreadState* __tstate = wxPyBeginAllowThreads();
39292 (arg1)->SetLink((wxString const &)*arg2);
39293 wxPyEndAllowThreads(__tstate);
39294 if (PyErr_Occurred()) SWIG_fail;
39295 }
39296 resultobj = SWIG_Py_Void();
39297 {
39298 if (temp2)
39299 delete arg2;
39300 }
39301 return resultobj;
39302fail:
39303 {
39304 if (temp2)
39305 delete arg2;
39306 }
39307 return NULL;
d55e5bfc
RD
39308}
39309
39310
1bd55598
RD
39311SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39312 PyObject *resultobj = 0;
39313 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39314 wxString *result = 0 ;
39315 void *argp1 = 0 ;
39316 int res1 = 0 ;
39317 PyObject *swig_obj[1] ;
39318
39319 if (!args) SWIG_fail;
39320 swig_obj[0] = args;
39321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39322 if (!SWIG_IsOK(res1)) {
39323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39324 }
39325 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39326 {
39327 PyThreadState* __tstate = wxPyBeginAllowThreads();
d55e5bfc 39328 {
1bd55598
RD
39329 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39330 result = (wxString *) &_result_ref;
d55e5bfc 39331 }
1bd55598
RD
39332 wxPyEndAllowThreads(__tstate);
39333 if (PyErr_Occurred()) SWIG_fail;
39334 }
39335 {
39336#if wxUSE_UNICODE
39337 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39338#else
39339 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39340#endif
39341 }
39342 return resultobj;
39343fail:
39344 return NULL;
39345}
39346
39347
39348SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39349 PyObject *resultobj = 0;
39350 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39351 wxString *arg2 = 0 ;
39352 void *argp1 = 0 ;
39353 int res1 = 0 ;
39354 bool temp2 = false ;
39355 PyObject * obj0 = 0 ;
39356 PyObject * obj1 = 0 ;
39357 char * kwnames[] = {
39358 (char *) "self",(char *) "target", NULL
39359 };
39360
39361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39363 if (!SWIG_IsOK(res1)) {
39364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39365 }
39366 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39367 {
39368 arg2 = wxString_in_helper(obj1);
39369 if (arg2 == NULL) SWIG_fail;
39370 temp2 = true;
39371 }
39372 {
39373 PyThreadState* __tstate = wxPyBeginAllowThreads();
39374 (arg1)->SetTarget((wxString const &)*arg2);
39375 wxPyEndAllowThreads(__tstate);
39376 if (PyErr_Occurred()) SWIG_fail;
39377 }
39378 resultobj = SWIG_Py_Void();
39379 {
39380 if (temp2)
39381 delete arg2;
39382 }
39383 return resultobj;
39384fail:
39385 {
39386 if (temp2)
39387 delete arg2;
39388 }
39389 return NULL;
d55e5bfc
RD
39390}
39391
39392
704eda0c
RD
39393SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39394 PyObject *resultobj = 0;
39395 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39396 wxHelpEvent::Origin 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_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39406 }
39407 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39408 {
39409 PyThreadState* __tstate = wxPyBeginAllowThreads();
39410 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39411 wxPyEndAllowThreads(__tstate);
39412 if (PyErr_Occurred()) SWIG_fail;
39413 }
39414 resultobj = SWIG_From_int(static_cast< int >(result));
39415 return resultobj;
39416fail:
39417 return NULL;
39418}
39419
39420
39421SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39422 PyObject *resultobj = 0;
39423 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39424 wxHelpEvent::Origin arg2 ;
39425 void *argp1 = 0 ;
39426 int res1 = 0 ;
39427 int val2 ;
39428 int ecode2 = 0 ;
39429 PyObject * obj0 = 0 ;
39430 PyObject * obj1 = 0 ;
39431 char * kwnames[] = {
39432 (char *) "self",(char *) "origin", NULL
39433 };
39434
39435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39437 if (!SWIG_IsOK(res1)) {
39438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39439 }
39440 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39441 ecode2 = SWIG_AsVal_int(obj1, &val2);
39442 if (!SWIG_IsOK(ecode2)) {
39443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39444 }
39445 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39446 {
39447 PyThreadState* __tstate = wxPyBeginAllowThreads();
39448 (arg1)->SetOrigin(arg2);
39449 wxPyEndAllowThreads(__tstate);
39450 if (PyErr_Occurred()) SWIG_fail;
39451 }
39452 resultobj = SWIG_Py_Void();
39453 return resultobj;
39454fail:
39455 return NULL;
39456}
39457
39458
1bd55598
RD
39459SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39460 PyObject *obj;
39461 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39462 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39463 return SWIG_Py_Void();
39464}
39465
39466SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39467 return SWIG_Python_InitShadowInstance(args);
39468}
39469
39470SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39471 PyObject *resultobj = 0;
39472 wxWindow *arg1 = (wxWindow *) NULL ;
39473 bool arg2 = (bool) true ;
39474 wxContextHelp *result = 0 ;
39475 void *argp1 = 0 ;
39476 int res1 = 0 ;
39477 bool val2 ;
39478 int ecode2 = 0 ;
39479 PyObject * obj0 = 0 ;
39480 PyObject * obj1 = 0 ;
39481 char * kwnames[] = {
39482 (char *) "window",(char *) "doNow", NULL
39483 };
39484
39485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39486 if (obj0) {
39487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39488 if (!SWIG_IsOK(res1)) {
39489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
d55e5bfc 39490 }
1bd55598
RD
39491 arg1 = reinterpret_cast< wxWindow * >(argp1);
39492 }
39493 if (obj1) {
39494 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39495 if (!SWIG_IsOK(ecode2)) {
39496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39497 }
39498 arg2 = static_cast< bool >(val2);
39499 }
39500 {
39501 if (!wxPyCheckForApp()) SWIG_fail;
39502 PyThreadState* __tstate = wxPyBeginAllowThreads();
39503 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39504 wxPyEndAllowThreads(__tstate);
39505 if (PyErr_Occurred()) SWIG_fail;
39506 }
39507 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39508 return resultobj;
39509fail:
39510 return NULL;
d55e5bfc
RD
39511}
39512
39513
1bd55598
RD
39514SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39515 PyObject *resultobj = 0;
39516 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39517 void *argp1 = 0 ;
39518 int res1 = 0 ;
39519 PyObject *swig_obj[1] ;
39520
39521 if (!args) SWIG_fail;
39522 swig_obj[0] = args;
39523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39524 if (!SWIG_IsOK(res1)) {
39525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39526 }
39527 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39528 {
39529 PyThreadState* __tstate = wxPyBeginAllowThreads();
39530 delete arg1;
d55e5bfc 39531
1bd55598
RD
39532 wxPyEndAllowThreads(__tstate);
39533 if (PyErr_Occurred()) SWIG_fail;
39534 }
39535 resultobj = SWIG_Py_Void();
39536 return resultobj;
39537fail:
39538 return NULL;
39539}
39540
39541
39542SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39543 PyObject *resultobj = 0;
39544 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39545 wxWindow *arg2 = (wxWindow *) NULL ;
39546 bool result;
39547 void *argp1 = 0 ;
39548 int res1 = 0 ;
39549 void *argp2 = 0 ;
39550 int res2 = 0 ;
39551 PyObject * obj0 = 0 ;
39552 PyObject * obj1 = 0 ;
39553 char * kwnames[] = {
39554 (char *) "self",(char *) "window", NULL
39555 };
39556
39557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39559 if (!SWIG_IsOK(res1)) {
39560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39561 }
39562 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39563 if (obj1) {
39564 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39565 if (!SWIG_IsOK(res2)) {
39566 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
d55e5bfc 39567 }
1bd55598
RD
39568 arg2 = reinterpret_cast< wxWindow * >(argp2);
39569 }
39570 {
39571 PyThreadState* __tstate = wxPyBeginAllowThreads();
39572 result = (bool)(arg1)->BeginContextHelp(arg2);
39573 wxPyEndAllowThreads(__tstate);
39574 if (PyErr_Occurred()) SWIG_fail;
39575 }
39576 {
39577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39578 }
39579 return resultobj;
39580fail:
39581 return NULL;
d55e5bfc
RD
39582}
39583
39584
1bd55598
RD
39585SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39586 PyObject *resultobj = 0;
39587 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39588 bool result;
39589 void *argp1 = 0 ;
39590 int res1 = 0 ;
39591 PyObject *swig_obj[1] ;
39592
39593 if (!args) SWIG_fail;
39594 swig_obj[0] = args;
39595 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39596 if (!SWIG_IsOK(res1)) {
39597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39598 }
39599 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39600 {
39601 PyThreadState* __tstate = wxPyBeginAllowThreads();
39602 result = (bool)(arg1)->EndContextHelp();
39603 wxPyEndAllowThreads(__tstate);
39604 if (PyErr_Occurred()) SWIG_fail;
39605 }
39606 {
39607 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39608 }
39609 return resultobj;
39610fail:
39611 return NULL;
39612}
39613
39614
39615SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39616 PyObject *obj;
39617 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39618 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39619 return SWIG_Py_Void();
39620}
39621
39622SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39623 return SWIG_Python_InitShadowInstance(args);
39624}
39625
39626SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39627 PyObject *resultobj = 0;
39628 wxWindow *arg1 = (wxWindow *) 0 ;
39629 int arg2 = (int) wxID_CONTEXT_HELP ;
39630 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39631 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39632 wxSize const &arg4_defvalue = wxDefaultSize ;
39633 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39634 long arg5 = (long) wxBU_AUTODRAW ;
39635 wxContextHelpButton *result = 0 ;
39636 void *argp1 = 0 ;
39637 int res1 = 0 ;
39638 int val2 ;
39639 int ecode2 = 0 ;
39640 wxPoint temp3 ;
39641 wxSize temp4 ;
39642 long val5 ;
39643 int ecode5 = 0 ;
39644 PyObject * obj0 = 0 ;
39645 PyObject * obj1 = 0 ;
39646 PyObject * obj2 = 0 ;
39647 PyObject * obj3 = 0 ;
39648 PyObject * obj4 = 0 ;
39649 char * kwnames[] = {
39650 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39651 };
39652
39653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39655 if (!SWIG_IsOK(res1)) {
39656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39657 }
39658 arg1 = reinterpret_cast< wxWindow * >(argp1);
39659 if (obj1) {
39660 ecode2 = SWIG_AsVal_int(obj1, &val2);
39661 if (!SWIG_IsOK(ecode2)) {
39662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39663 }
39664 arg2 = static_cast< int >(val2);
39665 }
39666 if (obj2) {
d55e5bfc 39667 {
1bd55598
RD
39668 arg3 = &temp3;
39669 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc 39670 }
1bd55598
RD
39671 }
39672 if (obj3) {
d55e5bfc 39673 {
1bd55598
RD
39674 arg4 = &temp4;
39675 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
d55e5bfc 39676 }
1bd55598
RD
39677 }
39678 if (obj4) {
39679 ecode5 = SWIG_AsVal_long(obj4, &val5);
39680 if (!SWIG_IsOK(ecode5)) {
39681 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39682 }
39683 arg5 = static_cast< long >(val5);
39684 }
39685 {
39686 if (!wxPyCheckForApp()) SWIG_fail;
39687 PyThreadState* __tstate = wxPyBeginAllowThreads();
39688 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39689 wxPyEndAllowThreads(__tstate);
39690 if (PyErr_Occurred()) SWIG_fail;
39691 }
39692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39693 return resultobj;
39694fail:
39695 return NULL;
d55e5bfc
RD
39696}
39697
39698
1bd55598
RD
39699SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39700 PyObject *obj;
39701 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39702 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39703 return SWIG_Py_Void();
d55e5bfc
RD
39704}
39705
1bd55598
RD
39706SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39707 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
39708}
39709
f52cbe90
RD
39710SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39711 PyObject *resultobj = 0;
39712 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39713 void *argp1 = 0 ;
39714 int res1 = 0 ;
39715 PyObject *swig_obj[1] ;
39716
39717 if (!args) SWIG_fail;
39718 swig_obj[0] = args;
39719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39720 if (!SWIG_IsOK(res1)) {
39721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39722 }
39723 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39724 {
39725 PyThreadState* __tstate = wxPyBeginAllowThreads();
39726 delete arg1;
39727
39728 wxPyEndAllowThreads(__tstate);
39729 if (PyErr_Occurred()) SWIG_fail;
39730 }
39731 resultobj = SWIG_Py_Void();
39732 return resultobj;
39733fail:
39734 return NULL;
39735}
39736
39737
1bd55598
RD
39738SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39739 PyObject *resultobj = 0;
39740 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39741 wxHelpProvider *result = 0 ;
39742 int res1 = 0 ;
39743 PyObject * obj0 = 0 ;
39744 char * kwnames[] = {
39745 (char *) "helpProvider", NULL
39746 };
39747
39748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39749 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39750 if (!SWIG_IsOK(res1)) {
39751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39752 }
39753 {
39754 PyThreadState* __tstate = wxPyBeginAllowThreads();
39755 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39756 wxPyEndAllowThreads(__tstate);
39757 if (PyErr_Occurred()) SWIG_fail;
39758 }
39759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39760 return resultobj;
39761fail:
39762 return NULL;
d55e5bfc
RD
39763}
39764
39765
1bd55598
RD
39766SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39767 PyObject *resultobj = 0;
39768 wxHelpProvider *result = 0 ;
39769
39770 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39771 {
39772 PyThreadState* __tstate = wxPyBeginAllowThreads();
39773 result = (wxHelpProvider *)wxHelpProvider::Get();
39774 wxPyEndAllowThreads(__tstate);
39775 if (PyErr_Occurred()) SWIG_fail;
39776 }
39777 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39778 return resultobj;
39779fail:
39780 return NULL;
39781}
39782
39783
39784SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39785 PyObject *resultobj = 0;
39786 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39787 wxWindow *arg2 = (wxWindow *) 0 ;
39788 wxString result;
39789 void *argp1 = 0 ;
39790 int res1 = 0 ;
39791 void *argp2 = 0 ;
39792 int res2 = 0 ;
39793 PyObject * obj0 = 0 ;
39794 PyObject * obj1 = 0 ;
39795 char * kwnames[] = {
39796 (char *) "self",(char *) "window", NULL
39797 };
39798
39799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39801 if (!SWIG_IsOK(res1)) {
39802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39803 }
39804 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39805 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39806 if (!SWIG_IsOK(res2)) {
39807 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39808 }
39809 arg2 = reinterpret_cast< wxWindow * >(argp2);
39810 {
39811 PyThreadState* __tstate = wxPyBeginAllowThreads();
39812 result = (arg1)->GetHelp((wxWindow const *)arg2);
39813 wxPyEndAllowThreads(__tstate);
39814 if (PyErr_Occurred()) SWIG_fail;
39815 }
39816 {
39817#if wxUSE_UNICODE
39818 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39819#else
39820 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39821#endif
39822 }
39823 return resultobj;
39824fail:
39825 return NULL;
39826}
39827
39828
39829SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39830 PyObject *resultobj = 0;
39831 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39832 wxWindow *arg2 = (wxWindow *) 0 ;
39833 bool result;
39834 void *argp1 = 0 ;
39835 int res1 = 0 ;
39836 void *argp2 = 0 ;
39837 int res2 = 0 ;
39838 PyObject * obj0 = 0 ;
39839 PyObject * obj1 = 0 ;
39840 char * kwnames[] = {
39841 (char *) "self",(char *) "window", NULL
39842 };
39843
39844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39846 if (!SWIG_IsOK(res1)) {
39847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39848 }
39849 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39850 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39851 if (!SWIG_IsOK(res2)) {
39852 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39853 }
39854 arg2 = reinterpret_cast< wxWindow * >(argp2);
39855 {
39856 PyThreadState* __tstate = wxPyBeginAllowThreads();
39857 result = (bool)(arg1)->ShowHelp(arg2);
39858 wxPyEndAllowThreads(__tstate);
39859 if (PyErr_Occurred()) SWIG_fail;
39860 }
39861 {
39862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39863 }
39864 return resultobj;
39865fail:
39866 return NULL;
39867}
39868
39869
b850e7f3
RD
39870SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelpAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39871 PyObject *resultobj = 0;
39872 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39873 wxWindowBase *arg2 = (wxWindowBase *) 0 ;
39874 wxPoint *arg3 = 0 ;
39875 wxHelpEvent::Origin arg4 ;
39876 bool result;
39877 void *argp1 = 0 ;
39878 int res1 = 0 ;
39879 void *argp2 = 0 ;
39880 int res2 = 0 ;
39881 wxPoint temp3 ;
39882 int val4 ;
39883 int ecode4 = 0 ;
39884 PyObject * obj0 = 0 ;
39885 PyObject * obj1 = 0 ;
39886 PyObject * obj2 = 0 ;
39887 PyObject * obj3 = 0 ;
39888 char * kwnames[] = {
39889 (char *) "self",(char *) "window",(char *) "pt",(char *) "origin", NULL
39890 };
39891
39892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:HelpProvider_ShowHelpAtPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
39893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39894 if (!SWIG_IsOK(res1)) {
39895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39896 }
39897 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39898 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindowBase, 0 | 0 );
39899 if (!SWIG_IsOK(res2)) {
39900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "2"" of type '" "wxWindowBase *""'");
39901 }
39902 arg2 = reinterpret_cast< wxWindowBase * >(argp2);
39903 {
39904 arg3 = &temp3;
39905 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39906 }
39907 ecode4 = SWIG_AsVal_int(obj3, &val4);
39908 if (!SWIG_IsOK(ecode4)) {
39909 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "HelpProvider_ShowHelpAtPoint" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
39910 }
39911 arg4 = static_cast< wxHelpEvent::Origin >(val4);
39912 {
39913 PyThreadState* __tstate = wxPyBeginAllowThreads();
39914 result = (bool)(arg1)->ShowHelpAtPoint(arg2,(wxPoint const &)*arg3,arg4);
39915 wxPyEndAllowThreads(__tstate);
39916 if (PyErr_Occurred()) SWIG_fail;
39917 }
39918 {
39919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39920 }
39921 return resultobj;
39922fail:
39923 return NULL;
39924}
39925
39926
1bd55598
RD
39927SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39928 PyObject *resultobj = 0;
39929 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39930 wxWindow *arg2 = (wxWindow *) 0 ;
39931 wxString *arg3 = 0 ;
39932 void *argp1 = 0 ;
39933 int res1 = 0 ;
39934 void *argp2 = 0 ;
39935 int res2 = 0 ;
39936 bool temp3 = false ;
39937 PyObject * obj0 = 0 ;
39938 PyObject * obj1 = 0 ;
39939 PyObject * obj2 = 0 ;
39940 char * kwnames[] = {
39941 (char *) "self",(char *) "window",(char *) "text", NULL
39942 };
39943
39944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39946 if (!SWIG_IsOK(res1)) {
39947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39948 }
39949 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39950 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39951 if (!SWIG_IsOK(res2)) {
39952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39953 }
39954 arg2 = reinterpret_cast< wxWindow * >(argp2);
39955 {
39956 arg3 = wxString_in_helper(obj2);
39957 if (arg3 == NULL) SWIG_fail;
39958 temp3 = true;
39959 }
39960 {
39961 PyThreadState* __tstate = wxPyBeginAllowThreads();
39962 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39963 wxPyEndAllowThreads(__tstate);
39964 if (PyErr_Occurred()) SWIG_fail;
39965 }
39966 resultobj = SWIG_Py_Void();
39967 {
39968 if (temp3)
39969 delete arg3;
39970 }
39971 return resultobj;
39972fail:
39973 {
39974 if (temp3)
39975 delete arg3;
39976 }
39977 return NULL;
39978}
39979
39980
39981SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39982 PyObject *resultobj = 0;
39983 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39984 int arg2 ;
39985 wxString *arg3 = 0 ;
39986 void *argp1 = 0 ;
39987 int res1 = 0 ;
39988 int val2 ;
39989 int ecode2 = 0 ;
39990 bool temp3 = false ;
39991 PyObject * obj0 = 0 ;
39992 PyObject * obj1 = 0 ;
39993 PyObject * obj2 = 0 ;
39994 char * kwnames[] = {
39995 (char *) "self",(char *) "id",(char *) "text", NULL
39996 };
39997
39998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40000 if (!SWIG_IsOK(res1)) {
40001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40002 }
40003 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40004 ecode2 = SWIG_AsVal_int(obj1, &val2);
40005 if (!SWIG_IsOK(ecode2)) {
40006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
40007 }
40008 arg2 = static_cast< int >(val2);
40009 {
40010 arg3 = wxString_in_helper(obj2);
40011 if (arg3 == NULL) SWIG_fail;
40012 temp3 = true;
40013 }
40014 {
40015 PyThreadState* __tstate = wxPyBeginAllowThreads();
40016 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
40017 wxPyEndAllowThreads(__tstate);
40018 if (PyErr_Occurred()) SWIG_fail;
40019 }
40020 resultobj = SWIG_Py_Void();
40021 {
40022 if (temp3)
40023 delete arg3;
40024 }
40025 return resultobj;
40026fail:
40027 {
40028 if (temp3)
40029 delete arg3;
40030 }
40031 return NULL;
40032}
40033
40034
40035SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40036 PyObject *resultobj = 0;
40037 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40038 wxWindow *arg2 = (wxWindow *) 0 ;
40039 void *argp1 = 0 ;
40040 int res1 = 0 ;
40041 void *argp2 = 0 ;
40042 int res2 = 0 ;
40043 PyObject * obj0 = 0 ;
40044 PyObject * obj1 = 0 ;
40045 char * kwnames[] = {
40046 (char *) "self",(char *) "window", NULL
40047 };
40048
40049 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
40050 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40051 if (!SWIG_IsOK(res1)) {
40052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40053 }
40054 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40055 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40056 if (!SWIG_IsOK(res2)) {
40057 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
40058 }
40059 arg2 = reinterpret_cast< wxWindow * >(argp2);
40060 {
40061 PyThreadState* __tstate = wxPyBeginAllowThreads();
40062 (arg1)->RemoveHelp(arg2);
40063 wxPyEndAllowThreads(__tstate);
40064 if (PyErr_Occurred()) SWIG_fail;
40065 }
40066 resultobj = SWIG_Py_Void();
40067 return resultobj;
40068fail:
40069 return NULL;
d55e5bfc
RD
40070}
40071
40072
1bd55598
RD
40073SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40074 PyObject *resultobj = 0;
40075 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
40076 void *argp1 = 0 ;
40077 int res1 = 0 ;
40078 PyObject *swig_obj[1] ;
40079
40080 if (!args) SWIG_fail;
40081 swig_obj[0] = args;
40082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
40083 if (!SWIG_IsOK(res1)) {
40084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
40085 }
40086 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
40087 {
40088 PyThreadState* __tstate = wxPyBeginAllowThreads();
40089 wxHelpProvider_Destroy(arg1);
40090 wxPyEndAllowThreads(__tstate);
40091 if (PyErr_Occurred()) SWIG_fail;
40092 }
40093 resultobj = SWIG_Py_Void();
40094 return resultobj;
40095fail:
40096 return NULL;
d55e5bfc
RD
40097}
40098
40099
1bd55598
RD
40100SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40101 PyObject *obj;
40102 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40103 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
40104 return SWIG_Py_Void();
d55e5bfc
RD
40105}
40106
1bd55598
RD
40107SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40108 PyObject *resultobj = 0;
40109 wxSimpleHelpProvider *result = 0 ;
40110
40111 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
40112 {
40113 PyThreadState* __tstate = wxPyBeginAllowThreads();
40114 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
40115 wxPyEndAllowThreads(__tstate);
40116 if (PyErr_Occurred()) SWIG_fail;
40117 }
40118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
40119 return resultobj;
40120fail:
40121 return NULL;
40122}
40123
40124
40125SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40126 PyObject *obj;
40127 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40128 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
40129 return SWIG_Py_Void();
40130}
40131
40132SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40133 return SWIG_Python_InitShadowInstance(args);
40134}
40135
40136SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40137 PyObject *resultobj = 0;
40138 wxBitmap *arg1 = 0 ;
40139 wxCursor const &arg2_defvalue = wxNullCursor ;
40140 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40141 wxGenericDragImage *result = 0 ;
40142 void *argp1 = 0 ;
40143 int res1 = 0 ;
40144 void *argp2 = 0 ;
40145 int res2 = 0 ;
40146 PyObject * obj0 = 0 ;
40147 PyObject * obj1 = 0 ;
40148 char * kwnames[] = {
40149 (char *) "image",(char *) "cursor", NULL
40150 };
40151
40152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
40153 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
40154 if (!SWIG_IsOK(res1)) {
40155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40156 }
40157 if (!argp1) {
40158 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
40159 }
40160 arg1 = reinterpret_cast< wxBitmap * >(argp1);
40161 if (obj1) {
40162 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40163 if (!SWIG_IsOK(res2)) {
40164 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40165 }
1bd55598
RD
40166 if (!argp2) {
40167 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40168 }
1bd55598
RD
40169 arg2 = reinterpret_cast< wxCursor * >(argp2);
40170 }
40171 {
40172 if (!wxPyCheckForApp()) SWIG_fail;
40173 PyThreadState* __tstate = wxPyBeginAllowThreads();
40174 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
40175 wxPyEndAllowThreads(__tstate);
40176 if (PyErr_Occurred()) SWIG_fail;
40177 }
40178 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
40179 return resultobj;
40180fail:
40181 return NULL;
40182}
40183
40184
40185SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40186 PyObject *resultobj = 0;
40187 wxIcon *arg1 = 0 ;
40188 wxCursor const &arg2_defvalue = wxNullCursor ;
40189 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40190 wxGenericDragImage *result = 0 ;
40191 void *argp1 = 0 ;
40192 int res1 = 0 ;
40193 void *argp2 = 0 ;
40194 int res2 = 0 ;
40195 PyObject * obj0 = 0 ;
40196 PyObject * obj1 = 0 ;
40197 char * kwnames[] = {
40198 (char *) "image",(char *) "cursor", NULL
40199 };
40200
40201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
40202 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
40203 if (!SWIG_IsOK(res1)) {
40204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40205 }
40206 if (!argp1) {
40207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
40208 }
40209 arg1 = reinterpret_cast< wxIcon * >(argp1);
40210 if (obj1) {
40211 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40212 if (!SWIG_IsOK(res2)) {
40213 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40214 }
1bd55598
RD
40215 if (!argp2) {
40216 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40217 }
1bd55598
RD
40218 arg2 = reinterpret_cast< wxCursor * >(argp2);
40219 }
40220 {
40221 if (!wxPyCheckForApp()) SWIG_fail;
40222 PyThreadState* __tstate = wxPyBeginAllowThreads();
40223 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
40224 wxPyEndAllowThreads(__tstate);
40225 if (PyErr_Occurred()) SWIG_fail;
40226 }
40227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40228 return resultobj;
40229fail:
40230 return NULL;
40231}
40232
40233
40234SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40235 PyObject *resultobj = 0;
40236 wxString *arg1 = 0 ;
40237 wxCursor const &arg2_defvalue = wxNullCursor ;
40238 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
40239 wxGenericDragImage *result = 0 ;
40240 bool temp1 = false ;
40241 void *argp2 = 0 ;
40242 int res2 = 0 ;
40243 PyObject * obj0 = 0 ;
40244 PyObject * obj1 = 0 ;
40245 char * kwnames[] = {
40246 (char *) "str",(char *) "cursor", NULL
40247 };
40248
40249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
40250 {
40251 arg1 = wxString_in_helper(obj0);
40252 if (arg1 == NULL) SWIG_fail;
40253 temp1 = true;
40254 }
40255 if (obj1) {
40256 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
40257 if (!SWIG_IsOK(res2)) {
40258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
36ed4f51 40259 }
1bd55598
RD
40260 if (!argp2) {
40261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
d55e5bfc 40262 }
1bd55598
RD
40263 arg2 = reinterpret_cast< wxCursor * >(argp2);
40264 }
40265 {
40266 if (!wxPyCheckForApp()) SWIG_fail;
40267 PyThreadState* __tstate = wxPyBeginAllowThreads();
40268 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
40269 wxPyEndAllowThreads(__tstate);
40270 if (PyErr_Occurred()) SWIG_fail;
40271 }
40272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40273 {
40274 if (temp1)
40275 delete arg1;
40276 }
40277 return resultobj;
40278fail:
40279 {
40280 if (temp1)
40281 delete arg1;
40282 }
40283 return NULL;
40284}
40285
40286
40287SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40288 PyObject *resultobj = 0;
40289 wxPyTreeCtrl *arg1 = 0 ;
40290 wxTreeItemId *arg2 = 0 ;
40291 wxGenericDragImage *result = 0 ;
40292 void *argp1 = 0 ;
40293 int res1 = 0 ;
40294 void *argp2 = 0 ;
40295 int res2 = 0 ;
40296 PyObject * obj0 = 0 ;
40297 PyObject * obj1 = 0 ;
40298 char * kwnames[] = {
40299 (char *) "treeCtrl",(char *) "id", NULL
40300 };
40301
40302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
40303 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
40304 if (!SWIG_IsOK(res1)) {
40305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40306 }
40307 if (!argp1) {
40308 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
40309 }
40310 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
40311 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
40312 if (!SWIG_IsOK(res2)) {
40313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40314 }
40315 if (!argp2) {
40316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
40317 }
40318 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
40319 {
40320 if (!wxPyCheckForApp()) SWIG_fail;
40321 PyThreadState* __tstate = wxPyBeginAllowThreads();
40322 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
40323 wxPyEndAllowThreads(__tstate);
40324 if (PyErr_Occurred()) SWIG_fail;
40325 }
40326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40327 return resultobj;
40328fail:
40329 return NULL;
40330}
40331
40332
40333SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40334 PyObject *resultobj = 0;
40335 wxPyListCtrl *arg1 = 0 ;
40336 long arg2 ;
40337 wxGenericDragImage *result = 0 ;
40338 void *argp1 = 0 ;
40339 int res1 = 0 ;
40340 long val2 ;
40341 int ecode2 = 0 ;
40342 PyObject * obj0 = 0 ;
40343 PyObject * obj1 = 0 ;
40344 char * kwnames[] = {
40345 (char *) "listCtrl",(char *) "id", NULL
40346 };
40347
40348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
40349 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
40350 if (!SWIG_IsOK(res1)) {
40351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40352 }
40353 if (!argp1) {
40354 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
40355 }
40356 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
40357 ecode2 = SWIG_AsVal_long(obj1, &val2);
40358 if (!SWIG_IsOK(ecode2)) {
40359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
40360 }
40361 arg2 = static_cast< long >(val2);
40362 {
40363 if (!wxPyCheckForApp()) SWIG_fail;
40364 PyThreadState* __tstate = wxPyBeginAllowThreads();
40365 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
40366 wxPyEndAllowThreads(__tstate);
40367 if (PyErr_Occurred()) SWIG_fail;
40368 }
40369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
40370 return resultobj;
40371fail:
40372 return NULL;
d55e5bfc
RD
40373}
40374
40375
1bd55598
RD
40376SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40377 PyObject *resultobj = 0;
40378 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40379 void *argp1 = 0 ;
40380 int res1 = 0 ;
40381 PyObject *swig_obj[1] ;
40382
40383 if (!args) SWIG_fail;
40384 swig_obj[0] = args;
40385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
40386 if (!SWIG_IsOK(res1)) {
40387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40388 }
40389 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40390 {
40391 PyThreadState* __tstate = wxPyBeginAllowThreads();
40392 delete arg1;
d55e5bfc 40393
1bd55598
RD
40394 wxPyEndAllowThreads(__tstate);
40395 if (PyErr_Occurred()) SWIG_fail;
40396 }
40397 resultobj = SWIG_Py_Void();
40398 return resultobj;
40399fail:
40400 return NULL;
40401}
40402
40403
40404SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40405 PyObject *resultobj = 0;
40406 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40407 wxBitmap *arg2 = (wxBitmap *) 0 ;
40408 void *argp1 = 0 ;
40409 int res1 = 0 ;
40410 void *argp2 = 0 ;
40411 int res2 = 0 ;
40412 PyObject * obj0 = 0 ;
40413 PyObject * obj1 = 0 ;
40414 char * kwnames[] = {
40415 (char *) "self",(char *) "bitmap", NULL
40416 };
40417
40418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40420 if (!SWIG_IsOK(res1)) {
40421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40422 }
40423 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40424 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40425 if (!SWIG_IsOK(res2)) {
40426 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40427 }
40428 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40429 {
40430 PyThreadState* __tstate = wxPyBeginAllowThreads();
40431 (arg1)->SetBackingBitmap(arg2);
40432 wxPyEndAllowThreads(__tstate);
40433 if (PyErr_Occurred()) SWIG_fail;
40434 }
40435 resultobj = SWIG_Py_Void();
40436 return resultobj;
40437fail:
40438 return NULL;
40439}
40440
40441
40442SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40443 PyObject *resultobj = 0;
40444 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40445 wxPoint *arg2 = 0 ;
40446 wxWindow *arg3 = (wxWindow *) 0 ;
40447 bool arg4 = (bool) false ;
40448 wxRect *arg5 = (wxRect *) NULL ;
40449 bool result;
40450 void *argp1 = 0 ;
40451 int res1 = 0 ;
40452 wxPoint temp2 ;
40453 void *argp3 = 0 ;
40454 int res3 = 0 ;
40455 bool val4 ;
40456 int ecode4 = 0 ;
40457 void *argp5 = 0 ;
40458 int res5 = 0 ;
40459 PyObject * obj0 = 0 ;
40460 PyObject * obj1 = 0 ;
40461 PyObject * obj2 = 0 ;
40462 PyObject * obj3 = 0 ;
40463 PyObject * obj4 = 0 ;
40464 char * kwnames[] = {
40465 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40466 };
40467
40468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40470 if (!SWIG_IsOK(res1)) {
40471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40472 }
40473 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40474 {
40475 arg2 = &temp2;
40476 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40477 }
40478 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40479 if (!SWIG_IsOK(res3)) {
40480 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40481 }
40482 arg3 = reinterpret_cast< wxWindow * >(argp3);
40483 if (obj3) {
40484 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40485 if (!SWIG_IsOK(ecode4)) {
40486 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40487 }
40488 arg4 = static_cast< bool >(val4);
40489 }
40490 if (obj4) {
40491 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40492 if (!SWIG_IsOK(res5)) {
40493 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
d55e5bfc 40494 }
1bd55598
RD
40495 arg5 = reinterpret_cast< wxRect * >(argp5);
40496 }
40497 {
40498 PyThreadState* __tstate = wxPyBeginAllowThreads();
40499 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40500 wxPyEndAllowThreads(__tstate);
40501 if (PyErr_Occurred()) SWIG_fail;
40502 }
40503 {
40504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40505 }
40506 return resultobj;
40507fail:
40508 return NULL;
40509}
40510
40511
40512SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40513 PyObject *resultobj = 0;
40514 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40515 wxPoint *arg2 = 0 ;
40516 wxWindow *arg3 = (wxWindow *) 0 ;
40517 wxWindow *arg4 = (wxWindow *) 0 ;
40518 bool result;
40519 void *argp1 = 0 ;
40520 int res1 = 0 ;
40521 wxPoint temp2 ;
40522 void *argp3 = 0 ;
40523 int res3 = 0 ;
40524 void *argp4 = 0 ;
40525 int res4 = 0 ;
40526 PyObject * obj0 = 0 ;
40527 PyObject * obj1 = 0 ;
40528 PyObject * obj2 = 0 ;
40529 PyObject * obj3 = 0 ;
40530 char * kwnames[] = {
40531 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40532 };
40533
40534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40536 if (!SWIG_IsOK(res1)) {
40537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40538 }
40539 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40540 {
40541 arg2 = &temp2;
40542 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40543 }
40544 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40545 if (!SWIG_IsOK(res3)) {
40546 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40547 }
40548 arg3 = reinterpret_cast< wxWindow * >(argp3);
40549 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40550 if (!SWIG_IsOK(res4)) {
40551 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40552 }
40553 arg4 = reinterpret_cast< wxWindow * >(argp4);
40554 {
40555 PyThreadState* __tstate = wxPyBeginAllowThreads();
40556 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40557 wxPyEndAllowThreads(__tstate);
40558 if (PyErr_Occurred()) SWIG_fail;
40559 }
40560 {
40561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40562 }
40563 return resultobj;
40564fail:
40565 return NULL;
d55e5bfc
RD
40566}
40567
40568
1bd55598
RD
40569SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40570 PyObject *resultobj = 0;
40571 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40572 bool result;
40573 void *argp1 = 0 ;
40574 int res1 = 0 ;
40575 PyObject *swig_obj[1] ;
40576
40577 if (!args) SWIG_fail;
40578 swig_obj[0] = args;
40579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40580 if (!SWIG_IsOK(res1)) {
40581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40582 }
40583 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40584 {
40585 PyThreadState* __tstate = wxPyBeginAllowThreads();
40586 result = (bool)(arg1)->EndDrag();
40587 wxPyEndAllowThreads(__tstate);
40588 if (PyErr_Occurred()) SWIG_fail;
40589 }
40590 {
40591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40592 }
40593 return resultobj;
40594fail:
40595 return NULL;
40596}
40597
40598
40599SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40600 PyObject *resultobj = 0;
40601 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40602 wxPoint *arg2 = 0 ;
40603 bool result;
40604 void *argp1 = 0 ;
40605 int res1 = 0 ;
40606 wxPoint temp2 ;
40607 PyObject * obj0 = 0 ;
40608 PyObject * obj1 = 0 ;
40609 char * kwnames[] = {
40610 (char *) "self",(char *) "pt", NULL
40611 };
40612
40613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40615 if (!SWIG_IsOK(res1)) {
40616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40617 }
40618 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40619 {
40620 arg2 = &temp2;
40621 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40622 }
40623 {
40624 PyThreadState* __tstate = wxPyBeginAllowThreads();
40625 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40626 wxPyEndAllowThreads(__tstate);
40627 if (PyErr_Occurred()) SWIG_fail;
40628 }
40629 {
40630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40631 }
40632 return resultobj;
40633fail:
40634 return NULL;
d55e5bfc
RD
40635}
40636
40637
1bd55598
RD
40638SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40639 PyObject *resultobj = 0;
40640 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40641 bool result;
40642 void *argp1 = 0 ;
40643 int res1 = 0 ;
40644 PyObject *swig_obj[1] ;
40645
40646 if (!args) SWIG_fail;
40647 swig_obj[0] = args;
40648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40649 if (!SWIG_IsOK(res1)) {
40650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40651 }
40652 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40653 {
40654 PyThreadState* __tstate = wxPyBeginAllowThreads();
40655 result = (bool)(arg1)->Show();
40656 wxPyEndAllowThreads(__tstate);
40657 if (PyErr_Occurred()) SWIG_fail;
40658 }
40659 {
40660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40661 }
40662 return resultobj;
40663fail:
40664 return NULL;
d55e5bfc
RD
40665}
40666
40667
1bd55598
RD
40668SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40669 PyObject *resultobj = 0;
40670 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40671 bool result;
40672 void *argp1 = 0 ;
40673 int res1 = 0 ;
40674 PyObject *swig_obj[1] ;
40675
40676 if (!args) SWIG_fail;
40677 swig_obj[0] = args;
40678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40679 if (!SWIG_IsOK(res1)) {
40680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40681 }
40682 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40683 {
40684 PyThreadState* __tstate = wxPyBeginAllowThreads();
40685 result = (bool)(arg1)->Hide();
40686 wxPyEndAllowThreads(__tstate);
40687 if (PyErr_Occurred()) SWIG_fail;
40688 }
40689 {
40690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40691 }
40692 return resultobj;
40693fail:
40694 return NULL;
40695}
40696
40697
40698SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40699 PyObject *resultobj = 0;
40700 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40701 wxPoint *arg2 = 0 ;
40702 wxRect result;
40703 void *argp1 = 0 ;
40704 int res1 = 0 ;
40705 wxPoint temp2 ;
40706 PyObject * obj0 = 0 ;
40707 PyObject * obj1 = 0 ;
40708 char * kwnames[] = {
40709 (char *) "self",(char *) "pos", NULL
40710 };
40711
40712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40714 if (!SWIG_IsOK(res1)) {
40715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40716 }
40717 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40718 {
40719 arg2 = &temp2;
40720 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40721 }
40722 {
40723 PyThreadState* __tstate = wxPyBeginAllowThreads();
40724 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40725 wxPyEndAllowThreads(__tstate);
40726 if (PyErr_Occurred()) SWIG_fail;
40727 }
40728 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40729 return resultobj;
40730fail:
40731 return NULL;
40732}
40733
40734
40735SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40736 PyObject *resultobj = 0;
40737 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40738 wxDC *arg2 = 0 ;
40739 wxPoint *arg3 = 0 ;
40740 bool result;
40741 void *argp1 = 0 ;
40742 int res1 = 0 ;
40743 void *argp2 = 0 ;
40744 int res2 = 0 ;
40745 wxPoint temp3 ;
40746 PyObject * obj0 = 0 ;
40747 PyObject * obj1 = 0 ;
40748 PyObject * obj2 = 0 ;
40749 char * kwnames[] = {
40750 (char *) "self",(char *) "dc",(char *) "pos", NULL
40751 };
40752
40753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40755 if (!SWIG_IsOK(res1)) {
40756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40757 }
40758 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40759 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40760 if (!SWIG_IsOK(res2)) {
40761 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40762 }
40763 if (!argp2) {
40764 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40765 }
40766 arg2 = reinterpret_cast< wxDC * >(argp2);
40767 {
40768 arg3 = &temp3;
40769 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40770 }
40771 {
40772 PyThreadState* __tstate = wxPyBeginAllowThreads();
40773 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40774 wxPyEndAllowThreads(__tstate);
40775 if (PyErr_Occurred()) SWIG_fail;
40776 }
40777 {
40778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40779 }
40780 return resultobj;
40781fail:
40782 return NULL;
40783}
40784
40785
40786SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40787 PyObject *resultobj = 0;
40788 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40789 wxDC *arg2 = 0 ;
40790 wxMemoryDC *arg3 = 0 ;
40791 wxRect *arg4 = 0 ;
40792 wxRect *arg5 = 0 ;
40793 bool result;
40794 void *argp1 = 0 ;
40795 int res1 = 0 ;
40796 void *argp2 = 0 ;
40797 int res2 = 0 ;
40798 void *argp3 = 0 ;
40799 int res3 = 0 ;
40800 wxRect temp4 ;
40801 wxRect temp5 ;
40802 PyObject * obj0 = 0 ;
40803 PyObject * obj1 = 0 ;
40804 PyObject * obj2 = 0 ;
40805 PyObject * obj3 = 0 ;
40806 PyObject * obj4 = 0 ;
40807 char * kwnames[] = {
40808 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40809 };
40810
40811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40813 if (!SWIG_IsOK(res1)) {
40814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40815 }
40816 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40817 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40818 if (!SWIG_IsOK(res2)) {
40819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40820 }
40821 if (!argp2) {
40822 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40823 }
40824 arg2 = reinterpret_cast< wxDC * >(argp2);
40825 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40826 if (!SWIG_IsOK(res3)) {
40827 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40828 }
40829 if (!argp3) {
40830 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40831 }
40832 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40833 {
40834 arg4 = &temp4;
40835 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40836 }
40837 {
40838 arg5 = &temp5;
40839 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40840 }
40841 {
40842 PyThreadState* __tstate = wxPyBeginAllowThreads();
40843 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
40844 wxPyEndAllowThreads(__tstate);
40845 if (PyErr_Occurred()) SWIG_fail;
40846 }
40847 {
40848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40849 }
40850 return resultobj;
40851fail:
40852 return NULL;
40853}
40854
40855
40856SWIGINTERN PyObject *_wrap_DragImage_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40857 PyObject *resultobj = 0;
40858 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40859 wxPoint *arg2 = 0 ;
40860 wxPoint *arg3 = 0 ;
40861 bool arg4 ;
40862 bool arg5 ;
40863 bool result;
40864 void *argp1 = 0 ;
40865 int res1 = 0 ;
40866 wxPoint temp2 ;
40867 wxPoint temp3 ;
40868 bool val4 ;
40869 int ecode4 = 0 ;
40870 bool val5 ;
40871 int ecode5 = 0 ;
40872 PyObject * obj0 = 0 ;
40873 PyObject * obj1 = 0 ;
40874 PyObject * obj2 = 0 ;
40875 PyObject * obj3 = 0 ;
40876 PyObject * obj4 = 0 ;
40877 char * kwnames[] = {
40878 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40879 };
40880
40881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40883 if (!SWIG_IsOK(res1)) {
40884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40885 }
40886 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40887 {
40888 arg2 = &temp2;
40889 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40890 }
40891 {
40892 arg3 = &temp3;
40893 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40894 }
40895 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40896 if (!SWIG_IsOK(ecode4)) {
40897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40898 }
40899 arg4 = static_cast< bool >(val4);
40900 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40901 if (!SWIG_IsOK(ecode5)) {
40902 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40903 }
40904 arg5 = static_cast< bool >(val5);
40905 {
40906 PyThreadState* __tstate = wxPyBeginAllowThreads();
40907 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40908 wxPyEndAllowThreads(__tstate);
40909 if (PyErr_Occurred()) SWIG_fail;
40910 }
40911 {
40912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40913 }
40914 return resultobj;
40915fail:
40916 return NULL;
d55e5bfc
RD
40917}
40918
40919
1bd55598
RD
40920SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40921 PyObject *obj;
40922 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40923 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40924 return SWIG_Py_Void();
d55e5bfc
RD
40925}
40926
1bd55598
RD
40927SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40928 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
40929}
40930
1bd55598
RD
40931SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40932 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40933 return 1;
d55e5bfc
RD
40934}
40935
40936
1bd55598
RD
40937SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40938 PyObject *pyobj = 0;
40939
40940 {
40941#if wxUSE_UNICODE
40942 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40943#else
40944 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40945#endif
40946 }
40947 return pyobj;
40948}
40949
40950
40951SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40952 PyObject *resultobj = 0;
40953 wxWindow *arg1 = (wxWindow *) 0 ;
40954 int arg2 = (int) -1 ;
40955 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40956 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40957 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40958 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40959 wxSize const &arg5_defvalue = wxDefaultSize ;
40960 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40961 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40962 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40963 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40964 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40965 wxString *arg8 = (wxString *) &arg8_defvalue ;
40966 wxDatePickerCtrl *result = 0 ;
40967 void *argp1 = 0 ;
40968 int res1 = 0 ;
40969 int val2 ;
40970 int ecode2 = 0 ;
40971 void *argp3 = 0 ;
40972 int res3 = 0 ;
40973 wxPoint temp4 ;
40974 wxSize temp5 ;
40975 long val6 ;
40976 int ecode6 = 0 ;
40977 void *argp7 = 0 ;
40978 int res7 = 0 ;
40979 bool temp8 = false ;
40980 PyObject * obj0 = 0 ;
40981 PyObject * obj1 = 0 ;
40982 PyObject * obj2 = 0 ;
40983 PyObject * obj3 = 0 ;
40984 PyObject * obj4 = 0 ;
40985 PyObject * obj5 = 0 ;
40986 PyObject * obj6 = 0 ;
40987 PyObject * obj7 = 0 ;
40988 char * kwnames[] = {
40989 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40990 };
40991
40992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40994 if (!SWIG_IsOK(res1)) {
40995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40996 }
40997 arg1 = reinterpret_cast< wxWindow * >(argp1);
40998 if (obj1) {
40999 ecode2 = SWIG_AsVal_int(obj1, &val2);
41000 if (!SWIG_IsOK(ecode2)) {
41001 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
41002 }
41003 arg2 = static_cast< int >(val2);
41004 }
41005 if (obj2) {
41006 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41007 if (!SWIG_IsOK(res3)) {
41008 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41009 }
1bd55598
RD
41010 if (!argp3) {
41011 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
d55e5bfc 41012 }
1bd55598
RD
41013 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41014 }
41015 if (obj3) {
36ed4f51 41016 {
1bd55598
RD
41017 arg4 = &temp4;
41018 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36ed4f51 41019 }
1bd55598
RD
41020 }
41021 if (obj4) {
d55e5bfc 41022 {
1bd55598
RD
41023 arg5 = &temp5;
41024 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 41025 }
1bd55598
RD
41026 }
41027 if (obj5) {
41028 ecode6 = SWIG_AsVal_long(obj5, &val6);
41029 if (!SWIG_IsOK(ecode6)) {
41030 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
41031 }
41032 arg6 = static_cast< long >(val6);
41033 }
41034 if (obj6) {
41035 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
41036 if (!SWIG_IsOK(res7)) {
41037 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
36ed4f51 41038 }
1bd55598
RD
41039 if (!argp7) {
41040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
d55e5bfc 41041 }
1bd55598
RD
41042 arg7 = reinterpret_cast< wxValidator * >(argp7);
41043 }
41044 if (obj7) {
36ed4f51 41045 {
1bd55598
RD
41046 arg8 = wxString_in_helper(obj7);
41047 if (arg8 == NULL) SWIG_fail;
41048 temp8 = true;
36ed4f51 41049 }
1bd55598
RD
41050 }
41051 {
41052 if (!wxPyCheckForApp()) SWIG_fail;
41053 PyThreadState* __tstate = wxPyBeginAllowThreads();
41054 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
41055 wxPyEndAllowThreads(__tstate);
41056 if (PyErr_Occurred()) SWIG_fail;
41057 }
41058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
41059 {
41060 if (temp8)
41061 delete arg8;
41062 }
41063 return resultobj;
41064fail:
41065 {
41066 if (temp8)
41067 delete arg8;
41068 }
41069 return NULL;
d55e5bfc
RD
41070}
41071
41072
1bd55598
RD
41073SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41074 PyObject *resultobj = 0;
41075 wxDatePickerCtrl *result = 0 ;
41076
41077 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
41078 {
41079 if (!wxPyCheckForApp()) SWIG_fail;
41080 PyThreadState* __tstate = wxPyBeginAllowThreads();
41081 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
41082 wxPyEndAllowThreads(__tstate);
41083 if (PyErr_Occurred()) SWIG_fail;
41084 }
41085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
41086 return resultobj;
41087fail:
41088 return NULL;
41089}
41090
41091
41092SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41093 PyObject *resultobj = 0;
41094 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41095 wxWindow *arg2 = (wxWindow *) 0 ;
41096 int arg3 = (int) -1 ;
41097 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
41098 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
41099 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41100 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41101 wxSize const &arg6_defvalue = wxDefaultSize ;
41102 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41103 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
41104 wxValidator const &arg8_defvalue = wxDefaultValidator ;
41105 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
41106 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
41107 wxString *arg9 = (wxString *) &arg9_defvalue ;
41108 bool result;
41109 void *argp1 = 0 ;
41110 int res1 = 0 ;
41111 void *argp2 = 0 ;
41112 int res2 = 0 ;
41113 int val3 ;
41114 int ecode3 = 0 ;
41115 void *argp4 = 0 ;
41116 int res4 = 0 ;
41117 wxPoint temp5 ;
41118 wxSize temp6 ;
41119 long val7 ;
41120 int ecode7 = 0 ;
41121 void *argp8 = 0 ;
41122 int res8 = 0 ;
41123 bool temp9 = false ;
41124 PyObject * obj0 = 0 ;
41125 PyObject * obj1 = 0 ;
41126 PyObject * obj2 = 0 ;
41127 PyObject * obj3 = 0 ;
41128 PyObject * obj4 = 0 ;
41129 PyObject * obj5 = 0 ;
41130 PyObject * obj6 = 0 ;
41131 PyObject * obj7 = 0 ;
41132 PyObject * obj8 = 0 ;
41133 char * kwnames[] = {
41134 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
41135 };
41136
41137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41139 if (!SWIG_IsOK(res1)) {
41140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41141 }
41142 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41143 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41144 if (!SWIG_IsOK(res2)) {
41145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41146 }
41147 arg2 = reinterpret_cast< wxWindow * >(argp2);
41148 if (obj2) {
41149 ecode3 = SWIG_AsVal_int(obj2, &val3);
41150 if (!SWIG_IsOK(ecode3)) {
41151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41152 }
41153 arg3 = static_cast< int >(val3);
41154 }
41155 if (obj3) {
41156 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
41157 if (!SWIG_IsOK(res4)) {
41158 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
36ed4f51 41159 }
1bd55598
RD
41160 if (!argp4) {
41161 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
d55e5bfc 41162 }
1bd55598
RD
41163 arg4 = reinterpret_cast< wxDateTime * >(argp4);
41164 }
41165 if (obj4) {
d55e5bfc 41166 {
1bd55598
RD
41167 arg5 = &temp5;
41168 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
d55e5bfc 41169 }
1bd55598
RD
41170 }
41171 if (obj5) {
d55e5bfc 41172 {
1bd55598
RD
41173 arg6 = &temp6;
41174 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
d55e5bfc 41175 }
1bd55598
RD
41176 }
41177 if (obj6) {
41178 ecode7 = SWIG_AsVal_long(obj6, &val7);
41179 if (!SWIG_IsOK(ecode7)) {
41180 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
41181 }
41182 arg7 = static_cast< long >(val7);
41183 }
41184 if (obj7) {
41185 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
41186 if (!SWIG_IsOK(res8)) {
41187 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
36ed4f51 41188 }
1bd55598
RD
41189 if (!argp8) {
41190 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
d55e5bfc 41191 }
1bd55598
RD
41192 arg8 = reinterpret_cast< wxValidator * >(argp8);
41193 }
41194 if (obj8) {
36ed4f51 41195 {
1bd55598
RD
41196 arg9 = wxString_in_helper(obj8);
41197 if (arg9 == NULL) SWIG_fail;
41198 temp9 = true;
36ed4f51 41199 }
1bd55598
RD
41200 }
41201 {
41202 PyThreadState* __tstate = wxPyBeginAllowThreads();
41203 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
41204 wxPyEndAllowThreads(__tstate);
41205 if (PyErr_Occurred()) SWIG_fail;
41206 }
41207 {
41208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41209 }
41210 {
41211 if (temp9)
41212 delete arg9;
41213 }
41214 return resultobj;
41215fail:
41216 {
41217 if (temp9)
41218 delete arg9;
41219 }
41220 return NULL;
41221}
41222
41223
41224SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41225 PyObject *resultobj = 0;
41226 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41227 wxDateTime *arg2 = 0 ;
41228 void *argp1 = 0 ;
41229 int res1 = 0 ;
41230 void *argp2 = 0 ;
41231 int res2 = 0 ;
41232 PyObject * obj0 = 0 ;
41233 PyObject * obj1 = 0 ;
41234 char * kwnames[] = {
41235 (char *) "self",(char *) "dt", NULL
41236 };
41237
41238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
41239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41240 if (!SWIG_IsOK(res1)) {
41241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41242 }
41243 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41244 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41245 if (!SWIG_IsOK(res2)) {
41246 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41247 }
41248 if (!argp2) {
41249 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41250 }
41251 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41252 {
41253 PyThreadState* __tstate = wxPyBeginAllowThreads();
41254 (arg1)->SetValue((wxDateTime const &)*arg2);
41255 wxPyEndAllowThreads(__tstate);
41256 if (PyErr_Occurred()) SWIG_fail;
41257 }
41258 resultobj = SWIG_Py_Void();
41259 return resultobj;
41260fail:
41261 return NULL;
d55e5bfc
RD
41262}
41263
41264
1bd55598
RD
41265SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41266 PyObject *resultobj = 0;
41267 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41268 wxDateTime result;
41269 void *argp1 = 0 ;
41270 int res1 = 0 ;
41271 PyObject *swig_obj[1] ;
41272
41273 if (!args) SWIG_fail;
41274 swig_obj[0] = args;
41275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41276 if (!SWIG_IsOK(res1)) {
41277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
41278 }
41279 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41280 {
41281 PyThreadState* __tstate = wxPyBeginAllowThreads();
41282 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
41283 wxPyEndAllowThreads(__tstate);
41284 if (PyErr_Occurred()) SWIG_fail;
41285 }
41286 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41287 return resultobj;
41288fail:
41289 return NULL;
41290}
41291
41292
41293SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41294 PyObject *resultobj = 0;
41295 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41296 wxDateTime *arg2 = 0 ;
41297 wxDateTime *arg3 = 0 ;
41298 void *argp1 = 0 ;
41299 int res1 = 0 ;
41300 void *argp2 = 0 ;
41301 int res2 = 0 ;
41302 void *argp3 = 0 ;
41303 int res3 = 0 ;
41304 PyObject * obj0 = 0 ;
41305 PyObject * obj1 = 0 ;
41306 PyObject * obj2 = 0 ;
41307 char * kwnames[] = {
41308 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
41309 };
41310
41311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41313 if (!SWIG_IsOK(res1)) {
41314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41315 }
41316 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41317 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
41318 if (!SWIG_IsOK(res2)) {
41319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41320 }
41321 if (!argp2) {
41322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
41323 }
41324 arg2 = reinterpret_cast< wxDateTime * >(argp2);
41325 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
41326 if (!SWIG_IsOK(res3)) {
41327 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41328 }
41329 if (!argp3) {
41330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
41331 }
41332 arg3 = reinterpret_cast< wxDateTime * >(argp3);
41333 {
41334 PyThreadState* __tstate = wxPyBeginAllowThreads();
41335 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
41336 wxPyEndAllowThreads(__tstate);
41337 if (PyErr_Occurred()) SWIG_fail;
41338 }
41339 resultobj = SWIG_Py_Void();
41340 return resultobj;
41341fail:
41342 return NULL;
d55e5bfc
RD
41343}
41344
41345
1bd55598
RD
41346SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41347 PyObject *resultobj = 0;
41348 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41349 wxDateTime result;
41350 void *argp1 = 0 ;
41351 int res1 = 0 ;
41352 PyObject *swig_obj[1] ;
41353
41354 if (!args) SWIG_fail;
41355 swig_obj[0] = args;
41356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41357 if (!SWIG_IsOK(res1)) {
41358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41359 }
41360 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41361 {
41362 PyThreadState* __tstate = wxPyBeginAllowThreads();
41363 result = wxDatePickerCtrl_GetLowerLimit(arg1);
41364 wxPyEndAllowThreads(__tstate);
41365 if (PyErr_Occurred()) SWIG_fail;
41366 }
41367 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41368 return resultobj;
41369fail:
41370 return NULL;
d55e5bfc
RD
41371}
41372
41373
1bd55598
RD
41374SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41375 PyObject *resultobj = 0;
41376 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
41377 wxDateTime result;
41378 void *argp1 = 0 ;
41379 int res1 = 0 ;
41380 PyObject *swig_obj[1] ;
41381
41382 if (!args) SWIG_fail;
41383 swig_obj[0] = args;
41384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
41385 if (!SWIG_IsOK(res1)) {
41386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41387 }
41388 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41389 {
41390 PyThreadState* __tstate = wxPyBeginAllowThreads();
41391 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41392 wxPyEndAllowThreads(__tstate);
41393 if (PyErr_Occurred()) SWIG_fail;
41394 }
41395 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41396 return resultobj;
41397fail:
41398 return NULL;
d55e5bfc
RD
41399}
41400
41401
1bd55598
RD
41402SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41403 PyObject *obj;
41404 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41405 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41406 return SWIG_Py_Void();
d55e5bfc
RD
41407}
41408
1bd55598
RD
41409SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41410 return SWIG_Python_InitShadowInstance(args);
d55e5bfc
RD
41411}
41412
704eda0c
RD
41413SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41414 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41415 return 1;
41416}
41417
41418
41419SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41420 PyObject *pyobj = 0;
41421
41422 {
41423#if wxUSE_UNICODE
41424 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41425#else
41426 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41427#endif
41428 }
41429 return pyobj;
41430}
41431
41432
41433SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41434 PyObject *resultobj = 0;
41435 wxWindow *arg1 = (wxWindow *) 0 ;
41436 int arg2 ;
41437 wxString *arg3 = 0 ;
41438 wxString *arg4 = 0 ;
41439 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41440 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41441 wxSize const &arg6_defvalue = wxDefaultSize ;
41442 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41443 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41444 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41445 wxString *arg8 = (wxString *) &arg8_defvalue ;
41446 wxHyperlinkCtrl *result = 0 ;
41447 void *argp1 = 0 ;
41448 int res1 = 0 ;
41449 int val2 ;
41450 int ecode2 = 0 ;
41451 bool temp3 = false ;
41452 bool temp4 = false ;
41453 wxPoint temp5 ;
41454 wxSize temp6 ;
41455 long val7 ;
41456 int ecode7 = 0 ;
41457 bool temp8 = false ;
41458 PyObject * obj0 = 0 ;
41459 PyObject * obj1 = 0 ;
41460 PyObject * obj2 = 0 ;
41461 PyObject * obj3 = 0 ;
41462 PyObject * obj4 = 0 ;
41463 PyObject * obj5 = 0 ;
41464 PyObject * obj6 = 0 ;
41465 PyObject * obj7 = 0 ;
41466 char * kwnames[] = {
41467 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41468 };
41469
41470 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41472 if (!SWIG_IsOK(res1)) {
41473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41474 }
41475 arg1 = reinterpret_cast< wxWindow * >(argp1);
41476 ecode2 = SWIG_AsVal_int(obj1, &val2);
41477 if (!SWIG_IsOK(ecode2)) {
41478 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41479 }
41480 arg2 = static_cast< int >(val2);
41481 {
41482 arg3 = wxString_in_helper(obj2);
41483 if (arg3 == NULL) SWIG_fail;
41484 temp3 = true;
41485 }
41486 {
41487 arg4 = wxString_in_helper(obj3);
41488 if (arg4 == NULL) SWIG_fail;
41489 temp4 = true;
41490 }
41491 if (obj4) {
41492 {
41493 arg5 = &temp5;
41494 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41495 }
41496 }
41497 if (obj5) {
41498 {
41499 arg6 = &temp6;
41500 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41501 }
41502 }
41503 if (obj6) {
41504 ecode7 = SWIG_AsVal_long(obj6, &val7);
41505 if (!SWIG_IsOK(ecode7)) {
41506 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41507 }
41508 arg7 = static_cast< long >(val7);
41509 }
41510 if (obj7) {
41511 {
41512 arg8 = wxString_in_helper(obj7);
41513 if (arg8 == NULL) SWIG_fail;
41514 temp8 = true;
41515 }
41516 }
41517 {
41518 if (!wxPyCheckForApp()) SWIG_fail;
41519 PyThreadState* __tstate = wxPyBeginAllowThreads();
41520 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41521 wxPyEndAllowThreads(__tstate);
41522 if (PyErr_Occurred()) SWIG_fail;
41523 }
41524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41525 {
41526 if (temp3)
41527 delete arg3;
41528 }
41529 {
41530 if (temp4)
41531 delete arg4;
41532 }
41533 {
41534 if (temp8)
41535 delete arg8;
41536 }
41537 return resultobj;
41538fail:
41539 {
41540 if (temp3)
41541 delete arg3;
41542 }
41543 {
41544 if (temp4)
41545 delete arg4;
41546 }
41547 {
41548 if (temp8)
41549 delete arg8;
41550 }
41551 return NULL;
41552}
41553
41554
41555SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41556 PyObject *resultobj = 0;
41557 wxHyperlinkCtrl *result = 0 ;
41558
41559 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41560 {
41561 if (!wxPyCheckForApp()) SWIG_fail;
41562 PyThreadState* __tstate = wxPyBeginAllowThreads();
41563 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41564 wxPyEndAllowThreads(__tstate);
41565 if (PyErr_Occurred()) SWIG_fail;
41566 }
41567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41568 return resultobj;
41569fail:
41570 return NULL;
41571}
41572
41573
41574SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41575 PyObject *resultobj = 0;
41576 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41577 wxWindow *arg2 = (wxWindow *) 0 ;
41578 int arg3 ;
41579 wxString *arg4 = 0 ;
41580 wxString *arg5 = 0 ;
41581 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41582 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41583 wxSize const &arg7_defvalue = wxDefaultSize ;
41584 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41585 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41586 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41587 wxString *arg9 = (wxString *) &arg9_defvalue ;
41588 bool result;
41589 void *argp1 = 0 ;
41590 int res1 = 0 ;
41591 void *argp2 = 0 ;
41592 int res2 = 0 ;
41593 int val3 ;
41594 int ecode3 = 0 ;
41595 bool temp4 = false ;
41596 bool temp5 = false ;
41597 wxPoint temp6 ;
41598 wxSize temp7 ;
41599 long val8 ;
41600 int ecode8 = 0 ;
41601 bool temp9 = false ;
41602 PyObject * obj0 = 0 ;
41603 PyObject * obj1 = 0 ;
41604 PyObject * obj2 = 0 ;
41605 PyObject * obj3 = 0 ;
41606 PyObject * obj4 = 0 ;
41607 PyObject * obj5 = 0 ;
41608 PyObject * obj6 = 0 ;
41609 PyObject * obj7 = 0 ;
41610 PyObject * obj8 = 0 ;
41611 char * kwnames[] = {
41612 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41613 };
41614
41615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41617 if (!SWIG_IsOK(res1)) {
41618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41619 }
41620 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41621 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41622 if (!SWIG_IsOK(res2)) {
41623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41624 }
41625 arg2 = reinterpret_cast< wxWindow * >(argp2);
41626 ecode3 = SWIG_AsVal_int(obj2, &val3);
41627 if (!SWIG_IsOK(ecode3)) {
41628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41629 }
41630 arg3 = static_cast< int >(val3);
41631 {
41632 arg4 = wxString_in_helper(obj3);
41633 if (arg4 == NULL) SWIG_fail;
41634 temp4 = true;
41635 }
41636 {
41637 arg5 = wxString_in_helper(obj4);
41638 if (arg5 == NULL) SWIG_fail;
41639 temp5 = true;
41640 }
41641 if (obj5) {
41642 {
41643 arg6 = &temp6;
41644 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41645 }
41646 }
41647 if (obj6) {
41648 {
41649 arg7 = &temp7;
41650 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41651 }
41652 }
41653 if (obj7) {
41654 ecode8 = SWIG_AsVal_long(obj7, &val8);
41655 if (!SWIG_IsOK(ecode8)) {
41656 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41657 }
41658 arg8 = static_cast< long >(val8);
41659 }
41660 if (obj8) {
41661 {
41662 arg9 = wxString_in_helper(obj8);
41663 if (arg9 == NULL) SWIG_fail;
41664 temp9 = true;
41665 }
41666 }
41667 {
41668 PyThreadState* __tstate = wxPyBeginAllowThreads();
41669 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41670 wxPyEndAllowThreads(__tstate);
41671 if (PyErr_Occurred()) SWIG_fail;
41672 }
41673 {
41674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41675 }
41676 {
41677 if (temp4)
41678 delete arg4;
41679 }
41680 {
41681 if (temp5)
41682 delete arg5;
41683 }
41684 {
41685 if (temp9)
41686 delete arg9;
41687 }
41688 return resultobj;
41689fail:
41690 {
41691 if (temp4)
41692 delete arg4;
41693 }
41694 {
41695 if (temp5)
41696 delete arg5;
41697 }
41698 {
41699 if (temp9)
41700 delete arg9;
41701 }
41702 return NULL;
41703}
41704
41705
41706SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41707 PyObject *resultobj = 0;
41708 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41709 wxColour result;
41710 void *argp1 = 0 ;
41711 int res1 = 0 ;
41712 PyObject *swig_obj[1] ;
41713
41714 if (!args) SWIG_fail;
41715 swig_obj[0] = args;
41716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41717 if (!SWIG_IsOK(res1)) {
41718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41719 }
41720 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41721 {
41722 PyThreadState* __tstate = wxPyBeginAllowThreads();
41723 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41724 wxPyEndAllowThreads(__tstate);
41725 if (PyErr_Occurred()) SWIG_fail;
41726 }
41727 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41728 return resultobj;
41729fail:
41730 return NULL;
41731}
41732
41733
41734SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41735 PyObject *resultobj = 0;
41736 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41737 wxColour *arg2 = 0 ;
41738 void *argp1 = 0 ;
41739 int res1 = 0 ;
41740 wxColour temp2 ;
41741 PyObject * obj0 = 0 ;
41742 PyObject * obj1 = 0 ;
41743 char * kwnames[] = {
41744 (char *) "self",(char *) "colour", NULL
41745 };
41746
41747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41749 if (!SWIG_IsOK(res1)) {
41750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41751 }
41752 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41753 {
41754 arg2 = &temp2;
41755 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41756 }
41757 {
41758 PyThreadState* __tstate = wxPyBeginAllowThreads();
41759 (arg1)->SetHoverColour((wxColour const &)*arg2);
41760 wxPyEndAllowThreads(__tstate);
41761 if (PyErr_Occurred()) SWIG_fail;
41762 }
41763 resultobj = SWIG_Py_Void();
41764 return resultobj;
41765fail:
41766 return NULL;
41767}
41768
41769
41770SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41771 PyObject *resultobj = 0;
41772 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41773 wxColour result;
41774 void *argp1 = 0 ;
41775 int res1 = 0 ;
41776 PyObject *swig_obj[1] ;
41777
41778 if (!args) SWIG_fail;
41779 swig_obj[0] = args;
41780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41781 if (!SWIG_IsOK(res1)) {
41782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41783 }
41784 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41785 {
41786 PyThreadState* __tstate = wxPyBeginAllowThreads();
41787 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
41788 wxPyEndAllowThreads(__tstate);
41789 if (PyErr_Occurred()) SWIG_fail;
41790 }
41791 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41792 return resultobj;
41793fail:
41794 return NULL;
41795}
41796
41797
41798SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41799 PyObject *resultobj = 0;
41800 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41801 wxColour *arg2 = 0 ;
41802 void *argp1 = 0 ;
41803 int res1 = 0 ;
41804 wxColour temp2 ;
41805 PyObject * obj0 = 0 ;
41806 PyObject * obj1 = 0 ;
41807 char * kwnames[] = {
41808 (char *) "self",(char *) "colour", NULL
41809 };
41810
41811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
41812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41813 if (!SWIG_IsOK(res1)) {
41814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41815 }
41816 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41817 {
41818 arg2 = &temp2;
41819 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41820 }
41821 {
41822 PyThreadState* __tstate = wxPyBeginAllowThreads();
41823 (arg1)->SetNormalColour((wxColour const &)*arg2);
41824 wxPyEndAllowThreads(__tstate);
41825 if (PyErr_Occurred()) SWIG_fail;
41826 }
41827 resultobj = SWIG_Py_Void();
41828 return resultobj;
41829fail:
41830 return NULL;
41831}
41832
41833
41834SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41835 PyObject *resultobj = 0;
41836 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41837 wxColour result;
41838 void *argp1 = 0 ;
41839 int res1 = 0 ;
41840 PyObject *swig_obj[1] ;
41841
41842 if (!args) SWIG_fail;
41843 swig_obj[0] = args;
41844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41845 if (!SWIG_IsOK(res1)) {
41846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41847 }
41848 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41849 {
41850 PyThreadState* __tstate = wxPyBeginAllowThreads();
41851 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
41852 wxPyEndAllowThreads(__tstate);
41853 if (PyErr_Occurred()) SWIG_fail;
41854 }
41855 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41856 return resultobj;
41857fail:
41858 return NULL;
41859}
41860
41861
41862SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41863 PyObject *resultobj = 0;
41864 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41865 wxColour *arg2 = 0 ;
41866 void *argp1 = 0 ;
41867 int res1 = 0 ;
41868 wxColour temp2 ;
41869 PyObject * obj0 = 0 ;
41870 PyObject * obj1 = 0 ;
41871 char * kwnames[] = {
41872 (char *) "self",(char *) "colour", NULL
41873 };
41874
41875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
41876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41877 if (!SWIG_IsOK(res1)) {
41878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41879 }
41880 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41881 {
41882 arg2 = &temp2;
41883 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41884 }
41885 {
41886 PyThreadState* __tstate = wxPyBeginAllowThreads();
41887 (arg1)->SetVisitedColour((wxColour const &)*arg2);
41888 wxPyEndAllowThreads(__tstate);
41889 if (PyErr_Occurred()) SWIG_fail;
41890 }
41891 resultobj = SWIG_Py_Void();
41892 return resultobj;
41893fail:
41894 return NULL;
41895}
41896
41897
41898SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41899 PyObject *resultobj = 0;
41900 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41901 wxString result;
41902 void *argp1 = 0 ;
41903 int res1 = 0 ;
41904 PyObject *swig_obj[1] ;
41905
41906 if (!args) SWIG_fail;
41907 swig_obj[0] = args;
41908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41909 if (!SWIG_IsOK(res1)) {
41910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41911 }
41912 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41913 {
41914 PyThreadState* __tstate = wxPyBeginAllowThreads();
41915 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
41916 wxPyEndAllowThreads(__tstate);
41917 if (PyErr_Occurred()) SWIG_fail;
41918 }
41919 {
41920#if wxUSE_UNICODE
41921 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41922#else
41923 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41924#endif
41925 }
41926 return resultobj;
41927fail:
41928 return NULL;
41929}
41930
41931
41932SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41933 PyObject *resultobj = 0;
41934 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41935 wxString *arg2 = 0 ;
41936 void *argp1 = 0 ;
41937 int res1 = 0 ;
41938 bool temp2 = false ;
41939 PyObject * obj0 = 0 ;
41940 PyObject * obj1 = 0 ;
41941 char * kwnames[] = {
41942 (char *) "self",(char *) "url", NULL
41943 };
41944
41945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
41946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41947 if (!SWIG_IsOK(res1)) {
41948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41949 }
41950 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41951 {
41952 arg2 = wxString_in_helper(obj1);
41953 if (arg2 == NULL) SWIG_fail;
41954 temp2 = true;
41955 }
41956 {
41957 PyThreadState* __tstate = wxPyBeginAllowThreads();
41958 (arg1)->SetURL((wxString const &)*arg2);
41959 wxPyEndAllowThreads(__tstate);
41960 if (PyErr_Occurred()) SWIG_fail;
41961 }
41962 resultobj = SWIG_Py_Void();
41963 {
41964 if (temp2)
41965 delete arg2;
41966 }
41967 return resultobj;
41968fail:
41969 {
41970 if (temp2)
41971 delete arg2;
41972 }
41973 return NULL;
41974}
41975
41976
41977SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41978 PyObject *resultobj = 0;
41979 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41980 bool arg2 = (bool) true ;
41981 void *argp1 = 0 ;
41982 int res1 = 0 ;
41983 bool val2 ;
41984 int ecode2 = 0 ;
41985 PyObject * obj0 = 0 ;
41986 PyObject * obj1 = 0 ;
41987 char * kwnames[] = {
41988 (char *) "self",(char *) "visited", NULL
41989 };
41990
41991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
41992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41993 if (!SWIG_IsOK(res1)) {
41994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41995 }
41996 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41997 if (obj1) {
41998 ecode2 = SWIG_AsVal_bool(obj1, &val2);
41999 if (!SWIG_IsOK(ecode2)) {
42000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
42001 }
42002 arg2 = static_cast< bool >(val2);
42003 }
42004 {
42005 PyThreadState* __tstate = wxPyBeginAllowThreads();
42006 (arg1)->SetVisited(arg2);
42007 wxPyEndAllowThreads(__tstate);
42008 if (PyErr_Occurred()) SWIG_fail;
42009 }
42010 resultobj = SWIG_Py_Void();
42011 return resultobj;
42012fail:
42013 return NULL;
42014}
42015
42016
42017SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42018 PyObject *resultobj = 0;
42019 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
42020 bool result;
42021 void *argp1 = 0 ;
42022 int res1 = 0 ;
42023 PyObject *swig_obj[1] ;
42024
42025 if (!args) SWIG_fail;
42026 swig_obj[0] = args;
42027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
42028 if (!SWIG_IsOK(res1)) {
42029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
42030 }
42031 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
42032 {
42033 PyThreadState* __tstate = wxPyBeginAllowThreads();
42034 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
42035 wxPyEndAllowThreads(__tstate);
42036 if (PyErr_Occurred()) SWIG_fail;
42037 }
42038 {
42039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42040 }
42041 return resultobj;
42042fail:
42043 return NULL;
42044}
42045
42046
42047SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42048 PyObject *obj;
42049 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42050 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
42051 return SWIG_Py_Void();
42052}
42053
42054SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42055 return SWIG_Python_InitShadowInstance(args);
42056}
42057
42058SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42059 PyObject *resultobj = 0;
42060 wxObject *arg1 = (wxObject *) 0 ;
42061 int arg2 ;
42062 wxString *arg3 = 0 ;
42063 wxHyperlinkEvent *result = 0 ;
42064 void *argp1 = 0 ;
42065 int res1 = 0 ;
42066 int val2 ;
42067 int ecode2 = 0 ;
42068 bool temp3 = false ;
42069 PyObject * obj0 = 0 ;
42070 PyObject * obj1 = 0 ;
42071 PyObject * obj2 = 0 ;
42072 char * kwnames[] = {
42073 (char *) "generator",(char *) "id",(char *) "url", NULL
42074 };
42075
42076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
42077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
42078 if (!SWIG_IsOK(res1)) {
42079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
42080 }
42081 arg1 = reinterpret_cast< wxObject * >(argp1);
42082 ecode2 = SWIG_AsVal_int(obj1, &val2);
42083 if (!SWIG_IsOK(ecode2)) {
42084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
42085 }
42086 arg2 = static_cast< int >(val2);
42087 {
42088 arg3 = wxString_in_helper(obj2);
42089 if (arg3 == NULL) SWIG_fail;
42090 temp3 = true;
42091 }
42092 {
42093 PyThreadState* __tstate = wxPyBeginAllowThreads();
42094 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
42095 wxPyEndAllowThreads(__tstate);
42096 if (PyErr_Occurred()) SWIG_fail;
42097 }
42098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
42099 {
42100 if (temp3)
42101 delete arg3;
42102 }
42103 return resultobj;
42104fail:
42105 {
42106 if (temp3)
42107 delete arg3;
42108 }
42109 return NULL;
42110}
42111
42112
42113SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42114 PyObject *resultobj = 0;
42115 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42116 wxString result;
42117 void *argp1 = 0 ;
42118 int res1 = 0 ;
42119 PyObject *swig_obj[1] ;
42120
42121 if (!args) SWIG_fail;
42122 swig_obj[0] = args;
42123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42124 if (!SWIG_IsOK(res1)) {
42125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
42126 }
42127 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42128 {
42129 PyThreadState* __tstate = wxPyBeginAllowThreads();
42130 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
42131 wxPyEndAllowThreads(__tstate);
42132 if (PyErr_Occurred()) SWIG_fail;
42133 }
42134 {
42135#if wxUSE_UNICODE
42136 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
42137#else
42138 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
42139#endif
42140 }
42141 return resultobj;
42142fail:
42143 return NULL;
42144}
42145
42146
42147SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42148 PyObject *resultobj = 0;
42149 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
42150 wxString *arg2 = 0 ;
42151 void *argp1 = 0 ;
42152 int res1 = 0 ;
42153 bool temp2 = false ;
42154 PyObject * obj0 = 0 ;
42155 PyObject * obj1 = 0 ;
42156 char * kwnames[] = {
42157 (char *) "self",(char *) "url", NULL
42158 };
42159
42160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
42161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
42162 if (!SWIG_IsOK(res1)) {
42163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
42164 }
42165 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
42166 {
42167 arg2 = wxString_in_helper(obj1);
42168 if (arg2 == NULL) SWIG_fail;
42169 temp2 = true;
42170 }
42171 {
42172 PyThreadState* __tstate = wxPyBeginAllowThreads();
42173 (arg1)->SetURL((wxString const &)*arg2);
42174 wxPyEndAllowThreads(__tstate);
42175 if (PyErr_Occurred()) SWIG_fail;
42176 }
42177 resultobj = SWIG_Py_Void();
42178 {
42179 if (temp2)
42180 delete arg2;
42181 }
42182 return resultobj;
42183fail:
42184 {
42185 if (temp2)
42186 delete arg2;
42187 }
42188 return NULL;
42189}
42190
42191
42192SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42193 PyObject *obj;
42194 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42195 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
42196 return SWIG_Py_Void();
42197}
42198
42199SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42200 return SWIG_Python_InitShadowInstance(args);
42201}
42202
b850e7f3
RD
42203SWIGINTERN PyObject *_wrap_PickerBase_CreateBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42204 PyObject *resultobj = 0;
42205 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42206 wxWindow *arg2 = (wxWindow *) 0 ;
42207 int arg3 ;
42208 wxString const &arg4_defvalue = wxEmptyString ;
42209 wxString *arg4 = (wxString *) &arg4_defvalue ;
42210 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42211 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42212 wxSize const &arg6_defvalue = wxDefaultSize ;
42213 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42214 long arg7 = (long) 0 ;
42215 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42216 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42217 wxString const &arg9_defvalue = wxButtonNameStr ;
42218 wxString *arg9 = (wxString *) &arg9_defvalue ;
42219 bool result;
42220 void *argp1 = 0 ;
42221 int res1 = 0 ;
42222 void *argp2 = 0 ;
42223 int res2 = 0 ;
42224 int val3 ;
42225 int ecode3 = 0 ;
42226 bool temp4 = false ;
42227 wxPoint temp5 ;
42228 wxSize temp6 ;
42229 long val7 ;
42230 int ecode7 = 0 ;
42231 void *argp8 = 0 ;
42232 int res8 = 0 ;
42233 bool temp9 = false ;
42234 PyObject * obj0 = 0 ;
42235 PyObject * obj1 = 0 ;
42236 PyObject * obj2 = 0 ;
42237 PyObject * obj3 = 0 ;
42238 PyObject * obj4 = 0 ;
42239 PyObject * obj5 = 0 ;
42240 PyObject * obj6 = 0 ;
42241 PyObject * obj7 = 0 ;
42242 PyObject * obj8 = 0 ;
42243 char * kwnames[] = {
42244 (char *) "self",(char *) "parent",(char *) "id",(char *) "text",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42245 };
42246
42247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:PickerBase_CreateBase",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42249 if (!SWIG_IsOK(res1)) {
42250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_CreateBase" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42251 }
42252 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42253 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42254 if (!SWIG_IsOK(res2)) {
42255 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PickerBase_CreateBase" "', expected argument " "2"" of type '" "wxWindow *""'");
42256 }
42257 arg2 = reinterpret_cast< wxWindow * >(argp2);
42258 ecode3 = SWIG_AsVal_int(obj2, &val3);
42259 if (!SWIG_IsOK(ecode3)) {
42260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PickerBase_CreateBase" "', expected argument " "3"" of type '" "int""'");
42261 }
42262 arg3 = static_cast< int >(val3);
42263 if (obj3) {
42264 {
42265 arg4 = wxString_in_helper(obj3);
42266 if (arg4 == NULL) SWIG_fail;
42267 temp4 = true;
42268 }
42269 }
42270 if (obj4) {
42271 {
42272 arg5 = &temp5;
42273 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42274 }
42275 }
42276 if (obj5) {
42277 {
42278 arg6 = &temp6;
42279 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
42280 }
42281 }
42282 if (obj6) {
42283 ecode7 = SWIG_AsVal_long(obj6, &val7);
42284 if (!SWIG_IsOK(ecode7)) {
42285 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PickerBase_CreateBase" "', expected argument " "7"" of type '" "long""'");
42286 }
42287 arg7 = static_cast< long >(val7);
42288 }
42289 if (obj7) {
42290 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
42291 if (!SWIG_IsOK(res8)) {
42292 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42293 }
42294 if (!argp8) {
42295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PickerBase_CreateBase" "', expected argument " "8"" of type '" "wxValidator const &""'");
42296 }
42297 arg8 = reinterpret_cast< wxValidator * >(argp8);
42298 }
42299 if (obj8) {
42300 {
42301 arg9 = wxString_in_helper(obj8);
42302 if (arg9 == NULL) SWIG_fail;
42303 temp9 = true;
42304 }
42305 }
42306 {
42307 PyThreadState* __tstate = wxPyBeginAllowThreads();
42308 result = (bool)(arg1)->CreateBase(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
42309 wxPyEndAllowThreads(__tstate);
42310 if (PyErr_Occurred()) SWIG_fail;
42311 }
42312 {
42313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42314 }
42315 {
42316 if (temp4)
42317 delete arg4;
42318 }
42319 {
42320 if (temp9)
42321 delete arg9;
42322 }
42323 return resultobj;
42324fail:
42325 {
42326 if (temp4)
42327 delete arg4;
42328 }
42329 {
42330 if (temp9)
42331 delete arg9;
42332 }
42333 return NULL;
42334}
42335
42336
42337SWIGINTERN PyObject *_wrap_PickerBase_SetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42338 PyObject *resultobj = 0;
42339 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42340 int arg2 ;
42341 void *argp1 = 0 ;
42342 int res1 = 0 ;
42343 int val2 ;
42344 int ecode2 = 0 ;
42345 PyObject * obj0 = 0 ;
42346 PyObject * obj1 = 0 ;
42347 char * kwnames[] = {
42348 (char *) "self",(char *) "newmargin", NULL
42349 };
42350
42351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetInternalMargin",kwnames,&obj0,&obj1)) SWIG_fail;
42352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42353 if (!SWIG_IsOK(res1)) {
42354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42355 }
42356 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42357 ecode2 = SWIG_AsVal_int(obj1, &val2);
42358 if (!SWIG_IsOK(ecode2)) {
42359 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetInternalMargin" "', expected argument " "2"" of type '" "int""'");
42360 }
42361 arg2 = static_cast< int >(val2);
42362 {
42363 PyThreadState* __tstate = wxPyBeginAllowThreads();
42364 (arg1)->SetInternalMargin(arg2);
42365 wxPyEndAllowThreads(__tstate);
42366 if (PyErr_Occurred()) SWIG_fail;
42367 }
42368 resultobj = SWIG_Py_Void();
42369 return resultobj;
42370fail:
42371 return NULL;
42372}
42373
42374
42375SWIGINTERN PyObject *_wrap_PickerBase_GetInternalMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42376 PyObject *resultobj = 0;
42377 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42378 int result;
42379 void *argp1 = 0 ;
42380 int res1 = 0 ;
42381 PyObject *swig_obj[1] ;
42382
42383 if (!args) SWIG_fail;
42384 swig_obj[0] = args;
42385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42386 if (!SWIG_IsOK(res1)) {
42387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetInternalMargin" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42388 }
42389 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42390 {
42391 PyThreadState* __tstate = wxPyBeginAllowThreads();
42392 result = (int)((wxPickerBase const *)arg1)->GetInternalMargin();
42393 wxPyEndAllowThreads(__tstate);
42394 if (PyErr_Occurred()) SWIG_fail;
42395 }
42396 resultobj = SWIG_From_int(static_cast< int >(result));
42397 return resultobj;
42398fail:
42399 return NULL;
42400}
42401
42402
42403SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42404 PyObject *resultobj = 0;
42405 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42406 int arg2 ;
42407 void *argp1 = 0 ;
42408 int res1 = 0 ;
42409 int val2 ;
42410 int ecode2 = 0 ;
42411 PyObject * obj0 = 0 ;
42412 PyObject * obj1 = 0 ;
42413 char * kwnames[] = {
42414 (char *) "self",(char *) "prop", NULL
42415 };
42416
42417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetTextCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42419 if (!SWIG_IsOK(res1)) {
42420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42421 }
42422 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42423 ecode2 = SWIG_AsVal_int(obj1, &val2);
42424 if (!SWIG_IsOK(ecode2)) {
42425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42426 }
42427 arg2 = static_cast< int >(val2);
42428 {
42429 PyThreadState* __tstate = wxPyBeginAllowThreads();
42430 (arg1)->SetTextCtrlProportion(arg2);
42431 wxPyEndAllowThreads(__tstate);
42432 if (PyErr_Occurred()) SWIG_fail;
42433 }
42434 resultobj = SWIG_Py_Void();
42435 return resultobj;
42436fail:
42437 return NULL;
42438}
42439
42440
42441SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42442 PyObject *resultobj = 0;
42443 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42444 int result;
42445 void *argp1 = 0 ;
42446 int res1 = 0 ;
42447 PyObject *swig_obj[1] ;
42448
42449 if (!args) SWIG_fail;
42450 swig_obj[0] = args;
42451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42452 if (!SWIG_IsOK(res1)) {
42453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42454 }
42455 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42456 {
42457 PyThreadState* __tstate = wxPyBeginAllowThreads();
42458 result = (int)((wxPickerBase const *)arg1)->GetTextCtrlProportion();
42459 wxPyEndAllowThreads(__tstate);
42460 if (PyErr_Occurred()) SWIG_fail;
42461 }
42462 resultobj = SWIG_From_int(static_cast< int >(result));
42463 return resultobj;
42464fail:
42465 return NULL;
42466}
42467
42468
1eeb270e
RD
42469SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42470 PyObject *resultobj = 0;
42471 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42472 int arg2 ;
42473 void *argp1 = 0 ;
42474 int res1 = 0 ;
42475 int val2 ;
42476 int ecode2 = 0 ;
42477 PyObject * obj0 = 0 ;
42478 PyObject * obj1 = 0 ;
42479 char * kwnames[] = {
42480 (char *) "self",(char *) "prop", NULL
42481 };
42482
42483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PickerBase_SetPickerCtrlProportion",kwnames,&obj0,&obj1)) SWIG_fail;
42484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42485 if (!SWIG_IsOK(res1)) {
42486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42487 }
42488 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42489 ecode2 = SWIG_AsVal_int(obj1, &val2);
42490 if (!SWIG_IsOK(ecode2)) {
42491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlProportion" "', expected argument " "2"" of type '" "int""'");
42492 }
42493 arg2 = static_cast< int >(val2);
42494 {
42495 PyThreadState* __tstate = wxPyBeginAllowThreads();
42496 (arg1)->SetPickerCtrlProportion(arg2);
42497 wxPyEndAllowThreads(__tstate);
42498 if (PyErr_Occurred()) SWIG_fail;
42499 }
42500 resultobj = SWIG_Py_Void();
42501 return resultobj;
42502fail:
42503 return NULL;
42504}
42505
42506
42507SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrlProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42508 PyObject *resultobj = 0;
42509 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42510 int result;
42511 void *argp1 = 0 ;
42512 int res1 = 0 ;
42513 PyObject *swig_obj[1] ;
42514
42515 if (!args) SWIG_fail;
42516 swig_obj[0] = args;
42517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42518 if (!SWIG_IsOK(res1)) {
42519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetPickerCtrlProportion" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42520 }
42521 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42522 {
42523 PyThreadState* __tstate = wxPyBeginAllowThreads();
42524 result = (int)((wxPickerBase const *)arg1)->GetPickerCtrlProportion();
42525 wxPyEndAllowThreads(__tstate);
42526 if (PyErr_Occurred()) SWIG_fail;
42527 }
42528 resultobj = SWIG_From_int(static_cast< int >(result));
42529 return resultobj;
42530fail:
42531 return NULL;
42532}
42533
42534
b02396e8
RD
42535SWIGINTERN PyObject *_wrap_PickerBase_IsTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42536 PyObject *resultobj = 0;
42537 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42538 bool result;
42539 void *argp1 = 0 ;
42540 int res1 = 0 ;
42541 PyObject *swig_obj[1] ;
42542
42543 if (!args) SWIG_fail;
42544 swig_obj[0] = args;
42545 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42546 if (!SWIG_IsOK(res1)) {
42547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42548 }
42549 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42550 {
42551 PyThreadState* __tstate = wxPyBeginAllowThreads();
42552 result = (bool)((wxPickerBase const *)arg1)->IsTextCtrlGrowable();
42553 wxPyEndAllowThreads(__tstate);
42554 if (PyErr_Occurred()) SWIG_fail;
42555 }
42556 {
42557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42558 }
42559 return resultobj;
42560fail:
42561 return NULL;
42562}
42563
42564
42565SWIGINTERN PyObject *_wrap_PickerBase_SetTextCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42566 PyObject *resultobj = 0;
42567 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42568 bool arg2 = (bool) true ;
42569 void *argp1 = 0 ;
42570 int res1 = 0 ;
42571 bool val2 ;
42572 int ecode2 = 0 ;
42573 PyObject * obj0 = 0 ;
42574 PyObject * obj1 = 0 ;
42575 char * kwnames[] = {
42576 (char *) "self",(char *) "grow", NULL
42577 };
42578
42579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetTextCtrlGrowable",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_SetTextCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42583 }
42584 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42585 if (obj1) {
42586 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42587 if (!SWIG_IsOK(ecode2)) {
42588 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetTextCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42589 }
42590 arg2 = static_cast< bool >(val2);
42591 }
42592 {
42593 PyThreadState* __tstate = wxPyBeginAllowThreads();
42594 (arg1)->SetTextCtrlGrowable(arg2);
42595 wxPyEndAllowThreads(__tstate);
42596 if (PyErr_Occurred()) SWIG_fail;
42597 }
42598 resultobj = SWIG_Py_Void();
42599 return resultobj;
42600fail:
42601 return NULL;
42602}
42603
42604
42605SWIGINTERN PyObject *_wrap_PickerBase_IsPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42606 PyObject *resultobj = 0;
42607 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42608 bool result;
42609 void *argp1 = 0 ;
42610 int res1 = 0 ;
42611 PyObject *swig_obj[1] ;
42612
42613 if (!args) SWIG_fail;
42614 swig_obj[0] = args;
42615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42616 if (!SWIG_IsOK(res1)) {
42617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_IsPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42618 }
42619 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42620 {
42621 PyThreadState* __tstate = wxPyBeginAllowThreads();
42622 result = (bool)((wxPickerBase const *)arg1)->IsPickerCtrlGrowable();
42623 wxPyEndAllowThreads(__tstate);
42624 if (PyErr_Occurred()) SWIG_fail;
42625 }
42626 {
42627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42628 }
42629 return resultobj;
42630fail:
42631 return NULL;
42632}
42633
42634
42635SWIGINTERN PyObject *_wrap_PickerBase_SetPickerCtrlGrowable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42636 PyObject *resultobj = 0;
42637 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42638 bool arg2 = (bool) true ;
42639 void *argp1 = 0 ;
42640 int res1 = 0 ;
42641 bool val2 ;
42642 int ecode2 = 0 ;
42643 PyObject * obj0 = 0 ;
42644 PyObject * obj1 = 0 ;
42645 char * kwnames[] = {
42646 (char *) "self",(char *) "grow", NULL
42647 };
42648
42649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PickerBase_SetPickerCtrlGrowable",kwnames,&obj0,&obj1)) SWIG_fail;
42650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42651 if (!SWIG_IsOK(res1)) {
42652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42653 }
42654 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42655 if (obj1) {
42656 ecode2 = SWIG_AsVal_bool(obj1, &val2);
42657 if (!SWIG_IsOK(ecode2)) {
42658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PickerBase_SetPickerCtrlGrowable" "', expected argument " "2"" of type '" "bool""'");
42659 }
42660 arg2 = static_cast< bool >(val2);
42661 }
42662 {
42663 PyThreadState* __tstate = wxPyBeginAllowThreads();
42664 (arg1)->SetPickerCtrlGrowable(arg2);
42665 wxPyEndAllowThreads(__tstate);
42666 if (PyErr_Occurred()) SWIG_fail;
42667 }
42668 resultobj = SWIG_Py_Void();
42669 return resultobj;
42670fail:
42671 return NULL;
42672}
42673
42674
b850e7f3
RD
42675SWIGINTERN PyObject *_wrap_PickerBase_HasTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42676 PyObject *resultobj = 0;
42677 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42678 bool result;
42679 void *argp1 = 0 ;
42680 int res1 = 0 ;
42681 PyObject *swig_obj[1] ;
42682
42683 if (!args) SWIG_fail;
42684 swig_obj[0] = args;
42685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42686 if (!SWIG_IsOK(res1)) {
42687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_HasTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase const *""'");
42688 }
42689 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42690 {
42691 PyThreadState* __tstate = wxPyBeginAllowThreads();
42692 result = (bool)((wxPickerBase const *)arg1)->HasTextCtrl();
42693 wxPyEndAllowThreads(__tstate);
42694 if (PyErr_Occurred()) SWIG_fail;
42695 }
42696 {
42697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
42698 }
42699 return resultobj;
42700fail:
42701 return NULL;
42702}
42703
42704
42705SWIGINTERN PyObject *_wrap_PickerBase_GetTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42706 PyObject *resultobj = 0;
42707 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42708 wxTextCtrl *result = 0 ;
42709 void *argp1 = 0 ;
42710 int res1 = 0 ;
42711 PyObject *swig_obj[1] ;
42712
42713 if (!args) SWIG_fail;
42714 swig_obj[0] = args;
42715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPickerBase, 0 | 0 );
42716 if (!SWIG_IsOK(res1)) {
42717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PickerBase_GetTextCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42718 }
42719 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42720 {
42721 PyThreadState* __tstate = wxPyBeginAllowThreads();
42722 result = (wxTextCtrl *)(arg1)->GetTextCtrl();
42723 wxPyEndAllowThreads(__tstate);
42724 if (PyErr_Occurred()) SWIG_fail;
42725 }
42726 {
42727 resultobj = wxPyMake_wxObject(result, 0);
42728 }
42729 return resultobj;
42730fail:
42731 return NULL;
42732}
42733
42734
42735SWIGINTERN PyObject *_wrap_PickerBase_GetPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42736 PyObject *resultobj = 0;
42737 wxPickerBase *arg1 = (wxPickerBase *) 0 ;
42738 wxControl *result = 0 ;
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_GetPickerCtrl" "', expected argument " "1"" of type '" "wxPickerBase *""'");
42748 }
42749 arg1 = reinterpret_cast< wxPickerBase * >(argp1);
42750 {
42751 PyThreadState* __tstate = wxPyBeginAllowThreads();
42752 result = (wxControl *)(arg1)->GetPickerCtrl();
42753 wxPyEndAllowThreads(__tstate);
42754 if (PyErr_Occurred()) SWIG_fail;
42755 }
42756 {
42757 resultobj = wxPyMake_wxObject(result, 0);
42758 }
42759 return resultobj;
42760fail:
42761 return NULL;
42762}
42763
42764
42765SWIGINTERN PyObject *PickerBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42766 PyObject *obj;
42767 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
42768 SWIG_TypeNewClientData(SWIGTYPE_p_wxPickerBase, SWIG_NewClientData(obj));
42769 return SWIG_Py_Void();
42770}
42771
42772SWIGINTERN int ColourPickerCtrlNameStr_set(PyObject *) {
42773 SWIG_Error(SWIG_AttributeError,"Variable ColourPickerCtrlNameStr is read-only.");
42774 return 1;
42775}
42776
42777
42778SWIGINTERN PyObject *ColourPickerCtrlNameStr_get(void) {
42779 PyObject *pyobj = 0;
42780
42781 {
42782#if wxUSE_UNICODE
42783 pyobj = PyUnicode_FromWideChar((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42784#else
42785 pyobj = PyString_FromStringAndSize((&wxPyColourPickerCtrlNameStr)->c_str(), (&wxPyColourPickerCtrlNameStr)->Len());
42786#endif
42787 }
42788 return pyobj;
42789}
42790
42791
42792SWIGINTERN PyObject *_wrap_new_ColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42793 PyObject *resultobj = 0;
42794 wxWindow *arg1 = (wxWindow *) 0 ;
42795 int arg2 = (int) -1 ;
42796 wxColour const &arg3_defvalue = *wxBLACK ;
42797 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
42798 wxPoint const &arg4_defvalue = wxDefaultPosition ;
42799 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
42800 wxSize const &arg5_defvalue = wxDefaultSize ;
42801 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
42802 long arg6 = (long) wxCLRP_DEFAULT_STYLE ;
42803 wxValidator const &arg7_defvalue = wxDefaultValidator ;
42804 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
42805 wxString const &arg8_defvalue = wxPyColourPickerCtrlNameStr ;
42806 wxString *arg8 = (wxString *) &arg8_defvalue ;
42807 wxColourPickerCtrl *result = 0 ;
42808 void *argp1 = 0 ;
42809 int res1 = 0 ;
42810 int val2 ;
42811 int ecode2 = 0 ;
42812 wxColour temp3 ;
42813 wxPoint temp4 ;
42814 wxSize temp5 ;
42815 long val6 ;
42816 int ecode6 = 0 ;
42817 void *argp7 = 0 ;
42818 int res7 = 0 ;
42819 bool temp8 = false ;
42820 PyObject * obj0 = 0 ;
42821 PyObject * obj1 = 0 ;
42822 PyObject * obj2 = 0 ;
42823 PyObject * obj3 = 0 ;
42824 PyObject * obj4 = 0 ;
42825 PyObject * obj5 = 0 ;
42826 PyObject * obj6 = 0 ;
42827 PyObject * obj7 = 0 ;
42828 char * kwnames[] = {
42829 (char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42830 };
42831
42832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ColourPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
42833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
42834 if (!SWIG_IsOK(res1)) {
42835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
42836 }
42837 arg1 = reinterpret_cast< wxWindow * >(argp1);
42838 if (obj1) {
42839 ecode2 = SWIG_AsVal_int(obj1, &val2);
42840 if (!SWIG_IsOK(ecode2)) {
42841 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerCtrl" "', expected argument " "2"" of type '" "int""'");
42842 }
42843 arg2 = static_cast< int >(val2);
42844 }
42845 if (obj2) {
42846 {
42847 arg3 = &temp3;
42848 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
42849 }
42850 }
42851 if (obj3) {
42852 {
42853 arg4 = &temp4;
42854 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
42855 }
42856 }
42857 if (obj4) {
42858 {
42859 arg5 = &temp5;
42860 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
42861 }
42862 }
42863 if (obj5) {
42864 ecode6 = SWIG_AsVal_long(obj5, &val6);
42865 if (!SWIG_IsOK(ecode6)) {
42866 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ColourPickerCtrl" "', expected argument " "6"" of type '" "long""'");
42867 }
42868 arg6 = static_cast< long >(val6);
42869 }
42870 if (obj6) {
42871 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
42872 if (!SWIG_IsOK(res7)) {
42873 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42874 }
42875 if (!argp7) {
42876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ColourPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
42877 }
42878 arg7 = reinterpret_cast< wxValidator * >(argp7);
42879 }
42880 if (obj7) {
42881 {
42882 arg8 = wxString_in_helper(obj7);
42883 if (arg8 == NULL) SWIG_fail;
42884 temp8 = true;
42885 }
42886 }
42887 {
42888 if (!wxPyCheckForApp()) SWIG_fail;
42889 PyThreadState* __tstate = wxPyBeginAllowThreads();
42890 result = (wxColourPickerCtrl *)new wxColourPickerCtrl(arg1,arg2,(wxColour const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
42891 wxPyEndAllowThreads(__tstate);
42892 if (PyErr_Occurred()) SWIG_fail;
42893 }
42894 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_NEW | 0 );
42895 {
42896 if (temp8)
42897 delete arg8;
42898 }
42899 return resultobj;
42900fail:
42901 {
42902 if (temp8)
42903 delete arg8;
42904 }
42905 return NULL;
42906}
42907
42908
42909SWIGINTERN PyObject *_wrap_new_PreColourPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
42910 PyObject *resultobj = 0;
42911 wxColourPickerCtrl *result = 0 ;
42912
42913 if (!SWIG_Python_UnpackTuple(args,"new_PreColourPickerCtrl",0,0,0)) SWIG_fail;
42914 {
42915 if (!wxPyCheckForApp()) SWIG_fail;
42916 PyThreadState* __tstate = wxPyBeginAllowThreads();
42917 result = (wxColourPickerCtrl *)new wxColourPickerCtrl();
42918 wxPyEndAllowThreads(__tstate);
42919 if (PyErr_Occurred()) SWIG_fail;
42920 }
42921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerCtrl, SWIG_POINTER_OWN | 0 );
42922 return resultobj;
42923fail:
42924 return NULL;
42925}
42926
42927
42928SWIGINTERN PyObject *_wrap_ColourPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
42929 PyObject *resultobj = 0;
42930 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
42931 wxWindow *arg2 = (wxWindow *) 0 ;
42932 int arg3 ;
42933 wxColour const &arg4_defvalue = *wxBLACK ;
42934 wxColour *arg4 = (wxColour *) &arg4_defvalue ;
42935 wxPoint const &arg5_defvalue = wxDefaultPosition ;
42936 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
42937 wxSize const &arg6_defvalue = wxDefaultSize ;
42938 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
42939 long arg7 = (long) wxCLRP_DEFAULT_STYLE ;
42940 wxValidator const &arg8_defvalue = wxDefaultValidator ;
42941 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
42942 wxString const &arg9_defvalue = wxPyColourPickerCtrlNameStr ;
42943 wxString *arg9 = (wxString *) &arg9_defvalue ;
42944 bool result;
42945 void *argp1 = 0 ;
42946 int res1 = 0 ;
42947 void *argp2 = 0 ;
42948 int res2 = 0 ;
42949 int val3 ;
42950 int ecode3 = 0 ;
42951 wxColour temp4 ;
42952 wxPoint temp5 ;
42953 wxSize temp6 ;
42954 long val7 ;
42955 int ecode7 = 0 ;
42956 void *argp8 = 0 ;
42957 int res8 = 0 ;
42958 bool temp9 = false ;
42959 PyObject * obj0 = 0 ;
42960 PyObject * obj1 = 0 ;
42961 PyObject * obj2 = 0 ;
42962 PyObject * obj3 = 0 ;
42963 PyObject * obj4 = 0 ;
42964 PyObject * obj5 = 0 ;
42965 PyObject * obj6 = 0 ;
42966 PyObject * obj7 = 0 ;
42967 PyObject * obj8 = 0 ;
42968 char * kwnames[] = {
42969 (char *) "self",(char *) "parent",(char *) "id",(char *) "col",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
42970 };
42971
42972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ColourPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
42973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
42974 if (!SWIG_IsOK(res1)) {
42975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_Create" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
42976 }
42977 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
42978 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
42979 if (!SWIG_IsOK(res2)) {
42980 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ColourPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
42981 }
42982 arg2 = reinterpret_cast< wxWindow * >(argp2);
42983 ecode3 = SWIG_AsVal_int(obj2, &val3);
42984 if (!SWIG_IsOK(ecode3)) {
42985 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
42986 }
42987 arg3 = static_cast< int >(val3);
42988 if (obj3) {
42989 {
42990 arg4 = &temp4;
42991 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
42992 }
42993 }
42994 if (obj4) {
42995 {
42996 arg5 = &temp5;
42997 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
42998 }
42999 }
43000 if (obj5) {
43001 {
43002 arg6 = &temp6;
43003 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43004 }
43005 }
43006 if (obj6) {
43007 ecode7 = SWIG_AsVal_long(obj6, &val7);
43008 if (!SWIG_IsOK(ecode7)) {
43009 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ColourPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
43010 }
43011 arg7 = static_cast< long >(val7);
43012 }
43013 if (obj7) {
43014 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43015 if (!SWIG_IsOK(res8)) {
43016 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43017 }
43018 if (!argp8) {
43019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ColourPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
43020 }
43021 arg8 = reinterpret_cast< wxValidator * >(argp8);
43022 }
43023 if (obj8) {
43024 {
43025 arg9 = wxString_in_helper(obj8);
43026 if (arg9 == NULL) SWIG_fail;
43027 temp9 = true;
43028 }
43029 }
43030 {
43031 PyThreadState* __tstate = wxPyBeginAllowThreads();
43032 result = (bool)(arg1)->Create(arg2,arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
43033 wxPyEndAllowThreads(__tstate);
43034 if (PyErr_Occurred()) SWIG_fail;
43035 }
43036 {
43037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43038 }
43039 {
43040 if (temp9)
43041 delete arg9;
43042 }
43043 return resultobj;
43044fail:
43045 {
43046 if (temp9)
43047 delete arg9;
43048 }
43049 return NULL;
43050}
43051
43052
43053SWIGINTERN PyObject *_wrap_ColourPickerCtrl_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43054 PyObject *resultobj = 0;
43055 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43056 wxColour result;
43057 void *argp1 = 0 ;
43058 int res1 = 0 ;
43059 PyObject *swig_obj[1] ;
43060
43061 if (!args) SWIG_fail;
43062 swig_obj[0] = args;
43063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43064 if (!SWIG_IsOK(res1)) {
43065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_GetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl const *""'");
43066 }
43067 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43068 {
43069 PyThreadState* __tstate = wxPyBeginAllowThreads();
43070 result = ((wxColourPickerCtrl const *)arg1)->GetColour();
43071 wxPyEndAllowThreads(__tstate);
43072 if (PyErr_Occurred()) SWIG_fail;
43073 }
43074 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43075 return resultobj;
43076fail:
43077 return NULL;
43078}
43079
43080
43081SWIGINTERN PyObject *_wrap_ColourPickerCtrl_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43082 PyObject *resultobj = 0;
43083 wxColourPickerCtrl *arg1 = (wxColourPickerCtrl *) 0 ;
43084 wxColour *arg2 = 0 ;
43085 void *argp1 = 0 ;
43086 int res1 = 0 ;
43087 wxColour temp2 ;
43088 PyObject * obj0 = 0 ;
43089 PyObject * obj1 = 0 ;
43090 char * kwnames[] = {
43091 (char *) "self",(char *) "col", NULL
43092 };
43093
43094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerCtrl_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerCtrl, 0 | 0 );
43096 if (!SWIG_IsOK(res1)) {
43097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerCtrl_SetColour" "', expected argument " "1"" of type '" "wxColourPickerCtrl *""'");
43098 }
43099 arg1 = reinterpret_cast< wxColourPickerCtrl * >(argp1);
43100 {
43101 arg2 = &temp2;
43102 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43103 }
43104 {
43105 PyThreadState* __tstate = wxPyBeginAllowThreads();
43106 (arg1)->SetColour((wxColour const &)*arg2);
43107 wxPyEndAllowThreads(__tstate);
43108 if (PyErr_Occurred()) SWIG_fail;
43109 }
43110 resultobj = SWIG_Py_Void();
43111 return resultobj;
43112fail:
43113 return NULL;
43114}
43115
43116
43117SWIGINTERN PyObject *ColourPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43118 PyObject *obj;
43119 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43120 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerCtrl, SWIG_NewClientData(obj));
43121 return SWIG_Py_Void();
43122}
43123
43124SWIGINTERN PyObject *ColourPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43125 return SWIG_Python_InitShadowInstance(args);
43126}
43127
43128SWIGINTERN PyObject *_wrap_new_ColourPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43129 PyObject *resultobj = 0;
43130 wxObject *arg1 = (wxObject *) 0 ;
43131 int arg2 ;
43132 wxColour *arg3 = 0 ;
43133 wxColourPickerEvent *result = 0 ;
43134 void *argp1 = 0 ;
43135 int res1 = 0 ;
43136 int val2 ;
43137 int ecode2 = 0 ;
43138 wxColour temp3 ;
43139 PyObject * obj0 = 0 ;
43140 PyObject * obj1 = 0 ;
43141 PyObject * obj2 = 0 ;
43142 char * kwnames[] = {
43143 (char *) "generator",(char *) "id",(char *) "col", NULL
43144 };
43145
43146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ColourPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
43147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
43148 if (!SWIG_IsOK(res1)) {
43149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ColourPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
43150 }
43151 arg1 = reinterpret_cast< wxObject * >(argp1);
43152 ecode2 = SWIG_AsVal_int(obj1, &val2);
43153 if (!SWIG_IsOK(ecode2)) {
43154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ColourPickerEvent" "', expected argument " "2"" of type '" "int""'");
43155 }
43156 arg2 = static_cast< int >(val2);
43157 {
43158 arg3 = &temp3;
43159 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
43160 }
43161 {
43162 PyThreadState* __tstate = wxPyBeginAllowThreads();
43163 result = (wxColourPickerEvent *)new wxColourPickerEvent(arg1,arg2,(wxColour const &)*arg3);
43164 wxPyEndAllowThreads(__tstate);
43165 if (PyErr_Occurred()) SWIG_fail;
43166 }
43167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourPickerEvent, SWIG_POINTER_NEW | 0 );
43168 return resultobj;
43169fail:
43170 return NULL;
43171}
43172
43173
43174SWIGINTERN PyObject *_wrap_ColourPickerEvent_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43175 PyObject *resultobj = 0;
43176 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43177 wxColour result;
43178 void *argp1 = 0 ;
43179 int res1 = 0 ;
43180 PyObject *swig_obj[1] ;
43181
43182 if (!args) SWIG_fail;
43183 swig_obj[0] = args;
43184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43185 if (!SWIG_IsOK(res1)) {
43186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_GetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent const *""'");
43187 }
43188 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43189 {
43190 PyThreadState* __tstate = wxPyBeginAllowThreads();
43191 result = ((wxColourPickerEvent const *)arg1)->GetColour();
43192 wxPyEndAllowThreads(__tstate);
43193 if (PyErr_Occurred()) SWIG_fail;
43194 }
43195 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
43196 return resultobj;
43197fail:
43198 return NULL;
43199}
43200
43201
43202SWIGINTERN PyObject *_wrap_ColourPickerEvent_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43203 PyObject *resultobj = 0;
43204 wxColourPickerEvent *arg1 = (wxColourPickerEvent *) 0 ;
43205 wxColour *arg2 = 0 ;
43206 void *argp1 = 0 ;
43207 int res1 = 0 ;
43208 wxColour temp2 ;
43209 PyObject * obj0 = 0 ;
43210 PyObject * obj1 = 0 ;
43211 char * kwnames[] = {
43212 (char *) "self",(char *) "c", NULL
43213 };
43214
43215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourPickerEvent_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
43216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourPickerEvent, 0 | 0 );
43217 if (!SWIG_IsOK(res1)) {
43218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourPickerEvent_SetColour" "', expected argument " "1"" of type '" "wxColourPickerEvent *""'");
43219 }
43220 arg1 = reinterpret_cast< wxColourPickerEvent * >(argp1);
43221 {
43222 arg2 = &temp2;
43223 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
43224 }
43225 {
43226 PyThreadState* __tstate = wxPyBeginAllowThreads();
43227 (arg1)->SetColour((wxColour const &)*arg2);
43228 wxPyEndAllowThreads(__tstate);
43229 if (PyErr_Occurred()) SWIG_fail;
43230 }
43231 resultobj = SWIG_Py_Void();
43232 return resultobj;
43233fail:
43234 return NULL;
43235}
43236
43237
43238SWIGINTERN PyObject *ColourPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43239 PyObject *obj;
43240 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43241 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourPickerEvent, SWIG_NewClientData(obj));
43242 return SWIG_Py_Void();
43243}
43244
43245SWIGINTERN PyObject *ColourPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43246 return SWIG_Python_InitShadowInstance(args);
43247}
43248
43249SWIGINTERN int FilePickerCtrlNameStr_set(PyObject *) {
43250 SWIG_Error(SWIG_AttributeError,"Variable FilePickerCtrlNameStr is read-only.");
43251 return 1;
43252}
43253
43254
43255SWIGINTERN PyObject *FilePickerCtrlNameStr_get(void) {
43256 PyObject *pyobj = 0;
43257
43258 {
43259#if wxUSE_UNICODE
43260 pyobj = PyUnicode_FromWideChar((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43261#else
43262 pyobj = PyString_FromStringAndSize((&wxPyFilePickerCtrlNameStr)->c_str(), (&wxPyFilePickerCtrlNameStr)->Len());
43263#endif
43264 }
43265 return pyobj;
43266}
43267
43268
43269SWIGINTERN int FileSelectorPromptStr_set(PyObject *) {
43270 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorPromptStr is read-only.");
43271 return 1;
43272}
43273
43274
43275SWIGINTERN PyObject *FileSelectorPromptStr_get(void) {
43276 PyObject *pyobj = 0;
43277
43278 {
43279#if wxUSE_UNICODE
43280 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43281#else
43282 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
43283#endif
43284 }
43285 return pyobj;
43286}
43287
43288
43289SWIGINTERN int DirPickerCtrlNameStr_set(PyObject *) {
43290 SWIG_Error(SWIG_AttributeError,"Variable DirPickerCtrlNameStr is read-only.");
43291 return 1;
43292}
43293
43294
43295SWIGINTERN PyObject *DirPickerCtrlNameStr_get(void) {
43296 PyObject *pyobj = 0;
43297
43298 {
43299#if wxUSE_UNICODE
43300 pyobj = PyUnicode_FromWideChar((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43301#else
43302 pyobj = PyString_FromStringAndSize((&wxPyDirPickerCtrlNameStr)->c_str(), (&wxPyDirPickerCtrlNameStr)->Len());
43303#endif
43304 }
43305 return pyobj;
43306}
43307
43308
43309SWIGINTERN int DirSelectorPromptStr_set(PyObject *) {
43310 SWIG_Error(SWIG_AttributeError,"Variable DirSelectorPromptStr is read-only.");
43311 return 1;
43312}
43313
43314
43315SWIGINTERN PyObject *DirSelectorPromptStr_get(void) {
43316 PyObject *pyobj = 0;
43317
43318 {
43319#if wxUSE_UNICODE
43320 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43321#else
43322 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
43323#endif
43324 }
43325 return pyobj;
43326}
43327
43328
43329SWIGINTERN int FileSelectorDefaultWildcardStr_set(PyObject *) {
43330 SWIG_Error(SWIG_AttributeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
43331 return 1;
43332}
43333
43334
43335SWIGINTERN PyObject *FileSelectorDefaultWildcardStr_get(void) {
43336 PyObject *pyobj = 0;
43337
43338 {
43339#if wxUSE_UNICODE
43340 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43341#else
43342 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
43343#endif
43344 }
43345 return pyobj;
43346}
43347
43348
43349SWIGINTERN PyObject *_wrap_new_FilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43350 PyObject *resultobj = 0;
43351 wxWindow *arg1 = (wxWindow *) 0 ;
43352 int arg2 = (int) -1 ;
43353 wxString const &arg3_defvalue = wxPyEmptyString ;
43354 wxString *arg3 = (wxString *) &arg3_defvalue ;
43355 wxString const &arg4_defvalue = wxPyFileSelectorPromptStr ;
43356 wxString *arg4 = (wxString *) &arg4_defvalue ;
43357 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43358 wxString *arg5 = (wxString *) &arg5_defvalue ;
43359 wxPoint const &arg6_defvalue = wxDefaultPosition ;
43360 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
43361 wxSize const &arg7_defvalue = wxDefaultSize ;
43362 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
43363 long arg8 = (long) wxFLP_DEFAULT_STYLE ;
43364 wxValidator const &arg9_defvalue = wxDefaultValidator ;
43365 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
43366 wxString const &arg10_defvalue = wxPyFilePickerCtrlNameStr ;
43367 wxString *arg10 = (wxString *) &arg10_defvalue ;
43368 wxFilePickerCtrl *result = 0 ;
43369 void *argp1 = 0 ;
43370 int res1 = 0 ;
43371 int val2 ;
43372 int ecode2 = 0 ;
43373 bool temp3 = false ;
43374 bool temp4 = false ;
43375 bool temp5 = false ;
43376 wxPoint temp6 ;
43377 wxSize temp7 ;
43378 long val8 ;
43379 int ecode8 = 0 ;
43380 void *argp9 = 0 ;
43381 int res9 = 0 ;
43382 bool temp10 = false ;
43383 PyObject * obj0 = 0 ;
43384 PyObject * obj1 = 0 ;
43385 PyObject * obj2 = 0 ;
43386 PyObject * obj3 = 0 ;
43387 PyObject * obj4 = 0 ;
43388 PyObject * obj5 = 0 ;
43389 PyObject * obj6 = 0 ;
43390 PyObject * obj7 = 0 ;
43391 PyObject * obj8 = 0 ;
43392 PyObject * obj9 = 0 ;
43393 char * kwnames[] = {
43394 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43395 };
43396
43397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_FilePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
43398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43399 if (!SWIG_IsOK(res1)) {
43400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FilePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43401 }
43402 arg1 = reinterpret_cast< wxWindow * >(argp1);
43403 if (obj1) {
43404 ecode2 = SWIG_AsVal_int(obj1, &val2);
43405 if (!SWIG_IsOK(ecode2)) {
43406 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FilePickerCtrl" "', expected argument " "2"" of type '" "int""'");
43407 }
43408 arg2 = static_cast< int >(val2);
43409 }
43410 if (obj2) {
43411 {
43412 arg3 = wxString_in_helper(obj2);
43413 if (arg3 == NULL) SWIG_fail;
43414 temp3 = true;
43415 }
43416 }
43417 if (obj3) {
43418 {
43419 arg4 = wxString_in_helper(obj3);
43420 if (arg4 == NULL) SWIG_fail;
43421 temp4 = true;
43422 }
43423 }
43424 if (obj4) {
43425 {
43426 arg5 = wxString_in_helper(obj4);
43427 if (arg5 == NULL) SWIG_fail;
43428 temp5 = true;
43429 }
43430 }
43431 if (obj5) {
43432 {
43433 arg6 = &temp6;
43434 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
43435 }
43436 }
43437 if (obj6) {
43438 {
43439 arg7 = &temp7;
43440 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
43441 }
43442 }
43443 if (obj7) {
43444 ecode8 = SWIG_AsVal_long(obj7, &val8);
43445 if (!SWIG_IsOK(ecode8)) {
43446 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_FilePickerCtrl" "', expected argument " "8"" of type '" "long""'");
43447 }
43448 arg8 = static_cast< long >(val8);
43449 }
43450 if (obj8) {
43451 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
43452 if (!SWIG_IsOK(res9)) {
43453 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43454 }
43455 if (!argp9) {
43456 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FilePickerCtrl" "', expected argument " "9"" of type '" "wxValidator const &""'");
43457 }
43458 arg9 = reinterpret_cast< wxValidator * >(argp9);
43459 }
43460 if (obj9) {
43461 {
43462 arg10 = wxString_in_helper(obj9);
43463 if (arg10 == NULL) SWIG_fail;
43464 temp10 = true;
43465 }
43466 }
43467 {
43468 if (!wxPyCheckForApp()) SWIG_fail;
43469 PyThreadState* __tstate = wxPyBeginAllowThreads();
43470 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);
43471 wxPyEndAllowThreads(__tstate);
43472 if (PyErr_Occurred()) SWIG_fail;
43473 }
43474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_NEW | 0 );
43475 {
43476 if (temp3)
43477 delete arg3;
43478 }
43479 {
43480 if (temp4)
43481 delete arg4;
43482 }
43483 {
43484 if (temp5)
43485 delete arg5;
43486 }
43487 {
43488 if (temp10)
43489 delete arg10;
43490 }
43491 return resultobj;
43492fail:
43493 {
43494 if (temp3)
43495 delete arg3;
43496 }
43497 {
43498 if (temp4)
43499 delete arg4;
43500 }
43501 {
43502 if (temp5)
43503 delete arg5;
43504 }
43505 {
43506 if (temp10)
43507 delete arg10;
43508 }
43509 return NULL;
43510}
43511
43512
43513SWIGINTERN PyObject *_wrap_new_PreFilePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43514 PyObject *resultobj = 0;
43515 wxFilePickerCtrl *result = 0 ;
43516
43517 if (!SWIG_Python_UnpackTuple(args,"new_PreFilePickerCtrl",0,0,0)) SWIG_fail;
43518 {
43519 if (!wxPyCheckForApp()) SWIG_fail;
43520 PyThreadState* __tstate = wxPyBeginAllowThreads();
43521 result = (wxFilePickerCtrl *)new wxFilePickerCtrl();
43522 wxPyEndAllowThreads(__tstate);
43523 if (PyErr_Occurred()) SWIG_fail;
43524 }
43525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFilePickerCtrl, SWIG_POINTER_OWN | 0 );
43526 return resultobj;
43527fail:
43528 return NULL;
43529}
43530
43531
43532SWIGINTERN PyObject *_wrap_FilePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43533 PyObject *resultobj = 0;
43534 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43535 wxWindow *arg2 = (wxWindow *) 0 ;
43536 int arg3 = (int) -1 ;
43537 wxString const &arg4_defvalue = wxPyEmptyString ;
43538 wxString *arg4 = (wxString *) &arg4_defvalue ;
43539 wxString const &arg5_defvalue = wxPyFileSelectorPromptStr ;
43540 wxString *arg5 = (wxString *) &arg5_defvalue ;
43541 wxString const &arg6_defvalue = wxPyFileSelectorDefaultWildcardStr ;
43542 wxString *arg6 = (wxString *) &arg6_defvalue ;
43543 wxPoint const &arg7_defvalue = wxDefaultPosition ;
43544 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
43545 wxSize const &arg8_defvalue = wxDefaultSize ;
43546 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
43547 long arg9 = (long) wxFLP_DEFAULT_STYLE ;
43548 wxValidator const &arg10_defvalue = wxDefaultValidator ;
43549 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
43550 wxString const &arg11_defvalue = wxPyFilePickerCtrlNameStr ;
43551 wxString *arg11 = (wxString *) &arg11_defvalue ;
43552 bool result;
43553 void *argp1 = 0 ;
43554 int res1 = 0 ;
43555 void *argp2 = 0 ;
43556 int res2 = 0 ;
43557 int val3 ;
43558 int ecode3 = 0 ;
43559 bool temp4 = false ;
43560 bool temp5 = false ;
43561 bool temp6 = false ;
43562 wxPoint temp7 ;
43563 wxSize temp8 ;
43564 long val9 ;
43565 int ecode9 = 0 ;
43566 void *argp10 = 0 ;
43567 int res10 = 0 ;
43568 bool temp11 = false ;
43569 PyObject * obj0 = 0 ;
43570 PyObject * obj1 = 0 ;
43571 PyObject * obj2 = 0 ;
43572 PyObject * obj3 = 0 ;
43573 PyObject * obj4 = 0 ;
43574 PyObject * obj5 = 0 ;
43575 PyObject * obj6 = 0 ;
43576 PyObject * obj7 = 0 ;
43577 PyObject * obj8 = 0 ;
43578 PyObject * obj9 = 0 ;
43579 PyObject * obj10 = 0 ;
43580 char * kwnames[] = {
43581 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "wildcard",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43582 };
43583
43584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:FilePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
43585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43586 if (!SWIG_IsOK(res1)) {
43587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_Create" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43588 }
43589 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43590 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
43591 if (!SWIG_IsOK(res2)) {
43592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FilePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
43593 }
43594 arg2 = reinterpret_cast< wxWindow * >(argp2);
43595 if (obj2) {
43596 ecode3 = SWIG_AsVal_int(obj2, &val3);
43597 if (!SWIG_IsOK(ecode3)) {
43598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FilePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
43599 }
43600 arg3 = static_cast< int >(val3);
43601 }
43602 if (obj3) {
43603 {
43604 arg4 = wxString_in_helper(obj3);
43605 if (arg4 == NULL) SWIG_fail;
43606 temp4 = true;
43607 }
43608 }
43609 if (obj4) {
43610 {
43611 arg5 = wxString_in_helper(obj4);
43612 if (arg5 == NULL) SWIG_fail;
43613 temp5 = true;
43614 }
43615 }
43616 if (obj5) {
43617 {
43618 arg6 = wxString_in_helper(obj5);
43619 if (arg6 == NULL) SWIG_fail;
43620 temp6 = true;
43621 }
43622 }
43623 if (obj6) {
43624 {
43625 arg7 = &temp7;
43626 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
43627 }
43628 }
43629 if (obj7) {
43630 {
43631 arg8 = &temp8;
43632 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
43633 }
43634 }
43635 if (obj8) {
43636 ecode9 = SWIG_AsVal_long(obj8, &val9);
43637 if (!SWIG_IsOK(ecode9)) {
43638 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "FilePickerCtrl_Create" "', expected argument " "9"" of type '" "long""'");
43639 }
43640 arg9 = static_cast< long >(val9);
43641 }
43642 if (obj9) {
43643 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
43644 if (!SWIG_IsOK(res10)) {
43645 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43646 }
43647 if (!argp10) {
43648 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FilePickerCtrl_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
43649 }
43650 arg10 = reinterpret_cast< wxValidator * >(argp10);
43651 }
43652 if (obj10) {
43653 {
43654 arg11 = wxString_in_helper(obj10);
43655 if (arg11 == NULL) SWIG_fail;
43656 temp11 = true;
43657 }
43658 }
43659 {
43660 PyThreadState* __tstate = wxPyBeginAllowThreads();
43661 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);
43662 wxPyEndAllowThreads(__tstate);
43663 if (PyErr_Occurred()) SWIG_fail;
43664 }
43665 {
43666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43667 }
43668 {
43669 if (temp4)
43670 delete arg4;
43671 }
43672 {
43673 if (temp5)
43674 delete arg5;
43675 }
43676 {
43677 if (temp6)
43678 delete arg6;
43679 }
43680 {
43681 if (temp11)
43682 delete arg11;
43683 }
43684 return resultobj;
43685fail:
43686 {
43687 if (temp4)
43688 delete arg4;
43689 }
43690 {
43691 if (temp5)
43692 delete arg5;
43693 }
43694 {
43695 if (temp6)
43696 delete arg6;
43697 }
43698 {
43699 if (temp11)
43700 delete arg11;
43701 }
43702 return NULL;
43703}
43704
43705
43706SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43707 PyObject *resultobj = 0;
43708 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43709 wxString result;
43710 void *argp1 = 0 ;
43711 int res1 = 0 ;
43712 PyObject *swig_obj[1] ;
43713
43714 if (!args) SWIG_fail;
43715 swig_obj[0] = args;
43716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43717 if (!SWIG_IsOK(res1)) {
43718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43719 }
43720 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43721 {
43722 PyThreadState* __tstate = wxPyBeginAllowThreads();
43723 result = ((wxFilePickerCtrl const *)arg1)->GetPath();
43724 wxPyEndAllowThreads(__tstate);
43725 if (PyErr_Occurred()) SWIG_fail;
43726 }
43727 {
43728#if wxUSE_UNICODE
43729 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43730#else
43731 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43732#endif
43733 }
43734 return resultobj;
43735fail:
43736 return NULL;
43737}
43738
43739
43740SWIGINTERN PyObject *_wrap_FilePickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43741 PyObject *resultobj = 0;
43742 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43743 wxString *arg2 = 0 ;
43744 void *argp1 = 0 ;
43745 int res1 = 0 ;
43746 bool temp2 = false ;
43747 PyObject * obj0 = 0 ;
43748 PyObject * obj1 = 0 ;
43749 char * kwnames[] = {
43750 (char *) "self",(char *) "str", NULL
43751 };
43752
43753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
43754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43755 if (!SWIG_IsOK(res1)) {
43756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl *""'");
43757 }
43758 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43759 {
43760 arg2 = wxString_in_helper(obj1);
43761 if (arg2 == NULL) SWIG_fail;
43762 temp2 = true;
43763 }
43764 {
43765 PyThreadState* __tstate = wxPyBeginAllowThreads();
43766 (arg1)->SetPath((wxString const &)*arg2);
43767 wxPyEndAllowThreads(__tstate);
43768 if (PyErr_Occurred()) SWIG_fail;
43769 }
43770 resultobj = SWIG_Py_Void();
43771 {
43772 if (temp2)
43773 delete arg2;
43774 }
43775 return resultobj;
43776fail:
43777 {
43778 if (temp2)
43779 delete arg2;
43780 }
43781 return NULL;
43782}
43783
43784
b02396e8
RD
43785SWIGINTERN PyObject *_wrap_FilePickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43786 PyObject *resultobj = 0;
43787 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43788 wxString *arg2 = 0 ;
43789 bool result;
43790 void *argp1 = 0 ;
43791 int res1 = 0 ;
43792 bool temp2 = false ;
43793 PyObject * obj0 = 0 ;
43794 PyObject * obj1 = 0 ;
43795 char * kwnames[] = {
43796 (char *) "self",(char *) "path", NULL
43797 };
43798
43799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FilePickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
43800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43801 if (!SWIG_IsOK(res1)) {
43802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43803 }
43804 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43805 {
43806 arg2 = wxString_in_helper(obj1);
43807 if (arg2 == NULL) SWIG_fail;
43808 temp2 = true;
43809 }
43810 {
43811 PyThreadState* __tstate = wxPyBeginAllowThreads();
43812 result = (bool)((wxFilePickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
43813 wxPyEndAllowThreads(__tstate);
43814 if (PyErr_Occurred()) SWIG_fail;
43815 }
43816 {
43817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
43818 }
43819 {
43820 if (temp2)
43821 delete arg2;
43822 }
43823 return resultobj;
43824fail:
43825 {
43826 if (temp2)
43827 delete arg2;
43828 }
43829 return NULL;
43830}
43831
43832
43833SWIGINTERN PyObject *_wrap_FilePickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43834 PyObject *resultobj = 0;
43835 wxFilePickerCtrl *arg1 = (wxFilePickerCtrl *) 0 ;
43836 wxString result;
43837 void *argp1 = 0 ;
43838 int res1 = 0 ;
43839 PyObject *swig_obj[1] ;
43840
43841 if (!args) SWIG_fail;
43842 swig_obj[0] = args;
43843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFilePickerCtrl, 0 | 0 );
43844 if (!SWIG_IsOK(res1)) {
43845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FilePickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxFilePickerCtrl const *""'");
43846 }
43847 arg1 = reinterpret_cast< wxFilePickerCtrl * >(argp1);
43848 {
43849 PyThreadState* __tstate = wxPyBeginAllowThreads();
43850 result = ((wxFilePickerCtrl const *)arg1)->GetTextCtrlValue();
43851 wxPyEndAllowThreads(__tstate);
43852 if (PyErr_Occurred()) SWIG_fail;
43853 }
43854 {
43855#if wxUSE_UNICODE
43856 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
43857#else
43858 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
43859#endif
43860 }
43861 return resultobj;
43862fail:
43863 return NULL;
43864}
43865
43866
b850e7f3
RD
43867SWIGINTERN PyObject *FilePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43868 PyObject *obj;
43869 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
43870 SWIG_TypeNewClientData(SWIGTYPE_p_wxFilePickerCtrl, SWIG_NewClientData(obj));
43871 return SWIG_Py_Void();
43872}
43873
43874SWIGINTERN PyObject *FilePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
43875 return SWIG_Python_InitShadowInstance(args);
43876}
43877
43878SWIGINTERN PyObject *_wrap_new_DirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
43879 PyObject *resultobj = 0;
43880 wxWindow *arg1 = (wxWindow *) 0 ;
43881 int arg2 = (int) -1 ;
43882 wxString const &arg3_defvalue = wxPyEmptyString ;
43883 wxString *arg3 = (wxString *) &arg3_defvalue ;
43884 wxString const &arg4_defvalue = wxPyDirSelectorPromptStr ;
43885 wxString *arg4 = (wxString *) &arg4_defvalue ;
43886 wxPoint const &arg5_defvalue = wxDefaultPosition ;
43887 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
43888 wxSize const &arg6_defvalue = wxDefaultSize ;
43889 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
43890 long arg7 = (long) wxDIRP_DEFAULT_STYLE ;
43891 wxValidator const &arg8_defvalue = wxDefaultValidator ;
43892 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
43893 wxString const &arg9_defvalue = wxPyDirPickerCtrlNameStr ;
43894 wxString *arg9 = (wxString *) &arg9_defvalue ;
43895 wxDirPickerCtrl *result = 0 ;
43896 void *argp1 = 0 ;
43897 int res1 = 0 ;
43898 int val2 ;
43899 int ecode2 = 0 ;
43900 bool temp3 = false ;
43901 bool temp4 = false ;
43902 wxPoint temp5 ;
43903 wxSize temp6 ;
43904 long val7 ;
43905 int ecode7 = 0 ;
43906 void *argp8 = 0 ;
43907 int res8 = 0 ;
43908 bool temp9 = false ;
43909 PyObject * obj0 = 0 ;
43910 PyObject * obj1 = 0 ;
43911 PyObject * obj2 = 0 ;
43912 PyObject * obj3 = 0 ;
43913 PyObject * obj4 = 0 ;
43914 PyObject * obj5 = 0 ;
43915 PyObject * obj6 = 0 ;
43916 PyObject * obj7 = 0 ;
43917 PyObject * obj8 = 0 ;
43918 char * kwnames[] = {
43919 (char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
43920 };
43921
43922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_DirPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
43923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
43924 if (!SWIG_IsOK(res1)) {
43925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
43926 }
43927 arg1 = reinterpret_cast< wxWindow * >(argp1);
43928 if (obj1) {
43929 ecode2 = SWIG_AsVal_int(obj1, &val2);
43930 if (!SWIG_IsOK(ecode2)) {
43931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirPickerCtrl" "', expected argument " "2"" of type '" "int""'");
43932 }
43933 arg2 = static_cast< int >(val2);
43934 }
43935 if (obj2) {
43936 {
43937 arg3 = wxString_in_helper(obj2);
43938 if (arg3 == NULL) SWIG_fail;
43939 temp3 = true;
43940 }
43941 }
43942 if (obj3) {
43943 {
43944 arg4 = wxString_in_helper(obj3);
43945 if (arg4 == NULL) SWIG_fail;
43946 temp4 = true;
43947 }
43948 }
43949 if (obj4) {
43950 {
43951 arg5 = &temp5;
43952 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
43953 }
43954 }
43955 if (obj5) {
43956 {
43957 arg6 = &temp6;
43958 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
43959 }
43960 }
43961 if (obj6) {
43962 ecode7 = SWIG_AsVal_long(obj6, &val7);
43963 if (!SWIG_IsOK(ecode7)) {
43964 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_DirPickerCtrl" "', expected argument " "7"" of type '" "long""'");
43965 }
43966 arg7 = static_cast< long >(val7);
43967 }
43968 if (obj7) {
43969 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
43970 if (!SWIG_IsOK(res8)) {
43971 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
43972 }
43973 if (!argp8) {
43974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DirPickerCtrl" "', expected argument " "8"" of type '" "wxValidator const &""'");
43975 }
43976 arg8 = reinterpret_cast< wxValidator * >(argp8);
43977 }
43978 if (obj8) {
43979 {
43980 arg9 = wxString_in_helper(obj8);
43981 if (arg9 == NULL) SWIG_fail;
43982 temp9 = true;
43983 }
43984 }
43985 {
43986 if (!wxPyCheckForApp()) SWIG_fail;
43987 PyThreadState* __tstate = wxPyBeginAllowThreads();
43988 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);
43989 wxPyEndAllowThreads(__tstate);
43990 if (PyErr_Occurred()) SWIG_fail;
43991 }
43992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_NEW | 0 );
43993 {
43994 if (temp3)
43995 delete arg3;
43996 }
43997 {
43998 if (temp4)
43999 delete arg4;
44000 }
44001 {
44002 if (temp9)
44003 delete arg9;
44004 }
44005 return resultobj;
44006fail:
44007 {
44008 if (temp3)
44009 delete arg3;
44010 }
44011 {
44012 if (temp4)
44013 delete arg4;
44014 }
44015 {
44016 if (temp9)
44017 delete arg9;
44018 }
44019 return NULL;
44020}
44021
44022
44023SWIGINTERN PyObject *_wrap_new_PreDirPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44024 PyObject *resultobj = 0;
44025 wxDirPickerCtrl *result = 0 ;
44026
44027 if (!SWIG_Python_UnpackTuple(args,"new_PreDirPickerCtrl",0,0,0)) SWIG_fail;
44028 {
44029 if (!wxPyCheckForApp()) SWIG_fail;
44030 PyThreadState* __tstate = wxPyBeginAllowThreads();
44031 result = (wxDirPickerCtrl *)new wxDirPickerCtrl();
44032 wxPyEndAllowThreads(__tstate);
44033 if (PyErr_Occurred()) SWIG_fail;
44034 }
44035 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirPickerCtrl, SWIG_POINTER_OWN | 0 );
44036 return resultobj;
44037fail:
44038 return NULL;
44039}
44040
44041
44042SWIGINTERN PyObject *_wrap_DirPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44043 PyObject *resultobj = 0;
44044 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44045 wxWindow *arg2 = (wxWindow *) 0 ;
44046 int arg3 = (int) -1 ;
44047 wxString const &arg4_defvalue = wxPyEmptyString ;
44048 wxString *arg4 = (wxString *) &arg4_defvalue ;
44049 wxString const &arg5_defvalue = wxPyDirSelectorPromptStr ;
44050 wxString *arg5 = (wxString *) &arg5_defvalue ;
44051 wxPoint const &arg6_defvalue = wxDefaultPosition ;
44052 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
44053 wxSize const &arg7_defvalue = wxDefaultSize ;
44054 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
44055 long arg8 = (long) wxDIRP_DEFAULT_STYLE ;
44056 wxValidator const &arg9_defvalue = wxDefaultValidator ;
44057 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
44058 wxString const &arg10_defvalue = wxPyDirPickerCtrlNameStr ;
44059 wxString *arg10 = (wxString *) &arg10_defvalue ;
44060 bool result;
44061 void *argp1 = 0 ;
44062 int res1 = 0 ;
44063 void *argp2 = 0 ;
44064 int res2 = 0 ;
44065 int val3 ;
44066 int ecode3 = 0 ;
44067 bool temp4 = false ;
44068 bool temp5 = false ;
44069 wxPoint temp6 ;
44070 wxSize temp7 ;
44071 long val8 ;
44072 int ecode8 = 0 ;
44073 void *argp9 = 0 ;
44074 int res9 = 0 ;
44075 bool temp10 = false ;
44076 PyObject * obj0 = 0 ;
44077 PyObject * obj1 = 0 ;
44078 PyObject * obj2 = 0 ;
44079 PyObject * obj3 = 0 ;
44080 PyObject * obj4 = 0 ;
44081 PyObject * obj5 = 0 ;
44082 PyObject * obj6 = 0 ;
44083 PyObject * obj7 = 0 ;
44084 PyObject * obj8 = 0 ;
44085 PyObject * obj9 = 0 ;
44086 char * kwnames[] = {
44087 (char *) "self",(char *) "parent",(char *) "id",(char *) "path",(char *) "message",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44088 };
44089
44090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:DirPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
44091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44092 if (!SWIG_IsOK(res1)) {
44093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_Create" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44094 }
44095 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44096 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44097 if (!SWIG_IsOK(res2)) {
44098 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44099 }
44100 arg2 = reinterpret_cast< wxWindow * >(argp2);
44101 if (obj2) {
44102 ecode3 = SWIG_AsVal_int(obj2, &val3);
44103 if (!SWIG_IsOK(ecode3)) {
44104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44105 }
44106 arg3 = static_cast< int >(val3);
44107 }
44108 if (obj3) {
44109 {
44110 arg4 = wxString_in_helper(obj3);
44111 if (arg4 == NULL) SWIG_fail;
44112 temp4 = true;
44113 }
44114 }
44115 if (obj4) {
44116 {
44117 arg5 = wxString_in_helper(obj4);
44118 if (arg5 == NULL) SWIG_fail;
44119 temp5 = true;
44120 }
44121 }
44122 if (obj5) {
44123 {
44124 arg6 = &temp6;
44125 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
44126 }
44127 }
44128 if (obj6) {
44129 {
44130 arg7 = &temp7;
44131 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
44132 }
44133 }
44134 if (obj7) {
44135 ecode8 = SWIG_AsVal_long(obj7, &val8);
44136 if (!SWIG_IsOK(ecode8)) {
44137 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DirPickerCtrl_Create" "', expected argument " "8"" of type '" "long""'");
44138 }
44139 arg8 = static_cast< long >(val8);
44140 }
44141 if (obj8) {
44142 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
44143 if (!SWIG_IsOK(res9)) {
44144 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44145 }
44146 if (!argp9) {
44147 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DirPickerCtrl_Create" "', expected argument " "9"" of type '" "wxValidator const &""'");
44148 }
44149 arg9 = reinterpret_cast< wxValidator * >(argp9);
44150 }
44151 if (obj9) {
44152 {
44153 arg10 = wxString_in_helper(obj9);
44154 if (arg10 == NULL) SWIG_fail;
44155 temp10 = true;
44156 }
44157 }
44158 {
44159 PyThreadState* __tstate = wxPyBeginAllowThreads();
44160 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);
44161 wxPyEndAllowThreads(__tstate);
44162 if (PyErr_Occurred()) SWIG_fail;
44163 }
44164 {
44165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44166 }
44167 {
44168 if (temp4)
44169 delete arg4;
44170 }
44171 {
44172 if (temp5)
44173 delete arg5;
44174 }
44175 {
44176 if (temp10)
44177 delete arg10;
44178 }
44179 return resultobj;
44180fail:
44181 {
44182 if (temp4)
44183 delete arg4;
44184 }
44185 {
44186 if (temp5)
44187 delete arg5;
44188 }
44189 {
44190 if (temp10)
44191 delete arg10;
44192 }
44193 return NULL;
44194}
44195
44196
44197SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44198 PyObject *resultobj = 0;
44199 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44200 wxString result;
44201 void *argp1 = 0 ;
44202 int res1 = 0 ;
44203 PyObject *swig_obj[1] ;
44204
44205 if (!args) SWIG_fail;
44206 swig_obj[0] = args;
44207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44208 if (!SWIG_IsOK(res1)) {
44209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44210 }
44211 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44212 {
44213 PyThreadState* __tstate = wxPyBeginAllowThreads();
44214 result = ((wxDirPickerCtrl const *)arg1)->GetPath();
44215 wxPyEndAllowThreads(__tstate);
44216 if (PyErr_Occurred()) SWIG_fail;
44217 }
44218 {
44219#if wxUSE_UNICODE
44220 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44221#else
44222 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44223#endif
44224 }
44225 return resultobj;
44226fail:
44227 return NULL;
44228}
44229
44230
44231SWIGINTERN PyObject *_wrap_DirPickerCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44232 PyObject *resultobj = 0;
44233 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44234 wxString *arg2 = 0 ;
44235 void *argp1 = 0 ;
44236 int res1 = 0 ;
44237 bool temp2 = false ;
44238 PyObject * obj0 = 0 ;
44239 PyObject * obj1 = 0 ;
44240 char * kwnames[] = {
44241 (char *) "self",(char *) "str", NULL
44242 };
44243
44244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44246 if (!SWIG_IsOK(res1)) {
44247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_SetPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl *""'");
44248 }
44249 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44250 {
44251 arg2 = wxString_in_helper(obj1);
44252 if (arg2 == NULL) SWIG_fail;
44253 temp2 = true;
44254 }
44255 {
44256 PyThreadState* __tstate = wxPyBeginAllowThreads();
44257 (arg1)->SetPath((wxString const &)*arg2);
44258 wxPyEndAllowThreads(__tstate);
44259 if (PyErr_Occurred()) SWIG_fail;
44260 }
44261 resultobj = SWIG_Py_Void();
44262 {
44263 if (temp2)
44264 delete arg2;
44265 }
44266 return resultobj;
44267fail:
44268 {
44269 if (temp2)
44270 delete arg2;
44271 }
44272 return NULL;
44273}
44274
44275
b02396e8
RD
44276SWIGINTERN PyObject *_wrap_DirPickerCtrl_CheckPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44277 PyObject *resultobj = 0;
44278 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44279 wxString *arg2 = 0 ;
44280 bool result;
44281 void *argp1 = 0 ;
44282 int res1 = 0 ;
44283 bool temp2 = false ;
44284 PyObject * obj0 = 0 ;
44285 PyObject * obj1 = 0 ;
44286 char * kwnames[] = {
44287 (char *) "self",(char *) "path", NULL
44288 };
44289
44290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirPickerCtrl_CheckPath",kwnames,&obj0,&obj1)) SWIG_fail;
44291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44292 if (!SWIG_IsOK(res1)) {
44293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_CheckPath" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44294 }
44295 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44296 {
44297 arg2 = wxString_in_helper(obj1);
44298 if (arg2 == NULL) SWIG_fail;
44299 temp2 = true;
44300 }
44301 {
44302 PyThreadState* __tstate = wxPyBeginAllowThreads();
44303 result = (bool)((wxDirPickerCtrl const *)arg1)->CheckPath((wxString const &)*arg2);
44304 wxPyEndAllowThreads(__tstate);
44305 if (PyErr_Occurred()) SWIG_fail;
44306 }
44307 {
44308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44309 }
44310 {
44311 if (temp2)
44312 delete arg2;
44313 }
44314 return resultobj;
44315fail:
44316 {
44317 if (temp2)
44318 delete arg2;
44319 }
44320 return NULL;
44321}
44322
44323
44324SWIGINTERN PyObject *_wrap_DirPickerCtrl_GetTextCtrlValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44325 PyObject *resultobj = 0;
44326 wxDirPickerCtrl *arg1 = (wxDirPickerCtrl *) 0 ;
44327 wxString result;
44328 void *argp1 = 0 ;
44329 int res1 = 0 ;
44330 PyObject *swig_obj[1] ;
44331
44332 if (!args) SWIG_fail;
44333 swig_obj[0] = args;
44334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDirPickerCtrl, 0 | 0 );
44335 if (!SWIG_IsOK(res1)) {
44336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirPickerCtrl_GetTextCtrlValue" "', expected argument " "1"" of type '" "wxDirPickerCtrl const *""'");
44337 }
44338 arg1 = reinterpret_cast< wxDirPickerCtrl * >(argp1);
44339 {
44340 PyThreadState* __tstate = wxPyBeginAllowThreads();
44341 result = ((wxDirPickerCtrl const *)arg1)->GetTextCtrlValue();
44342 wxPyEndAllowThreads(__tstate);
44343 if (PyErr_Occurred()) SWIG_fail;
44344 }
44345 {
44346#if wxUSE_UNICODE
44347 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44348#else
44349 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44350#endif
44351 }
44352 return resultobj;
44353fail:
44354 return NULL;
44355}
44356
44357
b850e7f3
RD
44358SWIGINTERN PyObject *DirPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44359 PyObject *obj;
44360 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44361 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirPickerCtrl, SWIG_NewClientData(obj));
44362 return SWIG_Py_Void();
44363}
44364
44365SWIGINTERN PyObject *DirPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44366 return SWIG_Python_InitShadowInstance(args);
44367}
44368
44369SWIGINTERN PyObject *_wrap_new_FileDirPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44370 PyObject *resultobj = 0;
44371 wxEventType arg1 ;
44372 wxObject *arg2 = (wxObject *) 0 ;
44373 int arg3 ;
44374 wxString *arg4 = 0 ;
44375 wxFileDirPickerEvent *result = 0 ;
44376 int val1 ;
44377 int ecode1 = 0 ;
44378 void *argp2 = 0 ;
44379 int res2 = 0 ;
44380 int val3 ;
44381 int ecode3 = 0 ;
44382 bool temp4 = false ;
44383 PyObject * obj0 = 0 ;
44384 PyObject * obj1 = 0 ;
44385 PyObject * obj2 = 0 ;
44386 PyObject * obj3 = 0 ;
44387 char * kwnames[] = {
44388 (char *) "type",(char *) "generator",(char *) "id",(char *) "path", NULL
44389 };
44390
44391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileDirPickerEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
44392 ecode1 = SWIG_AsVal_int(obj0, &val1);
44393 if (!SWIG_IsOK(ecode1)) {
44394 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FileDirPickerEvent" "', expected argument " "1"" of type '" "wxEventType""'");
44395 }
44396 arg1 = static_cast< wxEventType >(val1);
44397 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
44398 if (!SWIG_IsOK(res2)) {
44399 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_FileDirPickerEvent" "', expected argument " "2"" of type '" "wxObject *""'");
44400 }
44401 arg2 = reinterpret_cast< wxObject * >(argp2);
44402 ecode3 = SWIG_AsVal_int(obj2, &val3);
44403 if (!SWIG_IsOK(ecode3)) {
44404 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FileDirPickerEvent" "', expected argument " "3"" of type '" "int""'");
44405 }
44406 arg3 = static_cast< int >(val3);
44407 {
44408 arg4 = wxString_in_helper(obj3);
44409 if (arg4 == NULL) SWIG_fail;
44410 temp4 = true;
44411 }
44412 {
44413 PyThreadState* __tstate = wxPyBeginAllowThreads();
44414 result = (wxFileDirPickerEvent *)new wxFileDirPickerEvent(arg1,arg2,arg3,(wxString const &)*arg4);
44415 wxPyEndAllowThreads(__tstate);
44416 if (PyErr_Occurred()) SWIG_fail;
44417 }
44418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileDirPickerEvent, SWIG_POINTER_NEW | 0 );
44419 {
44420 if (temp4)
44421 delete arg4;
44422 }
44423 return resultobj;
44424fail:
44425 {
44426 if (temp4)
44427 delete arg4;
44428 }
44429 return NULL;
44430}
44431
44432
44433SWIGINTERN PyObject *_wrap_FileDirPickerEvent_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44434 PyObject *resultobj = 0;
44435 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44436 wxString result;
44437 void *argp1 = 0 ;
44438 int res1 = 0 ;
44439 PyObject *swig_obj[1] ;
44440
44441 if (!args) SWIG_fail;
44442 swig_obj[0] = args;
44443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44444 if (!SWIG_IsOK(res1)) {
44445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_GetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent const *""'");
44446 }
44447 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44448 {
44449 PyThreadState* __tstate = wxPyBeginAllowThreads();
44450 result = ((wxFileDirPickerEvent const *)arg1)->GetPath();
44451 wxPyEndAllowThreads(__tstate);
44452 if (PyErr_Occurred()) SWIG_fail;
44453 }
44454 {
44455#if wxUSE_UNICODE
44456 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
44457#else
44458 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
44459#endif
44460 }
44461 return resultobj;
44462fail:
44463 return NULL;
44464}
44465
44466
44467SWIGINTERN PyObject *_wrap_FileDirPickerEvent_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44468 PyObject *resultobj = 0;
44469 wxFileDirPickerEvent *arg1 = (wxFileDirPickerEvent *) 0 ;
44470 wxString *arg2 = 0 ;
44471 void *argp1 = 0 ;
44472 int res1 = 0 ;
44473 bool temp2 = false ;
44474 PyObject * obj0 = 0 ;
44475 PyObject * obj1 = 0 ;
44476 char * kwnames[] = {
44477 (char *) "self",(char *) "p", NULL
44478 };
44479
44480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDirPickerEvent_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
44481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileDirPickerEvent, 0 | 0 );
44482 if (!SWIG_IsOK(res1)) {
44483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileDirPickerEvent_SetPath" "', expected argument " "1"" of type '" "wxFileDirPickerEvent *""'");
44484 }
44485 arg1 = reinterpret_cast< wxFileDirPickerEvent * >(argp1);
44486 {
44487 arg2 = wxString_in_helper(obj1);
44488 if (arg2 == NULL) SWIG_fail;
44489 temp2 = true;
44490 }
44491 {
44492 PyThreadState* __tstate = wxPyBeginAllowThreads();
44493 (arg1)->SetPath((wxString const &)*arg2);
44494 wxPyEndAllowThreads(__tstate);
44495 if (PyErr_Occurred()) SWIG_fail;
44496 }
44497 resultobj = SWIG_Py_Void();
44498 {
44499 if (temp2)
44500 delete arg2;
44501 }
44502 return resultobj;
44503fail:
44504 {
44505 if (temp2)
44506 delete arg2;
44507 }
44508 return NULL;
44509}
44510
44511
44512SWIGINTERN PyObject *FileDirPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44513 PyObject *obj;
44514 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44515 SWIG_TypeNewClientData(SWIGTYPE_p_wxFileDirPickerEvent, SWIG_NewClientData(obj));
44516 return SWIG_Py_Void();
44517}
44518
44519SWIGINTERN PyObject *FileDirPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44520 return SWIG_Python_InitShadowInstance(args);
44521}
44522
44523SWIGINTERN int FontPickerCtrlNameStr_set(PyObject *) {
44524 SWIG_Error(SWIG_AttributeError,"Variable FontPickerCtrlNameStr is read-only.");
44525 return 1;
44526}
44527
44528
44529SWIGINTERN PyObject *FontPickerCtrlNameStr_get(void) {
44530 PyObject *pyobj = 0;
44531
44532 {
44533#if wxUSE_UNICODE
44534 pyobj = PyUnicode_FromWideChar((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44535#else
44536 pyobj = PyString_FromStringAndSize((&wxPyFontPickerCtrlNameStr)->c_str(), (&wxPyFontPickerCtrlNameStr)->Len());
44537#endif
44538 }
44539 return pyobj;
44540}
44541
44542
44543SWIGINTERN PyObject *_wrap_new_FontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44544 PyObject *resultobj = 0;
44545 wxWindow *arg1 = (wxWindow *) 0 ;
44546 int arg2 = (int) -1 ;
44547 wxFont const &arg3_defvalue = *wxNORMAL_FONT ;
44548 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
44549 wxPoint const &arg4_defvalue = wxDefaultPosition ;
44550 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
44551 wxSize const &arg5_defvalue = wxDefaultSize ;
44552 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
44553 long arg6 = (long) wxFNTP_DEFAULT_STYLE ;
44554 wxValidator const &arg7_defvalue = wxDefaultValidator ;
44555 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
44556 wxString const &arg8_defvalue = wxPyFontPickerCtrlNameStr ;
44557 wxString *arg8 = (wxString *) &arg8_defvalue ;
44558 wxFontPickerCtrl *result = 0 ;
44559 void *argp1 = 0 ;
44560 int res1 = 0 ;
44561 int val2 ;
44562 int ecode2 = 0 ;
44563 void *argp3 = 0 ;
44564 int res3 = 0 ;
44565 wxPoint temp4 ;
44566 wxSize temp5 ;
44567 long val6 ;
44568 int ecode6 = 0 ;
44569 void *argp7 = 0 ;
44570 int res7 = 0 ;
44571 bool temp8 = false ;
44572 PyObject * obj0 = 0 ;
44573 PyObject * obj1 = 0 ;
44574 PyObject * obj2 = 0 ;
44575 PyObject * obj3 = 0 ;
44576 PyObject * obj4 = 0 ;
44577 PyObject * obj5 = 0 ;
44578 PyObject * obj6 = 0 ;
44579 PyObject * obj7 = 0 ;
44580 char * kwnames[] = {
44581 (char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44582 };
44583
44584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_FontPickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
44585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
44586 if (!SWIG_IsOK(res1)) {
44587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
44588 }
44589 arg1 = reinterpret_cast< wxWindow * >(argp1);
44590 if (obj1) {
44591 ecode2 = SWIG_AsVal_int(obj1, &val2);
44592 if (!SWIG_IsOK(ecode2)) {
44593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerCtrl" "', expected argument " "2"" of type '" "int""'");
44594 }
44595 arg2 = static_cast< int >(val2);
44596 }
44597 if (obj2) {
44598 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44599 if (!SWIG_IsOK(res3)) {
44600 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44601 }
44602 if (!argp3) {
44603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "3"" of type '" "wxFont const &""'");
44604 }
44605 arg3 = reinterpret_cast< wxFont * >(argp3);
44606 }
44607 if (obj3) {
44608 {
44609 arg4 = &temp4;
44610 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
44611 }
44612 }
44613 if (obj4) {
44614 {
44615 arg5 = &temp5;
44616 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
44617 }
44618 }
44619 if (obj5) {
44620 ecode6 = SWIG_AsVal_long(obj5, &val6);
44621 if (!SWIG_IsOK(ecode6)) {
44622 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_FontPickerCtrl" "', expected argument " "6"" of type '" "long""'");
44623 }
44624 arg6 = static_cast< long >(val6);
44625 }
44626 if (obj6) {
44627 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
44628 if (!SWIG_IsOK(res7)) {
44629 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44630 }
44631 if (!argp7) {
44632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
44633 }
44634 arg7 = reinterpret_cast< wxValidator * >(argp7);
44635 }
44636 if (obj7) {
44637 {
44638 arg8 = wxString_in_helper(obj7);
44639 if (arg8 == NULL) SWIG_fail;
44640 temp8 = true;
44641 }
44642 }
44643 {
44644 if (!wxPyCheckForApp()) SWIG_fail;
44645 PyThreadState* __tstate = wxPyBeginAllowThreads();
44646 result = (wxFontPickerCtrl *)new wxFontPickerCtrl(arg1,arg2,(wxFont const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
44647 wxPyEndAllowThreads(__tstate);
44648 if (PyErr_Occurred()) SWIG_fail;
44649 }
44650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_NEW | 0 );
44651 {
44652 if (temp8)
44653 delete arg8;
44654 }
44655 return resultobj;
44656fail:
44657 {
44658 if (temp8)
44659 delete arg8;
44660 }
44661 return NULL;
44662}
44663
44664
44665SWIGINTERN PyObject *_wrap_new_PreFontPickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44666 PyObject *resultobj = 0;
44667 wxFontPickerCtrl *result = 0 ;
44668
44669 if (!SWIG_Python_UnpackTuple(args,"new_PreFontPickerCtrl",0,0,0)) SWIG_fail;
44670 {
44671 if (!wxPyCheckForApp()) SWIG_fail;
44672 PyThreadState* __tstate = wxPyBeginAllowThreads();
44673 result = (wxFontPickerCtrl *)new wxFontPickerCtrl();
44674 wxPyEndAllowThreads(__tstate);
44675 if (PyErr_Occurred()) SWIG_fail;
44676 }
44677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerCtrl, SWIG_POINTER_OWN | 0 );
44678 return resultobj;
44679fail:
44680 return NULL;
44681}
44682
44683
44684SWIGINTERN PyObject *_wrap_FontPickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44685 PyObject *resultobj = 0;
44686 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44687 wxWindow *arg2 = (wxWindow *) 0 ;
44688 int arg3 = (int) -1 ;
44689 wxFont const &arg4_defvalue = *wxNORMAL_FONT ;
44690 wxFont *arg4 = (wxFont *) &arg4_defvalue ;
44691 wxPoint const &arg5_defvalue = wxDefaultPosition ;
44692 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
44693 wxSize const &arg6_defvalue = wxDefaultSize ;
44694 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
44695 long arg7 = (long) wxFNTP_DEFAULT_STYLE ;
44696 wxValidator const &arg8_defvalue = wxDefaultValidator ;
44697 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
44698 wxString const &arg9_defvalue = wxPyFontPickerCtrlNameStr ;
44699 wxString *arg9 = (wxString *) &arg9_defvalue ;
44700 bool result;
44701 void *argp1 = 0 ;
44702 int res1 = 0 ;
44703 void *argp2 = 0 ;
44704 int res2 = 0 ;
44705 int val3 ;
44706 int ecode3 = 0 ;
44707 void *argp4 = 0 ;
44708 int res4 = 0 ;
44709 wxPoint temp5 ;
44710 wxSize temp6 ;
44711 long val7 ;
44712 int ecode7 = 0 ;
44713 void *argp8 = 0 ;
44714 int res8 = 0 ;
44715 bool temp9 = false ;
44716 PyObject * obj0 = 0 ;
44717 PyObject * obj1 = 0 ;
44718 PyObject * obj2 = 0 ;
44719 PyObject * obj3 = 0 ;
44720 PyObject * obj4 = 0 ;
44721 PyObject * obj5 = 0 ;
44722 PyObject * obj6 = 0 ;
44723 PyObject * obj7 = 0 ;
44724 PyObject * obj8 = 0 ;
44725 char * kwnames[] = {
44726 (char *) "self",(char *) "parent",(char *) "id",(char *) "initial",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
44727 };
44728
44729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:FontPickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
44730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44731 if (!SWIG_IsOK(res1)) {
44732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_Create" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44733 }
44734 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44735 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
44736 if (!SWIG_IsOK(res2)) {
44737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
44738 }
44739 arg2 = reinterpret_cast< wxWindow * >(argp2);
44740 if (obj2) {
44741 ecode3 = SWIG_AsVal_int(obj2, &val3);
44742 if (!SWIG_IsOK(ecode3)) {
44743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontPickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
44744 }
44745 arg3 = static_cast< int >(val3);
44746 }
44747 if (obj3) {
44748 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxFont, 0 | 0);
44749 if (!SWIG_IsOK(res4)) {
44750 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44751 }
44752 if (!argp4) {
44753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "4"" of type '" "wxFont const &""'");
44754 }
44755 arg4 = reinterpret_cast< wxFont * >(argp4);
44756 }
44757 if (obj4) {
44758 {
44759 arg5 = &temp5;
44760 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
44761 }
44762 }
44763 if (obj5) {
44764 {
44765 arg6 = &temp6;
44766 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
44767 }
44768 }
44769 if (obj6) {
44770 ecode7 = SWIG_AsVal_long(obj6, &val7);
44771 if (!SWIG_IsOK(ecode7)) {
44772 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "FontPickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
44773 }
44774 arg7 = static_cast< long >(val7);
44775 }
44776 if (obj7) {
44777 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
44778 if (!SWIG_IsOK(res8)) {
44779 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44780 }
44781 if (!argp8) {
44782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
44783 }
44784 arg8 = reinterpret_cast< wxValidator * >(argp8);
44785 }
44786 if (obj8) {
44787 {
44788 arg9 = wxString_in_helper(obj8);
44789 if (arg9 == NULL) SWIG_fail;
44790 temp9 = true;
44791 }
44792 }
44793 {
44794 PyThreadState* __tstate = wxPyBeginAllowThreads();
44795 result = (bool)(arg1)->Create(arg2,arg3,(wxFont const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
44796 wxPyEndAllowThreads(__tstate);
44797 if (PyErr_Occurred()) SWIG_fail;
44798 }
44799 {
44800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
44801 }
44802 {
44803 if (temp9)
44804 delete arg9;
44805 }
44806 return resultobj;
44807fail:
44808 {
44809 if (temp9)
44810 delete arg9;
44811 }
44812 return NULL;
44813}
44814
44815
44816SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44817 PyObject *resultobj = 0;
44818 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44819 wxFont result;
44820 void *argp1 = 0 ;
44821 int res1 = 0 ;
44822 PyObject *swig_obj[1] ;
44823
44824 if (!args) SWIG_fail;
44825 swig_obj[0] = args;
44826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44827 if (!SWIG_IsOK(res1)) {
44828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44829 }
44830 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44831 {
44832 PyThreadState* __tstate = wxPyBeginAllowThreads();
44833 result = ((wxFontPickerCtrl const *)arg1)->GetSelectedFont();
44834 wxPyEndAllowThreads(__tstate);
44835 if (PyErr_Occurred()) SWIG_fail;
44836 }
44837 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
44838 return resultobj;
44839fail:
44840 return NULL;
44841}
44842
44843
44844SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetSelectedFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44845 PyObject *resultobj = 0;
44846 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44847 wxFont *arg2 = 0 ;
44848 void *argp1 = 0 ;
44849 int res1 = 0 ;
44850 void *argp2 = 0 ;
44851 int res2 = 0 ;
44852 PyObject * obj0 = 0 ;
44853 PyObject * obj1 = 0 ;
44854 char * kwnames[] = {
44855 (char *) "self",(char *) "f", NULL
44856 };
44857
44858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetSelectedFont",kwnames,&obj0,&obj1)) SWIG_fail;
44859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44860 if (!SWIG_IsOK(res1)) {
44861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44862 }
44863 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44864 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
44865 if (!SWIG_IsOK(res2)) {
44866 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44867 }
44868 if (!argp2) {
44869 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerCtrl_SetSelectedFont" "', expected argument " "2"" of type '" "wxFont const &""'");
44870 }
44871 arg2 = reinterpret_cast< wxFont * >(argp2);
44872 {
44873 PyThreadState* __tstate = wxPyBeginAllowThreads();
44874 (arg1)->SetSelectedFont((wxFont const &)*arg2);
44875 wxPyEndAllowThreads(__tstate);
44876 if (PyErr_Occurred()) SWIG_fail;
44877 }
44878 resultobj = SWIG_Py_Void();
44879 return resultobj;
44880fail:
44881 return NULL;
44882}
44883
44884
44885SWIGINTERN PyObject *_wrap_FontPickerCtrl_SetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44886 PyObject *resultobj = 0;
44887 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44888 unsigned int arg2 ;
44889 void *argp1 = 0 ;
44890 int res1 = 0 ;
44891 unsigned int val2 ;
44892 int ecode2 = 0 ;
44893 PyObject * obj0 = 0 ;
44894 PyObject * obj1 = 0 ;
44895 char * kwnames[] = {
44896 (char *) "self",(char *) "max", NULL
44897 };
44898
44899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerCtrl_SetMaxPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
44900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44901 if (!SWIG_IsOK(res1)) {
44902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl *""'");
44903 }
44904 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44905 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
44906 if (!SWIG_IsOK(ecode2)) {
44907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontPickerCtrl_SetMaxPointSize" "', expected argument " "2"" of type '" "unsigned int""'");
44908 }
44909 arg2 = static_cast< unsigned int >(val2);
44910 {
44911 PyThreadState* __tstate = wxPyBeginAllowThreads();
44912 (arg1)->SetMaxPointSize(arg2);
44913 wxPyEndAllowThreads(__tstate);
44914 if (PyErr_Occurred()) SWIG_fail;
44915 }
44916 resultobj = SWIG_Py_Void();
44917 return resultobj;
44918fail:
44919 return NULL;
44920}
44921
44922
44923SWIGINTERN PyObject *_wrap_FontPickerCtrl_GetMaxPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44924 PyObject *resultobj = 0;
44925 wxFontPickerCtrl *arg1 = (wxFontPickerCtrl *) 0 ;
44926 unsigned int result;
44927 void *argp1 = 0 ;
44928 int res1 = 0 ;
44929 PyObject *swig_obj[1] ;
44930
44931 if (!args) SWIG_fail;
44932 swig_obj[0] = args;
44933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerCtrl, 0 | 0 );
44934 if (!SWIG_IsOK(res1)) {
44935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerCtrl_GetMaxPointSize" "', expected argument " "1"" of type '" "wxFontPickerCtrl const *""'");
44936 }
44937 arg1 = reinterpret_cast< wxFontPickerCtrl * >(argp1);
44938 {
44939 PyThreadState* __tstate = wxPyBeginAllowThreads();
44940 result = (unsigned int)((wxFontPickerCtrl const *)arg1)->GetMaxPointSize();
44941 wxPyEndAllowThreads(__tstate);
44942 if (PyErr_Occurred()) SWIG_fail;
44943 }
44944 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
44945 return resultobj;
44946fail:
44947 return NULL;
44948}
44949
44950
44951SWIGINTERN PyObject *FontPickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44952 PyObject *obj;
44953 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
44954 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerCtrl, SWIG_NewClientData(obj));
44955 return SWIG_Py_Void();
44956}
44957
44958SWIGINTERN PyObject *FontPickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
44959 return SWIG_Python_InitShadowInstance(args);
44960}
44961
44962SWIGINTERN PyObject *_wrap_new_FontPickerEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
44963 PyObject *resultobj = 0;
44964 wxObject *arg1 = (wxObject *) 0 ;
44965 int arg2 ;
44966 wxFont *arg3 = 0 ;
44967 wxFontPickerEvent *result = 0 ;
44968 void *argp1 = 0 ;
44969 int res1 = 0 ;
44970 int val2 ;
44971 int ecode2 = 0 ;
44972 void *argp3 = 0 ;
44973 int res3 = 0 ;
44974 PyObject * obj0 = 0 ;
44975 PyObject * obj1 = 0 ;
44976 PyObject * obj2 = 0 ;
44977 char * kwnames[] = {
44978 (char *) "generator",(char *) "id",(char *) "f", NULL
44979 };
44980
44981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_FontPickerEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
44982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
44983 if (!SWIG_IsOK(res1)) {
44984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontPickerEvent" "', expected argument " "1"" of type '" "wxObject *""'");
44985 }
44986 arg1 = reinterpret_cast< wxObject * >(argp1);
44987 ecode2 = SWIG_AsVal_int(obj1, &val2);
44988 if (!SWIG_IsOK(ecode2)) {
44989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontPickerEvent" "', expected argument " "2"" of type '" "int""'");
44990 }
44991 arg2 = static_cast< int >(val2);
44992 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
44993 if (!SWIG_IsOK(res3)) {
44994 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
44995 }
44996 if (!argp3) {
44997 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontPickerEvent" "', expected argument " "3"" of type '" "wxFont const &""'");
44998 }
44999 arg3 = reinterpret_cast< wxFont * >(argp3);
45000 {
45001 PyThreadState* __tstate = wxPyBeginAllowThreads();
45002 result = (wxFontPickerEvent *)new wxFontPickerEvent(arg1,arg2,(wxFont const &)*arg3);
45003 wxPyEndAllowThreads(__tstate);
45004 if (PyErr_Occurred()) SWIG_fail;
45005 }
45006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontPickerEvent, SWIG_POINTER_NEW | 0 );
45007 return resultobj;
45008fail:
45009 return NULL;
45010}
45011
45012
45013SWIGINTERN PyObject *_wrap_FontPickerEvent_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45014 PyObject *resultobj = 0;
45015 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45016 wxFont result;
45017 void *argp1 = 0 ;
45018 int res1 = 0 ;
45019 PyObject *swig_obj[1] ;
45020
45021 if (!args) SWIG_fail;
45022 swig_obj[0] = args;
45023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45024 if (!SWIG_IsOK(res1)) {
45025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_GetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent const *""'");
45026 }
45027 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45028 {
45029 PyThreadState* __tstate = wxPyBeginAllowThreads();
45030 result = ((wxFontPickerEvent const *)arg1)->GetFont();
45031 wxPyEndAllowThreads(__tstate);
45032 if (PyErr_Occurred()) SWIG_fail;
45033 }
45034 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
45035 return resultobj;
45036fail:
45037 return NULL;
45038}
45039
45040
45041SWIGINTERN PyObject *_wrap_FontPickerEvent_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
45042 PyObject *resultobj = 0;
45043 wxFontPickerEvent *arg1 = (wxFontPickerEvent *) 0 ;
45044 wxFont *arg2 = 0 ;
45045 void *argp1 = 0 ;
45046 int res1 = 0 ;
45047 void *argp2 = 0 ;
45048 int res2 = 0 ;
45049 PyObject * obj0 = 0 ;
45050 PyObject * obj1 = 0 ;
45051 char * kwnames[] = {
45052 (char *) "self",(char *) "c", NULL
45053 };
45054
45055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontPickerEvent_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
45056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontPickerEvent, 0 | 0 );
45057 if (!SWIG_IsOK(res1)) {
45058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontPickerEvent_SetFont" "', expected argument " "1"" of type '" "wxFontPickerEvent *""'");
45059 }
45060 arg1 = reinterpret_cast< wxFontPickerEvent * >(argp1);
45061 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
45062 if (!SWIG_IsOK(res2)) {
45063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45064 }
45065 if (!argp2) {
45066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FontPickerEvent_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
45067 }
45068 arg2 = reinterpret_cast< wxFont * >(argp2);
45069 {
45070 PyThreadState* __tstate = wxPyBeginAllowThreads();
45071 (arg1)->SetFont((wxFont const &)*arg2);
45072 wxPyEndAllowThreads(__tstate);
45073 if (PyErr_Occurred()) SWIG_fail;
45074 }
45075 resultobj = SWIG_Py_Void();
45076 return resultobj;
45077fail:
45078 return NULL;
45079}
45080
45081
45082SWIGINTERN PyObject *FontPickerEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45083 PyObject *obj;
45084 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
45085 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontPickerEvent, SWIG_NewClientData(obj));
45086 return SWIG_Py_Void();
45087}
45088
45089SWIGINTERN PyObject *FontPickerEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
45090 return SWIG_Python_InitShadowInstance(args);
45091}
45092
45093static PyMethodDef SwigMethods[] = {
45094 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
45095 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
45096 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45097 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
45098 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
45099 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45100 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
45101 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
45102 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
45103 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
45104 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45105 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
45106 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
45107 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
45108 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
45109 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
45110 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
45111 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
45112 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45113 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45114 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
45115 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45116 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
45117 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
45118 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
45119 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
45120 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
45121 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
45122 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45123 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
45124 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
45125 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45126 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
45127 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
45128 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
45129 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
45130 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45131 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
45132 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
45133 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
45134 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
45135 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45136 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
45137 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45138 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
45139 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
45140 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
45141 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
45142 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45143 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
45144 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45145 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
45146 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
45147 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
45148 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45149 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
45150 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
45151 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45152 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
45153 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
45154 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45155 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45156 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45157 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
45158 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45159 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
45160 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
45161 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
45162 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
45163 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
45164 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
45165 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
45166 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
45167 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
45168 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45169 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
45170 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
45171 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
45172 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
45173 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45174 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45175 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
45176 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45177 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
45178 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
45179 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45180 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
45181 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
45182 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
45183 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45184 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
45185 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
45186 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
45187 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
45188 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45189 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45190 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
45191 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
45192 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
45193 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
45194 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45195 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
45196 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
45197 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45198 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
45199 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
45200 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
45201 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
45202 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45203 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
45204 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45205 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
45206 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
45207 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45208 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
45209 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45210 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
45211 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45212 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
45213 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45214 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
45215 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
45216 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45217 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
45218 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45219 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
45220 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
45221 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
45222 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45223 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45224 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45225 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
45226 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
45227 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45228 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
45229 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
45230 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
45231 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45232 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45233 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
45234 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45235 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45236 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45237 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45238 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45239 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
45240 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
45241 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
45242 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
45243 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45244 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
45245 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
45246 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
45247 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
45248 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45249 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
45250 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
45251 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
45252 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45253 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45254 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45255 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
45256 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
45257 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45258 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45259 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
45260 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
45261 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
45262 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
45263 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
45264 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
45265 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
45266 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
45267 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
45268 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
45269 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
45270 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
45271 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
45272 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
45273 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
45274 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
45275 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
45276 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
45277 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
45278 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
45279 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
45280 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
45281 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45282 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
45283 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45284 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
45285 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45286 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45287 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
45288 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
45289 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
45290 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
45291 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
45292 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
45293 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
45294 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
45295 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
45296 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
45297 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
45298 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
45299 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
45300 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
45301 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
45302 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
b02396e8 45303 { (char *)"TextCtrl_SetModified", (PyCFunction) _wrap_TextCtrl_SetModified, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
45304 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
45305 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
45306 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
45307 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
45308 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45309 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45310 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45311 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
45312 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45313 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
45314 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45315 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45316 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
45317 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
45318 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
45319 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
45320 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
45321 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
45322 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
45323 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
45324 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
45325 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
45326 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
45327 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45328 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
45329 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
45330 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
45331 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45332 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
45333 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
45334 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
45335 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45336 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45337 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
45338 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
45339 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45340 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
45341 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
45342 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
45343 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
45344 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
45345 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
45346 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
45347 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45348 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
45349 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
45350 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
45351 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
45352 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
45353 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45354 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45355 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
45356 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
45357 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
45358 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
45359 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45360 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
45361 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
45362 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
45363 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45364 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45365 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45366 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45367 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
45368 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45369 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
45370 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
45371 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45372 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
45373 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45374 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
45375 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45376 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
45377 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45378 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
45379 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
45380 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45381 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45382 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
45383 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
45384 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45385 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
45386 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45387 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
45388 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
45389 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
45390 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
45391 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45392 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45393 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
45394 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
45395 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45396 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
45397 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
45398 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
45399 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
45400 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
45401 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
45402 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45403 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
45404 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
45405 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
45406 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45407 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45408 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45409 { (char *)"RadioBox_SetItemHelpText", (PyCFunction) _wrap_RadioBox_SetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45410 { (char *)"RadioBox_GetItemHelpText", (PyCFunction) _wrap_RadioBox_GetItemHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
45411 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45412 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
45413 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
45414 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
45415 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
45416 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45417 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
45418 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45419 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45420 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
45421 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
45422 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
45423 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
45424 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45425 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
45426 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45427 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
45428 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
45429 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
45430 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
45431 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
45432 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
45433 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45434 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
45435 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
45436 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
45437 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
45438 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
45439 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
45440 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
45441 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
45442 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
45443 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
45444 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
45445 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45446 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45447 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
45448 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
45449 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
45450 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
45451 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45452 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
45453 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
45454 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45455 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
45456 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
45457 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
45458 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
45459 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
45460 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
45461 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45462 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
45463 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45464 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45465 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
45466 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45467 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
45468 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
45469 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
45470 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
45471 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
45472 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
45473 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
e9d6f3a4 45474 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
1bd55598
RD
45475 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
45476 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
e9d6f3a4 45477 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
1bd55598
RD
45478 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
45479 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
45480 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
45481 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
45482 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
45483 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45484 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45485 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45486 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45487 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
45488 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45489 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
45490 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45491 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
45492 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45493 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
45494 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
45495 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
45496 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
45497 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45498 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
45499 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
45500 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45501 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
45502 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45503 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
45504 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
45505 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45506 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
45507 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
45508 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
45509 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
45510 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45511 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
45512 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
45513 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
45514 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45515 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
45516 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
45517 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
45518 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
45519 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45520 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
45521 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
45522 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
45523 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45524 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
45525 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
45526 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
45527 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
45528 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45529 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45530 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
45531 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45532 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
45533 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
45534 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
45535 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
45536 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
45537 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
45538 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45539 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
45540 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
45541 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
45542 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
45543 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45544 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
45545 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
45546 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
45547 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
45548 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45549 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
45550 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
45551 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
45552 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
45553 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
45554 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
45555 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
45556 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
45557 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
45558 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
45559 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
45560 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
45561 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
45562 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
45563 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
45564 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
45565 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
45566 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
45567 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
45568 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
45569 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
45570 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45571 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45572 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45573 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45574 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
45575 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45576 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
45577 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
45578 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
45579 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45580 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
45581 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
45582 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
45583 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45584 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
45585 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
45586 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
45587 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
45588 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
45589 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
45590 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
45591 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
45592 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
45593 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
45594 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
45595 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
45596 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
45597 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
45598 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45599 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
45600 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
45601 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
45602 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
45603 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45604 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45605 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45606 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45607 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
45608 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
45609 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
45610 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
45611 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
45612 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
45613 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
45614 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
45615 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
45616 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
45617 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
45618 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
45619 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
45620 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
45621 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
45622 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45623 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
45624 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
45625 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
45626 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
45627 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
45628 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
45629 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45630 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45631 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
45632 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
45633 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
45634 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
45635 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45636 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45637 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45638 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
45639 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
45640 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
45641 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
45642 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
45643 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
45644 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
45645 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
45646 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
45647 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
45648 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
45649 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
45650 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
45651 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
45652 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
45653 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45654 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45655 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
45656 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
45657 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
45658 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
45659 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45660 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45661 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
45662 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45663 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45664 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
45665 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
45666 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
45667 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
45668 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
45669 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
45670 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
45671 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
45672 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
45673 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
45674 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
45675 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
45676 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
45677 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
45678 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
45679 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
45680 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
45681 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
45682 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
45683 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
45684 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
45685 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
45686 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
45687 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
45688 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
45689 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
45690 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
45691 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
45692 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
45693 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
45694 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
45695 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
45696 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
45697 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
45698 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
45699 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
45700 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
45701 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45702 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
45703 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
45704 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
45705 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
45706 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
45707 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
45708 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
45709 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
45710 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
45711 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
45712 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
45713 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
45714 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
45715 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
45716 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
45717 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
45718 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
45719 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
45720 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
45721 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
45722 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
45723 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
45724 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
45725 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
45726 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45727 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
45728 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
45729 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45730 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
45731 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45732 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45733 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45734 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45735 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45736 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
45737 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
45738 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
45739 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
45740 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45741 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45742 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45743 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45744 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
45745 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45746 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45747 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45748 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45749 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45750 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45751 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45752 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
45753 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45754 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
45755 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
45756 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
45757 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45758 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
45759 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
45760 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45761 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
45762 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
45763 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
45764 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45765 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45766 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45767 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
45768 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
45769 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
45770 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
45771 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
45772 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
45773 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
45774 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45775 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
45776 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
45777 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45778 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45779 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
45780 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45781 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
45782 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45783 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45784 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45785 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45786 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
45787 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
45788 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
45789 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
45790 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
45791 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
45792 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45793 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45794 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45795 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45796 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45797 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45798 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
45799 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
45800 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
45801 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
45802 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
45803 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
45804 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
45805 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45806 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
45807 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
45808 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
45809 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45810 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
45811 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45812 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45813 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
45814 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
45815 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
45816 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
45817 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
45818 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
45819 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
45820 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
45821 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
45822 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
45823 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
45824 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
45825 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45826 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
45827 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
45828 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
45829 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
45830 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
45831 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
45832 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
45833 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
b02396e8 45834 { (char *)"new_TreeEvent", _wrap_new_TreeEvent, METH_VARARGS, NULL},
1bd55598
RD
45835 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
45836 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
45837 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
45838 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
45839 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
45840 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
45841 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
45842 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
45843 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45844 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
45845 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45846 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
45847 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
45848 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
45849 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
45850 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
45851 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
45852 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45853 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
45854 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45855 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45856 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
45857 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
45858 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
45859 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
45860 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
45861 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
45862 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
45863 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45864 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45865 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45866 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
45867 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45868 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45869 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45870 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45871 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45872 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45873 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45874 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
45875 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
45876 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
45877 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
45878 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45879 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
45880 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
45881 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
45882 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
45883 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
45884 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45885 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45886 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
45887 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
45888 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
45889 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
45890 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
45891 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
45892 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
45893 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
45894 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
45895 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
45896 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
45897 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45898 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
45899 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
45900 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45901 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45902 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
45903 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
45904 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
45905 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
45906 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
45907 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
45908 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45909 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
45910 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
3d6c9062
RD
45911 { (char *)"TreeCtrl_ExpandAllChildren", (PyCFunction) _wrap_TreeCtrl_ExpandAllChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45912 { (char *)"TreeCtrl_ExpandAll", (PyCFunction)_wrap_TreeCtrl_ExpandAll, METH_O, NULL},
1bd55598
RD
45913 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
45914 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
45915 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
45916 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
45917 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45918 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
45919 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
45920 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
45921 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
45922 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
45923 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
45924 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
45925 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
45926 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
45927 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
45928 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
2131d850
RD
45929 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
45930 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
1bd55598
RD
45931 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
45932 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
45933 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45934 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
45935 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45936 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c 45937 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45938 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
45939 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
45940 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
45941 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
45942 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
45943 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
45944 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
45945 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
45946 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
45947 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
45948 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
45949 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
45950 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
45951 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
45952 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
45953 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
45954 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
45955 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
45956 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
45957 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
45958 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
45959 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
45960 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
45961 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
45962 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
45963 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
45964 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
45965 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
45966 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
45967 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
45968 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
45969 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
45970 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
45971 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
45972 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
45973 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
45974 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
45975 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
45976 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
45977 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
45978 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
45979 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
45980 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
45981 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
45982 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
45983 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
45984 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
45985 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
45986 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
45987 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
704eda0c
RD
45988 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
45989 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
45990 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
45991 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
45992 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45993 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
45994 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
45995 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
45996 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
45997 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
45998 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
45999 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
46000 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
f52cbe90 46001 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
1bd55598
RD
46002 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
46003 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
46004 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46005 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3 46006 { (char *)"HelpProvider_ShowHelpAtPoint", (PyCFunction) _wrap_HelpProvider_ShowHelpAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
1bd55598
RD
46007 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46008 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
46009 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
46010 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
46011 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
46012 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
46013 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
46014 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
46015 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
46016 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
46017 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
46018 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
46019 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
46020 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
46021 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
46022 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
46023 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
46024 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
46025 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
46026 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
46027 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
46028 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
46029 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46030 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
46031 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
46032 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
46033 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
46034 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46035 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
46036 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46037 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
46038 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
46039 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
46040 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
46041 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
46042 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
46043 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
704eda0c
RD
46044 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46045 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
46046 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46047 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
46048 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
46049 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
46050 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
46051 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
46052 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
46053 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
46054 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46055 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
46056 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
46057 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
46058 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
46059 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46060 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
46061 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
46062 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
46063 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
b850e7f3
RD
46064 { (char *)"PickerBase_CreateBase", (PyCFunction) _wrap_PickerBase_CreateBase, METH_VARARGS | METH_KEYWORDS, NULL},
46065 { (char *)"PickerBase_SetInternalMargin", (PyCFunction) _wrap_PickerBase_SetInternalMargin, METH_VARARGS | METH_KEYWORDS, NULL},
46066 { (char *)"PickerBase_GetInternalMargin", (PyCFunction)_wrap_PickerBase_GetInternalMargin, METH_O, NULL},
46067 { (char *)"PickerBase_SetTextCtrlProportion", (PyCFunction) _wrap_PickerBase_SetTextCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46068 { (char *)"PickerBase_GetTextCtrlProportion", (PyCFunction)_wrap_PickerBase_GetTextCtrlProportion, METH_O, NULL},
1eeb270e
RD
46069 { (char *)"PickerBase_SetPickerCtrlProportion", (PyCFunction) _wrap_PickerBase_SetPickerCtrlProportion, METH_VARARGS | METH_KEYWORDS, NULL},
46070 { (char *)"PickerBase_GetPickerCtrlProportion", (PyCFunction)_wrap_PickerBase_GetPickerCtrlProportion, METH_O, NULL},
b02396e8
RD
46071 { (char *)"PickerBase_IsTextCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsTextCtrlGrowable, METH_O, NULL},
46072 { (char *)"PickerBase_SetTextCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetTextCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
46073 { (char *)"PickerBase_IsPickerCtrlGrowable", (PyCFunction)_wrap_PickerBase_IsPickerCtrlGrowable, METH_O, NULL},
46074 { (char *)"PickerBase_SetPickerCtrlGrowable", (PyCFunction) _wrap_PickerBase_SetPickerCtrlGrowable, METH_VARARGS | METH_KEYWORDS, NULL},
b850e7f3
RD
46075 { (char *)"PickerBase_HasTextCtrl", (PyCFunction)_wrap_PickerBase_HasTextCtrl, METH_O, NULL},
46076 { (char *)"PickerBase_GetTextCtrl", (PyCFunction)_wrap_PickerBase_GetTextCtrl, METH_O, NULL},
46077 { (char *)"PickerBase_GetPickerCtrl", (PyCFunction)_wrap_PickerBase_GetPickerCtrl, METH_O, NULL},
46078 { (char *)"PickerBase_swigregister", PickerBase_swigregister, METH_VARARGS, NULL},
46079 { (char *)"new_ColourPickerCtrl", (PyCFunction) _wrap_new_ColourPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46080 { (char *)"new_PreColourPickerCtrl", (PyCFunction)_wrap_new_PreColourPickerCtrl, METH_NOARGS, NULL},
46081 { (char *)"ColourPickerCtrl_Create", (PyCFunction) _wrap_ColourPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46082 { (char *)"ColourPickerCtrl_GetColour", (PyCFunction)_wrap_ColourPickerCtrl_GetColour, METH_O, NULL},
46083 { (char *)"ColourPickerCtrl_SetColour", (PyCFunction) _wrap_ColourPickerCtrl_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46084 { (char *)"ColourPickerCtrl_swigregister", ColourPickerCtrl_swigregister, METH_VARARGS, NULL},
46085 { (char *)"ColourPickerCtrl_swiginit", ColourPickerCtrl_swiginit, METH_VARARGS, NULL},
46086 { (char *)"new_ColourPickerEvent", (PyCFunction) _wrap_new_ColourPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46087 { (char *)"ColourPickerEvent_GetColour", (PyCFunction)_wrap_ColourPickerEvent_GetColour, METH_O, NULL},
46088 { (char *)"ColourPickerEvent_SetColour", (PyCFunction) _wrap_ColourPickerEvent_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
46089 { (char *)"ColourPickerEvent_swigregister", ColourPickerEvent_swigregister, METH_VARARGS, NULL},
46090 { (char *)"ColourPickerEvent_swiginit", ColourPickerEvent_swiginit, METH_VARARGS, NULL},
46091 { (char *)"new_FilePickerCtrl", (PyCFunction) _wrap_new_FilePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46092 { (char *)"new_PreFilePickerCtrl", (PyCFunction)_wrap_new_PreFilePickerCtrl, METH_NOARGS, NULL},
46093 { (char *)"FilePickerCtrl_Create", (PyCFunction) _wrap_FilePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46094 { (char *)"FilePickerCtrl_GetPath", (PyCFunction)_wrap_FilePickerCtrl_GetPath, METH_O, NULL},
46095 { (char *)"FilePickerCtrl_SetPath", (PyCFunction) _wrap_FilePickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46096 { (char *)"FilePickerCtrl_CheckPath", (PyCFunction) _wrap_FilePickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46097 { (char *)"FilePickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_FilePickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46098 { (char *)"FilePickerCtrl_swigregister", FilePickerCtrl_swigregister, METH_VARARGS, NULL},
46099 { (char *)"FilePickerCtrl_swiginit", FilePickerCtrl_swiginit, METH_VARARGS, NULL},
46100 { (char *)"new_DirPickerCtrl", (PyCFunction) _wrap_new_DirPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46101 { (char *)"new_PreDirPickerCtrl", (PyCFunction)_wrap_new_PreDirPickerCtrl, METH_NOARGS, NULL},
46102 { (char *)"DirPickerCtrl_Create", (PyCFunction) _wrap_DirPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46103 { (char *)"DirPickerCtrl_GetPath", (PyCFunction)_wrap_DirPickerCtrl_GetPath, METH_O, NULL},
46104 { (char *)"DirPickerCtrl_SetPath", (PyCFunction) _wrap_DirPickerCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
b02396e8
RD
46105 { (char *)"DirPickerCtrl_CheckPath", (PyCFunction) _wrap_DirPickerCtrl_CheckPath, METH_VARARGS | METH_KEYWORDS, NULL},
46106 { (char *)"DirPickerCtrl_GetTextCtrlValue", (PyCFunction)_wrap_DirPickerCtrl_GetTextCtrlValue, METH_O, NULL},
b850e7f3
RD
46107 { (char *)"DirPickerCtrl_swigregister", DirPickerCtrl_swigregister, METH_VARARGS, NULL},
46108 { (char *)"DirPickerCtrl_swiginit", DirPickerCtrl_swiginit, METH_VARARGS, NULL},
46109 { (char *)"new_FileDirPickerEvent", (PyCFunction) _wrap_new_FileDirPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46110 { (char *)"FileDirPickerEvent_GetPath", (PyCFunction)_wrap_FileDirPickerEvent_GetPath, METH_O, NULL},
46111 { (char *)"FileDirPickerEvent_SetPath", (PyCFunction) _wrap_FileDirPickerEvent_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
46112 { (char *)"FileDirPickerEvent_swigregister", FileDirPickerEvent_swigregister, METH_VARARGS, NULL},
46113 { (char *)"FileDirPickerEvent_swiginit", FileDirPickerEvent_swiginit, METH_VARARGS, NULL},
46114 { (char *)"new_FontPickerCtrl", (PyCFunction) _wrap_new_FontPickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
46115 { (char *)"new_PreFontPickerCtrl", (PyCFunction)_wrap_new_PreFontPickerCtrl, METH_NOARGS, NULL},
46116 { (char *)"FontPickerCtrl_Create", (PyCFunction) _wrap_FontPickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
46117 { (char *)"FontPickerCtrl_GetSelectedFont", (PyCFunction)_wrap_FontPickerCtrl_GetSelectedFont, METH_O, NULL},
46118 { (char *)"FontPickerCtrl_SetSelectedFont", (PyCFunction) _wrap_FontPickerCtrl_SetSelectedFont, METH_VARARGS | METH_KEYWORDS, NULL},
46119 { (char *)"FontPickerCtrl_SetMaxPointSize", (PyCFunction) _wrap_FontPickerCtrl_SetMaxPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
46120 { (char *)"FontPickerCtrl_GetMaxPointSize", (PyCFunction)_wrap_FontPickerCtrl_GetMaxPointSize, METH_O, NULL},
46121 { (char *)"FontPickerCtrl_swigregister", FontPickerCtrl_swigregister, METH_VARARGS, NULL},
46122 { (char *)"FontPickerCtrl_swiginit", FontPickerCtrl_swiginit, METH_VARARGS, NULL},
46123 { (char *)"new_FontPickerEvent", (PyCFunction) _wrap_new_FontPickerEvent, METH_VARARGS | METH_KEYWORDS, NULL},
46124 { (char *)"FontPickerEvent_GetFont", (PyCFunction)_wrap_FontPickerEvent_GetFont, METH_O, NULL},
46125 { (char *)"FontPickerEvent_SetFont", (PyCFunction) _wrap_FontPickerEvent_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
46126 { (char *)"FontPickerEvent_swigregister", FontPickerEvent_swigregister, METH_VARARGS, NULL},
46127 { (char *)"FontPickerEvent_swiginit", FontPickerEvent_swiginit, METH_VARARGS, NULL},
1bd55598
RD
46128 { NULL, NULL, 0, NULL }
46129};
46130
46131
46132/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
46133
46134static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
46135 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
46136}
46137static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
46138 return (void *)((wxEvent *) ((wxMenuEvent *) x));
46139}
46140static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
46141 return (void *)((wxEvent *) ((wxCloseEvent *) x));
46142}
46143static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
46144 return (void *)((wxEvent *) ((wxMouseEvent *) x));
46145}
46146static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
46147 return (void *)((wxEvent *) ((wxEraseEvent *) x));
46148}
46149static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
46150 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46151}
46152static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
46153 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
46154}
46155static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
46156 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
46157}
b850e7f3
RD
46158static void *_p_wxColourPickerEventTo_p_wxEvent(void *x) {
46159 return (void *)((wxEvent *) (wxCommandEvent *) ((wxColourPickerEvent *) x));
46160}
46161static void *_p_wxFileDirPickerEventTo_p_wxEvent(void *x) {
46162 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46163}
46164static void *_p_wxFontPickerEventTo_p_wxEvent(void *x) {
46165 return (void *)((wxEvent *) (wxCommandEvent *) ((wxFontPickerEvent *) x));
46166}
1bd55598
RD
46167static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
46168 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
46169}
46170static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
46171 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
46172}
46173static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
46174 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
46175}
1bd55598
RD
46176static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
46177 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
46178}
2131d850
RD
46179static void *_p_wxPyEventTo_p_wxEvent(void *x) {
46180 return (void *)((wxEvent *) ((wxPyEvent *) x));
46181}
1bd55598
RD
46182static void *_p_wxListEventTo_p_wxEvent(void *x) {
46183 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46184}
46185static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
46186 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46187}
46188static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
46189 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46190}
46191static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
46192 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46193}
46194static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
46195 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46196}
46197static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
46198 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46199}
46200static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
46201 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
46202}
46203static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
46204 return (void *)((wxEvent *) ((wxIdleEvent *) x));
46205}
46206static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
46207 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
46208}
46209static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
46210 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
46211}
46212static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
46213 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
46214}
46215static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
46216 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
46217}
46218static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
46219 return (void *)((wxEvent *) ((wxActivateEvent *) x));
46220}
46221static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
46222 return (void *)((wxEvent *) ((wxSizeEvent *) x));
46223}
46224static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
46225 return (void *)((wxEvent *) ((wxMoveEvent *) x));
46226}
46227static void *_p_wxDateEventTo_p_wxEvent(void *x) {
46228 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
46229}
2131d850
RD
46230static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
46231 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
46232}
1bd55598
RD
46233static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
46234 return (void *)((wxEvent *) ((wxPaintEvent *) x));
46235}
46236static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
46237 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
46238}
46239static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
46240 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
46241}
46242static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
46243 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
46244}
46245static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
46246 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
46247}
46248static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
46249 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46250}
46251static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
46252 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
46253}
704eda0c
RD
46254static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
46255 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
46256}
1bd55598
RD
46257static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
46258 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
46259}
46260static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
46261 return (void *)((wxEvent *) ((wxFocusEvent *) x));
46262}
46263static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
46264 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
46265}
46266static void *_p_wxShowEventTo_p_wxEvent(void *x) {
46267 return (void *)((wxEvent *) ((wxShowEvent *) x));
46268}
46269static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
46270 return (void *)((wxEvent *) ((wxCommandEvent *) x));
46271}
46272static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
46273 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
46274}
46275static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
46276 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46277}
46278static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
46279 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
46280}
46281static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
46282 return (void *)((wxEvent *) ((wxKeyEvent *) x));
46283}
46284static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
46285 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
46286}
46287static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
46288 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46289}
b850e7f3
RD
46290static void *_p_wxColourPickerCtrlTo_p_wxPickerBase(void *x) {
46291 return (void *)((wxPickerBase *) ((wxColourPickerCtrl *) x));
46292}
46293static void *_p_wxFilePickerCtrlTo_p_wxPickerBase(void *x) {
46294 return (void *)((wxPickerBase *) ((wxFilePickerCtrl *) x));
46295}
46296static void *_p_wxDirPickerCtrlTo_p_wxPickerBase(void *x) {
46297 return (void *)((wxPickerBase *) ((wxDirPickerCtrl *) x));
46298}
46299static void *_p_wxFontPickerCtrlTo_p_wxPickerBase(void *x) {
46300 return (void *)((wxPickerBase *) ((wxFontPickerCtrl *) x));
46301}
1bd55598
RD
46302static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
46303 return (void *)((wxItemContainer *) ((wxComboBox *) x));
46304}
46305static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
46306 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46307}
46308static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
46309 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
46310}
46311static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
46312 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
46313}
46314static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
46315 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
46316}
46317static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
46318 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46319}
46320static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
46321 return (void *)((wxPyListCtrl *) ((wxListView *) x));
46322}
46323static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
46324 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
46325}
46326static void *_p_wxToolBarTo_p_wxControl(void *x) {
46327 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
46328}
b850e7f3
RD
46329static void *_p_wxPickerBaseTo_p_wxControl(void *x) {
46330 return (void *)((wxControl *) ((wxPickerBase *) x));
46331}
1bd55598
RD
46332static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
46333 return (void *)((wxControl *) ((wxToggleButton *) x));
46334}
46335static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
46336 return (void *)((wxControl *) ((wxRadioButton *) x));
46337}
46338static void *_p_wxToolbookTo_p_wxControl(void *x) {
46339 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
46340}
46341static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
46342 return (void *)((wxControl *) ((wxToolBarBase *) x));
46343}
46344static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
46345 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46346}
46347static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
46348 return (void *)((wxControl *) ((wxPyListCtrl *) x));
46349}
46350static void *_p_wxComboBoxTo_p_wxControl(void *x) {
46351 return (void *)((wxControl *) ((wxComboBox *) x));
46352}
46353static void *_p_wxPyControlTo_p_wxControl(void *x) {
46354 return (void *)((wxControl *) ((wxPyControl *) x));
46355}
46356static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
46357 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
46358}
46359static void *_p_wxScrollBarTo_p_wxControl(void *x) {
46360 return (void *)((wxControl *) ((wxScrollBar *) x));
46361}
46362static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
46363 return (void *)((wxControl *) ((wxControlWithItems *) x));
46364}
46365static void *_p_wxGaugeTo_p_wxControl(void *x) {
46366 return (void *)((wxControl *) ((wxGauge *) x));
46367}
46368static void *_p_wxStaticLineTo_p_wxControl(void *x) {
46369 return (void *)((wxControl *) ((wxStaticLine *) x));
46370}
46371static void *_p_wxChoicebookTo_p_wxControl(void *x) {
46372 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
46373}
46374static void *_p_wxListbookTo_p_wxControl(void *x) {
46375 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
46376}
704eda0c
RD
46377static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
46378 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
46379}
1bd55598
RD
46380static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
46381 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
46382}
46383static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
46384 return (void *)((wxControl *) ((wxCheckBox *) x));
46385}
46386static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
46387 return (void *)((wxControl *) ((wxRadioBox *) x));
46388}
46389static void *_p_wxChoiceTo_p_wxControl(void *x) {
46390 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
46391}
46392static void *_p_wxListBoxTo_p_wxControl(void *x) {
46393 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
46394}
46395static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
46396 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46397}
46398static void *_p_wxListViewTo_p_wxControl(void *x) {
46399 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
46400}
46401static void *_p_wxNotebookTo_p_wxControl(void *x) {
46402 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
46403}
46404static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
46405 return (void *)((wxControl *) ((wxStaticBitmap *) x));
46406}
46407static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
46408 return (void *)((wxControl *) ((wxSpinCtrl *) x));
46409}
46410static void *_p_wxStaticTextTo_p_wxControl(void *x) {
46411 return (void *)((wxControl *) ((wxStaticText *) x));
46412}
46413static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
46414 return (void *)((wxControl *) ((wxStaticBox *) x));
46415}
46416static void *_p_wxSliderTo_p_wxControl(void *x) {
46417 return (void *)((wxControl *) ((wxSlider *) x));
46418}
46419static void *_p_wxTreebookTo_p_wxControl(void *x) {
46420 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
46421}
46422static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
46423 return (void *)((wxControl *) ((wxSpinButton *) x));
46424}
46425static void *_p_wxButtonTo_p_wxControl(void *x) {
46426 return (void *)((wxControl *) ((wxButton *) x));
46427}
46428static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
46429 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
46430}
46431static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
46432 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46433}
46434static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
46435 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
46436}
b850e7f3
RD
46437static void *_p_wxColourPickerCtrlTo_p_wxControl(void *x) {
46438 return (void *)((wxControl *) (wxPickerBase *) ((wxColourPickerCtrl *) x));
46439}
46440static void *_p_wxFilePickerCtrlTo_p_wxControl(void *x) {
46441 return (void *)((wxControl *) (wxPickerBase *) ((wxFilePickerCtrl *) x));
46442}
46443static void *_p_wxDirPickerCtrlTo_p_wxControl(void *x) {
46444 return (void *)((wxControl *) (wxPickerBase *) ((wxDirPickerCtrl *) x));
46445}
46446static void *_p_wxFontPickerCtrlTo_p_wxControl(void *x) {
46447 return (void *)((wxControl *) (wxPickerBase *) ((wxFontPickerCtrl *) x));
46448}
1bd55598
RD
46449static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
46450 return (void *)((wxControl *) ((wxTextCtrl *) x));
46451}
46452static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
46453 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
46454}
46455static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
46456 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
46457}
46458static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
46459 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
46460}
46461static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
46462 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
46463}
46464static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
46465 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
46466}
46467static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
46468 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
46469}
46470static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
46471 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46472}
46473static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
46474 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46475}
46476static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
46477 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46478}
46479static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
46480 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46481}
46482static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
46483 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46484}
46485static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
46486 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
46487}
46488static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
46489 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
46490}
46491static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
46492 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
46493}
46494static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
46495 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
46496}
46497static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
46498 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
46499}
46500static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
46501 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
46502}
46503static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
46504 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46505}
46506static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
46507 return (void *)((wxEvtHandler *) ((wxValidator *) x));
46508}
46509static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
46510 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
46511}
46512static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
46513 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
46514}
b850e7f3
RD
46515static void *_p_wxPickerBaseTo_p_wxEvtHandler(void *x) {
46516 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPickerBase *) x));
46517}
1bd55598
RD
46518static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
46519 return (void *)((wxEvtHandler *) ((wxMenu *) x));
46520}
46521static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
46522 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
46523}
46524static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
46525 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
46526}
46527static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
46528 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46529}
46530static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
46531 return (void *)((wxEvtHandler *) ((wxWindow *) x));
46532}
46533static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
46534 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
46535}
46536static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
46537 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
46538}
46539static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
46540 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46541}
46542static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
46543 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46544}
46545static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
46546 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46547}
46548static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
46549 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
46550}
46551static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
46552 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
46553}
46554static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
46555 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46556}
46557static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
46558 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
46559}
46560static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
46561 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
46562}
46563static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
46564 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
46565}
46566static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
46567 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
46568}
46569static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
46570 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46571}
46572static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
46573 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46574}
704eda0c
RD
46575static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
46576 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
46577}
1bd55598
RD
46578static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
46579 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46580}
46581static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
46582 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
46583}
46584static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
46585 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
46586}
46587static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
46588 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46589}
46590static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
46591 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46592}
46593static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
46594 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46595}
46596static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
46597 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46598}
46599static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
46600 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46601}
46602static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
46603 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46604}
46605static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
46606 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46607}
46608static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
46609 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
46610}
46611static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
46612 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
46613}
46614static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
46615 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
46616}
46617static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
46618 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46619}
46620static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
46621 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
46622}
46623static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
46624 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
46625}
46626static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
46627 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46628}
46629static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
46630 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46631}
46632static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
46633 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
46634}
b850e7f3
RD
46635static void *_p_wxColourPickerCtrlTo_p_wxEvtHandler(void *x) {
46636 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
46637}
46638static void *_p_wxFilePickerCtrlTo_p_wxEvtHandler(void *x) {
46639 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
46640}
46641static void *_p_wxDirPickerCtrlTo_p_wxEvtHandler(void *x) {
46642 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
46643}
46644static void *_p_wxFontPickerCtrlTo_p_wxEvtHandler(void *x) {
46645 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
46646}
1bd55598
RD
46647static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
46648 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46649}
46650static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
46651 return (void *)((wxListBox *) ((wxCheckListBox *) x));
46652}
46653static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
46654 return (void *)((wxButton *) ((wxBitmapButton *) x));
46655}
46656static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
46657 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
46658}
46659static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
46660 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
46661}
46662static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
46663 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
46664}
46665static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
46666 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
46667}
46668static void *_p_wxToolbookTo_p_wxObject(void *x) {
46669 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
46670}
46671static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
46672 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
46673}
46674static void *_p_wxSizerItemTo_p_wxObject(void *x) {
46675 return (void *)((wxObject *) ((wxSizerItem *) x));
46676}
46677static void *_p_wxScrollEventTo_p_wxObject(void *x) {
46678 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
46679}
46680static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
46681 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
46682}
46683static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
46684 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
46685}
46686static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
46687 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
46688}
46689static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
46690 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
46691}
46692static void *_p_wxSizerTo_p_wxObject(void *x) {
46693 return (void *)((wxObject *) ((wxSizer *) x));
46694}
46695static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
46696 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
46697}
46698static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
46699 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
46700}
46701static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
46702 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
46703}
46704static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
46705 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
46706}
46707static void *_p_wxEventTo_p_wxObject(void *x) {
46708 return (void *)((wxObject *) ((wxEvent *) x));
46709}
46710static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
46711 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
46712}
46713static void *_p_wxGridSizerTo_p_wxObject(void *x) {
46714 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
46715}
46716static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
46717 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
46718}
46719static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
46720 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
46721}
b850e7f3
RD
46722static void *_p_wxPickerBaseTo_p_wxObject(void *x) {
46723 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPickerBase *) x));
46724}
1bd55598
RD
46725static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
46726 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
46727}
46728static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
46729 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
46730}
2131d850
RD
46731static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
46732 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
46733}
1bd55598
RD
46734static void *_p_wxPaintEventTo_p_wxObject(void *x) {
46735 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
46736}
46737static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
46738 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
46739}
46740static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
46741 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
46742}
46743static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
46744 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
46745}
46746static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
46747 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
46748}
46749static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
46750 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
46751}
46752static void *_p_wxStaticLineTo_p_wxObject(void *x) {
46753 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
46754}
46755static void *_p_wxControlTo_p_wxObject(void *x) {
46756 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
46757}
46758static void *_p_wxPyControlTo_p_wxObject(void *x) {
46759 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
46760}
46761static void *_p_wxGaugeTo_p_wxObject(void *x) {
46762 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
46763}
46764static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
46765 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
46766}
46767static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
46768 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
46769}
46770static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
46771 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
46772}
46773static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
46774 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
46775}
b850e7f3
RD
46776static void *_p_wxColourPickerEventTo_p_wxObject(void *x) {
46777 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxColourPickerEvent *) x));
46778}
46779static void *_p_wxFileDirPickerEventTo_p_wxObject(void *x) {
46780 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFileDirPickerEvent *) x));
46781}
46782static void *_p_wxFontPickerEventTo_p_wxObject(void *x) {
46783 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFontPickerEvent *) x));
46784}
1bd55598
RD
46785static void *_p_wxChoiceTo_p_wxObject(void *x) {
46786 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
46787}
46788static void *_p_wxFSFileTo_p_wxObject(void *x) {
46789 return (void *)((wxObject *) ((wxFSFile *) x));
46790}
46791static void *_p_wxPySizerTo_p_wxObject(void *x) {
46792 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
46793}
46794static void *_p_wxTreebookTo_p_wxObject(void *x) {
46795 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
46796}
46797static void *_p_wxListViewTo_p_wxObject(void *x) {
46798 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
46799}
704eda0c
RD
46800static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
46801 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
46802}
1bd55598
RD
46803static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
46804 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
46805}
46806static void *_p_wxNotebookTo_p_wxObject(void *x) {
46807 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
46808}
46809static void *_p_wxPyEventTo_p_wxObject(void *x) {
46810 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
46811}
46812static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
46813 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
46814}
46815static void *_p_wxChoicebookTo_p_wxObject(void *x) {
46816 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
46817}
46818static void *_p_wxListbookTo_p_wxObject(void *x) {
46819 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
46820}
46821static void *_p_wxShowEventTo_p_wxObject(void *x) {
46822 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
46823}
46824static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
46825 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
46826}
46827static void *_p_wxSliderTo_p_wxObject(void *x) {
46828 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
46829}
46830static void *_p_wxMenuItemTo_p_wxObject(void *x) {
46831 return (void *)((wxObject *) ((wxMenuItem *) x));
46832}
46833static void *_p_wxDateEventTo_p_wxObject(void *x) {
46834 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
46835}
46836static void *_p_wxIdleEventTo_p_wxObject(void *x) {
46837 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
46838}
46839static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
46840 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
46841}
46842static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
46843 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
46844}
46845static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
46846 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
46847}
46848static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
46849 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
46850}
46851static void *_p_wxSizeEventTo_p_wxObject(void *x) {
46852 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
46853}
46854static void *_p_wxMoveEventTo_p_wxObject(void *x) {
46855 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
46856}
46857static void *_p_wxActivateEventTo_p_wxObject(void *x) {
46858 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
46859}
46860static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
46861 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
46862}
46863static void *_p_wxContextHelpTo_p_wxObject(void *x) {
46864 return (void *)((wxObject *) ((wxContextHelp *) x));
46865}
46866static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
46867 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
46868}
46869static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
46870 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
46871}
46872static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
46873 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
46874}
46875static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
46876 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
46877}
46878static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
46879 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
46880}
46881static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
46882 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
46883}
46884static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
46885 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
46886}
46887static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
46888 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
46889}
46890static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
46891 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
46892}
46893static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
46894 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
46895}
46896static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
46897 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
46898}
46899static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
46900 return (void *)((wxObject *) ((wxImageHandler *) x));
46901}
46902static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
46903 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
46904}
46905static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
46906 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
46907}
46908static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
46909 return (void *)((wxObject *) ((wxEvtHandler *) x));
46910}
46911static void *_p_wxListEventTo_p_wxObject(void *x) {
46912 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
46913}
46914static void *_p_wxListBoxTo_p_wxObject(void *x) {
46915 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
46916}
46917static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
46918 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
46919}
46920static void *_p_wxButtonTo_p_wxObject(void *x) {
46921 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
46922}
46923static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
46924 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
46925}
46926static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
46927 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
46928}
46929static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
46930 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
46931}
46932static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
46933 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
46934}
46935static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
46936 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
46937}
46938static void *_p_wxScrollBarTo_p_wxObject(void *x) {
46939 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
46940}
46941static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
46942 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
46943}
46944static void *_p_wxComboBoxTo_p_wxObject(void *x) {
46945 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
46946}
46947static void *_p_wxHelpEventTo_p_wxObject(void *x) {
46948 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
46949}
46950static void *_p_wxListItemTo_p_wxObject(void *x) {
46951 return (void *)((wxObject *) ((wxListItem *) x));
46952}
46953static void *_p_wxImageTo_p_wxObject(void *x) {
46954 return (void *)((wxObject *) ((wxImage *) x));
46955}
46956static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
46957 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
46958}
46959static void *_p_wxSpinEventTo_p_wxObject(void *x) {
46960 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
46961}
46962static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
46963 return (void *)((wxObject *) ((wxGenericDragImage *) x));
46964}
46965static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
46966 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
46967}
46968static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
46969 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
46970}
46971static void *_p_wxListbookEventTo_p_wxObject(void *x) {
46972 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
46973}
46974static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
46975 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
46976}
46977static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
46978 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
46979}
46980static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
46981 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
46982}
46983static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
46984 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
46985}
46986static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
46987 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
46988}
46989static void *_p_wxKeyEventTo_p_wxObject(void *x) {
46990 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
46991}
46992static void *_p_wxWindowTo_p_wxObject(void *x) {
46993 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
46994}
46995static void *_p_wxMenuTo_p_wxObject(void *x) {
46996 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
46997}
46998static void *_p_wxMenuBarTo_p_wxObject(void *x) {
46999 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
47000}
47001static void *_p_wxFileSystemTo_p_wxObject(void *x) {
47002 return (void *)((wxObject *) ((wxFileSystem *) x));
47003}
47004static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
47005 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
47006}
47007static void *_p_wxMenuEventTo_p_wxObject(void *x) {
47008 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
47009}
47010static void *_p_wxPyAppTo_p_wxObject(void *x) {
47011 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
47012}
47013static void *_p_wxCloseEventTo_p_wxObject(void *x) {
47014 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
47015}
47016static void *_p_wxMouseEventTo_p_wxObject(void *x) {
47017 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
47018}
47019static void *_p_wxEraseEventTo_p_wxObject(void *x) {
47020 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
47021}
47022static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
47023 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47024}
47025static void *_p_wxTreeEventTo_p_wxObject(void *x) {
47026 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
47027}
47028static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
47029 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
47030}
47031static void *_p_wxCommandEventTo_p_wxObject(void *x) {
47032 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
47033}
47034static void *_p_wxStaticTextTo_p_wxObject(void *x) {
47035 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
47036}
47037static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
47038 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
47039}
47040static void *_p_wxFocusEventTo_p_wxObject(void *x) {
47041 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
47042}
47043static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
47044 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
47045}
47046static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
47047 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
47048}
b850e7f3
RD
47049static void *_p_wxColourPickerCtrlTo_p_wxObject(void *x) {
47050 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47051}
47052static void *_p_wxFilePickerCtrlTo_p_wxObject(void *x) {
47053 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47054}
47055static void *_p_wxDirPickerCtrlTo_p_wxObject(void *x) {
47056 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47057}
47058static void *_p_wxFontPickerCtrlTo_p_wxObject(void *x) {
47059 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47060}
1bd55598
RD
47061static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
47062 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
47063}
704eda0c
RD
47064static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
47065 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
47066}
1bd55598
RD
47067static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
47068 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
47069}
47070static void *_p_wxToolBarTo_p_wxObject(void *x) {
47071 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47072}
47073static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
47074 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
47075}
47076static void *_p_wxValidatorTo_p_wxObject(void *x) {
47077 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
47078}
47079static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
47080 return (void *)((wxWindow *) ((wxMenuBar *) x));
47081}
47082static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
47083 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
47084}
47085static void *_p_wxToolBarTo_p_wxWindow(void *x) {
47086 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
47087}
b850e7f3
RD
47088static void *_p_wxPickerBaseTo_p_wxWindow(void *x) {
47089 return (void *)((wxWindow *) (wxControl *) ((wxPickerBase *) x));
47090}
1bd55598
RD
47091static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
47092 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
47093}
47094static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
47095 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
47096}
47097static void *_p_wxToolbookTo_p_wxWindow(void *x) {
47098 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
47099}
47100static void *_p_wxControlTo_p_wxWindow(void *x) {
47101 return (void *)((wxWindow *) ((wxControl *) x));
47102}
47103static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
47104 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
47105}
47106static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
47107 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
47108}
47109static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
47110 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
47111}
47112static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
47113 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
47114}
47115static void *_p_wxPyControlTo_p_wxWindow(void *x) {
47116 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
47117}
47118static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
47119 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
47120}
47121static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
47122 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
47123}
47124static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
47125 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
47126}
47127static void *_p_wxGaugeTo_p_wxWindow(void *x) {
47128 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
47129}
47130static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
47131 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
47132}
47133static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
47134 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
47135}
47136static void *_p_wxListbookTo_p_wxWindow(void *x) {
47137 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
47138}
704eda0c
RD
47139static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
47140 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
47141}
1bd55598
RD
47142static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
47143 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
47144}
47145static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
47146 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
47147}
47148static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
47149 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
47150}
47151static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
47152 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
47153}
47154static void *_p_wxChoiceTo_p_wxWindow(void *x) {
47155 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
47156}
47157static void *_p_wxListBoxTo_p_wxWindow(void *x) {
47158 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
47159}
47160static void *_p_wxListViewTo_p_wxWindow(void *x) {
47161 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
47162}
47163static void *_p_wxNotebookTo_p_wxWindow(void *x) {
47164 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
47165}
47166static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
47167 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
47168}
47169static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
47170 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
47171}
47172static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
47173 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
47174}
47175static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
47176 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
47177}
47178static void *_p_wxSliderTo_p_wxWindow(void *x) {
47179 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
47180}
47181static void *_p_wxTreebookTo_p_wxWindow(void *x) {
47182 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
47183}
47184static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
47185 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
47186}
47187static void *_p_wxButtonTo_p_wxWindow(void *x) {
47188 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
47189}
47190static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
47191 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
47192}
47193static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
47194 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
47195}
47196static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
47197 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
47198}
b850e7f3
RD
47199static void *_p_wxColourPickerCtrlTo_p_wxWindow(void *x) {
47200 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxColourPickerCtrl *) x));
47201}
47202static void *_p_wxFilePickerCtrlTo_p_wxWindow(void *x) {
47203 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFilePickerCtrl *) x));
47204}
47205static void *_p_wxDirPickerCtrlTo_p_wxWindow(void *x) {
47206 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxDirPickerCtrl *) x));
47207}
47208static void *_p_wxFontPickerCtrlTo_p_wxWindow(void *x) {
47209 return (void *)((wxWindow *) (wxControl *)(wxPickerBase *) ((wxFontPickerCtrl *) x));
47210}
1bd55598
RD
47211static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
47212 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
47213}
47214static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47215 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47216}
47217static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47218 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47219}
47220static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47221 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47222}
47223static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47224 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47225}
47226static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
47227 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47228}
47229static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
47230 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
47231}
704eda0c
RD
47232static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
47233 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
47234}
2131d850
RD
47235static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
47236 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
47237}
b850e7f3
RD
47238static void *_p_wxColourPickerEventTo_p_wxCommandEvent(void *x) {
47239 return (void *)((wxCommandEvent *) ((wxColourPickerEvent *) x));
47240}
47241static void *_p_wxFileDirPickerEventTo_p_wxCommandEvent(void *x) {
47242 return (void *)((wxCommandEvent *) ((wxFileDirPickerEvent *) x));
47243}
47244static void *_p_wxFontPickerEventTo_p_wxCommandEvent(void *x) {
47245 return (void *)((wxCommandEvent *) ((wxFontPickerEvent *) x));
47246}
1bd55598
RD
47247static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
47248 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
47249}
47250static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
47251 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
47252}
47253static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
47254 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
47255}
47256static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
47257 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
47258}
47259static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
47260 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
47261}
1bd55598
RD
47262static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
47263 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
47264}
2131d850
RD
47265static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
47266 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
47267}
1bd55598
RD
47268static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
47269 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
47270}
47271static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
47272 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
47273}
47274static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
47275 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
47276}
47277static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
47278 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
47279}
47280static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
47281 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
47282}
47283static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
47284 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
47285}
47286static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
47287 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
47288}
47289static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
47290 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
47291}
47292static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
47293 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
47294}
47295static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
47296 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
47297}
47298static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
47299 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
47300}
47301static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
47302 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
47303}
47304static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
47305 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
47306}
47307static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
47308 return (void *)((wxControlWithItems *) ((wxChoice *) x));
47309}
47310static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
47311 return (void *)((wxControlWithItems *) ((wxListBox *) x));
47312}
47313static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
47314 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
47315}
47316static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
47317 return (void *)((wxValidator *) ((wxPyValidator *) x));
47318}
47319static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
47320static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
47321static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
47322static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
47323static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
47324static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
47325static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
47326static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
47327static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
47328static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
47329static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
47330static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
47331static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
47332static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
47333static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
47334static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
47335static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
47336static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
47337static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
47338static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
47339static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
47340static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
b850e7f3
RD
47341static swig_type_info _swigt__p_wxColourPickerCtrl = {"_p_wxColourPickerCtrl", "wxColourPickerCtrl *", 0, 0, (void*)0, 0};
47342static swig_type_info _swigt__p_wxColourPickerEvent = {"_p_wxColourPickerEvent", "wxColourPickerEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47343static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
47344static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
47345static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
2131d850 47346static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
1bd55598
RD
47347static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
47348static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
47349static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
47350static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
47351static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
47352static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
47353static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
47354static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
47355static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
47356static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
47357static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
47358static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
47359static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
47360static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
47361static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
47362static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
b850e7f3 47363static swig_type_info _swigt__p_wxDirPickerCtrl = {"_p_wxDirPickerCtrl", "wxDirPickerCtrl *", 0, 0, (void*)0, 0};
1bd55598
RD
47364static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
47365static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
47366static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
47367static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
47368static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
47369static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
47370static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
47371static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
47372static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
47373static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
47374static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
47375static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
47376static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
47377static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
47378static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
47379static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
47380static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
47381static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
47382static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
47383static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
47384static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
47385static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
47386static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
47387static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
47388static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
47389static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
47390static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
47391static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
47392static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
47393static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
47394static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
b850e7f3
RD
47395static swig_type_info _swigt__p_wxFileDirPickerEvent = {"_p_wxFileDirPickerEvent", "wxFileDirPickerEvent *", 0, 0, (void*)0, 0};
47396static swig_type_info _swigt__p_wxFilePickerCtrl = {"_p_wxFilePickerCtrl", "wxFilePickerCtrl *", 0, 0, (void*)0, 0};
1bd55598 47397static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
b850e7f3
RD
47398static swig_type_info _swigt__p_wxFontPickerCtrl = {"_p_wxFontPickerCtrl", "wxFontPickerCtrl *", 0, 0, (void*)0, 0};
47399static swig_type_info _swigt__p_wxFontPickerEvent = {"_p_wxFontPickerEvent", "wxFontPickerEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47400static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
47401static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
47402static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
47403static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
47404static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
704eda0c
RD
47405static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
47406static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47407static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
47408static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
47409static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
47410static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
47411static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
47412static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
47413static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
47414static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
47415static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
47416static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
47417static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
47418static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
47419static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
47420static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
47421static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
47422static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
47423static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
47424static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
47425static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
47426static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
47427static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
47428static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
47429static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
47430static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
47431static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
47432static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
47433static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
47434static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
47435static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
47436static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
1bd55598
RD
47437static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
47438static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
47439static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
47440static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
47441static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
b850e7f3
RD
47442static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
47443static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
47444static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
47445static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
704eda0c 47446static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
2131d850 47447static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
1bd55598
RD
47448static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
47449static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
47450static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
47451static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
47452static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
47453static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
47454static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
b850e7f3 47455static swig_type_info _swigt__p_wxPickerBase = {"_p_wxPickerBase", "wxPickerBase *", 0, 0, (void*)0, 0};
1bd55598
RD
47456static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
47457static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
47458static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
47459static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
47460static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
47461static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
47462static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
47463static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
47464static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
47465static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
47466static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
47467static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
47468static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
47469static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
47470static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
47471static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
47472static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
47473static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
47474static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
47475static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
47476static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
47477static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
47478static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
47479static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
47480static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
47481static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
47482static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
47483static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
47484static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
1bd55598
RD
47485static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
47486static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
47487static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
47488static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
47489static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
47490static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
47491static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
b850e7f3 47492static swig_type_info _swigt__p_wxWindowBase = {"_p_wxWindowBase", "wxWindowBase *", 0, 0, (void*)0, 0};
1bd55598
RD
47493
47494static swig_type_info *swig_type_initial[] = {
47495 &_swigt__p_bool,
47496 &_swigt__p_char,
47497 &_swigt__p_form_ops_t,
47498 &_swigt__p_int,
47499 &_swigt__p_long,
47500 &_swigt__p_unsigned_char,
47501 &_swigt__p_unsigned_int,
47502 &_swigt__p_unsigned_long,
47503 &_swigt__p_void,
47504 &_swigt__p_wxANIHandler,
47505 &_swigt__p_wxAcceleratorTable,
47506 &_swigt__p_wxActivateEvent,
47507 &_swigt__p_wxArrayInt,
47508 &_swigt__p_wxArrayString,
47509 &_swigt__p_wxBMPHandler,
47510 &_swigt__p_wxBitmap,
47511 &_swigt__p_wxBitmapButton,
47512 &_swigt__p_wxBookCtrlBase,
47513 &_swigt__p_wxBookCtrlBaseEvent,
47514 &_swigt__p_wxBoxSizer,
47515 &_swigt__p_wxButton,
47516 &_swigt__p_wxCURHandler,
47517 &_swigt__p_wxCheckBox,
47518 &_swigt__p_wxCheckListBox,
47519 &_swigt__p_wxChildFocusEvent,
47520 &_swigt__p_wxChoice,
47521 &_swigt__p_wxChoicebook,
47522 &_swigt__p_wxChoicebookEvent,
2131d850 47523 &_swigt__p_wxClipboardTextEvent,
1bd55598
RD
47524 &_swigt__p_wxCloseEvent,
47525 &_swigt__p_wxColour,
b850e7f3
RD
47526 &_swigt__p_wxColourPickerCtrl,
47527 &_swigt__p_wxColourPickerEvent,
1bd55598
RD
47528 &_swigt__p_wxComboBox,
47529 &_swigt__p_wxCommandEvent,
47530 &_swigt__p_wxContextHelp,
47531 &_swigt__p_wxContextHelpButton,
47532 &_swigt__p_wxContextMenuEvent,
47533 &_swigt__p_wxControl,
47534 &_swigt__p_wxControlWithItems,
47535 &_swigt__p_wxCursor,
47536 &_swigt__p_wxDC,
47537 &_swigt__p_wxDateEvent,
47538 &_swigt__p_wxDatePickerCtrl,
47539 &_swigt__p_wxDateTime,
47540 &_swigt__p_wxDirFilterListCtrl,
b850e7f3 47541 &_swigt__p_wxDirPickerCtrl,
1bd55598
RD
47542 &_swigt__p_wxDisplayChangedEvent,
47543 &_swigt__p_wxDropFilesEvent,
47544 &_swigt__p_wxDuplexMode,
47545 &_swigt__p_wxEraseEvent,
47546 &_swigt__p_wxEvent,
47547 &_swigt__p_wxEvtHandler,
47548 &_swigt__p_wxFSFile,
b850e7f3
RD
47549 &_swigt__p_wxFileDirPickerEvent,
47550 &_swigt__p_wxFilePickerCtrl,
1bd55598
RD
47551 &_swigt__p_wxFileSystem,
47552 &_swigt__p_wxFlexGridSizer,
47553 &_swigt__p_wxFocusEvent,
47554 &_swigt__p_wxFont,
b850e7f3
RD
47555 &_swigt__p_wxFontPickerCtrl,
47556 &_swigt__p_wxFontPickerEvent,
1bd55598
RD
47557 &_swigt__p_wxGBSizerItem,
47558 &_swigt__p_wxGIFHandler,
47559 &_swigt__p_wxGauge,
47560 &_swigt__p_wxGenericDirCtrl,
47561 &_swigt__p_wxGenericDragImage,
47562 &_swigt__p_wxGridBagSizer,
47563 &_swigt__p_wxGridSizer,
47564 &_swigt__p_wxHelpEvent,
47565 &_swigt__p_wxHelpProvider,
704eda0c
RD
47566 &_swigt__p_wxHyperlinkCtrl,
47567 &_swigt__p_wxHyperlinkEvent,
1bd55598
RD
47568 &_swigt__p_wxICOHandler,
47569 &_swigt__p_wxIcon,
47570 &_swigt__p_wxIconizeEvent,
47571 &_swigt__p_wxIdleEvent,
47572 &_swigt__p_wxImage,
47573 &_swigt__p_wxImageHandler,
47574 &_swigt__p_wxImageList,
47575 &_swigt__p_wxIndividualLayoutConstraint,
47576 &_swigt__p_wxInitDialogEvent,
47577 &_swigt__p_wxItemContainer,
47578 &_swigt__p_wxJPEGHandler,
47579 &_swigt__p_wxKeyEvent,
47580 &_swigt__p_wxLayoutConstraints,
47581 &_swigt__p_wxListBox,
47582 &_swigt__p_wxListEvent,
47583 &_swigt__p_wxListItem,
47584 &_swigt__p_wxListItemAttr,
47585 &_swigt__p_wxListView,
47586 &_swigt__p_wxListbook,
47587 &_swigt__p_wxListbookEvent,
47588 &_swigt__p_wxMaximizeEvent,
47589 &_swigt__p_wxMemoryDC,
47590 &_swigt__p_wxMenu,
47591 &_swigt__p_wxMenuBar,
47592 &_swigt__p_wxMenuEvent,
47593 &_swigt__p_wxMenuItem,
47594 &_swigt__p_wxMouseCaptureChangedEvent,
47595 &_swigt__p_wxMouseEvent,
47596 &_swigt__p_wxMoveEvent,
47597 &_swigt__p_wxNavigationKeyEvent,
47598 &_swigt__p_wxNcPaintEvent,
47599 &_swigt__p_wxNotebook,
47600 &_swigt__p_wxNotebookEvent,
47601 &_swigt__p_wxNotifyEvent,
47602 &_swigt__p_wxObject,
47603 &_swigt__p_wxPCXHandler,
47604 &_swigt__p_wxPNGHandler,
47605 &_swigt__p_wxPNMHandler,
47606 &_swigt__p_wxPaintEvent,
47607 &_swigt__p_wxPaletteChangedEvent,
47608 &_swigt__p_wxPaperSize,
b850e7f3 47609 &_swigt__p_wxPickerBase,
1bd55598
RD
47610 &_swigt__p_wxPoint,
47611 &_swigt__p_wxPyApp,
47612 &_swigt__p_wxPyCommandEvent,
47613 &_swigt__p_wxPyControl,
47614 &_swigt__p_wxPyEvent,
47615 &_swigt__p_wxPyImageHandler,
47616 &_swigt__p_wxPyListCtrl,
47617 &_swigt__p_wxPySizer,
47618 &_swigt__p_wxPyTreeCtrl,
47619 &_swigt__p_wxPyTreeItemData,
47620 &_swigt__p_wxPyValidator,
47621 &_swigt__p_wxQueryNewPaletteEvent,
47622 &_swigt__p_wxRadioBox,
47623 &_swigt__p_wxRadioButton,
47624 &_swigt__p_wxRect,
47625 &_swigt__p_wxScrollBar,
47626 &_swigt__p_wxScrollEvent,
47627 &_swigt__p_wxScrollWinEvent,
47628 &_swigt__p_wxSetCursorEvent,
47629 &_swigt__p_wxShowEvent,
47630 &_swigt__p_wxSimpleHelpProvider,
47631 &_swigt__p_wxSize,
47632 &_swigt__p_wxSizeEvent,
47633 &_swigt__p_wxSizer,
47634 &_swigt__p_wxSizerItem,
47635 &_swigt__p_wxSlider,
47636 &_swigt__p_wxSpinButton,
47637 &_swigt__p_wxSpinCtrl,
47638 &_swigt__p_wxSpinEvent,
47639 &_swigt__p_wxStaticBitmap,
47640 &_swigt__p_wxStaticBox,
47641 &_swigt__p_wxStaticBoxSizer,
47642 &_swigt__p_wxStaticLine,
47643 &_swigt__p_wxStaticText,
47644 &_swigt__p_wxStdDialogButtonSizer,
47645 &_swigt__p_wxString,
47646 &_swigt__p_wxSysColourChangedEvent,
47647 &_swigt__p_wxTIFFHandler,
47648 &_swigt__p_wxTextAttr,
47649 &_swigt__p_wxTextCtrl,
47650 &_swigt__p_wxTextUrlEvent,
47651 &_swigt__p_wxToggleButton,
47652 &_swigt__p_wxToolBar,
47653 &_swigt__p_wxToolBarBase,
47654 &_swigt__p_wxToolBarToolBase,
47655 &_swigt__p_wxToolbook,
47656 &_swigt__p_wxToolbookEvent,
1bd55598
RD
47657 &_swigt__p_wxTreeEvent,
47658 &_swigt__p_wxTreeItemId,
47659 &_swigt__p_wxTreebook,
47660 &_swigt__p_wxTreebookEvent,
47661 &_swigt__p_wxUpdateUIEvent,
47662 &_swigt__p_wxValidator,
47663 &_swigt__p_wxVisualAttributes,
47664 &_swigt__p_wxWindow,
b850e7f3 47665 &_swigt__p_wxWindowBase,
1bd55598
RD
47666 &_swigt__p_wxWindowCreateEvent,
47667 &_swigt__p_wxWindowDestroyEvent,
47668 &_swigt__p_wxXPMHandler,
47669};
47670
47671static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
47672static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
47673static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
47674static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
47675static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
47676static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
47677static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
47678static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
47679static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
47680static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
47681static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
47682static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
47683static 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}};
47684static 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}};
47685static 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}};
47686static 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}};
47687static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
47688static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
47689static 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}};
47690static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
47691static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47692static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47693static swig_cast_info _swigc__p_wxColourPickerCtrl[] = { {&_swigt__p_wxColourPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47694static swig_cast_info _swigc__p_wxColourPickerEvent[] = { {&_swigt__p_wxColourPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47695static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
47696static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47697static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47698static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
47699static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
47700static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47701static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47702static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
47703static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
47704static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47705static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47706static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
47707static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47708static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxControl, 0, 0}, {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxControl, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxControl, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControl, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxControl, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxControl, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxControl, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxControl, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxControl, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxControl, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxControl, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47709static 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}};
47710static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
47711static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
47712static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47713static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
47714static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47715static swig_cast_info _swigc__p_wxDirPickerCtrl[] = { {&_swigt__p_wxDirPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47716static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
47717static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
47718static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
47719static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
47720static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
47721static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
47722static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
47723static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
47724static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
47725static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47726static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47727static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
47728static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
47729static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
47730static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47731static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
47732static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47733static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47734static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47735static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
47736static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
47737static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
47738static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
47739static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47740static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47741static 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_wxListEvent, _p_wxListEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_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
47742static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
47743static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
47744static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
47745static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47746static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
47747static swig_cast_info _swigc__p_wxFileDirPickerEvent[] = { {&_swigt__p_wxFileDirPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
47748static swig_cast_info _swigc__p_wxFilePickerCtrl[] = { {&_swigt__p_wxFilePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
1bd55598 47749static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47750static swig_cast_info _swigc__p_wxFontPickerCtrl[] = { {&_swigt__p_wxFontPickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
47751static swig_cast_info _swigc__p_wxFontPickerEvent[] = { {&_swigt__p_wxFontPickerEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47752static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
47753static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
47754static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
47755static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
47756static 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
47757static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
47758static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47759static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
47760static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
47761static 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}};
47762static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
47763static 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}};
47764static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
47765static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
47766static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
47767static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
47768static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
47769static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
47770static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
47771static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
47772static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
47773static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47774static 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}};
47775static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
47776static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
47777static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
47778static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
47779static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47780static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
47781static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
47782static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
47783static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47784static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
47785static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
47786static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
47787static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47788static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
47789static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
47790static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
47791static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
47792static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47793static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
47794static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
47795static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
47796static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
704eda0c 47797static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
2131d850 47798static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47799static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
47800static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
47801static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
47802static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
47803static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
47804static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47805static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextUrlEvent, _p_wxTextUrlEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerEvent, _p_wxColourPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileDirPickerEvent, _p_wxFileDirPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerEvent, _p_wxFontPickerEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxHyperlinkEvent, _p_wxHyperlinkEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextHelp, _p_wxContextHelpTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxObject, 0, 0}, {&_swigt__p_wxListEvent, _p_wxListEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxHelpEvent, _p_wxHelpEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxObject, 0, 0}, {&_swigt__p_wxListItem, _p_wxListItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinEvent, _p_wxSpinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGenericDragImage, _p_wxGenericDragImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotebookEvent, _p_wxNotebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxListbookEvent, _p_wxListbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChoicebookEvent, _p_wxChoicebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreebookEvent, _p_wxTreebookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxToolbookEvent, _p_wxToolbookEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBookCtrlBaseEvent, _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxTreeEvent, _p_wxTreeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxObject, 0, 0}, {&_swigt__p_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 47806static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3 47807static 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
47808static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
47809static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
47810static 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}};
47811static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
47812static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
47813static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
47814static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
47815static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
47816static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
47817static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
47818static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
47819static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
47820static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
47821static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
47822static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
47823static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
47824static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
47825static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
47826static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
47827static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
47828static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
47829static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
47830static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
47831static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
47832static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
47833static 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}};
47834static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
47835static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
47836static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47837static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
47838static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
47839static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
47840static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
47841static 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}};
47842static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
b850e7f3
RD
47843static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBookCtrlBase, _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBar, _p_wxToolBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPickerBase, _p_wxPickerBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioButton, _p_wxRadioButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToggleButton, _p_wxToggleButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolbook, _p_wxToolbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxPyControl, _p_wxPyControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxToolBarBase, _p_wxToolBarBaseTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyListCtrl, _p_wxPyListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxComboBox, _p_wxComboBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGenericDirCtrl, _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxScrollBar, _p_wxScrollBarTo_p_wxWindow, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxGauge, _p_wxGaugeTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticLine, _p_wxStaticLineTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoicebook, _p_wxChoicebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListbook, _p_wxListbookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxHyperlinkCtrl, _p_wxHyperlinkCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxPyTreeCtrl, _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckBox, _p_wxCheckBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxRadioBox, _p_wxRadioBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxWindow, 0, 0}, {&_swigt__p_wxListView, _p_wxListViewTo_p_wxWindow, 0, 0}, {&_swigt__p_wxNotebook, _p_wxNotebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBitmap, _p_wxStaticBitmapTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinCtrl, _p_wxSpinCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticText, _p_wxStaticTextTo_p_wxWindow, 0, 0}, {&_swigt__p_wxStaticBox, _p_wxStaticBoxTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSlider, _p_wxSliderTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTreebook, _p_wxTreebookTo_p_wxWindow, 0, 0}, {&_swigt__p_wxSpinButton, _p_wxSpinButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxButton, _p_wxButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxBitmapButton, _p_wxBitmapButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxContextHelpButton, _p_wxContextHelpButtonTo_p_wxWindow, 0, 0}, {&_swigt__p_wxColourPickerCtrl, _p_wxColourPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFilePickerCtrl, _p_wxFilePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDirPickerCtrl, _p_wxDirPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxFontPickerCtrl, _p_wxFontPickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxDatePickerCtrl, _p_wxDatePickerCtrlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxTextCtrl, _p_wxTextCtrlTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
47844static swig_cast_info _swigc__p_wxWindowBase[] = { {&_swigt__p_wxWindowBase, 0, 0, 0},{0, 0, 0, 0}};
1bd55598
RD
47845
47846static swig_cast_info *swig_cast_initial[] = {
47847 _swigc__p_bool,
47848 _swigc__p_char,
47849 _swigc__p_form_ops_t,
47850 _swigc__p_int,
47851 _swigc__p_long,
47852 _swigc__p_unsigned_char,
47853 _swigc__p_unsigned_int,
47854 _swigc__p_unsigned_long,
47855 _swigc__p_void,
47856 _swigc__p_wxANIHandler,
47857 _swigc__p_wxAcceleratorTable,
47858 _swigc__p_wxActivateEvent,
47859 _swigc__p_wxArrayInt,
47860 _swigc__p_wxArrayString,
47861 _swigc__p_wxBMPHandler,
47862 _swigc__p_wxBitmap,
47863 _swigc__p_wxBitmapButton,
47864 _swigc__p_wxBookCtrlBase,
47865 _swigc__p_wxBookCtrlBaseEvent,
47866 _swigc__p_wxBoxSizer,
47867 _swigc__p_wxButton,
47868 _swigc__p_wxCURHandler,
47869 _swigc__p_wxCheckBox,
47870 _swigc__p_wxCheckListBox,
47871 _swigc__p_wxChildFocusEvent,
47872 _swigc__p_wxChoice,
47873 _swigc__p_wxChoicebook,
47874 _swigc__p_wxChoicebookEvent,
2131d850 47875 _swigc__p_wxClipboardTextEvent,
1bd55598
RD
47876 _swigc__p_wxCloseEvent,
47877 _swigc__p_wxColour,
b850e7f3
RD
47878 _swigc__p_wxColourPickerCtrl,
47879 _swigc__p_wxColourPickerEvent,
1bd55598
RD
47880 _swigc__p_wxComboBox,
47881 _swigc__p_wxCommandEvent,
47882 _swigc__p_wxContextHelp,
47883 _swigc__p_wxContextHelpButton,
47884 _swigc__p_wxContextMenuEvent,
47885 _swigc__p_wxControl,
47886 _swigc__p_wxControlWithItems,
47887 _swigc__p_wxCursor,
47888 _swigc__p_wxDC,
47889 _swigc__p_wxDateEvent,
47890 _swigc__p_wxDatePickerCtrl,
47891 _swigc__p_wxDateTime,
47892 _swigc__p_wxDirFilterListCtrl,
b850e7f3 47893 _swigc__p_wxDirPickerCtrl,
1bd55598
RD
47894 _swigc__p_wxDisplayChangedEvent,
47895 _swigc__p_wxDropFilesEvent,
47896 _swigc__p_wxDuplexMode,
47897 _swigc__p_wxEraseEvent,
47898 _swigc__p_wxEvent,
47899 _swigc__p_wxEvtHandler,
47900 _swigc__p_wxFSFile,
b850e7f3
RD
47901 _swigc__p_wxFileDirPickerEvent,
47902 _swigc__p_wxFilePickerCtrl,
1bd55598
RD
47903 _swigc__p_wxFileSystem,
47904 _swigc__p_wxFlexGridSizer,
47905 _swigc__p_wxFocusEvent,
47906 _swigc__p_wxFont,
b850e7f3
RD
47907 _swigc__p_wxFontPickerCtrl,
47908 _swigc__p_wxFontPickerEvent,
1bd55598
RD
47909 _swigc__p_wxGBSizerItem,
47910 _swigc__p_wxGIFHandler,
47911 _swigc__p_wxGauge,
47912 _swigc__p_wxGenericDirCtrl,
47913 _swigc__p_wxGenericDragImage,
47914 _swigc__p_wxGridBagSizer,
47915 _swigc__p_wxGridSizer,
47916 _swigc__p_wxHelpEvent,
47917 _swigc__p_wxHelpProvider,
704eda0c
RD
47918 _swigc__p_wxHyperlinkCtrl,
47919 _swigc__p_wxHyperlinkEvent,
1bd55598
RD
47920 _swigc__p_wxICOHandler,
47921 _swigc__p_wxIcon,
47922 _swigc__p_wxIconizeEvent,
47923 _swigc__p_wxIdleEvent,
47924 _swigc__p_wxImage,
47925 _swigc__p_wxImageHandler,
47926 _swigc__p_wxImageList,
47927 _swigc__p_wxIndividualLayoutConstraint,
47928 _swigc__p_wxInitDialogEvent,
47929 _swigc__p_wxItemContainer,
47930 _swigc__p_wxJPEGHandler,
47931 _swigc__p_wxKeyEvent,
47932 _swigc__p_wxLayoutConstraints,
47933 _swigc__p_wxListBox,
47934 _swigc__p_wxListEvent,
47935 _swigc__p_wxListItem,
47936 _swigc__p_wxListItemAttr,
47937 _swigc__p_wxListView,
47938 _swigc__p_wxListbook,
47939 _swigc__p_wxListbookEvent,
47940 _swigc__p_wxMaximizeEvent,
47941 _swigc__p_wxMemoryDC,
47942 _swigc__p_wxMenu,
47943 _swigc__p_wxMenuBar,
47944 _swigc__p_wxMenuEvent,
47945 _swigc__p_wxMenuItem,
47946 _swigc__p_wxMouseCaptureChangedEvent,
47947 _swigc__p_wxMouseEvent,
47948 _swigc__p_wxMoveEvent,
47949 _swigc__p_wxNavigationKeyEvent,
47950 _swigc__p_wxNcPaintEvent,
47951 _swigc__p_wxNotebook,
47952 _swigc__p_wxNotebookEvent,
47953 _swigc__p_wxNotifyEvent,
47954 _swigc__p_wxObject,
47955 _swigc__p_wxPCXHandler,
47956 _swigc__p_wxPNGHandler,
47957 _swigc__p_wxPNMHandler,
47958 _swigc__p_wxPaintEvent,
47959 _swigc__p_wxPaletteChangedEvent,
47960 _swigc__p_wxPaperSize,
b850e7f3 47961 _swigc__p_wxPickerBase,
1bd55598
RD
47962 _swigc__p_wxPoint,
47963 _swigc__p_wxPyApp,
47964 _swigc__p_wxPyCommandEvent,
47965 _swigc__p_wxPyControl,
47966 _swigc__p_wxPyEvent,
47967 _swigc__p_wxPyImageHandler,
47968 _swigc__p_wxPyListCtrl,
47969 _swigc__p_wxPySizer,
47970 _swigc__p_wxPyTreeCtrl,
47971 _swigc__p_wxPyTreeItemData,
47972 _swigc__p_wxPyValidator,
47973 _swigc__p_wxQueryNewPaletteEvent,
47974 _swigc__p_wxRadioBox,
47975 _swigc__p_wxRadioButton,
47976 _swigc__p_wxRect,
47977 _swigc__p_wxScrollBar,
47978 _swigc__p_wxScrollEvent,
47979 _swigc__p_wxScrollWinEvent,
47980 _swigc__p_wxSetCursorEvent,
47981 _swigc__p_wxShowEvent,
47982 _swigc__p_wxSimpleHelpProvider,
47983 _swigc__p_wxSize,
47984 _swigc__p_wxSizeEvent,
47985 _swigc__p_wxSizer,
47986 _swigc__p_wxSizerItem,
47987 _swigc__p_wxSlider,
47988 _swigc__p_wxSpinButton,
47989 _swigc__p_wxSpinCtrl,
47990 _swigc__p_wxSpinEvent,
47991 _swigc__p_wxStaticBitmap,
47992 _swigc__p_wxStaticBox,
47993 _swigc__p_wxStaticBoxSizer,
47994 _swigc__p_wxStaticLine,
47995 _swigc__p_wxStaticText,
47996 _swigc__p_wxStdDialogButtonSizer,
47997 _swigc__p_wxString,
47998 _swigc__p_wxSysColourChangedEvent,
47999 _swigc__p_wxTIFFHandler,
48000 _swigc__p_wxTextAttr,
48001 _swigc__p_wxTextCtrl,
48002 _swigc__p_wxTextUrlEvent,
48003 _swigc__p_wxToggleButton,
48004 _swigc__p_wxToolBar,
48005 _swigc__p_wxToolBarBase,
48006 _swigc__p_wxToolBarToolBase,
48007 _swigc__p_wxToolbook,
48008 _swigc__p_wxToolbookEvent,
1bd55598
RD
48009 _swigc__p_wxTreeEvent,
48010 _swigc__p_wxTreeItemId,
48011 _swigc__p_wxTreebook,
48012 _swigc__p_wxTreebookEvent,
48013 _swigc__p_wxUpdateUIEvent,
48014 _swigc__p_wxValidator,
48015 _swigc__p_wxVisualAttributes,
48016 _swigc__p_wxWindow,
b850e7f3 48017 _swigc__p_wxWindowBase,
1bd55598
RD
48018 _swigc__p_wxWindowCreateEvent,
48019 _swigc__p_wxWindowDestroyEvent,
48020 _swigc__p_wxXPMHandler,
48021};
48022
48023
48024/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
48025
48026static swig_const_info swig_const_table[] = {
48027{0, 0, 0, 0.0, 0, 0}};
48028
48029#ifdef __cplusplus
48030}
48031#endif
48032/* -----------------------------------------------------------------------------
48033 * Type initialization:
48034 * This problem is tough by the requirement that no dynamic
48035 * memory is used. Also, since swig_type_info structures store pointers to
48036 * swig_cast_info structures and swig_cast_info structures store pointers back
48037 * to swig_type_info structures, we need some lookup code at initialization.
48038 * The idea is that swig generates all the structures that are needed.
48039 * The runtime then collects these partially filled structures.
48040 * The SWIG_InitializeModule function takes these initial arrays out of
48041 * swig_module, and does all the lookup, filling in the swig_module.types
48042 * array with the correct data and linking the correct swig_cast_info
48043 * structures together.
48044 *
48045 * The generated swig_type_info structures are assigned staticly to an initial
48046 * array. We just loop though that array, and handle each type individually.
48047 * First we lookup if this type has been already loaded, and if so, use the
48048 * loaded structure instead of the generated one. Then we have to fill in the
48049 * cast linked list. The cast data is initially stored in something like a
48050 * two-dimensional array. Each row corresponds to a type (there are the same
48051 * number of rows as there are in the swig_type_initial array). Each entry in
48052 * a column is one of the swig_cast_info structures for that type.
48053 * The cast_initial array is actually an array of arrays, because each row has
48054 * a variable number of columns. So to actually build the cast linked list,
48055 * we find the array of casts associated with the type, and loop through it
48056 * adding the casts to the list. The one last trick we need to do is making
48057 * sure the type pointer in the swig_cast_info struct is correct.
48058 *
48059 * First off, we lookup the cast->type name to see if it is already loaded.
48060 * There are three cases to handle:
48061 * 1) If the cast->type has already been loaded AND the type we are adding
48062 * casting info to has not been loaded (it is in this module), THEN we
48063 * replace the cast->type pointer with the type pointer that has already
48064 * been loaded.
48065 * 2) If BOTH types (the one we are adding casting info to, and the
48066 * cast->type) are loaded, THEN the cast info has already been loaded by
48067 * the previous module so we just ignore it.
48068 * 3) Finally, if cast->type has not already been loaded, then we add that
48069 * swig_cast_info to the linked list (because the cast->type) pointer will
48070 * be correct.
48071 * ----------------------------------------------------------------------------- */
48072
48073#ifdef __cplusplus
48074extern "C" {
48075#if 0
48076} /* c-mode */
48077#endif
48078#endif
48079
48080#if 0
48081#define SWIGRUNTIME_DEBUG
48082#endif
48083
48084SWIGRUNTIME void
48085SWIG_InitializeModule(void *clientdata) {
48086 size_t i;
48087 swig_module_info *module_head;
48088 static int init_run = 0;
48089
48090 clientdata = clientdata;
48091
48092 if (init_run) return;
48093 init_run = 1;
48094
48095 /* Initialize the swig_module */
48096 swig_module.type_initial = swig_type_initial;
48097 swig_module.cast_initial = swig_cast_initial;
48098
48099 /* Try and load any already created modules */
48100 module_head = SWIG_GetModule(clientdata);
48101 if (module_head) {
48102 swig_module.next = module_head->next;
48103 module_head->next = &swig_module;
48104 } else {
48105 /* This is the first module loaded */
48106 swig_module.next = &swig_module;
48107 SWIG_SetModule(clientdata, &swig_module);
48108 }
48109
48110 /* Now work on filling in swig_module.types */
48111#ifdef SWIGRUNTIME_DEBUG
48112 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
48113#endif
48114 for (i = 0; i < swig_module.size; ++i) {
48115 swig_type_info *type = 0;
48116 swig_type_info *ret;
48117 swig_cast_info *cast;
d55e5bfc 48118
1bd55598
RD
48119#ifdef SWIGRUNTIME_DEBUG
48120 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48121#endif
d55e5bfc 48122
1bd55598
RD
48123 /* if there is another module already loaded */
48124 if (swig_module.next != &swig_module) {
48125 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36ed4f51 48126 }
1bd55598
RD
48127 if (type) {
48128 /* Overwrite clientdata field */
48129#ifdef SWIGRUNTIME_DEBUG
48130 printf("SWIG_InitializeModule: found type %s\n", type->name);
48131#endif
48132 if (swig_module.type_initial[i]->clientdata) {
48133 type->clientdata = swig_module.type_initial[i]->clientdata;
48134#ifdef SWIGRUNTIME_DEBUG
48135 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
48136#endif
48137 }
48138 } else {
48139 type = swig_module.type_initial[i];
36ed4f51 48140 }
d55e5bfc 48141
1bd55598
RD
48142 /* Insert casting types */
48143 cast = swig_module.cast_initial[i];
48144 while (cast->type) {
48145 /* Don't need to add information already in the list */
48146 ret = 0;
48147#ifdef SWIGRUNTIME_DEBUG
48148 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
48149#endif
48150 if (swig_module.next != &swig_module) {
48151 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
48152#ifdef SWIGRUNTIME_DEBUG
48153 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
48154#endif
48155 }
48156 if (ret) {
48157 if (type == swig_module.type_initial[i]) {
48158#ifdef SWIGRUNTIME_DEBUG
48159 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
48160#endif
48161 cast->type = ret;
48162 ret = 0;
48163 } else {
48164 /* Check for casting already in the list */
48165 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
48166#ifdef SWIGRUNTIME_DEBUG
48167 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
48168#endif
48169 if (!ocast) ret = 0;
48170 }
48171 }
48172
48173 if (!ret) {
48174#ifdef SWIGRUNTIME_DEBUG
48175 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
48176#endif
48177 if (type->cast) {
48178 type->cast->prev = cast;
48179 cast->next = type->cast;
48180 }
48181 type->cast = cast;
48182 }
48183 cast++;
36ed4f51 48184 }
1bd55598
RD
48185 /* Set entry in modules->types array equal to the type */
48186 swig_module.types[i] = type;
48187 }
48188 swig_module.types[i] = 0;
48189
48190#ifdef SWIGRUNTIME_DEBUG
48191 printf("**** SWIG_InitializeModule: Cast List ******\n");
48192 for (i = 0; i < swig_module.size; ++i) {
48193 int j = 0;
48194 swig_cast_info *cast = swig_module.cast_initial[i];
48195 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
48196 while (cast->type) {
48197 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
48198 cast++;
48199 ++j;
48200 }
48201 printf("---- Total casts: %d\n",j);
48202 }
48203 printf("**** SWIG_InitializeModule: Cast List ******\n");
48204#endif
48205}
48206
48207/* This function will propagate the clientdata field of type to
48208* any new swig_type_info structures that have been added into the list
48209* of equivalent types. It is like calling
48210* SWIG_TypeClientData(type, clientdata) a second time.
48211*/
48212SWIGRUNTIME void
48213SWIG_PropagateClientData(void) {
48214 size_t i;
48215 swig_cast_info *equiv;
48216 static int init_run = 0;
48217
48218 if (init_run) return;
48219 init_run = 1;
48220
48221 for (i = 0; i < swig_module.size; i++) {
48222 if (swig_module.types[i]->clientdata) {
48223 equiv = swig_module.types[i]->cast;
48224 while (equiv) {
48225 if (!equiv->converter) {
48226 if (equiv->type && !equiv->type->clientdata)
48227 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
48228 }
48229 equiv = equiv->next;
48230 }
36ed4f51 48231 }
1bd55598
RD
48232 }
48233}
48234
48235#ifdef __cplusplus
48236#if 0
48237{
48238 /* c-mode */
48239#endif
48240}
48241#endif
48242
48243
48244
48245#ifdef __cplusplus
48246extern "C" {
48247#endif
48248
48249 /* Python-specific SWIG API */
48250#define SWIG_newvarlink() SWIG_Python_newvarlink()
48251#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
48252#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
48253
48254 /* -----------------------------------------------------------------------------
48255 * global variable support code.
48256 * ----------------------------------------------------------------------------- */
48257
48258 typedef struct swig_globalvar {
48259 char *name; /* Name of global variable */
48260 PyObject *(*get_attr)(void); /* Return the current value */
48261 int (*set_attr)(PyObject *); /* Set the value */
48262 struct swig_globalvar *next;
48263 } swig_globalvar;
48264
48265 typedef struct swig_varlinkobject {
48266 PyObject_HEAD
48267 swig_globalvar *vars;
48268 } swig_varlinkobject;
48269
48270 SWIGINTERN PyObject *
48271 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
48272 return PyString_FromString("<Swig global variables>");
48273 }
48274
48275 SWIGINTERN PyObject *
48276 swig_varlink_str(swig_varlinkobject *v) {
48277 PyObject *str = PyString_FromString("(");
48278 swig_globalvar *var;
48279 for (var = v->vars; var; var=var->next) {
48280 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
48281 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
48282 }
48283 PyString_ConcatAndDel(&str,PyString_FromString(")"));
48284 return str;
48285 }
48286
48287 SWIGINTERN int
48288 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
48289 PyObject *str = swig_varlink_str(v);
48290 fprintf(fp,"Swig global variables ");
48291 fprintf(fp,"%s\n", PyString_AsString(str));
48292 Py_DECREF(str);
48293 return 0;
48294 }
48295
48296 SWIGINTERN void
48297 swig_varlink_dealloc(swig_varlinkobject *v) {
48298 swig_globalvar *var = v->vars;
48299 while (var) {
48300 swig_globalvar *n = var->next;
48301 free(var->name);
48302 free(var);
48303 var = n;
36ed4f51 48304 }
1bd55598
RD
48305 }
48306
48307 SWIGINTERN PyObject *
48308 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
48309 PyObject *res = NULL;
48310 swig_globalvar *var = v->vars;
48311 while (var) {
48312 if (strcmp(var->name,n) == 0) {
48313 res = (*var->get_attr)();
48314 break;
48315 }
48316 var = var->next;
36ed4f51 48317 }
1bd55598
RD
48318 if (res == NULL && !PyErr_Occurred()) {
48319 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36ed4f51 48320 }
1bd55598
RD
48321 return res;
48322 }
48323
48324 SWIGINTERN int
48325 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
48326 int res = 1;
48327 swig_globalvar *var = v->vars;
48328 while (var) {
48329 if (strcmp(var->name,n) == 0) {
48330 res = (*var->set_attr)(p);
48331 break;
48332 }
48333 var = var->next;
36ed4f51 48334 }
1bd55598
RD
48335 if (res == 1 && !PyErr_Occurred()) {
48336 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
53aa7709 48337 }
1bd55598
RD
48338 return res;
48339 }
48340
48341 SWIGINTERN PyTypeObject*
48342 swig_varlink_type(void) {
48343 static char varlink__doc__[] = "Swig var link object";
48344 static PyTypeObject varlink_type;
48345 static int type_init = 0;
48346 if (!type_init) {
48347 const PyTypeObject tmp
48348 = {
48349 PyObject_HEAD_INIT(NULL)
48350 0, /* Number of items in variable part (ob_size) */
48351 (char *)"swigvarlink", /* Type name (tp_name) */
48352 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
48353 0, /* Itemsize (tp_itemsize) */
48354 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
48355 (printfunc) swig_varlink_print, /* Print (tp_print) */
48356 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
48357 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
48358 0, /* tp_compare */
48359 (reprfunc) swig_varlink_repr, /* tp_repr */
48360 0, /* tp_as_number */
48361 0, /* tp_as_sequence */
48362 0, /* tp_as_mapping */
48363 0, /* tp_hash */
48364 0, /* tp_call */
48365 (reprfunc)swig_varlink_str, /* tp_str */
48366 0, /* tp_getattro */
48367 0, /* tp_setattro */
48368 0, /* tp_as_buffer */
48369 0, /* tp_flags */
48370 varlink__doc__, /* tp_doc */
48371 0, /* tp_traverse */
48372 0, /* tp_clear */
48373 0, /* tp_richcompare */
48374 0, /* tp_weaklistoffset */
48375#if PY_VERSION_HEX >= 0x02020000
48376 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
48377#endif
48378#if PY_VERSION_HEX >= 0x02030000
48379 0, /* tp_del */
48380#endif
48381#ifdef COUNT_ALLOCS
48382 0,0,0,0 /* tp_alloc -> tp_next */
48383#endif
48384 };
48385 varlink_type = tmp;
48386 varlink_type.ob_type = &PyType_Type;
48387 type_init = 1;
53aa7709 48388 }
1bd55598
RD
48389 return &varlink_type;
48390 }
48391
48392 /* Create a variable linking object for use later */
48393 SWIGINTERN PyObject *
48394 SWIG_Python_newvarlink(void) {
48395 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
48396 if (result) {
48397 result->vars = 0;
48398 }
48399 return ((PyObject*) result);
48400 }
48401
48402 SWIGINTERN void
48403 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
48404 swig_varlinkobject *v = (swig_varlinkobject *) p;
48405 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
48406 if (gv) {
48407 size_t size = strlen(name)+1;
48408 gv->name = (char *)malloc(size);
48409 if (gv->name) {
48410 strncpy(gv->name,name,size);
48411 gv->get_attr = get_attr;
48412 gv->set_attr = set_attr;
48413 gv->next = v->vars;
48414 }
53aa7709 48415 }
1bd55598
RD
48416 v->vars = gv;
48417 }
48418
48419 SWIGINTERN PyObject *
48420 SWIG_globals() {
48421 static PyObject *_SWIG_globals = 0;
48422 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
48423 return _SWIG_globals;
48424 }
48425
48426 /* -----------------------------------------------------------------------------
48427 * constants/methods manipulation
48428 * ----------------------------------------------------------------------------- */
48429
48430 /* Install Constants */
48431 SWIGINTERN void
48432 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
48433 PyObject *obj = 0;
48434 size_t i;
48435 for (i = 0; constants[i].type; ++i) {
48436 switch(constants[i].type) {
48437 case SWIG_PY_POINTER:
48438 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
48439 break;
48440 case SWIG_PY_BINARY:
48441 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
48442 break;
48443 default:
48444 obj = 0;
48445 break;
48446 }
48447 if (obj) {
48448 PyDict_SetItemString(d, constants[i].name, obj);
48449 Py_DECREF(obj);
48450 }
53aa7709 48451 }
1bd55598
RD
48452 }
48453
48454 /* -----------------------------------------------------------------------------*/
48455 /* Fix SwigMethods to carry the callback ptrs when needed */
48456 /* -----------------------------------------------------------------------------*/
48457
48458 SWIGINTERN void
48459 SWIG_Python_FixMethods(PyMethodDef *methods,
48460 swig_const_info *const_table,
48461 swig_type_info **types,
48462 swig_type_info **types_initial) {
48463 size_t i;
48464 for (i = 0; methods[i].ml_name; ++i) {
3d6c9062 48465 const char *c = methods[i].ml_doc;
1bd55598
RD
48466 if (c && (c = strstr(c, "swig_ptr: "))) {
48467 int j;
48468 swig_const_info *ci = 0;
3d6c9062 48469 const char *name = c + 10;
1bd55598
RD
48470 for (j = 0; const_table[j].type; ++j) {
48471 if (strncmp(const_table[j].name, name,
48472 strlen(const_table[j].name)) == 0) {
48473 ci = &(const_table[j]);
48474 break;
48475 }
48476 }
48477 if (ci) {
48478 size_t shift = (ci->ptype) - types;
48479 swig_type_info *ty = types_initial[shift];
48480 size_t ldoc = (c - methods[i].ml_doc);
48481 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
48482 char *ndoc = (char*)malloc(ldoc + lptr + 10);
48483 if (ndoc) {
48484 char *buff = ndoc;
48485 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
48486 if (ptr) {
48487 strncpy(buff, methods[i].ml_doc, ldoc);
48488 buff += ldoc;
48489 strncpy(buff, "swig_ptr: ", 10);
48490 buff += 10;
48491 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
48492 methods[i].ml_doc = ndoc;
48493 }
48494 }
48495 }
48496 }
53aa7709 48497 }
1bd55598
RD
48498 }
48499
48500#ifdef __cplusplus
48501}
48502#endif
48503
48504/* -----------------------------------------------------------------------------*
48505 * Partial Init method
48506 * -----------------------------------------------------------------------------*/
48507
48508#ifdef __cplusplus
48509extern "C"
48510#endif
48511SWIGEXPORT void SWIG_init(void) {
48512 PyObject *m, *d;
48513
48514 /* Fix SwigMethods to carry the callback ptrs when needed */
48515 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
48516
48517 m = Py_InitModule((char *) SWIG_name, SwigMethods);
48518 d = PyModule_GetDict(m);
48519
48520 SWIG_InitializeModule(0);
48521 SWIG_InstallConstants(d,swig_const_table);
48522
48523
48524 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
48525 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
48526 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
48527 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
48528 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
48529 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
48530 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
48531 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
48532 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
48533 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
48534 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
48535 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
48536 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
48537 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
48538 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
48539 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
48540 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
48541 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
48542 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
48543 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
48544 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
48545 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
1bd55598
RD
48546 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
48547 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
48548 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
48549 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
48550 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
48551 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
48552 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
48553 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
48554 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
48555 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
48556 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
48557 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
48558 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
48559 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
48560 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
48561 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
48562 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
48563 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
48564 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
48565 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
48566 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
48567 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
48568 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
1bd55598
RD
48569 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
48570 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
48571 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
48572 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
48573 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
48574 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
48575 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
48576 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
48577 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
48578 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
48579 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
48580 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
48581 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
48582 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
48583 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
48584 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
48585 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
48586 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
48587 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
48588 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
48589 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
48590 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
48591 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
48592 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
48593 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
48594 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
48595 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
48596 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
48597 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
48598 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
48599 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
48600 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
48601 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
48602 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
48603 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
48604 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
48605 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
48606 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
48607 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
48608 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
48609 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
48610 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
48611 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
48612 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
48613 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
48614 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
48615 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
48616 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
48617 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
48618 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
48619 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
48620 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
48621 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
48622 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
48623 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
48624 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
48625 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
48626 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
48627 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
48628 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
48629 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
48630 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
48631 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
e9d6f3a4 48632 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
110fa173
RD
48633 SWIG_Python_SetConstant(d, "BK_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_NOWHERE)));
48634 SWIG_Python_SetConstant(d, "BK_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONICON)));
48635 SWIG_Python_SetConstant(d, "BK_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONLABEL)));
48636 SWIG_Python_SetConstant(d, "BK_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONITEM)));
48637 SWIG_Python_SetConstant(d, "BK_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxBK_HITTEST_ONPAGE)));
1bd55598
RD
48638 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
48639 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
48640 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
48641 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
48642 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
48643 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
48644 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
48645 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
48646 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
48647 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
48648 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
b02396e8 48649 SWIG_Python_SetConstant(d, "NB_HITTEST_ONPAGE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONPAGE)));
1bd55598
RD
48650 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
48651 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
48652 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
48653 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
48654 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
48655 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
48656 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
48657 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
48658 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
48659 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
48660 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
48661 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
48662 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
48663 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
48664 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
48665 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
48666 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
48667 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
48668 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
48669 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
48670 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
48671 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
48672 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
48673 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
48674 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
48675 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
48676 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
48677 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
48678 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
48679 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
48680 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
48681 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
48682 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
48683 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
48684 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
48685 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
48686 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
48687 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
704eda0c 48688 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
1bd55598
RD
48689 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
48690 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
48691 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
48692 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
48693 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
48694 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
48695 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
48696 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
48697 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
48698 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
48699 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
48700 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
48701 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
48702 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
48703 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
48704 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
48705 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
48706 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
48707 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
48708 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
48709 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
48710 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
48711 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
48712 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
48713 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
48714 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
48715 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
48716 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
48717 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
48718 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
48719 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
48720 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
48721 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
48722 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
48723 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
48724 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
48725 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
48726 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
48727 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
48728 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
48729 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
48730 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
48731 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
48732 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
48733 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
48734 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
48735 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
704eda0c 48736 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
1bd55598
RD
48737 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
48738 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
48739 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
48740 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
48741 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
48742 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
48743 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
48744 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
48745 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
48746 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
48747 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
48748 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
48749 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
48750 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
48751 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
48752 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
48753 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
48754 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
48755 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
48756 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
48757 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
48758 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
48759 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
48760 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
48761 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
48762 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
48763 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
48764 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
48765 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
48766 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
48767 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
48768 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
48769 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
48770 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
48771 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
48772 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
48773 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
48774 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
48775 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
48776 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
48777 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
48778 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
48779
48780 // Map renamed classes back to their common name for OOR
48781 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
48782
48783 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
48784 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
48785 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
48786 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
48787 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
48788 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
48789 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
48790 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
48791 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
48792 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
48793 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
48794 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
48795 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
48796 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
48797 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
1bd55598
RD
48798 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
48799 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
48800 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
48801 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
48802 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
48803 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
48804 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
48805 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
48806 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
48807 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
48808 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
48809 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
48810 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
48811 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
48812 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
48813 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
48814 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
48815 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
48816 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
48817 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
48818 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
48819 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
48820 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
48821 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
48822 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
48823 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
48824 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
48825 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
48826 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
48827 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
48828 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
48829 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
48830 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
48831 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
48832 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
48833 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
48834 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
48835 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
48836 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
48837 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
b02396e8 48838 SWIG_addvarlink(SWIG_globals(),(char*)"NullTreeItemId",NullTreeItemId_get, NullTreeItemId_set);
1bd55598
RD
48839
48840 // Map renamed classes back to their common name for OOR
48841 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
48842 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
48843
48844 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
48845 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
48846 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
48847 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
48848 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
48849 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
48850 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
48851 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
48852 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
48853 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
704eda0c
RD
48854 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
48855 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
48856 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
1bd55598
RD
48857
48858 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
48859
48860 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
48861 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
48862 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
48863 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
48864 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
48865 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
704eda0c
RD
48866 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
48867 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
48868 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
48869 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
b850e7f3
RD
48870 SWIG_Python_SetConstant(d, "PB_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxPB_USE_TEXTCTRL)));
48871 SWIG_addvarlink(SWIG_globals(),(char*)"ColourPickerCtrlNameStr",ColourPickerCtrlNameStr_get, ColourPickerCtrlNameStr_set);
48872 SWIG_Python_SetConstant(d, "CLRP_SHOW_LABEL",SWIG_From_int(static_cast< int >(wxCLRP_SHOW_LABEL)));
48873 SWIG_Python_SetConstant(d, "CLRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxCLRP_USE_TEXTCTRL)));
48874 SWIG_Python_SetConstant(d, "CLRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxCLRP_DEFAULT_STYLE)));
48875 PyDict_SetItemString(d, "wxEVT_COMMAND_COLOURPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_COLOURPICKER_CHANGED));
48876 SWIG_addvarlink(SWIG_globals(),(char*)"FilePickerCtrlNameStr",FilePickerCtrlNameStr_get, FilePickerCtrlNameStr_set);
48877 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorPromptStr",FileSelectorPromptStr_get, FileSelectorPromptStr_set);
48878 SWIG_addvarlink(SWIG_globals(),(char*)"DirPickerCtrlNameStr",DirPickerCtrlNameStr_get, DirPickerCtrlNameStr_set);
48879 SWIG_addvarlink(SWIG_globals(),(char*)"DirSelectorPromptStr",DirSelectorPromptStr_get, DirSelectorPromptStr_set);
48880 SWIG_addvarlink(SWIG_globals(),(char*)"FileSelectorDefaultWildcardStr",FileSelectorDefaultWildcardStr_get, FileSelectorDefaultWildcardStr_set);
48881 SWIG_Python_SetConstant(d, "FLP_OPEN",SWIG_From_int(static_cast< int >(wxFLP_OPEN)));
48882 SWIG_Python_SetConstant(d, "FLP_SAVE",SWIG_From_int(static_cast< int >(wxFLP_SAVE)));
48883 SWIG_Python_SetConstant(d, "FLP_OVERWRITE_PROMPT",SWIG_From_int(static_cast< int >(wxFLP_OVERWRITE_PROMPT)));
48884 SWIG_Python_SetConstant(d, "FLP_FILE_MUST_EXIST",SWIG_From_int(static_cast< int >(wxFLP_FILE_MUST_EXIST)));
48885 SWIG_Python_SetConstant(d, "FLP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxFLP_CHANGE_DIR)));
48886 SWIG_Python_SetConstant(d, "DIRP_DIR_MUST_EXIST",SWIG_From_int(static_cast< int >(wxDIRP_DIR_MUST_EXIST)));
48887 SWIG_Python_SetConstant(d, "DIRP_CHANGE_DIR",SWIG_From_int(static_cast< int >(wxDIRP_CHANGE_DIR)));
48888 SWIG_Python_SetConstant(d, "FLP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFLP_USE_TEXTCTRL)));
48889 SWIG_Python_SetConstant(d, "FLP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFLP_DEFAULT_STYLE)));
48890 SWIG_Python_SetConstant(d, "DIRP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxDIRP_USE_TEXTCTRL)));
48891 SWIG_Python_SetConstant(d, "DIRP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxDIRP_DEFAULT_STYLE)));
48892 PyDict_SetItemString(d, "wxEVT_COMMAND_FILEPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FILEPICKER_CHANGED));
48893 PyDict_SetItemString(d, "wxEVT_COMMAND_DIRPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_DIRPICKER_CHANGED));
48894 SWIG_addvarlink(SWIG_globals(),(char*)"FontPickerCtrlNameStr",FontPickerCtrlNameStr_get, FontPickerCtrlNameStr_set);
48895 SWIG_Python_SetConstant(d, "FNTP_FONTDESC_AS_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_FONTDESC_AS_LABEL)));
48896 SWIG_Python_SetConstant(d, "FNTP_USEFONT_FOR_LABEL",SWIG_From_int(static_cast< int >(wxFNTP_USEFONT_FOR_LABEL)));
48897 SWIG_Python_SetConstant(d, "FNTP_USE_TEXTCTRL",SWIG_From_int(static_cast< int >(wxFNTP_USE_TEXTCTRL)));
48898 SWIG_Python_SetConstant(d, "FNTP_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxFNTP_DEFAULT_STYLE)));
48899 PyDict_SetItemString(d, "wxEVT_COMMAND_FONTPICKER_CHANGED", PyInt_FromLong(wxEVT_COMMAND_FONTPICKER_CHANGED));
d55e5bfc
RD
48900}
48901